order-details.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. <template>
  2. <view class="container details clearfix" :style="{ paddingBottom: isIphoneX ? 130 + 68 + 'rpx' : '130rpx' }">
  3. <!-- 自定义返回 -->
  4. <header-back
  5. :systeminfo="systeminfo"
  6. :navbar-data="nvabarData"
  7. :headerBtnPosi="headerBtnPosi"
  8. :isShare="isOrderShare"
  9. />
  10. <tui-skeleton
  11. v-if="!skeletonShow"
  12. backgroundColor="#fafafa"
  13. borderRadius="10rpx"
  14. :isLoading="true"
  15. :loadingType="5"
  16. />
  17. <view class="container-details" v-else :style="{ paddingTop: navbarHeight + 'px' }">
  18. <view class="status-text">
  19. <view class="view-type">{{ orderInfo.status | statusFilters }}</view>
  20. <text class="bage-buss" v-if="orderInfo.orderSubmitType == 3 || orderInfo.orderSubmitType == 4"
  21. >协销</text
  22. >
  23. <text
  24. class="bage-auto"
  25. v-if="
  26. orderInfo.orderSubmitType == 0 ||
  27. orderInfo.orderSubmitType == 1 ||
  28. orderInfo.orderSubmitType == 2"
  29. >自主</text>
  30. </view>
  31. <!-- 地址选择 -->
  32. <cm-address-temp ref="orderAddress" v-if="skeletonShow && !rechargeGoods" :addressData="addressData" />
  33. <!-- 特殊商品退货须知 -->
  34. <view class="return-instructions" v-if="returnGoodsStutas" v-html="helpContent"></view>
  35. <!-- 商品 -->
  36. <cm-goods-temp
  37. ref="goods"
  38. v-if="skeletonShow"
  39. :list="orderInfo.orderProductList"
  40. :orderInfo="orderInfo"
  41. @popupClick="hanldePopupFn"
  42. />
  43. <!-- 订单信息 -->
  44. <cm-order-temp ref="orderInfo" v-if="skeletonShow" :orderInfo="orderInfo" />
  45. <!-- 发票信息 -->
  46. <cm-invice-temp ref="invoice" v-if="skeletonShow" :orderInvoice="orderInvoice" />
  47. <!-- 支付记录 -->
  48. <cm-payment-temp
  49. ref="payment"
  50. v-if="skeletonShow"
  51. :discernReceiptList="discernReceiptList"
  52. :receiptAmount="receiptAmount"
  53. />
  54. <!-- 退款记录 -->
  55. <cm-refund-temp
  56. ref="refund"
  57. v-if="skeletonShow"
  58. :returnedPurchaseList="returnedPurchaseList"
  59. :returnedPurchaseFee="returnedPurchaseFee"
  60. />
  61. <!-- 支付凭证记录 -->
  62. <cm-voucher-temp ref="voucher" v-if="skeletonShow && voucherList.length > 0" :list="voucherList" />
  63. <view
  64. class="clause"
  65. v-if="orderInfo.secondHandOrderFlag != 1 && !orderSubmitType"
  66. @tap.stop="openclauseConten(clauseData.id)"
  67. :class="clauseData.name == '无条款' ? 'noclick' : ''"
  68. >
  69. 售后条款:<label class="text" :class="clauseData.name == '无条款' ? 'color-bg' : ''">{{
  70. clauseData.name
  71. }}</label>
  72. </view>
  73. <!-- 底部button -->
  74. <cm-details-button
  75. ref="orderButton"
  76. v-if="skeletonShow"
  77. :status="btnStatus"
  78. :shareCode="shareCode"
  79. :order="orderInfo"
  80. @buttonConfirm="handButtonConfirm"
  81. />
  82. </view>
  83. <!-- 付款弹窗 -->
  84. <cm-orderpay-popup
  85. v-if="isPayModel"
  86. :payModelData="payModelData"
  87. :modelType="modelType"
  88. @cancelConfirm="hanldCancelConfirm"
  89. @paymentConfirm="hanldPaymentConfirm"
  90. />
  91. <!-- 分享弹窗 -->
  92. <cm-share-popup :shopOrderId="shopOrderId" v-if="isShareModal" @shareConfirm="onShareAppMessage" />
  93. <!-- 促销活动弹窗 -->
  94. <cm-promote-popup :Promotion="handlerPros" :popupShow="popupShow" />
  95. <!-- 采美豆提示弹窗 -->
  96. <activityBean
  97. v-if="isActivityBean"
  98. :show="isActivityBean"
  99. :beansType="beansType"
  100. :beanNumber="beanNumber"
  101. @cancel="handleBeanlClick"
  102. />
  103. <!-- 提示弹窗 -->
  104. <tui-modal
  105. :show="modal"
  106. @click="handleClick"
  107. :content="contentModalText"
  108. :button="modalButton"
  109. color="#333"
  110. :size="32"
  111. shape="circle"
  112. :maskClosable="false"
  113. />
  114. <!-- 确认订单 -->
  115. <tui-modal :show="modal1" custom>
  116. <view class="tui-modal-custom">
  117. <view class="tui-modal-title">确认订单</view>
  118. <view class="tui-modal-content">
  119. <view class="contract-checked" @click.stop="handleChecked">
  120. <view class="checkbox-box">
  121. <button class="checkbox iconfont" hover-class="btn-hover"
  122. :class="[ischecked ? 'icon-gouxuanl' : 'icon-weigouxuan']"></button>
  123. </view>
  124. 已阅读并同意
  125. <text class="text" @click.stop="handleContract">
  126. 《销售合同》
  127. </text>
  128. </view>
  129. </view>
  130. <view class="tui-modalBtn-box">
  131. <view class="tui-modalBtn-btn cancel" @click.stop="modal1 = false">取消</view>
  132. <view class="tui-modalBtn-btn confim" @click.stop="handleConfirm">确定</view>
  133. </view>
  134. </view>
  135. </tui-modal>
  136. </view>
  137. </template>
  138. <script>
  139. import headerBack from '@/components/cm-module/headerNavbar/header-back' //自定义导航
  140. import cmAddressTemp from './components/details/cm-address-temp' //地址信息
  141. import cmGoodsTemp from './components/details/cm-goods-temp' //商品列表
  142. import cmOrderTemp from './components/details/cm-order-temp' //订单信息
  143. import cmInviceTemp from './components/details/cm-invice-temp' //发票信息
  144. import cmPaymentTemp from './components/details/cm-payment-temp' //支付记录
  145. import cmRefundTemp from './components/details/cm-refund-temp' //退款记录
  146. import cmVoucherTemp from './components/details/cm-voucher-temp' //支付凭证记录
  147. import cmDetailsButton from './components/cm-details-button' //底部按钮
  148. import cmSharePopup from './components/cm-share-popup' //分享弹窗
  149. import cmOrderpayPopup from './components/cm-orderpay-popup' //付款弹窗
  150. import cmPromotePopup from './components/details/cm-promote-popup' //促销活动弹窗
  151. import activityBean from '@/components/cm-module/activity/activityBean.vue'
  152. export default {
  153. components: {
  154. headerBack,
  155. cmAddressTemp,
  156. cmGoodsTemp,
  157. cmOrderTemp,
  158. cmInviceTemp,
  159. cmPaymentTemp,
  160. cmRefundTemp,
  161. cmVoucherTemp,
  162. cmDetailsButton,
  163. cmSharePopup,
  164. cmOrderpayPopup,
  165. cmPromotePopup,
  166. activityBean
  167. },
  168. data() {
  169. return {
  170. state: 0,
  171. userId: '',
  172. orderId: 0,
  173. shopOrderId: 0,
  174. shareCode: '', //分享码
  175. shareType: '', //分享登录页过来记录的状态
  176. payStatus: 0,
  177. btnStatus: 0, //按钮组件状态
  178. onlinePayFlag: '',
  179. skeletonShow: false, //是否加载完成渲染子组件
  180. isOrderShare: false,
  181. isShareModal: false,
  182. isPayModel: false,
  183. modelType: 0,
  184. alertOrderInfo: {},
  185. payModelData: {},
  186. addressData: {}, //地址信息初始化
  187. orderInfo: {}, //订单信息初始化
  188. shopOrderData: {}, //商品信息初始化
  189. orderInvoice: {}, //发票信息初始化
  190. returnedPurchaseList: {}, //退款信息初始化
  191. discernReceiptList: {}, //支付信息初始化
  192. voucherList:[], // 线下支付凭证
  193. receiptAmount: 0, //支付金额
  194. returnedPurchaseFee: 0, //退款金额
  195. rechargeGoods: false,
  196. navbarHeight: '',
  197. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  198. systeminfo: this.setSysteminfo(), //获取设备信息
  199. isIphoneX: this.$store.state.isIphoneX,
  200. CustomBar: this.CustomBar, // 顶部导航栏高度
  201. popupShow: false,
  202. handlerPros: {},
  203. nvabarData: {
  204. //顶部自定义导航
  205. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示
  206. title: '订单详情' // 导航栏 中间的标题
  207. },
  208. clauseData: {},
  209. orderSubmitType: false, //自主订单
  210. beansType: 1,
  211. beanNumber: 0,
  212. isActivityBean: false,
  213. handleModelEven: 0,
  214. modal: false,
  215. modal1: false,
  216. contentModalText: '订单查询失败,请稍候重试~', //操作文字提示语句
  217. modalButton: [
  218. {
  219. text: '取消',
  220. type: 'gray',
  221. plain: true //是否空心
  222. },
  223. {
  224. text: '确定',
  225. customStyle: {
  226. color: '#fff',
  227. bgColor: 'linear-gradient(90deg, #F28F31 0%, #FF5B00 100%)'
  228. },
  229. plain: false
  230. }
  231. ],
  232. returnGoodsStutas: false,
  233. helpContent: '',
  234. ischecked: false,
  235. handleOrder: {}
  236. }
  237. },
  238. onLoad(option) {
  239. console.log(option)
  240. this.shareType = option.type
  241. this.shopOrderId = option.shopOrderId
  242. if (this.shareType === 'share') {
  243. this.state = 0
  244. this.isOrderShare = true
  245. } else if (option.type === 'confim' || option.type === 'search') {
  246. this.state = 0
  247. } else {
  248. this.state = option.state
  249. }
  250. this.getHeaderTopHeight()
  251. this.initOrderDetaileData()
  252. },
  253. filters: {
  254. statusFilters(value) {
  255. //处理订单状态显示
  256. const map = {
  257. 0: '待确认',
  258. 2: '交易完成',
  259. 4: '已关闭',
  260. 5: '交易全退',
  261. 6: '交易全退',
  262. 11: '待付款待发货',
  263. 12: '待付款部分发货',
  264. 13: '待付款已发货',
  265. 21: '部分付款待发货',
  266. 22: '部分付款部分发货',
  267. 23: '部分付款已发货',
  268. 31: '已付款待发货',
  269. 32: '已付款部分发货',
  270. 33: '已付款已发货'
  271. }
  272. return map[value]
  273. }
  274. },
  275. methods: {
  276. // 获取订单详情
  277. async initOrderDetaileData() {
  278. try {
  279. const userInfo = await this.$api.getStorage()
  280. this.userId = userInfo.userId ? userInfo.userId : 0
  281. const res = await this.OrderService.QueryOrderDetails({
  282. shopOrderId: this.shopOrderId,
  283. userId: this.userId
  284. })
  285. const data = res.data
  286. this.skeletonShow = true
  287. this.orderInfo = data.shopOrder
  288. this.shareCode = data.shareCode
  289. this.addressData = data.userInfo
  290. this.rechargeGoods = data.shopOrder.rechargeGoods
  291. this.btnStatus = data.shopOrder.status
  292. this.payStatus = data.shopOrder.payStatus
  293. this.payableAmount = data.shopOrder.payableAmount
  294. this.shopOrderData = data.orderProductList
  295. this.orderInvoice = data.orderInvoice
  296. this.onlinePayFlag = data.shopOrder.onlinePayFlag
  297. this.returnedPurchaseList = data.returnedPurchaseList
  298. this.discernReceiptList = data.discernReceiptList
  299. this.voucherList = data.voucher
  300. this.receiptAmount = data.shopOrder.receiptAmount
  301. this.returnedPurchaseFee = data.shopOrder.returnedPurchaseFee
  302. this.clauseData = data.clause
  303. // 特殊商品退货须知
  304. this.returnGoodsStutas = data.returnGoodsStutas && data.returnGoodsStutas === 2 // 1:可以 2:不可以
  305. this.helpContent = data.helpContent
  306. if (
  307. this.orderInfo.orderSubmitType == 0 ||
  308. this.orderInfo.orderSubmitType == 1 ||
  309. this.orderInfo.orderSubmitType == 2
  310. ) {
  311. this.orderSubmitType = true
  312. } else {
  313. this.orderSubmitType = false
  314. }
  315. } catch (error) {
  316. this.$util.msg(error.msg, 2000)
  317. }
  318. },
  319. //判断点击的按钮类型并执行...
  320. handButtonConfirm(data) {
  321. switch (data.type) {
  322. case 'cancel': //取消订单
  323. this.modal = true
  324. this.contentModalText = '确认取消该订单吗?'
  325. this.handleModelEven = 1
  326. break
  327. case 'confirm': //确认收货
  328. this.modal = true
  329. this.contentModalText = '确认收货吗?'
  330. this.handleModelEven = 2
  331. break
  332. case 'delete': //删除订单
  333. this.modal = true
  334. this.contentModalText = '确认删除该订单吗?'
  335. this.handleModelEven = 3
  336. break
  337. case 'confirmation': // 确认订单
  338. if(data.shopId === 1677){
  339. this.modal1 = true
  340. }else{
  341. this.modal = true
  342. this.contentModalText = '确认此订单吗?'
  343. this.handleModelEven = 4
  344. }
  345. break
  346. case 'payment': //打款给供应商
  347. this.modal = true
  348. this.contentModalText = '确定委托采美平台打款给供应商吗?确定之前请务必确保货品完好!'
  349. this.handleModelEven = 5
  350. break
  351. case 'pay':
  352. this.getOrderPaymentValidation(data)
  353. break
  354. case 'query':
  355. this.$api.navigateTo('/pages/user/order/order-logistics?shopOrderId=' + this.shopOrderId)
  356. break
  357. case 'upload':
  358. this.$api.navigateTo('/pages/user/order/order-addpay?shopOrderId=' + this.shopOrderId)
  359. break
  360. }
  361. },
  362. handleClick(e) {
  363. //确认操作
  364. if (e.index == 1) {
  365. switch (this.handleModelEven) {
  366. case 1: //取消订单
  367. this.cancelOrder(this.shopOrderId)
  368. break
  369. case 2: //确认收货
  370. this.confirmReceipt(this.shopOrderId)
  371. break
  372. case 3: //删除订单
  373. this.deleteOrder(this.shopOrderId)
  374. break
  375. case 4: //确认订单
  376. this.affirmOrder(this.shopOrderId)
  377. break
  378. case 5: //打款给供应商
  379. this.confirmpayment(this.shopOrderId)
  380. break
  381. }
  382. }
  383. this.modal = false
  384. },
  385. // 跳转销售合同
  386. handleContract(){
  387. this.$api.navigateTo(`/pages/user/order/order-contract?type=2&shopOrderId=${this.shopOrderId}`)
  388. },
  389. // 勾选销售合同
  390. handleChecked() {
  391. this.ischecked = !this.ischecked
  392. },
  393. // 特殊确认订单
  394. handleConfirm() {
  395. if(!this.ischecked){
  396. this.$util.msg('请阅读销售合同并勾选同意', 2000)
  397. return
  398. }
  399. this.affirmOrder(this.shopOrderId)
  400. this.modal1 = false
  401. },
  402. //取消订单
  403. async cancelOrder(shopOrderId) {
  404. try {
  405. const res = await this.OrderService.CancelOrder({ shopOrderId: shopOrderId, userIdentity: 0 })
  406. this.$util.msg(res.msg, 2000, true, 'success')
  407. setTimeout(() => {
  408. this.initOrderDetaileData()
  409. }, 2000)
  410. } catch (error) {
  411. this.$util.msg(error.msg, 2000)
  412. }
  413. },
  414. //确认收货
  415. async confirmReceipt(shopOrderId) {
  416. try {
  417. const res = await this.OrderService.ConfirmReceipt({ shopOrderId: shopOrderId })
  418. this.beansType = 7
  419. this.beanNumber = 100
  420. this.isActivityBean = true
  421. } catch (error) {
  422. this.$util.msg(error.msg, 2000)
  423. }
  424. },
  425. //删除订单
  426. async deleteOrder(shopOrderId) {
  427. try {
  428. const res = await this.OrderService.DeleteOrder({ shopOrderId: shopOrderId })
  429. this.$util.msg(res.msg, 2000, true, 'success')
  430. setTimeout(() => {
  431. if (this.shareType === 'share') {
  432. this.$api.switchTabTo('/pages/tabBar/home/index')
  433. } else {
  434. this.$api.redirectTo(`/pages/user/order/order-list?type=detele&state=${this.state}`)
  435. }
  436. }, 2000)
  437. } catch (error) {
  438. this.$util.msg(error.msg, 2000)
  439. }
  440. },
  441. //确认订单
  442. async affirmOrder(shopOrderId) {
  443. try {
  444. const res = await this.OrderService.AffirmOrder({ shopOrderId: shopOrderId })
  445. this.$util.msg(res.msg, 2000, true, 'success')
  446. setTimeout(() => {
  447. this.initOrderDetaileData()
  448. }, 2000)
  449. } catch (error) {
  450. this.$util.msg(error.msg, 2000)
  451. }
  452. },
  453. //确认打款给供应商
  454. async confirmpayment(shopOrderId) {
  455. try {
  456. const res = await this.OrderService.confirmpayment({ shopOrderId: shopOrderId })
  457. this.$util.msg(res.msg, 2000, true, 'success')
  458. setTimeout(() => {
  459. this.initOrderDetaileData()
  460. }, 2000)
  461. } catch (error) {
  462. this.$util.msg(error.msg, 2000)
  463. }
  464. },
  465. //监听根据付款状态做操作
  466. async getOrderPaymentValidation(order) {
  467. try{
  468. const res = await this.OrderService.OrderPaymentValidation({ shopOrderId: order.shopOrderId })
  469. const data = res.data
  470. console.log('data' ,data)
  471. this.payModelData = data
  472. if (data.balanceFlag == 1) {
  473. // 0可以走余额抵扣,1不能走余额抵扣
  474. this.$api.navigateTo(`/pages/user/order/order-pay-list?shopOrderId=${order.order.shopOrderId}`)
  475. } else {
  476. switch (data.code) {
  477. case 1:
  478. this.isPayModel = true
  479. this.modelType = 1
  480. break
  481. case 2:
  482. this.isPayModel = true
  483. this.modelType = 2
  484. break
  485. case -1:
  486. this.$util.modal('', '订单已申请全部退款,无需再付款!', '确定', '', false, () => {})
  487. break
  488. default:
  489. this.$api.navigateTo(`/pages/user/order/order-pay-list?shopOrderId=${order.order.shopOrderId}`)
  490. }
  491. }
  492. }catch(error){
  493. this.$util.msg(error.msg, 2000)
  494. }
  495. },
  496. //余额抵扣跳转
  497. async hanldPaymentConfirm(order) {
  498. try {
  499. await this.OrderService.OrderBalanceDeduction({ shopOrderId: order.order.shopOrderId })
  500. const data = { shopOrderId: order.order.shopOrderId }
  501. if (data.type === 2) {
  502. this.$api.navigateTo(
  503. `/pages/user/order/success?type=deduction&data=${JSON.stringify({ data: data })}`
  504. )
  505. } else {
  506. this.$api.navigateTo(`/pages/user/order/order-pay-list?shopOrderId=${order.order.shopOrderId}`)
  507. }
  508. } catch (error) {
  509. this.$util.msg(error.msg, 2000)
  510. }
  511. },
  512. //不使用余额抵扣直接跳转收银台
  513. hanldCancelConfirm(data) {
  514. this.$api.navigateTo(`/pages/user/order/order-pay-list?shopOrderId=${data.shopOrderId}`)
  515. },
  516. // 查看售后条款
  517. openclauseConten(id) {
  518. this.$api.navigateTo(`/pages/service/sellconten?clauseId=${id}`)
  519. },
  520. //分享订单
  521. onShareAppMessage(res) {
  522. this.isShareModal = false
  523. if (res.from === 'button') {
  524. // 来自页面内转发按钮
  525. }
  526. return {
  527. title: '您有新的分享订单,快来查看吧~',
  528. path: `/pages/user/order/order-sharelogin?shopOrderId=${this.shopOrderId}&userId=${this.userId}`,
  529. imageUrl: 'https://img.caimei365.com/group1/M00/03/95/Cmis216Sk_SABnOFABZCgCzFV_g063.png'
  530. }
  531. },
  532. // 监听活动内容
  533. hanldePopupFn(data) {
  534. this.popupShow = true
  535. this.handlerPros = data
  536. },
  537. // 设置状态栏高度
  538. getHeaderTopHeight() {
  539. let statusBarHeight = this.systeminfo.statusBarHeight
  540. let headerPosi = this.headerBtnPosi
  541. let btnPosi = {
  542. // 胶囊实际位置,坐标信息不是左上角原点
  543. height: headerPosi.height,
  544. width: headerPosi.width,
  545. // 胶囊top - 状态栏高度
  546. top: headerPosi.top - statusBarHeight,
  547. // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
  548. bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
  549. // 屏幕宽度 - 胶囊right
  550. right: this.systeminfo.screenWidth - headerPosi.right
  551. }
  552. this.navbarHeight = headerPosi.bottom + btnPosi.bottom // 原胶囊bottom + 现胶囊bottom
  553. },
  554. // 获得胶囊按钮位置信息
  555. setHeaderBtnPosi() {
  556. return uni.getMenuButtonBoundingClientRect()
  557. },
  558. setSysteminfo() {
  559. let systeminfo
  560. uni.getSystemInfo({
  561. // 获取设备信息
  562. success: res => {
  563. systeminfo = res
  564. }
  565. })
  566. return systeminfo
  567. },
  568. handleBeanlClick() {
  569. //关闭采美豆弹窗
  570. this.isActivityBean = false
  571. this.initOrderDetaileData()
  572. }
  573. },
  574. onShow() {}
  575. }
  576. </script>
  577. <style lang="scss">
  578. page {
  579. height: auto;
  580. background: #f7f7f7;
  581. }
  582. .details {
  583. padding-bottom: 130rpx;
  584. }
  585. .return-instructions {
  586. font-size: 26rpx;
  587. color: #ff5b00;
  588. line-height: 42rpx;
  589. padding: 32rpx 50rpx;
  590. background-color: #fffaf8;
  591. text-align: justify;
  592. }
  593. .btn-hover {
  594. background: #ffffff;
  595. }
  596. .animation {
  597. /* transition: transform 0.3s ease;*/
  598. transition-property: transform;
  599. transition-duration: 0.3s;
  600. transition-timing-function: ease;
  601. }
  602. .invoice-balance {
  603. width: 702rpx;
  604. height: auto;
  605. padding: 0 24rpx;
  606. background: #ffffff;
  607. float: left;
  608. margin-top: 24rpx;
  609. margin-bottom: 24rpx;
  610. .balabce-t {
  611. width: 100%;
  612. height: 86rpx;
  613. line-height: 86rpx;
  614. font-size: $font-size-28;
  615. color: $text-color;
  616. float: left;
  617. .balabce-t-le {
  618. float: left;
  619. font-weight: bold;
  620. }
  621. .balabce-t-ri {
  622. float: right;
  623. display: flex;
  624. align-items: center;
  625. .money {
  626. display: flex;
  627. float: left;
  628. }
  629. .checkbox-box {
  630. display: flex;
  631. width: 60rpx;
  632. float: left;
  633. height: 100%;
  634. font-size: $font-size-24;
  635. .checkbox {
  636. width: 40rpx;
  637. text-align: right;
  638. box-sizing: border-box;
  639. text-align: center;
  640. text-decoration: none;
  641. border-radius: 0;
  642. -webkit-tap-highlight-color: transparent;
  643. overflow: hidden;
  644. }
  645. }
  646. }
  647. }
  648. .balabce-b {
  649. width: 100%;
  650. float: left;
  651. overflow: hidden;
  652. .balabce-b-text {
  653. width: 100%;
  654. line-height: 58rpx;
  655. font-size: $font-size-24;
  656. color: #ff2a2a;
  657. text-align: right;
  658. float: right;
  659. }
  660. &.balabce-b--hide {
  661. padding: 0 0;
  662. height: 0px;
  663. line-height: 0px;
  664. }
  665. }
  666. }
  667. .clause {
  668. float: right;
  669. font-size: 24rpx;
  670. color: #999999;
  671. margin-top: 60rpx;
  672. margin-right: 24rpx;
  673. &.noclick {
  674. pointer-events: none;
  675. }
  676. .text {
  677. color: #1890f9;
  678. &.color-bg {
  679. color: #333333;
  680. }
  681. }
  682. }
  683. .status-text {
  684. overflow: hidden;
  685. padding: 24rpx;
  686. background: #fff;
  687. font-size: $font-size-26;
  688. .view-type {
  689. float: left;
  690. color: #ff2a2a;
  691. }
  692. .bage-buss {
  693. display: inline-block;
  694. width: 72rpx;
  695. height: 32rpx;
  696. background: rgb(223, 240, 255);
  697. color: rgb(126, 172, 213);
  698. border-radius: 4rpx;
  699. line-height: 32rpx;
  700. text-align: center;
  701. margin-top: 10rpx;
  702. float: right;
  703. font-size: 22rpx;
  704. }
  705. .bage-auto {
  706. display: inline-block;
  707. width: 72rpx;
  708. height: 32rpx;
  709. background: #7fba4f;
  710. color: #ffffff;
  711. border-radius: 4rpx;
  712. line-height: 32rpx;
  713. text-align: center;
  714. margin-top: 10rpx;
  715. float: right;
  716. font-size: 22rpx;
  717. }
  718. }
  719. .tui-modal-title{
  720. text-align: center;
  721. font-size: 34rpx;
  722. color: #333;
  723. padding-top: 20rpx;
  724. font-weight: bold;
  725. }
  726. .tui-modal-content{
  727. text-align: center;
  728. color: #999;
  729. font-size: 28rpx;
  730. padding-top: 40rpx;
  731. padding-bottom: 40rpx;
  732. .contract-checked {
  733. width: 100%;
  734. height: 60rpx;
  735. display: flex;
  736. justify-content: center;
  737. box-sizing: border-box;
  738. padding: 0 10rpx;
  739. line-height: 60rpx;
  740. .checkbox-box {
  741. display: flex;
  742. width: 60rpx;
  743. float: left;
  744. height: 100%;
  745. font-size: $font-size-28;
  746. line-height: 60rpx;
  747. .checkbox {
  748. width: 40rpx;
  749. line-height: 60rpx;
  750. text-align: right;
  751. box-sizing: border-box;
  752. text-align: center;
  753. text-decoration: none;
  754. border-radius: 0;
  755. -webkit-tap-highlight-color: transparent;
  756. overflow: hidden;
  757. color: $color-system;
  758. font-size: $font-size-34;
  759. }
  760. }
  761. .text{
  762. color: #1890f9;
  763. }
  764. }
  765. }
  766. .tui-modalBtn-box{
  767. width: 100%;
  768. display: flex;
  769. align-items: center;
  770. justify-content: space-between;
  771. .tui-modalBtn-btn{
  772. width: 46%;
  773. height: 68rpx;
  774. line-height: 68rpx;
  775. position: relative;
  776. border-radius: 10rpx;
  777. font-size: 26rpx;
  778. overflow: visible;
  779. margin-left: 0;
  780. margin-right: 0;
  781. text-align: center;
  782. border-radius: 34rpx;
  783. &.cancel{
  784. box-sizing: border-box;
  785. border:1px solid #e1e1e1;
  786. background-color: #FFFFFF;
  787. color: #999999;
  788. }
  789. &.confim{
  790. background: $btn-confirm;
  791. color: #FFFFFF;
  792. }
  793. }
  794. }
  795. </style>