index.vue 21 KB

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