card-order.vue 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015
  1. <template>
  2. <view class="container cashier">
  3. <tui-skeleton
  4. v-if="skeletonShow"
  5. backgroundColor="#fafafa"
  6. borderRadius="10rpx"
  7. :isLoading="true"
  8. :loadingType="5"
  9. ></tui-skeleton>
  10. <template v-else>
  11. <cu-custom :navbar-data="nvabarData" @navigateBack="hanldNavigateBack"></cu-custom>
  12. <view class="container-cash clearfix" :style="{ marginTop: CustomBar + 'px' }">
  13. <view class="container-wrapper">
  14. <view class="pay-content">
  15. <view class="pay-top">
  16. <view class="pay-paid">
  17. <text class="txt-m">待付金额</text>
  18. <text class="txt-b"><text class="small">¥</text>{{ obligation | NumFormat }}</text>
  19. </view>
  20. <view class="pay-payd">
  21. <view class="pay-paids">
  22. <text class="txt-m">应付总额</text>
  23. <text class="txt-b">¥{{ payableAmount | NumFormat }}</text>
  24. </view>
  25. <view class="pay-paids">
  26. <text class="txt-m">已支付金额</text>
  27. <text class="txt-b">¥{{ receiptAmount | NumFormat }}</text>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="pay-bot">
  32. <view class="bot-title"><text>本次支付金额</text></view>
  33. <view class="bot-input">
  34. <text>¥</text>
  35. <input
  36. class="input"
  37. type="digit"
  38. v-model="payAmount"
  39. @focus="focusInput"
  40. @blur="blurInput"
  41. placeholder="输入金额不能大于待付金额"
  42. placeholder-class="placeholder"
  43. />
  44. </view>
  45. <view class="bot-resid">
  46. <text class="bot-resid-le">应付剩余¥{{ balanceAmount | NumFormat }}</text>
  47. <text class="bot-resid-ri" @click="hanldeShowPopup(0)"
  48. >支付记录 <text class="iconfont icon-xiangyou"></text>
  49. </text>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="pay-checked">
  54. <template v-if="showQuickpayMode">
  55. <view class="pay-card-main" v-if="cardsList.length > 0">
  56. <view class="pay-item-cell" @click="tabClick(3)">
  57. <view class="item-icon">
  58. <image
  59. :src="
  60. 'https://static.caimei365.com/app/img/pay/icon_' +
  61. defaultCards.bankCode +
  62. '_@2x.png'
  63. "
  64. ></image>
  65. </view>
  66. <view class="item-texts"
  67. >{{ defaultCards.bankName }}(
  68. {{ defaultCards.quickPayBankNumber | bankNumeberFilter }} )</view
  69. >
  70. <view class="item-checked">
  71. <text
  72. class="iconfont"
  73. :class="[tabCurrentIndex === 3 ? 'icon-yixuanze3' : 'icon-weixuanze']"
  74. ></text>
  75. </view>
  76. </view>
  77. <view class="pay-item-cell add" @click="hanldeShowPopup(1)">
  78. <view class="item-texts add"><text>查看全部银行卡 / 添加新卡支付</text></view>
  79. <view class="item-checked"> <text class="iconfont icon-xiangyou"></text> </view>
  80. </view>
  81. </view>
  82. <view class="pay-item" @click="handleAddCard(2)" v-else>
  83. <view class="pay-item-cell">
  84. <view class="item-texts add"><text>添加银行卡快捷付款</text></view>
  85. <view class="item-checked"> <text class="iconfont icon-xiangyou"></text> </view>
  86. </view>
  87. </view>
  88. </template>
  89. <view class="pay-item" @click="tabClick(0)" v-if="showWeChatPayMode">
  90. <view class="pay-item-cell">
  91. <view class="item-icon"><text class="iconfont icon-weixinzhifu"></text></view>
  92. <view class="item-texts"><text>微信支付</text></view>
  93. <view class="item-checked">
  94. <text
  95. class="iconfont"
  96. :class="[tabCurrentIndex === 0 ? 'icon-yixuanze3' : 'icon-weixuanze']"
  97. ></text>
  98. </view>
  99. </view>
  100. </view>
  101. <!-- <view class="pay-item" @click="tabClick(1)" v-if="showB2BpayMode">
  102. <view class="pay-item-cell">
  103. <view class="item-icon"><text class="iconfont icon-qiyewangyinzhifu"></text></view>
  104. <view class="item-texts"><text>企业网银支付</text></view>
  105. <view class="item-checked">
  106. <text
  107. class="iconfont"
  108. :class="[tabCurrentIndex === 1 ? 'icon-yixuanze3' : 'icon-weixuanze']"
  109. ></text>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="pay-item" @click="tabClick(2)">
  114. <view class="pay-item-cell">
  115. <view class="item-icon"><text class="iconfont icon-gerenwangyinzhifu"></text></view>
  116. <view class="item-texts"><text>个人网银支付</text></view>
  117. <view class="item-checked">
  118. <text
  119. class="iconfont"
  120. :class="[tabCurrentIndex === 2 ? 'icon-yixuanze3' : 'icon-weixuanze']"
  121. ></text>
  122. </view>
  123. </view>
  124. </view> -->
  125. </view>
  126. <view class="pay-statustext">
  127. <view class="pay-statustext-inner">
  128. <view class="pay-icon"> <text class="iconfont icon-gantanhao-yuankuang"></text> </view>
  129. <view class="pay-text">
  130. <view
  131. >使用任何一种线上支付方式支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。</view
  132. >
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. <view class="pay-button" :style="{ paddingBottom: isIphoneX ? '68rpx' : '24rpx' }">
  138. <view
  139. class="btn"
  140. @click.stop="buttonSubMit"
  141. :class="isSubLoding ? 'disabled' : ''"
  142. :style="{ background: btnColor }"
  143. >{{ buttonText }}</view
  144. >
  145. </view>
  146. </view>
  147. </template>
  148. <!-- 支付链接弹窗 -->
  149. <view class="alert spec" v-if="isShowTip">
  150. <!-- 选择支付弹窗说明 -->
  151. <view class="freight-alert" @tap="hideTips">
  152. <view class="content">
  153. <view class="title">
  154. <text>支付链接</text> <text class="iconfont icon-iconfontguanbi" @click.stop="hideTips"></text>
  155. </view>
  156. <view class="text-content">
  157. <view class="text"
  158. >请复制以下链接,并发送至电脑端,在浏览器访问该链接并选择银行尽快完成支付</view
  159. >
  160. <view class="text-p">{{ payHttpUrl }}</view> <view class="text-b">链接有效期为72小时</view>
  161. </view>
  162. <view class="text-button" @click.stop="clipboard(payHttpUrl)">复制链接</view>
  163. </view>
  164. </view>
  165. </view>
  166. <!-- 支付记录 -->
  167. <cm-record :show="popupShow" :list="discernReceipt" v-if="popupShow"></cm-record>
  168. <!-- 选择快捷支付银行 -->
  169. <cm-cards
  170. :show="popupShow1"
  171. :list="cardsList"
  172. @handleChoiceaCards="handleChoiceaCards"
  173. @addCards="handleAddCard"
  174. v-if="popupShow1"
  175. ></cm-cards>
  176. <!-- 弹窗提示 -->
  177. <tui-modal
  178. :show="modal"
  179. @click="handleClick"
  180. :content="contentModalText"
  181. :button="modalButton"
  182. color="#333"
  183. :size="32"
  184. shape="circle"
  185. :maskClosable="false"
  186. >
  187. </tui-modal>
  188. </view>
  189. </template>
  190. <script>
  191. import authorize from '@/common/config/authorize.js'
  192. import thorui from '@/components/clipboard/clipboard.thorui.js'
  193. import payMixins from '@/mixins/payMixins.js'
  194. import cardMixins from './mixins/cardMixins.js'
  195. import cmCards from './components/cm-cards-popup'
  196. import cmRecord from './components/cm-record-popup'
  197. export default {
  198. mixins: [payMixins, cardMixins],
  199. components: {
  200. cmRecord,
  201. cmCards
  202. },
  203. data() {
  204. return {
  205. skeletonShow: true,
  206. orderId: 0,
  207. shopOrderId: 0,
  208. shopOrderInfo: 0,
  209. payType: '',
  210. realPay: 0, //应付金额
  211. payableAmount: 0, // 应付总额
  212. receiptAmount: 0, // 已付金额
  213. obligation: 0, //待付金额
  214. balanceAmount: 0,
  215. payAmount: 0,
  216. nvabarData: {
  217. //顶部自定义导航
  218. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  219. showSearch: 0,
  220. title: '收银台', // 导航栏 中间的标题
  221. haveBack: true,
  222. textLeft: this.$store.state.isIphone
  223. },
  224. idCardList: [],
  225. isIphoneX: this.$store.state.isIphoneX,
  226. CustomBar: this.CustomBar, // 顶部导航栏高度
  227. isShowTip: false,
  228. discernReceipt: [],
  229. showDigitKeyboard: false,
  230. payHttpUrl: '',
  231. mbOrderId: 0, // 支付记录订单Id
  232. modal: false,
  233. contentModalText: '本次支付金额已超出微信支付限额,请输入小于5千的金额。', //操作文字提示语句
  234. modalButton: [
  235. {
  236. text: '知道了',
  237. customStyle: {
  238. color: '#fff',
  239. bgColor: '#F3B574'
  240. },
  241. plain: false
  242. }
  243. ],
  244. quickParams: {
  245. userId: 0, //机构UserId
  246. quickPayBankNumber: '', //快捷支付用户银行卡号/信用卡号
  247. quickPayMobile: '', //快捷支付银行卡绑定手机号
  248. quickPayBankExpireTime: '', //快捷支付信用卡过期时间,只包含年月,格式yy-MM
  249. quickPayUserName: '', //快捷支付用户姓名
  250. idCard: '', //身份证号
  251. cvvCode: '', //信用卡安全码
  252. quickPayFlag: 1,
  253. payAmount: 0,
  254. shopOrderId: 0
  255. },
  256. isSubLoding: false
  257. }
  258. },
  259. onLoad(option) {
  260. this.initData(option)
  261. },
  262. filters: {
  263. NumFormat(value) {
  264. if (!value) return '0.00'
  265. /*原来用的是Number(value).toFixed(0),这样取整时有问题,例如0.51取整之后为1,感谢Nils指正*/
  266. /*后来改成了 Number(value)|0,但是输入超过十一位就为负数了,具体见评论 */
  267. var intPart = Number(value) - (Number(value) % 1) //获取整数部分(这里是windy93的方法)
  268. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') //将整数部分逢三一断
  269. var floatPart = '.00' //预定义小数部分
  270. var value2Array = value.toString().split('.')
  271. //=2表示数据有小数位
  272. if (value2Array.length == 2) {
  273. floatPart = value2Array[1].toString() //拿到小数部分
  274. if (floatPart.length == 1) {
  275. //补0,实际上用不着
  276. return intPartFormat + '.' + floatPart + '0'
  277. } else {
  278. return intPartFormat + '.' + floatPart
  279. }
  280. } else {
  281. return intPartFormat + floatPart
  282. }
  283. }
  284. },
  285. methods: {
  286. initData(e) {
  287. this.shopOrderId = e.shopOrderId
  288. this.GetPayOrderInfo()
  289. this.GetUserClubBanks()
  290. },
  291. async GetPayOrderInfo() {
  292. //初始化支付信息
  293. try {
  294. const res = await this.PayService.PayOrderCheckoutShoporders({ shopOrderId: this.shopOrderId })
  295. const data = res.data
  296. this.discernReceipt = data.discernReceipt // 支付记录
  297. this.shopOrderInfo = data.shopOrder // 子订单
  298. this.obligation = data.shopOrder.obligation // 待付金额
  299. this.orderId = data.shopOrder.orderId // 主订单Id
  300. this.receiptAmount = data.shopOrder.receiptAmount // 已付金额
  301. this.payableAmount = data.shopOrder.realPay // 应付金额
  302. this.payAmount = this.toFixedFn(this.obligation) // 自定义金额
  303. this.balanceAmount = this.obligation - this.payAmount // 计算剩余支付金额
  304. // 支付方式配置
  305. if (data.onlinePayWays) {
  306. this.checkPayMode(data.onlinePayWays)
  307. }
  308. setTimeout(() => {
  309. this.skeletonShow = false
  310. }, 500)
  311. } catch (error) {
  312. this.$util.msg(error.msg, 2000)
  313. }
  314. },
  315. async GetUserClubBanks() {
  316. //获取列表
  317. try {
  318. const user = await this.$api.getStorage()
  319. const res = await this.UserService.userClubBanks({ userId: user.userId })
  320. this.cardsList = res.data
  321. this.defaultCards = this.cardsList[0]
  322. this.quickParams.userId = user.userId
  323. this.quickParams.shopOrderId = Number(this.shopOrderId)
  324. this.quickParams.quickPayBankNumber = this.defaultCards.quickPayBankNumber
  325. this.quickParams.quickPayMobile = this.defaultCards.quickPayMobile
  326. this.quickParams.quickPayBankExpireTime = this.defaultCards.quickPayBankExpireTime
  327. ? this.defaultCards.quickPayBankExpireTime
  328. : ''
  329. this.quickParams.quickPayUserName = this.defaultCards.quickPayUserName
  330. this.quickParams.idCard = this.defaultCards.idCard
  331. this.quickParams.cvvCode = this.defaultCards.cvvCode ? this.defaultCards.cvvCode : ''
  332. } catch (error) {
  333. console.log(error)
  334. }
  335. },
  336. handleAddCard(index) {
  337. //跳转添加卡号支付
  338. //quickPayFlag 1普通订单 ,payAmount 支付金额,单位元,shopOrderId 子订单Id
  339. const data = {
  340. payData: {
  341. quickPayFlag: 1,
  342. payAmount: this.payAmount,
  343. shopOrderId: Number(this.shopOrderId)
  344. },
  345. orderId: this.orderId
  346. }
  347. this.$api.navigateTo(`/pages/user/pay/card-comfirm?type=${index}&data=${JSON.stringify(data)}`)
  348. },
  349. buttonSubMit() {
  350. if (this.isSubLoding) {
  351. return
  352. }
  353. switch (this.tabCurrentIndex) {
  354. case 0: // 微信支付
  355. this.contentModalText = '暂不支持微信支付~'
  356. this.modal = true
  357. // this.MiniWxPayFor()
  358. break
  359. case 1: // 企业网银
  360. this.payType = '1'
  361. this.handlePayOrderPayLink()
  362. break
  363. case 2: // 个人网银
  364. this.payType = '2'
  365. this.handlePayOrderPayLink()
  366. break
  367. case 3: // 快捷支付
  368. this.orderPayQuickPay()
  369. break
  370. }
  371. this.isSubLoding = true
  372. },
  373. async orderPayQuickPay() {
  374. //快捷支付
  375. try {
  376. this.quickParams.payAmount = this.payAmount
  377. console.log('payAmount', this.quickParams.payAmount)
  378. const res = await this.PayService.orderPayQuickPay(this.quickParams)
  379. const data = {
  380. params: this.quickParams,
  381. payData: res.data,
  382. orderId: this.orderId,
  383. payAmount: this.payAmount
  384. }
  385. this.isSubLoding = false
  386. this.$api.navigateTo(`/pages/user/pay/card-comfirm-sub?type=3&data=${JSON.stringify(data)}`)
  387. } catch (error) {
  388. this.$util.msg(error.msg, 2000)
  389. this.isSubLoding = false
  390. }
  391. },
  392. async handlePayOrderPayLink() {
  393. // 企业网银 个人网银
  394. if (this.payAmount == 0) {
  395. this.$util.msg('请输入本次支付的金额', 2000)
  396. return
  397. }
  398. if (this.payAmount <= 10) {
  399. this.$util.msg('网银支付的金额必须大于¥10.00', 2000)
  400. return
  401. }
  402. if (this.payType == '1') {
  403. if (this.payAmount != this.obligation) {
  404. this.contentModalText = '企业网银支付每次收取的手续费较高,建议一次性全额付款。'
  405. this.modal = true
  406. return
  407. }
  408. }
  409. try {
  410. const linkParams = {
  411. unpaidAmount: this.payAmount,
  412. shopOrderId: this.shopOrderId,
  413. payType: this.payType
  414. }
  415. const res = await this.PayService.PayOrderPayLink(linkParams)
  416. this.payHttpUrl = res.data
  417. this.isSubLoding = false
  418. this.isShowTip = true
  419. console.log('isShowTip', this.isShowTip)
  420. } catch (error) {
  421. console.log(error)
  422. this.isSubLoding = false
  423. }
  424. },
  425. async MiniWxPayFor() {
  426. // 微信支付
  427. if (this.payAmount == 0) {
  428. this.$util.msg('请输入本次支付的金额', 2000)
  429. return
  430. }
  431. if (this.payAmount * 100 < 2) {
  432. this.$util.msg('本次支付的金额必须大于¥0.02', 2000)
  433. return
  434. }
  435. // 获取微信code
  436. const wechatCode = await authorize.getCode('weixin')
  437. const params = {
  438. payAmount: this.payAmount,
  439. payType: 'XCX',
  440. code: wechatCode,
  441. shopOrderId: this.shopOrderId
  442. }
  443. this.weChatMiniOrderWxPay(params)
  444. this.isSubLoding = false
  445. },
  446. handleClick() {
  447. this.modal = false
  448. this.isSubLoding = false
  449. },
  450. confirmEvent(value) {
  451. //点击自定义键盘完成的回调函数
  452. this.chechValue(value)
  453. this.showDigitKeyboard = false
  454. },
  455. blurInput(e) {
  456. this.chechValue(e.detail.value)
  457. },
  458. focusInput() {
  459. // this.showDigitKeyboard = true
  460. },
  461. hideKeyboard() {
  462. this.showDigitKeyboard = false
  463. },
  464. chechValue(value) {
  465. let patern = /\d+\.\d+/g
  466. if (value && value.split('.').length > 2) {
  467. value = patern.exec(value)
  468. }
  469. if (value == '' || value < 0) {
  470. this.payAmount = this.quickParams.payAmount = ''
  471. this.balanceAmount = this.obligation
  472. } else if (value > this.obligation) {
  473. this.payAmount = this.quickParams.payAmount = this.toFixedFn(this.obligation)
  474. this.balanceAmount = this.toFixedFn(this.obligation - this.payAmount)
  475. } else {
  476. this.payAmount = this.quickParams.payAmount = this.toFixedFn(value)
  477. this.balanceAmount = this.toFixedFn(this.obligation - this.payAmount)
  478. }
  479. },
  480. hanldNavigateBack() {
  481. //页面返回
  482. uni.navigateBack({
  483. delta: 1
  484. })
  485. },
  486. hideTips() {
  487. //隐藏弹窗
  488. this.isShowTip = false
  489. },
  490. toFixedFn(text) {
  491. //处理小数点后两位数
  492. return Number(text).toFixed(2)
  493. },
  494. copyClipboard(data) {
  495. //复制账号
  496. thorui.getClipboardData(data, res => {
  497. if (res) {
  498. this.$util.msg('已复制', 2000)
  499. } else {
  500. this.$util.msg('复制失败', 2000)
  501. }
  502. })
  503. },
  504. clipboard(data) {
  505. //复制链接
  506. console.log('data', data)
  507. thorui.getClipboardData(data, res => {
  508. if (res) {
  509. this.isShowTip = false
  510. this.$util.msg('已复制', 2000)
  511. // 友盟埋点收集复制网银链接
  512. if (process.env.NODE_ENV != 'development') {
  513. this.$uma.trackEvent('Um_Event_CopyUnionPay', {
  514. Um_Key_PageName: '网银支付',
  515. Um_Key_SourcePage: '线上支付',
  516. Um_Key_PayName: `${this.buttonText}`,
  517. Um_Key_PayOrderID: `${this.shopOrderId}`
  518. })
  519. }
  520. } else {
  521. this.$util.msg('复制失败', 2000)
  522. }
  523. })
  524. },
  525. discard() {
  526. //丢弃
  527. }
  528. },
  529. onShow() {}
  530. }
  531. </script>
  532. <style lang="scss">
  533. page {
  534. height: auto !important;
  535. background-color: #ffffff;
  536. }
  537. .container-cash {
  538. width: 100%;
  539. .container-wrapper {
  540. width: 100%;
  541. margin: 0 auto;
  542. .pay-content {
  543. width: 100%;
  544. height: 380rpx;
  545. box-sizing: border-box;
  546. padding: 38rpx 35rpx 0 35rpx;
  547. background: url(https://static.caimei365.com/app/mini-mcare/icon/icon_payment@2x.png) no-repeat;
  548. background-size: cover;
  549. float: left;
  550. position: relative;
  551. .pay-top {
  552. width: 100%;
  553. height: auto;
  554. float: left;
  555. margin-bottom: 44rpx;
  556. .pay-paid {
  557. width: 100%;
  558. height: auto;
  559. margin-bottom: 28rpx;
  560. text {
  561. line-height: 48rpx;
  562. text-align: left;
  563. color: #ffffff;
  564. width: 100%;
  565. }
  566. .txt-m {
  567. font-size: $font-size-26;
  568. opacity: 0.7;
  569. display: inline-block;
  570. }
  571. .txt-b {
  572. font-size: $font-size-48;
  573. display: inline-block;
  574. .small {
  575. font-size: $font-size-32;
  576. }
  577. }
  578. }
  579. .pay-payd {
  580. width: 100%;
  581. height: auto;
  582. .pay-paids {
  583. height: auto;
  584. float: left;
  585. margin-right: 48rpx;
  586. text {
  587. line-height: 48rpx;
  588. text-align: left;
  589. color: #ffffff;
  590. }
  591. .txt-m {
  592. width: 100%;
  593. display: inline-block;
  594. font-size: $font-size-26;
  595. opacity: 0.7;
  596. }
  597. .txt-b {
  598. width: 100%;
  599. display: inline-block;
  600. font-size: $font-size-32;
  601. }
  602. }
  603. }
  604. }
  605. .pay-bot {
  606. width: 680rpx;
  607. height: 240rpx;
  608. padding: 24rpx;
  609. box-sizing: border-box;
  610. background: #ffffff;
  611. border-radius: 28rpx;
  612. box-shadow: 0 2px 6px rgba(255, 77, 0, 0.17);
  613. position: absolute;
  614. bottom: -150rpx;
  615. left: 35rpx;
  616. .bot-title {
  617. line-height: 36rpx;
  618. font-size: $font-size-26;
  619. color: #666666;
  620. }
  621. .bot-input {
  622. width: 100%;
  623. height: 66rpx;
  624. margin: 15rpx 0;
  625. border-bottom: 1px solid #ebebeb;
  626. line-height: 66rpx;
  627. font-size: $font-size-32;
  628. color: $text-color;
  629. text {
  630. display: block;
  631. float: left;
  632. }
  633. .input {
  634. font-size: $font-size-40;
  635. width: 500rpx;
  636. height: 66rpx;
  637. padding: 0 10rpx;
  638. line-height: 66rpx;
  639. float: left;
  640. .none {
  641. color: $text-color;
  642. opacity: 0.3;
  643. }
  644. .text {
  645. color: $text-color;
  646. }
  647. }
  648. .placeholder {
  649. font-size: $font-size-26;
  650. }
  651. }
  652. .bot-resid {
  653. line-height: 36rpx;
  654. font-size: $font-size-26;
  655. margin-top: 24rpx;
  656. .bot-resid-le {
  657. display: inline-block;
  658. float: left;
  659. color: #f85050;
  660. }
  661. .bot-resid-ri {
  662. display: inline-block;
  663. float: right;
  664. color: #999999;
  665. .iconfont {
  666. font-size: 32rpx;
  667. }
  668. }
  669. }
  670. }
  671. }
  672. .pay-checked {
  673. width: 100%;
  674. height: auto;
  675. float: left;
  676. box-sizing: border-box;
  677. padding: 0 0 32rpx 0;
  678. margin-top: 180rpx;
  679. .pay-card-main {
  680. width: 100%;
  681. height: auto;
  682. float: left;
  683. border-top: 12px solid #f7f7f7;
  684. border-bottom: 12px solid #f7f7f7;
  685. box-sizing: border-box;
  686. padding: 0 32rpx;
  687. .pay-item-cell {
  688. height: 100rpx;
  689. box-sizing: border-box;
  690. padding: 26rpx 0;
  691. background-color: #ffffff;
  692. border-bottom: 1px solid #e1e1e1;
  693. &.add {
  694. border-bottom: none;
  695. padding-left: 66rpx;
  696. }
  697. .item-icon {
  698. width: 48rpx;
  699. height: 48rpx;
  700. margin-right: 20rpx;
  701. float: left;
  702. image {
  703. width: 48rpx;
  704. height: 48rpx;
  705. display: block;
  706. }
  707. }
  708. .item-texts {
  709. line-height: 48rpx;
  710. font-size: $font-size-28;
  711. color: $text-color;
  712. float: left;
  713. &.add {
  714. font-weight: bold;
  715. }
  716. }
  717. .item-checked {
  718. width: 48rpx;
  719. height: 48rpx;
  720. float: right;
  721. text-align: center;
  722. line-height: 48rpx;
  723. font-size: $font-size-40;
  724. color: #ffffff;
  725. .icon-weixuanze {
  726. color: #b2b2b2;
  727. }
  728. .icon-yixuanze3 {
  729. color: #f3b574;
  730. }
  731. .icon-xiangyou {
  732. color: #b2b2b2;
  733. }
  734. }
  735. }
  736. }
  737. .pay-item {
  738. width: 100%;
  739. height: auto;
  740. box-sizing: border-box;
  741. float: left;
  742. padding: 0 32rpx;
  743. .pay-item-cell {
  744. height: 100rpx;
  745. box-sizing: border-box;
  746. padding: 26rpx 0;
  747. background-color: #ffffff;
  748. border-bottom: 1px solid #e1e1e1;
  749. .item-icon {
  750. width: 48rpx;
  751. height: 48rpx;
  752. float: left;
  753. text-align: center;
  754. line-height: 48rpx;
  755. margin-right: 20rpx;
  756. .iconfont {
  757. font-size: 48rpx;
  758. }
  759. .icon-weixinzhifu {
  760. color: #0abc64;
  761. }
  762. .icon-gerenwangyinzhifu {
  763. color: #16afe8;
  764. }
  765. .icon-qiyewangyinzhifu {
  766. color: #007acc;
  767. }
  768. }
  769. .item-texts {
  770. line-height: 48rpx;
  771. font-size: $font-size-28;
  772. color: $text-color;
  773. float: left;
  774. &.add {
  775. font-weight: bold;
  776. }
  777. }
  778. .item-checked {
  779. width: 48rpx;
  780. height: 48rpx;
  781. float: right;
  782. text-align: center;
  783. line-height: 48rpx;
  784. font-size: $font-size-40;
  785. color: #ffffff;
  786. .icon-weixuanze {
  787. color: #b2b2b2;
  788. }
  789. .icon-yixuanze3 {
  790. color: #f3b574;
  791. }
  792. .icon-xiangyou {
  793. color: #b2b2b2;
  794. }
  795. }
  796. }
  797. }
  798. }
  799. .pay-statustext {
  800. width: 100%;
  801. height: auto;
  802. float: left;
  803. margin-top: 40rpx;
  804. padding-bottom: 160rpx;
  805. .pay-statustext-inner {
  806. width: 662rpx;
  807. height: 80rpx;
  808. margin: 0 auto;
  809. border: 1px solid #cccccc;
  810. padding: 20rpx;
  811. border-radius: 8rpx;
  812. .pay-icon {
  813. width: 62rpx;
  814. height: 100%;
  815. float: left;
  816. text-align: center;
  817. .iconfont {
  818. color: #999999;
  819. font-size: $font-size-36;
  820. line-height: 20rpx;
  821. }
  822. }
  823. .pay-text {
  824. width: 560rpx;
  825. height: 100%;
  826. float: left;
  827. line-height: 40rpx;
  828. font-size: $font-size-24;
  829. color: #999999;
  830. text-align: justify;
  831. }
  832. }
  833. }
  834. }
  835. .pay-button {
  836. width: 600rpx;
  837. background-color: #ffffff;
  838. position: fixed;
  839. height: 88rpx;
  840. padding: 24rpx 75rpx 0 75rpx;
  841. bottom: 0;
  842. .btn {
  843. width: 100%;
  844. height: 88rpx;
  845. border-radius: 44rpx;
  846. font-size: $font-size-28;
  847. line-height: 88rpx;
  848. color: #ffffff;
  849. margin: 0 auto;
  850. text-align: center;
  851. background: $btn-confirm;
  852. &.disabled {
  853. background: #e1e1e1 !important;
  854. }
  855. }
  856. }
  857. }
  858. .freight-alert {
  859. width: 100%;
  860. height: 100%;
  861. background: rgba(0, 0, 0, 0.5);
  862. position: fixed;
  863. top: 0;
  864. left: 0;
  865. z-index: 8888;
  866. transition: all 0.4s;
  867. &.none {
  868. display: none;
  869. }
  870. &.show {
  871. display: block;
  872. }
  873. .content {
  874. width: 422rpx;
  875. height: 434rpx;
  876. position: absolute;
  877. background: $bg-color;
  878. left: 0;
  879. right: 0;
  880. bottom: 0;
  881. top: 0;
  882. margin: auto;
  883. padding: 20rpx 32rpx;
  884. border-radius: 12rpx;
  885. .title {
  886. width: 100%;
  887. height: 68rpx;
  888. line-height: 68rpx;
  889. font-size: $font-size-28;
  890. color: $text-color;
  891. text-align: center;
  892. position: relative;
  893. .icon-iconfontguanbi {
  894. width: 68rpx;
  895. height: 68rpx;
  896. text-align: center;
  897. line-height: 68rpx;
  898. position: absolute;
  899. right: 0;
  900. top: 0;
  901. font-size: $font-size-36;
  902. color: #999999;
  903. }
  904. }
  905. .text-content {
  906. width: 100%;
  907. height: auto;
  908. .text {
  909. padding: 20rpx 0 0 0;
  910. line-height: 44rpx;
  911. font-size: $font-size-26;
  912. color: #666666;
  913. text-align: justify;
  914. }
  915. .text-p {
  916. width: 100%;
  917. line-height: 44rpx;
  918. font-size: $font-size-26;
  919. color: $color-system;
  920. text-align: left;
  921. text-overflow: ellipsis;
  922. display: -webkit-box;
  923. word-break: break-all;
  924. -webkit-box-orient: vertical;
  925. -webkit-line-clamp: 1;
  926. overflow: hidden;
  927. }
  928. .text-b {
  929. line-height: 44rpx;
  930. font-size: $font-size-24;
  931. color: #999999;
  932. text-align: left;
  933. }
  934. }
  935. .text-button {
  936. width: 100%;
  937. height: 88rpx;
  938. line-height: 88rpx;
  939. background: $btn-confirm;
  940. font-size: $font-size-28;
  941. border-radius: 44rpx;
  942. color: #ffffff;
  943. text-align: center;
  944. margin-top: 20rpx;
  945. }
  946. }
  947. }
  948. .tui-prompt-title {
  949. width: 100%;
  950. height: 44rpx;
  951. line-height: 44rpx;
  952. padding: 20rpx 0;
  953. text-align: center;
  954. color: #333333;
  955. border-bottom: 1px solid #e2e7ef;
  956. }
  957. .tui-prompt-text {
  958. padding-top: 20rpx;
  959. .tui-prompt-tips {
  960. width: 100%;
  961. line-height: 36rpx;
  962. font-size: $font-size-22;
  963. color: #f3b574;
  964. text-align: justify;
  965. margin-bottom: 24rpx;
  966. }
  967. .tui-prompt-item {
  968. width: 100%;
  969. line-height: 60rpx;
  970. color: #333333;
  971. font-size: $font-size-26;
  972. .text {
  973. font-weight: bold;
  974. }
  975. .copy {
  976. height: 38rpx;
  977. box-sizing: border-box;
  978. padding: 0 24rpx;
  979. text-align: center;
  980. line-height: 36rpx;
  981. display: inline-block;
  982. .iconfont {
  983. font-size: $font-size-40;
  984. color: #666666;
  985. }
  986. }
  987. }
  988. }
  989. .tui-prompt-flex {
  990. width: 100%;
  991. height: auto;
  992. margin-top: 20rpx;
  993. box-sizing: border-box;
  994. padding: 0 35rpx;
  995. .btn {
  996. width: 100%;
  997. line-height: 84rpx;
  998. font-size: $font-size-26;
  999. text-align: center;
  1000. color: #ffffff;
  1001. border-radius: 44rpx;
  1002. margin: 20rpx 0;
  1003. &.btn-cancel {
  1004. background: #ffffff;
  1005. color: #333333;
  1006. border: 1px solid #979797;
  1007. }
  1008. &.btn-confirm {
  1009. background: $btn-confirm;
  1010. }
  1011. }
  1012. }
  1013. </style>