card-order.vue 26 KB

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