card-order.vue 26 KB

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