index.vue 23 KB

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