card-order.vue 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013
  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.MiniWxPayFor()
  356. break
  357. case 1: // 企业网银
  358. this.payType = '1'
  359. this.handlePayOrderPayLink()
  360. break
  361. case 2: // 个人网银
  362. this.payType = '2'
  363. this.handlePayOrderPayLink()
  364. break
  365. case 3: // 快捷支付
  366. this.orderPayQuickPay()
  367. break
  368. }
  369. this.isSubLoding = true
  370. },
  371. async orderPayQuickPay() {
  372. //快捷支付
  373. try {
  374. this.quickParams.payAmount = this.payAmount
  375. console.log('payAmount', this.quickParams.payAmount)
  376. const res = await this.PayService.orderPayQuickPay(this.quickParams)
  377. const data = {
  378. params: this.quickParams,
  379. payData: res.data,
  380. orderId: this.orderId,
  381. payAmount: this.payAmount
  382. }
  383. this.isSubLoding = false
  384. this.$api.navigateTo(`/pages/user/pay/card-comfirm-sub?type=3&data=${JSON.stringify(data)}`)
  385. } catch (error) {
  386. this.$util.msg(error.msg, 2000)
  387. this.isSubLoding = false
  388. }
  389. },
  390. async handlePayOrderPayLink() {
  391. // 企业网银 个人网银
  392. if (this.payAmount == 0) {
  393. this.$util.msg('请输入本次支付的金额', 2000)
  394. return
  395. }
  396. if (this.payAmount <= 10) {
  397. this.$util.msg('网银支付的金额必须大于¥10.00', 2000)
  398. return
  399. }
  400. if (this.payType == '1') {
  401. if (this.payAmount != this.obligation) {
  402. this.contentModalText = '企业网银支付每次收取的手续费较高,建议一次性全额付款。'
  403. this.modal = true
  404. return
  405. }
  406. }
  407. try {
  408. const linkParams = {
  409. unpaidAmount: this.payAmount,
  410. shopOrderId: this.shopOrderId,
  411. payType: this.payType
  412. }
  413. const res = await this.PayService.PayOrderPayLink(linkParams)
  414. this.payHttpUrl = res.data
  415. this.isSubLoding = false
  416. this.isShowTip = true
  417. console.log('isShowTip', this.isShowTip)
  418. } catch (error) {
  419. console.log(error)
  420. this.isSubLoding = false
  421. }
  422. },
  423. async MiniWxPayFor() {
  424. // 微信支付
  425. if (this.payAmount == 0) {
  426. this.$util.msg('请输入本次支付的金额', 2000)
  427. return
  428. }
  429. if (this.payAmount * 100 < 2) {
  430. this.$util.msg('本次支付的金额必须大于¥0.02', 2000)
  431. return
  432. }
  433. // 获取微信code
  434. const wechatCode = await authorize.getCode('weixin')
  435. const params = {
  436. payAmount: this.payAmount,
  437. payType: 'XCX',
  438. code: wechatCode,
  439. shopOrderId: this.shopOrderId
  440. }
  441. this.weChatMiniOrderWxPay(params)
  442. this.isSubLoding = false
  443. },
  444. handleClick() {
  445. this.modal = false
  446. this.isSubLoding = false
  447. },
  448. confirmEvent(value) {
  449. //点击自定义键盘完成的回调函数
  450. this.chechValue(value)
  451. this.showDigitKeyboard = false
  452. },
  453. blurInput(e) {
  454. this.chechValue(e.detail.value)
  455. },
  456. focusInput() {
  457. // this.showDigitKeyboard = true
  458. },
  459. hideKeyboard() {
  460. this.showDigitKeyboard = false
  461. },
  462. chechValue(value) {
  463. let patern = /\d+\.\d+/g
  464. if (value && value.split('.').length > 2) {
  465. value = patern.exec(value)
  466. }
  467. if (value == '' || value < 0) {
  468. this.payAmount = this.quickParams.payAmount = ''
  469. this.balanceAmount = this.obligation
  470. } else if (value > this.obligation) {
  471. this.payAmount = this.quickParams.payAmount = this.toFixedFn(this.obligation)
  472. this.balanceAmount = this.toFixedFn(this.obligation - this.payAmount)
  473. } else {
  474. this.payAmount = this.quickParams.payAmount = this.toFixedFn(value)
  475. this.balanceAmount = this.toFixedFn(this.obligation - this.payAmount)
  476. }
  477. },
  478. hanldNavigateBack() {
  479. //页面返回
  480. uni.navigateBack({
  481. delta: 1
  482. })
  483. },
  484. hideTips() {
  485. //隐藏弹窗
  486. this.isShowTip = false
  487. },
  488. toFixedFn(text) {
  489. //处理小数点后两位数
  490. return Number(text).toFixed(2)
  491. },
  492. copyClipboard(data) {
  493. //复制账号
  494. thorui.getClipboardData(data, res => {
  495. if (res) {
  496. this.$util.msg('已复制', 2000)
  497. } else {
  498. this.$util.msg('复制失败', 2000)
  499. }
  500. })
  501. },
  502. clipboard(data) {
  503. //复制链接
  504. console.log('data', data)
  505. thorui.getClipboardData(data, res => {
  506. if (res) {
  507. this.isShowTip = false
  508. this.$util.msg('已复制', 2000)
  509. // 友盟埋点收集复制网银链接
  510. if (process.env.NODE_ENV != 'development') {
  511. this.$uma.trackEvent('Um_Event_CopyUnionPay', {
  512. Um_Key_PageName: '网银支付',
  513. Um_Key_SourcePage: '线上支付',
  514. Um_Key_PayName: `${this.buttonText}`,
  515. Um_Key_PayOrderID: `${this.shopOrderId}`
  516. })
  517. }
  518. } else {
  519. this.$util.msg('复制失败', 2000)
  520. }
  521. })
  522. },
  523. discard() {
  524. //丢弃
  525. }
  526. },
  527. onShow() {}
  528. }
  529. </script>
  530. <style lang="scss">
  531. page {
  532. height: auto !important;
  533. background-color: #ffffff;
  534. }
  535. .container-cash {
  536. width: 100%;
  537. .container-wrapper {
  538. width: 100%;
  539. margin: 0 auto;
  540. .pay-content {
  541. width: 100%;
  542. height: 380rpx;
  543. box-sizing: border-box;
  544. padding: 38rpx 35rpx 0 35rpx;
  545. background: url(https://static.caimei365.com/app/mini-mcare/icon/icon_payment@2x.png) no-repeat;
  546. background-size: cover;
  547. float: left;
  548. position: relative;
  549. .pay-top {
  550. width: 100%;
  551. height: auto;
  552. float: left;
  553. margin-bottom: 44rpx;
  554. .pay-paid {
  555. width: 100%;
  556. height: auto;
  557. margin-bottom: 28rpx;
  558. text {
  559. line-height: 48rpx;
  560. text-align: left;
  561. color: #ffffff;
  562. width: 100%;
  563. }
  564. .txt-m {
  565. font-size: $font-size-26;
  566. opacity: 0.7;
  567. display: inline-block;
  568. }
  569. .txt-b {
  570. font-size: $font-size-48;
  571. display: inline-block;
  572. .small {
  573. font-size: $font-size-32;
  574. }
  575. }
  576. }
  577. .pay-payd {
  578. width: 100%;
  579. height: auto;
  580. .pay-paids {
  581. height: auto;
  582. float: left;
  583. margin-right: 48rpx;
  584. text {
  585. line-height: 48rpx;
  586. text-align: left;
  587. color: #ffffff;
  588. }
  589. .txt-m {
  590. width: 100%;
  591. display: inline-block;
  592. font-size: $font-size-26;
  593. opacity: 0.7;
  594. }
  595. .txt-b {
  596. width: 100%;
  597. display: inline-block;
  598. font-size: $font-size-32;
  599. }
  600. }
  601. }
  602. }
  603. .pay-bot {
  604. width: 680rpx;
  605. height: 240rpx;
  606. padding: 24rpx;
  607. box-sizing: border-box;
  608. background: #ffffff;
  609. border-radius: 28rpx;
  610. box-shadow: 0 2px 6px rgba(255, 77, 0, 0.17);
  611. position: absolute;
  612. bottom: -150rpx;
  613. left: 35rpx;
  614. .bot-title {
  615. line-height: 36rpx;
  616. font-size: $font-size-26;
  617. color: #666666;
  618. }
  619. .bot-input {
  620. width: 100%;
  621. height: 66rpx;
  622. margin: 15rpx 0;
  623. border-bottom: 1px solid #ebebeb;
  624. line-height: 66rpx;
  625. font-size: $font-size-32;
  626. color: $text-color;
  627. text {
  628. display: block;
  629. float: left;
  630. }
  631. .input {
  632. font-size: $font-size-40;
  633. width: 500rpx;
  634. height: 66rpx;
  635. padding: 0 10rpx;
  636. line-height: 66rpx;
  637. float: left;
  638. .none {
  639. color: $text-color;
  640. opacity: 0.3;
  641. }
  642. .text {
  643. color: $text-color;
  644. }
  645. }
  646. .placeholder {
  647. font-size: $font-size-26;
  648. }
  649. }
  650. .bot-resid {
  651. line-height: 36rpx;
  652. font-size: $font-size-26;
  653. margin-top: 24rpx;
  654. .bot-resid-le {
  655. display: inline-block;
  656. float: left;
  657. color: #f85050;
  658. }
  659. .bot-resid-ri {
  660. display: inline-block;
  661. float: right;
  662. color: #999999;
  663. .iconfont {
  664. font-size: 32rpx;
  665. }
  666. }
  667. }
  668. }
  669. }
  670. .pay-checked {
  671. width: 100%;
  672. height: auto;
  673. float: left;
  674. box-sizing: border-box;
  675. padding: 0 0 32rpx 0;
  676. margin-top: 180rpx;
  677. .pay-card-main {
  678. width: 100%;
  679. height: auto;
  680. float: left;
  681. border-top: 12px solid #f7f7f7;
  682. border-bottom: 12px solid #f7f7f7;
  683. box-sizing: border-box;
  684. padding: 0 32rpx;
  685. .pay-item-cell {
  686. height: 100rpx;
  687. box-sizing: border-box;
  688. padding: 26rpx 0;
  689. background-color: #ffffff;
  690. border-bottom: 1px solid #e1e1e1;
  691. &.add {
  692. border-bottom: none;
  693. padding-left: 66rpx;
  694. }
  695. .item-icon {
  696. width: 48rpx;
  697. height: 48rpx;
  698. margin-right: 20rpx;
  699. float: left;
  700. image {
  701. width: 48rpx;
  702. height: 48rpx;
  703. display: block;
  704. }
  705. }
  706. .item-texts {
  707. line-height: 48rpx;
  708. font-size: $font-size-28;
  709. color: $text-color;
  710. float: left;
  711. &.add {
  712. font-weight: bold;
  713. }
  714. }
  715. .item-checked {
  716. width: 48rpx;
  717. height: 48rpx;
  718. float: right;
  719. text-align: center;
  720. line-height: 48rpx;
  721. font-size: $font-size-40;
  722. color: #ffffff;
  723. .icon-weixuanze {
  724. color: #b2b2b2;
  725. }
  726. .icon-yixuanze3 {
  727. color: #f3b574;
  728. }
  729. .icon-xiangyou {
  730. color: #b2b2b2;
  731. }
  732. }
  733. }
  734. }
  735. .pay-item {
  736. width: 100%;
  737. height: auto;
  738. box-sizing: border-box;
  739. float: left;
  740. padding: 0 32rpx;
  741. .pay-item-cell {
  742. height: 100rpx;
  743. box-sizing: border-box;
  744. padding: 26rpx 0;
  745. background-color: #ffffff;
  746. border-bottom: 1px solid #e1e1e1;
  747. .item-icon {
  748. width: 48rpx;
  749. height: 48rpx;
  750. float: left;
  751. text-align: center;
  752. line-height: 48rpx;
  753. margin-right: 20rpx;
  754. .iconfont {
  755. font-size: 48rpx;
  756. }
  757. .icon-weixinzhifu {
  758. color: #0abc64;
  759. }
  760. .icon-gerenwangyinzhifu {
  761. color: #16afe8;
  762. }
  763. .icon-qiyewangyinzhifu {
  764. color: #007acc;
  765. }
  766. }
  767. .item-texts {
  768. line-height: 48rpx;
  769. font-size: $font-size-28;
  770. color: $text-color;
  771. float: left;
  772. &.add {
  773. font-weight: bold;
  774. }
  775. }
  776. .item-checked {
  777. width: 48rpx;
  778. height: 48rpx;
  779. float: right;
  780. text-align: center;
  781. line-height: 48rpx;
  782. font-size: $font-size-40;
  783. color: #ffffff;
  784. .icon-weixuanze {
  785. color: #b2b2b2;
  786. }
  787. .icon-yixuanze3 {
  788. color: #f3b574;
  789. }
  790. .icon-xiangyou {
  791. color: #b2b2b2;
  792. }
  793. }
  794. }
  795. }
  796. }
  797. .pay-statustext {
  798. width: 100%;
  799. height: auto;
  800. float: left;
  801. margin-top: 40rpx;
  802. padding-bottom: 160rpx;
  803. .pay-statustext-inner {
  804. width: 662rpx;
  805. height: 80rpx;
  806. margin: 0 auto;
  807. border: 1px solid #cccccc;
  808. padding: 20rpx;
  809. border-radius: 8rpx;
  810. .pay-icon {
  811. width: 62rpx;
  812. height: 100%;
  813. float: left;
  814. text-align: center;
  815. .iconfont {
  816. color: #999999;
  817. font-size: $font-size-36;
  818. line-height: 20rpx;
  819. }
  820. }
  821. .pay-text {
  822. width: 560rpx;
  823. height: 100%;
  824. float: left;
  825. line-height: 40rpx;
  826. font-size: $font-size-24;
  827. color: #999999;
  828. text-align: justify;
  829. }
  830. }
  831. }
  832. }
  833. .pay-button {
  834. width: 600rpx;
  835. background-color: #ffffff;
  836. position: fixed;
  837. height: 88rpx;
  838. padding: 24rpx 75rpx 0 75rpx;
  839. bottom: 0;
  840. .btn {
  841. width: 100%;
  842. height: 88rpx;
  843. border-radius: 44rpx;
  844. font-size: $font-size-28;
  845. line-height: 88rpx;
  846. color: #ffffff;
  847. margin: 0 auto;
  848. text-align: center;
  849. background: $btn-confirm;
  850. &.disabled {
  851. background: #e1e1e1 !important;
  852. }
  853. }
  854. }
  855. }
  856. .freight-alert {
  857. width: 100%;
  858. height: 100%;
  859. background: rgba(0, 0, 0, 0.5);
  860. position: fixed;
  861. top: 0;
  862. left: 0;
  863. z-index: 8888;
  864. transition: all 0.4s;
  865. &.none {
  866. display: none;
  867. }
  868. &.show {
  869. display: block;
  870. }
  871. .content {
  872. width: 422rpx;
  873. height: 434rpx;
  874. position: absolute;
  875. background: $bg-color;
  876. left: 0;
  877. right: 0;
  878. bottom: 0;
  879. top: 0;
  880. margin: auto;
  881. padding: 20rpx 32rpx;
  882. border-radius: 12rpx;
  883. .title {
  884. width: 100%;
  885. height: 68rpx;
  886. line-height: 68rpx;
  887. font-size: $font-size-28;
  888. color: $text-color;
  889. text-align: center;
  890. position: relative;
  891. .icon-iconfontguanbi {
  892. width: 68rpx;
  893. height: 68rpx;
  894. text-align: center;
  895. line-height: 68rpx;
  896. position: absolute;
  897. right: 0;
  898. top: 0;
  899. font-size: $font-size-36;
  900. color: #999999;
  901. }
  902. }
  903. .text-content {
  904. width: 100%;
  905. height: auto;
  906. .text {
  907. padding: 20rpx 0 0 0;
  908. line-height: 44rpx;
  909. font-size: $font-size-26;
  910. color: #666666;
  911. text-align: justify;
  912. }
  913. .text-p {
  914. width: 100%;
  915. line-height: 44rpx;
  916. font-size: $font-size-26;
  917. color: $color-system;
  918. text-align: left;
  919. text-overflow: ellipsis;
  920. display: -webkit-box;
  921. word-break: break-all;
  922. -webkit-box-orient: vertical;
  923. -webkit-line-clamp: 1;
  924. overflow: hidden;
  925. }
  926. .text-b {
  927. line-height: 44rpx;
  928. font-size: $font-size-24;
  929. color: #999999;
  930. text-align: left;
  931. }
  932. }
  933. .text-button {
  934. width: 100%;
  935. height: 88rpx;
  936. line-height: 88rpx;
  937. background: $btn-confirm;
  938. font-size: $font-size-28;
  939. border-radius: 44rpx;
  940. color: #ffffff;
  941. text-align: center;
  942. margin-top: 20rpx;
  943. }
  944. }
  945. }
  946. .tui-prompt-title {
  947. width: 100%;
  948. height: 44rpx;
  949. line-height: 44rpx;
  950. padding: 20rpx 0;
  951. text-align: center;
  952. color: #333333;
  953. border-bottom: 1px solid #e2e7ef;
  954. }
  955. .tui-prompt-text {
  956. padding-top: 20rpx;
  957. .tui-prompt-tips {
  958. width: 100%;
  959. line-height: 36rpx;
  960. font-size: $font-size-22;
  961. color: #f3b574;
  962. text-align: justify;
  963. margin-bottom: 24rpx;
  964. }
  965. .tui-prompt-item {
  966. width: 100%;
  967. line-height: 60rpx;
  968. color: #333333;
  969. font-size: $font-size-26;
  970. .text {
  971. font-weight: bold;
  972. }
  973. .copy {
  974. height: 38rpx;
  975. box-sizing: border-box;
  976. padding: 0 24rpx;
  977. text-align: center;
  978. line-height: 36rpx;
  979. display: inline-block;
  980. .iconfont {
  981. font-size: $font-size-40;
  982. color: #666666;
  983. }
  984. }
  985. }
  986. }
  987. .tui-prompt-flex {
  988. width: 100%;
  989. height: auto;
  990. margin-top: 20rpx;
  991. box-sizing: border-box;
  992. padding: 0 35rpx;
  993. .btn {
  994. width: 100%;
  995. line-height: 84rpx;
  996. font-size: $font-size-26;
  997. text-align: center;
  998. color: #ffffff;
  999. border-radius: 44rpx;
  1000. margin: 20rpx 0;
  1001. &.btn-cancel {
  1002. background: #ffffff;
  1003. color: #333333;
  1004. border: 1px solid #979797;
  1005. }
  1006. &.btn-confirm {
  1007. background: $btn-confirm;
  1008. }
  1009. }
  1010. }
  1011. </style>