index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035
  1. <template>
  2. <view v-if="status == -1 && !inloading" :style="colorStyle">
  3. <form report-submit='true'>
  4. <view class='merchantsSettled'>
  5. <image mode="widthFix" class="merchantBg" src="../static/img.jpg" alt="">
  6. <!-- <view class="application-record" @click="jumpToList">
  7. 申请记录
  8. <text class="iconfont icon-xiangyou"></text>
  9. </view> -->
  10. <view class='list'>
  11. <view class="item">
  12. <view class="acea-row row-middle">
  13. <!-- <i class="icon iconfont icon-qiye"></i> -->
  14. <text class="item-name">{{$t(`代理商名称`)}}</text>
  15. <input type="text" maxlength="30" :placeholder="$t(`请输入代理商名称`)"
  16. v-model="merchantData.agent_name" @input="validateBtn"
  17. placeholder-class='placeholder' />
  18. </view>
  19. </view>
  20. <view class="item">
  21. <view class="acea-row row-middle">
  22. <!-- <i class="icon iconfont icon-yonghu3"></i> -->
  23. <text class="item-name">{{$t(`用户姓名`)}}</text>
  24. <input type="text" :placeholder="$t(`请输入姓名`)" v-model="merchantData.name"
  25. @input="validateBtn" placeholder-class='placeholder' />
  26. </view>
  27. </view>
  28. <view class="item">
  29. <view class="acea-row row-middle">
  30. <!-- <i class="icon iconfont icon-shoujihao"></i> -->
  31. <text class="item-name">{{$t(`联系电话`)}}</text>
  32. <input type="text" :placeholder="$t(`请输入手机号`)" v-model="merchantData.phone"
  33. @input="validateBtn" placeholder-class='placeholder' />
  34. </view>
  35. </view>
  36. <view class="item rel">
  37. <view class="acea-row row-middle">
  38. <!-- <i class="icon iconfont icon-yanzhengma"></i> -->
  39. <text class="item-name">{{$t(`验证码`)}}</text>
  40. <input type="text" :placeholder="$t(`填写验证码`)" v-model="merchantData.code"
  41. @input="validateBtn" class="codeIput" placeholder-class='placeholder' />
  42. <button class="code" :disabled="disabled" :class="disabled === true ? 'on' : ''"
  43. @click="code">
  44. {{ text }}
  45. </button>
  46. </view>
  47. </view>
  48. <view class="item">
  49. <view class="acea-row row-middle">
  50. <!-- <i class="icon iconfont icon-shoujihao"></i> -->
  51. <text class="item-name">{{$t(`邀请码`)}}</text>
  52. <input type="text" :placeholder="$t(`请输入代理商邀请码`)" v-model="merchantData.division_invite"
  53. @input="validateBtn" placeholder-class='placeholder' />
  54. </view>
  55. </view>
  56. <view class="item no-border">
  57. <view class='acea-row row-middle'>
  58. <text class="item-title">{{$t(`请上传营业执照及行业相关资质证明图片`)}}</text>
  59. <text class="item-desc">({{$t(`图片最多可上传10张,图片格式支持JPG、PNG、JPEG`)}})</text>
  60. <view class="upload">
  61. <view class='pictrue' v-for="(item,index) in images" :key="index"
  62. :data-index="index" @click="getPhotoClickIdx">
  63. <image :src='item'></image>
  64. <text class='iconfont icon-guanbi1' @click.stop='DelPic(index)'></text>
  65. </view>
  66. <view class='pictrue acea-row row-center-wrapper row-column' @click='uploadpic'
  67. v-if="images.length < 10">
  68. <text class='iconfont icon-icon25201'></text>
  69. <view>{{$t(`上传图片`)}}</view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="item no-border">
  75. <checkbox-group @change='ChangeIsAgree'>
  76. <checkbox class="checkbox" :checked="isAgree ? true : false" />{{$t(`已阅读并同意`)}}
  77. </checkbox-group>
  78. <button class="settleAgree" @click="getAgentAgreement">《{{$t(`代理商协议`)}}》</button>
  79. </view>
  80. <button class='submitBtn' :class="isAgree === true ? 'on':''"
  81. @click="formSubmit">{{$t(`提交申请`)}}</button>
  82. </view>
  83. </view>
  84. </form>
  85. <view class="settlementAgreement" v-if="showProtocol">
  86. <view class="setAgCount">
  87. <i class="icon iconfont icon-cha" @click="showProtocol = false"></i>
  88. <div class="title">{{$t(`代理商入驻协议`)}}</div>
  89. <view class="content">
  90. <jyf-parser :html="protocol" ref="article" :tag-style="tagStyle"></jyf-parser>
  91. <!-- <view v-html="protocol"></view> -->
  92. </view>
  93. </view>
  94. </view>
  95. <view class='loadingicon acea-row row-center-wrapper' v-if="loading">
  96. <text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>
  97. </view>
  98. <!-- #ifdef MP -->
  99. <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize>
  100. <!-- #endif -->
  101. <Verify @success="success" :captchaType="captchaType" :imgSize="{ width: '330px', height: '155px' }"
  102. ref="verify"></Verify>
  103. </view>
  104. <view class="settledSuccessMain" v-else-if='status == 0'>
  105. <view class="settledSuccessful">
  106. <image class="image" src="../static/success.png" alt="">
  107. <view class="title">{{$t(`恭喜,您的资料提交成功!`)}}</view>
  108. <view class="goHome" hover-class="none" @click="goHome">
  109. {{$t(`返回首页`)}}
  110. </view>
  111. </view>
  112. </view>
  113. <view class="settledSuccessMain" v-else-if='status == 1'>
  114. <view class="settledSuccessful">
  115. <image class="image" src="../static/success.png" alt="">
  116. <view class="title">{{$t(`恭喜,您的资料通过审核!`)}}</view>
  117. <view class="goHome" hover-class="none" @click="goHome">
  118. {{$t(`返回首页`)}}
  119. </view>
  120. </view>
  121. </view>
  122. <view class="settledSuccessMain" v-else-if='status == 2'>
  123. <view class="settledSuccessful">
  124. <image class="image" src="../static/error.png" alt="">
  125. <view class="title">{{$t(`您的申请未通过!`)}}</view>
  126. <view class="info" v-if="refusal_reason">{{refusal_reason}}</view>
  127. <view class="again" hover-class="none" @click="applyAgain">
  128. {{$t(`重新申请`)}}
  129. </view>
  130. <view class="goHome" hover-class="none" @click="goHome">
  131. {{$t(`返回首页`)}}
  132. </view>
  133. </view>
  134. </view>
  135. </template>
  136. <script>
  137. import {
  138. toLogin
  139. } from '@/libs/login.js';
  140. import {
  141. create,
  142. getCodeApi,
  143. registerVerify,
  144. getGoodsDetails,
  145. updateGoodsRecord,
  146. getAgentAgreement
  147. } from '@/api/store.js';
  148. import {
  149. getCaptcha
  150. } from "@/api/user";
  151. import {
  152. mapGetters
  153. } from "vuex";
  154. import parser from "@/components/jyf-parser/jyf-parser";
  155. // #ifdef MP
  156. import authorize from '@/components/Authorize';
  157. // #endif
  158. import colors from "@/mixins/color";
  159. import Verify from '../components/verify/verify.vue';
  160. import sendVerifyCode from "@/mixins/SendVerifyCode";
  161. const app = getApp();
  162. export default {
  163. components: {
  164. Verify,
  165. "jyf-parser": parser,
  166. // #ifdef MP
  167. authorize,
  168. // #endif
  169. },
  170. mixins: [sendVerifyCode, colors],
  171. data() {
  172. return {
  173. inloading: true,
  174. status: -1,
  175. isAuto: false, //没有授权的不会自动授权
  176. isShowAuth: false, //是否隐藏授权
  177. text: this.$t(`获取验证码`),
  178. codeUrl: "",
  179. disabled: false,
  180. isAgree: false,
  181. showProtocol: false,
  182. isShowCode: false,
  183. loading: false,
  184. merchantData: {
  185. agent_name: "",
  186. name: "",
  187. phone: "",
  188. classification: '',
  189. division_invite: ''
  190. },
  191. validate: false,
  192. successful: false,
  193. keyCode: "",
  194. codeVal: "",
  195. protocol: app.globalData.sys_intention_agree,
  196. timer: "",
  197. index: 0,
  198. index1: 0,
  199. mer_classification: "",
  200. mer_storeType: '',
  201. images: [],
  202. tagStyle: {
  203. img: 'width:100%;display:block;',
  204. table: 'width:100%',
  205. video: 'width:100%'
  206. },
  207. mer_i_id: null, // 代理商申请id
  208. isType: false,
  209. id: 0,
  210. refusal_reason: "",
  211. keyCode: '',
  212. type: ''
  213. };
  214. },
  215. beforeDestroy() {
  216. clearTimeout(this.timer)
  217. },
  218. computed: mapGetters(['isLogin']),
  219. onLoad(options) {
  220. if (this.isLogin) {
  221. this.$nextTick(function() {
  222. this.getGoodsDetails()
  223. })
  224. } else {
  225. // #ifdef H5 || APP-PLUS
  226. toLogin();
  227. // #endif
  228. // #ifdef MP
  229. this.isAuto = true;
  230. this.$set(this, 'isShowAuth', true)
  231. // #endif
  232. }
  233. if (options.id) {
  234. this.id = id
  235. uni.showLoading({
  236. title: this.$t(`正在加载中`),
  237. });
  238. }
  239. },
  240. onShow() {
  241. },
  242. methods: {
  243. getAgentAgreement() {
  244. getAgentAgreement().then(res => {
  245. this.isType = false;
  246. this.showProtocol = true;
  247. this.protocol = res.data.content
  248. })
  249. },
  250. code() {
  251. let that = this
  252. if (!that.merchantData.phone) return that.$util.Tips({
  253. title: that.$t(`请填写手机号码`)
  254. });
  255. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.merchantData.phone)) return that.$util.Tips({
  256. title: that.$t(`请输入正确的手机号码`)
  257. });
  258. this.$refs.verify.show()
  259. },
  260. // 获取验证码api
  261. // code() {
  262. // let that = this
  263. // getCodeApi().then(res => {
  264. // that.keyCode = res.data.key;
  265. // this.code()
  266. // }).catch(res => {
  267. // that.$util.Tips({
  268. // title: res
  269. // });
  270. // });
  271. // },
  272. success(data) {
  273. this.$refs.verify.hide()
  274. getCodeApi()
  275. .then(res => {
  276. this.keyCode = res.data.key;
  277. this.getCode(data);
  278. })
  279. .catch(res => {
  280. this.$util.Tips({
  281. title: res
  282. });
  283. });
  284. },
  285. async getCode(data) {
  286. let that = this;
  287. await registerVerify({
  288. phone: that.merchantData.phone,
  289. type: that.type,
  290. key: that.keyCode,
  291. captchaType: this.captchaType,
  292. captchaVerification: data.captchaVerification
  293. })
  294. .then(res => {
  295. this.sendCode();
  296. console.log(this.sendCode(),'this.sendCode()')
  297. that.$util.Tips({
  298. title: res.msg
  299. });
  300. })
  301. .catch(res => {
  302. that.$util.Tips({
  303. title: res
  304. });
  305. });
  306. },
  307. // 获取历史提交数据详情
  308. getGoodsDetails() {
  309. getGoodsDetails().then(res => {
  310. this.status = res.data.status
  311. let resData = res.data
  312. if (res.data.status !== -1) {
  313. let arr = Object.keys(this.merchantData)
  314. arr.map(item => {
  315. this.merchantData[item] = resData[item]
  316. })
  317. uni.hideLoading();
  318. }
  319. if (this.status === 2) {
  320. this.refusal_reason = resData.refusal_reason
  321. }
  322. this.inloading = false
  323. })
  324. },
  325. //获取代理商分类名称
  326. getCategoryName(id, arr) {
  327. for (let i = 0; i < arr.length; i++) {
  328. if (arr[i].merchant_category_id === id) {
  329. return arr[i]['category_name']
  330. }
  331. }
  332. },
  333. // 图片预览
  334. // 获得相册 idx
  335. getPhotoClickIdx(e) {
  336. let _this = this;
  337. let idx = e.currentTarget.dataset.index;
  338. _this.imgPreview(_this.images, idx);
  339. },
  340. // 图片预览
  341. imgPreview: function(list, idx) {
  342. // list:图片 url 数组
  343. if (list && list.length > 0) {
  344. uni.previewImage({
  345. current: list[idx], // 传 Number H5端出现不兼容
  346. urls: list
  347. });
  348. }
  349. },
  350. // 授权回调
  351. onLoadFun: function() {
  352. this.isShowAuth = false;
  353. },
  354. // 授权关闭
  355. authColse: function(e) {
  356. this.isShowAuth = e
  357. },
  358. toggleTab(str) {
  359. this.$refs[str].show();
  360. },
  361. // 首页
  362. goHome() {
  363. uni.switchTab({
  364. url: '/pages/index/index'
  365. });
  366. },
  367. applyAgain() {
  368. this.status = -1
  369. },
  370. /**
  371. * 上传文件
  372. *
  373. */
  374. uploadpic: function() {
  375. let that = this;
  376. that.$util.uploadImageOne('upload/image', (res) => {
  377. this.images.push(res.data.url);
  378. that.$set(that, 'images', that.images);
  379. });
  380. },
  381. /**
  382. * 删除图片
  383. *
  384. */
  385. DelPic: function(index) {
  386. let that = this,
  387. pic = this.images[index];
  388. that.images.splice(index, 1);
  389. that.$set(that, 'images', that.images);
  390. },
  391. // 获取验证码
  392. // async code() {
  393. // let that = this;
  394. // if (!that.merchantData.phone) return that.$util.Tips({
  395. // title: that.$t(`请输入手机号`)
  396. // });
  397. // if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.merchantData.phone)) return that.$util.Tips({
  398. // title: that.$t(`请输入正确的手机号码`)
  399. // });
  400. // await registerVerify({
  401. // phone: that.merchantData.phone,
  402. // key: that.keyCode,
  403. // }).then(res => {
  404. // that.$util.Tips({
  405. // title: res.msg
  406. // });
  407. // that.sendCode();
  408. // }).catch(err => {
  409. // return that.$util.Tips({
  410. // title: err
  411. // })
  412. // })
  413. // },
  414. getcaptcha() {
  415. let that = this
  416. getCaptcha().then(data => {
  417. that.codeUrl = data.data.captcha; //图片路径
  418. that.codeVal = data.data.code; //图片验证码
  419. that.codeKey = data.data.key //图片验证码key
  420. })
  421. that.isShowCode = true;
  422. },
  423. sendCode() {
  424. if (this.disabled) return;
  425. this.disabled = true;
  426. let n = 60;
  427. this.text = n + "s";
  428. const run = setInterval(() => {
  429. n = n - 1;
  430. if (n < 0) {
  431. clearInterval(run);
  432. }
  433. this.text = n + "s";
  434. if (this.text < 0 + "s") {
  435. this.disabled = false;
  436. this.text = this.$t(`重新获取`);
  437. }
  438. }, 1000);
  439. },
  440. onConfirm(val) {
  441. this.region = val.checkArr[0] + '-' + val.checkArr[1] + '-' + val.checkArr[2];
  442. },
  443. ChangeIsAgree(e) {
  444. this.isAgree = !this.isAgree;
  445. this.validateBtn()
  446. },
  447. formSubmit: function(e) {
  448. let that = this;
  449. if (that.validateForm() && that.validate) {
  450. let requestData = {
  451. uid: this.$store.state.app.uid,
  452. phone: that.merchantData.phone,
  453. agent_name: that.merchantData.agent_name,
  454. name: that.merchantData.name,
  455. code: that.merchantData.code,
  456. division_invite: that.merchantData.division_invite,
  457. images: that.images,
  458. id: this.id
  459. }
  460. create(requestData).then(data => {
  461. if (data.status == 200) {
  462. this.timer = setTimeout(() => {
  463. that.getGoodsDetails()
  464. }, 1000)
  465. }
  466. }).catch(res => {
  467. that.$util.Tips({
  468. title: res
  469. });
  470. })
  471. }
  472. },
  473. validateBtn: function() {
  474. let that = this,
  475. value = that.merchantData;
  476. if (value.agent_name && value.name && value.phone && /^1(3|4|5|7|8|9|6)\d{9}$/i.test(value
  477. .phone) &&
  478. value.code && that.isAgree && value.classification) {
  479. if (!that.isShowCode) {
  480. that.validate = true;
  481. } else {
  482. if (that.codeVal) {
  483. that.validate = true;
  484. } else {
  485. that.validate = false;
  486. }
  487. }
  488. }
  489. },
  490. validateForm: function() {
  491. let that = this,
  492. value = that.merchantData;
  493. if (!value.agent_name) return that.$util.Tips({
  494. title: that.$t(`请输入代理商名称`)
  495. });
  496. if (!value.name) return that.$util.Tips({
  497. title: that.$t(`请输入姓名`)
  498. });
  499. if (!value.phone) return that.$util.Tips({
  500. title: that.$t(`请输入手机号`)
  501. });
  502. if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(value.phone)) return that.$util.Tips({
  503. title: that.$t(`请输入正确的手机号码`)
  504. });
  505. if (!value.code) return that.$util.Tips({
  506. title: that.$t(`填写验证码`)
  507. });
  508. if (that.isShowCode && !that.codeVal) return that.$util.Tips({
  509. title: that.$t(`请填写图片验证码`)
  510. });
  511. if (!that.images.length) return that.$util.Tips({
  512. title: that.$t(`请上传营业执照`)
  513. });
  514. if (!that.isAgree) return that.$util.Tips({
  515. title: that.$t(`请勾选并同意入驻协议`)
  516. });
  517. that.validate = true;
  518. return true;
  519. },
  520. jumpToList() {
  521. uni.navigateTo({
  522. url: "/pages/store/applicationRecord/index"
  523. })
  524. },
  525. }
  526. }
  527. </script>
  528. <style scoped lang="scss">
  529. .uni-input-placeholder {
  530. color: #B2B2B2;
  531. }
  532. .item-name {
  533. width: 190rpx;
  534. }
  535. .uni-list-cell {
  536. position: relative;
  537. .iconfont {
  538. font-size: 14px;
  539. color: #7a7a7a;
  540. position: absolute;
  541. right: 15px;
  542. top: 7rpx;
  543. }
  544. .icon-guanbi2 {
  545. right: 35px;
  546. }
  547. }
  548. .merchantsSettled {
  549. background: linear-gradient(#fd3d1d 0%, #fd151b 100%);
  550. height: 140vh;
  551. }
  552. .merchantsSettled .merchantBg {
  553. width: 750rpx;
  554. width: 100%;
  555. }
  556. .merchantsSettled .list {
  557. background-color: #fff;
  558. border-radius: 12px;
  559. padding: 22px 0;
  560. margin: 0 15px;
  561. position: absolute;
  562. top: 300rpx;
  563. // margin-top: -160px;
  564. width: calc(100% - 30px);
  565. }
  566. .application-record {
  567. position: absolute;
  568. display: flex;
  569. align-items: center;
  570. top: 240rpx;
  571. right: 0;
  572. color: #fff;
  573. font-size: 22rpx;
  574. background-color: rgba(0, 0, 0, 0.3);
  575. padding: 8rpx 18rpx;
  576. border-radius: 20px 0px 0px 20px;
  577. }
  578. .merchantsSettled .list .item {
  579. padding: 50rpx 0 20rpx;
  580. border-bottom: 1rpx solid #eee;
  581. position: relative;
  582. margin: 0 20px;
  583. &.no-border {
  584. border-bottom: none;
  585. padding-left: 0;
  586. padding-right: 0;
  587. }
  588. .item-title {
  589. color: #666666;
  590. font-size: 28rpx;
  591. display: block;
  592. }
  593. .item-desc {
  594. color: #B2B2B2;
  595. font-size: 22rpx;
  596. display: block;
  597. margin-top: 9rpx;
  598. line-height: 36rpx;
  599. }
  600. }
  601. .acea-row,
  602. .upload {
  603. display: -webkit-box;
  604. display: -moz-box;
  605. display: -webkit-flex;
  606. display: -ms-flexbox;
  607. display: flex;
  608. -webkit-box-lines: multiple;
  609. -moz-box-lines: multiple;
  610. -o-box-lines: multiple;
  611. -webkit-flex-wrap: wrap;
  612. -ms-flex-wrap: wrap;
  613. flex-wrap: wrap;
  614. }
  615. .upload {
  616. margin-top: 20rpx;
  617. }
  618. .acea-row.row-middle {
  619. -webkit-box-align: center;
  620. -moz-box-align: center;
  621. -o-box-align: center;
  622. -ms-flex-align: center;
  623. -webkit-align-items: center;
  624. align-items: center;
  625. padding-left: 2px;
  626. }
  627. .acea-row.row-column {
  628. -webkit-box-orient: vertical;
  629. -moz-box-orient: vertical;
  630. -o-box-orient: vertical;
  631. -webkit-flex-direction: column;
  632. -ms-flex-direction: column;
  633. flex-direction: column;
  634. }
  635. .acea-row.row-center-wrapper {
  636. -webkit-box-align: center;
  637. -moz-box-align: center;
  638. -o-box-align: center;
  639. -ms-flex-align: center;
  640. -webkit-align-items: center;
  641. align-items: center;
  642. -webkit-box-pack: center;
  643. -moz-box-pack: center;
  644. -o-box-pack: center;
  645. -ms-flex-pack: center;
  646. -webkit-justify-content: center;
  647. justify-content: center;
  648. }
  649. .merchantsSettled .list .item .pictrue {
  650. width: 130rpx;
  651. height: 130rpx;
  652. margin: 24rpx 22rpx 0 0;
  653. position: relative;
  654. font-size: 11px;
  655. color: #bbb;
  656. &:nth-child(4n) {
  657. margin-right: 0;
  658. }
  659. &:nth-last-child(1) {
  660. border: 0.5px solid #ddd;
  661. box-sizing: border-box;
  662. }
  663. uni-image,
  664. image {
  665. width: 100%;
  666. height: 100%;
  667. border-radius: 1px;
  668. img {
  669. -webkit-touch-callout: none;
  670. -webkit-user-select: none;
  671. -moz-user-select: none;
  672. display: block;
  673. position: absolute;
  674. top: 0;
  675. left: 0;
  676. opacity: 0;
  677. width: 100%;
  678. height: 100%;
  679. }
  680. }
  681. .icon-guanbi1 {
  682. font-size: 33rpx;
  683. position: absolute;
  684. top: -10px;
  685. right: -10px;
  686. }
  687. }
  688. .uni-list-cell-db {
  689. position: relative;
  690. }
  691. .wenhao {
  692. width: 34rpx;
  693. height: 34rpx;
  694. display: flex;
  695. align-items: center;
  696. justify-content: center;
  697. font-size: 28rpx;
  698. border-radius: 50%;
  699. background: #E3E3E3;
  700. color: #ffffff !important;
  701. margin-left: 4rpx;
  702. position: absolute;
  703. left: 122rpx;
  704. }
  705. .merchantsSettled .list .item .imageCode {
  706. position: absolute;
  707. top: 7px;
  708. right: 0;
  709. }
  710. .merchantsSettled .list .item .icon {
  711. font-size: 40rpx;
  712. color: #b4b1b4;
  713. }
  714. .merchantsSettled .list .item input {
  715. width: 400rpx;
  716. font-size: 30rpx;
  717. // margin-left: 30px;
  718. }
  719. .merchantsSettled .list .item .placeholder {
  720. color: #b2b2b2;
  721. }
  722. .merchantsSettled .default {
  723. padding: 0 30rpx;
  724. height: 90rpx;
  725. background-color: #fff;
  726. margin-top: 23rpx;
  727. }
  728. .merchantsSettled .default checkbox {
  729. margin-right: 15rpx;
  730. }
  731. .merchantsSettled .acea-row uni-image {
  732. width: 20px;
  733. height: 20px;
  734. display: block;
  735. }
  736. .merchantsSettled .list .item .codeIput {
  737. width: 125px;
  738. }
  739. .uni-input-input {
  740. display: block;
  741. height: 100%;
  742. background: none;
  743. color: inherit;
  744. opacity: 1;
  745. -webkit-text-fill-color: currentcolor;
  746. font: inherit;
  747. line-height: inherit;
  748. letter-spacing: inherit;
  749. text-align: inherit;
  750. text-indent: inherit;
  751. text-transform: inherit;
  752. text-shadow: inherit;
  753. }
  754. .merchantsSettled .list .item .code {
  755. position: absolute;
  756. width: 93px;
  757. line-height: 27px;
  758. border: 1px solid #E93323;
  759. border-radius: 15px;
  760. color: #E93323;
  761. text-align: center;
  762. bottom: 8px;
  763. right: 0;
  764. font-size: 12px;
  765. }
  766. .merchantsSettled .list .item .code.on {
  767. background-color: #bbb;
  768. color: #fff;
  769. border-color: #bbb;
  770. }
  771. .merchantsSettled .submitBtn {
  772. width: 588rpx;
  773. margin: 0 auto;
  774. height: 86rpx;
  775. border-radius: 25px;
  776. text-align: center;
  777. line-height: 86rpx;
  778. font-size: 15px;
  779. color: #fff;
  780. background: #E3E3E3;
  781. margin-top: 25px;
  782. }
  783. .merchantsSettled .submitBtn.on {
  784. background: #E93323;
  785. }
  786. uni-checkbox-group,
  787. .settleAgree {
  788. display: inline-block;
  789. font-size: 24rpx;
  790. }
  791. uni-checkbox-group {
  792. color: #b2b2b2;
  793. }
  794. .settleAgree {
  795. color: #E93323;
  796. position: relative;
  797. top: 2px;
  798. left: 8px;
  799. }
  800. .merchantsSettled uni-checkbox .uni-checkbox-wrapper {
  801. width: 30rpx;
  802. height: 30rpx;
  803. border: 2rpx solid #C3C3C3;
  804. border-radius: 15px;
  805. }
  806. .settlementAgreement {
  807. width: 100%;
  808. height: 100%;
  809. position: fixed;
  810. top: 0;
  811. left: 0;
  812. background: rgba(0, 0, 0, .5);
  813. z-index: 10;
  814. }
  815. .settlementAgreement .setAgCount {
  816. background: #fff;
  817. width: 656rpx;
  818. height: 458px;
  819. position: absolute;
  820. top: 50%;
  821. left: 50%;
  822. border-radius: 12rpx;
  823. -webkit-border-radius: 12rpx;
  824. padding: 52rpx;
  825. -webkit-transform: translate(-50%, -50%);
  826. -moz-transform: translate(-50%, -50%);
  827. transform: translate(-50%, -50%);
  828. overflow: hidden;
  829. .content {
  830. height: 900rpx;
  831. overflow-y: scroll;
  832. /deep/ p {
  833. font-size: 13px;
  834. line-height: 22px;
  835. }
  836. /deep/ img {
  837. max-width: 100%;
  838. }
  839. }
  840. }
  841. .settlementAgreement .setAgCount .icon {
  842. font-size: 42rpx;
  843. color: #b4b1b4;
  844. position: absolute;
  845. top: 15rpx;
  846. right: 15rpx;
  847. }
  848. .settlementAgreement .setAgCount .title {
  849. color: #333;
  850. font-size: 32rpx;
  851. text-align: center;
  852. font-weight: bold;
  853. }
  854. .settlementAgreement .setAgCount .content {
  855. margin-top: 32rpx;
  856. color: #333;
  857. font-size: 26rpx;
  858. line-height: 22px;
  859. text-align: justify;
  860. text-justify: distribute-all-lines;
  861. height: 756rpx;
  862. overflow-y: scroll;
  863. }
  864. .settledSuccessMain {
  865. height: 100vh;
  866. display: flex;
  867. flex-direction: column;
  868. background: #fff;
  869. }
  870. .settledSuccessful {
  871. flex: 1;
  872. width: 100%;
  873. padding: 0 56px;
  874. height: auto;
  875. background: #fff;
  876. text-align: center;
  877. }
  878. .settledSuccessful .image {
  879. width: 189px;
  880. height: 157px;
  881. margin-top: 66px;
  882. }
  883. .settledSuccessful .title {
  884. color: #333333;
  885. font-size: 16px;
  886. font-weight: bold;
  887. margin-top: 35px;
  888. }
  889. .settledSuccessful .info {
  890. color: #999;
  891. font-size: 26rpx;
  892. margin-top: 18rpx;
  893. }
  894. .settledSuccessful .goHome {
  895. margin: 20px auto 0;
  896. line-height: 43px;
  897. color: #282828;
  898. font-size: 15px;
  899. border: 1px solid #B4B4B4;
  900. border-radius: 60px;
  901. }
  902. .settledSuccessful .again {
  903. margin: 30px auto 0;
  904. line-height: 43px;
  905. color: #fff;
  906. font-size: 15px;
  907. background-color: #E93323;
  908. border-radius: 60px;
  909. }
  910. /deep/ uni-checkbox .uni-checkbox-input {
  911. width: 15px;
  912. height: 15px;
  913. position: relative;
  914. }
  915. /deep/ uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:before {
  916. font-size: 14px;
  917. }
  918. /deep/ uni-checkbox .uni-checkbox-input-checked {
  919. background-color: #fd151b !important;
  920. }
  921. .loadingicon {
  922. height: 100vh;
  923. overflow: hidden;
  924. position: absolute;
  925. top: 0;
  926. left: 0;
  927. }
  928. .icon-xiangyou {
  929. font-size: 22rpx;
  930. }
  931. // #ifdef MP
  932. checkbox-group {
  933. display: inline-block;
  934. }
  935. // #endif
  936. .setAgCount {
  937. /deep/ table {
  938. border: 1rpx solid #DDD;
  939. border-bottom: none;
  940. border-right: none;
  941. }
  942. /deep/ td,
  943. th {
  944. padding: 5rpx 10rpx;
  945. border-bottom: 1rpx solid #DDD;
  946. border-right: 1rpx solid #DDD;
  947. }
  948. }
  949. </style>