12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007 |
- <template>
- <view class="container cashier">
- <tui-skeleton
- v-if="skeletonShow"
- backgroundColor="#fafafa"
- borderRadius="10rpx"
- :isLoading="true"
- :loadingType="5"
- ></tui-skeleton>
- <template v-else>
- <cu-custom :navbar-data="nvabarData" @navigateBack="hanldNavigateBack"></cu-custom>
- <view class="container-cash clearfix" :style="{ marginTop: CustomBar + 'px' }">
- <view class="container-wrapper">
- <view class="pay-content">
- <view class="pay-top">
- <view class="pay-paid">
- <text class="txt-m">待付金额</text>
- <text class="txt-b"><text class="small">¥</text>{{ obligation | NumFormat }}</text>
- </view>
- <view class="pay-payd">
- <view class="pay-paids">
- <text class="txt-m">应付总额</text>
- <text class="txt-b">¥{{ payableAmount | NumFormat }}</text>
- </view>
- <view class="pay-paids">
- <text class="txt-m">已支付金额</text>
- <text class="txt-b">¥{{ receiptAmount | NumFormat }}</text>
- </view>
- </view>
- </view>
- <view class="pay-bot">
- <view class="bot-title"><text>本次支付金额</text></view>
- <view class="bot-input">
- <text>¥</text>
- <input
- class="input"
- type="digit"
- v-model="payAmount"
- @focus="focusInput"
- @blur="blurInput"
- placeholder="输入金额不能大于待付金额"
- placeholder-class="placeholder"
- />
- </view>
- <view class="bot-resid">
- <text class="bot-resid-le">应付剩余¥{{ balanceAmount | NumFormat }}</text>
- <text class="bot-resid-ri" @click="hanldeShowPopup(0)"
- >支付记录 <text class="iconfont icon-xiangyou"></text>
- </text>
- </view>
- </view>
- </view>
- <view class="pay-checked">
- <template v-if="showQuickpayMode">
- <view class="pay-card-main" v-if="cardsList.length > 0">
- <view class="pay-item-cell" @click="tabClick(3)">
- <view class="item-icon">
- <image
- :src="
- 'https://static.caimei365.com/app/img/pay/icon_' +
- defaultCards.bankCode +
- '_@2x.png'
- "
- ></image>
- </view>
- <view class="item-texts"
- >{{ defaultCards.bankName }}(
- {{ defaultCards.quickPayBankNumber | bankNumeberFilter }} )</view
- >
- <view class="item-checked">
- <text
- class="iconfont"
- :class="[tabCurrentIndex === 3 ? 'icon-yixuanze3' : 'icon-weixuanze']"
- ></text>
- </view>
- </view>
- <view class="pay-item-cell add" @click="hanldeShowPopup(1)">
- <view class="item-texts add"><text>查看全部银行卡 / 添加新卡支付</text></view>
- <view class="item-checked"> <text class="iconfont icon-xiangyou"></text> </view>
- </view>
- </view>
- <view class="pay-item" @click="handleAddCard(2)" v-else>
- <view class="pay-item-cell">
- <view class="item-texts add"><text>添加银行卡快捷付款</text></view>
- <view class="item-checked"> <text class="iconfont icon-xiangyou"></text> </view>
- </view>
- </view>
- </template>
- <view class="pay-item" @click="tabClick(0)" v-if="showWeChatPayMode">
- <view class="pay-item-cell">
- <view class="item-icon"><text class="iconfont icon-weixinzhifu"></text></view>
- <view class="item-texts"><text>微信支付</text></view>
- <view class="item-checked">
- <text
- class="iconfont"
- :class="[tabCurrentIndex === 0 ? 'icon-yixuanze3' : 'icon-weixuanze']"
- ></text>
- </view>
- </view>
- </view>
- <!-- <view class="pay-item" @click="tabClick(1)" v-if="showB2BpayMode">
- <view class="pay-item-cell">
- <view class="item-icon"><text class="iconfont icon-qiyewangyinzhifu"></text></view>
- <view class="item-texts"><text>企业网银支付</text></view>
- <view class="item-checked">
- <text
- class="iconfont"
- :class="[tabCurrentIndex === 1 ? 'icon-yixuanze3' : 'icon-weixuanze']"
- ></text>
- </view>
- </view>
- </view>
- <view class="pay-item" @click="tabClick(2)">
- <view class="pay-item-cell">
- <view class="item-icon"><text class="iconfont icon-gerenwangyinzhifu"></text></view>
- <view class="item-texts"><text>个人网银支付</text></view>
- <view class="item-checked">
- <text
- class="iconfont"
- :class="[tabCurrentIndex === 2 ? 'icon-yixuanze3' : 'icon-weixuanze']"
- ></text>
- </view>
- </view>
- </view> -->
- </view>
- <view class="pay-statustext">
- <view class="pay-statustext-inner">
- <view class="pay-icon"> <text class="iconfont icon-gantanhao-yuankuang"></text> </view>
- <view class="pay-text">
- <view
- >使用任何一种线上支付方式支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。</view
- >
- </view>
- </view>
- </view>
- </view>
- <view class="pay-button" :style="{ paddingBottom: isIphoneX ? '68rpx' : '24rpx' }">
- <view class="btn" @click.stop="buttonSubMit" :class="isSubLoding ? 'disabled' : ''" :style="{ background: btnColor }">{{
- buttonText
- }}</view>
- </view>
- </view>
- </template>
- <!-- 支付链接弹窗 -->
- <view class="alert spec" v-if="isShowTip">
- <!-- 选择支付弹窗说明 -->
- <view class="freight-alert" @tap="hideTips">
- <view class="content">
- <view class="title">
- <text>支付链接</text> <text class="iconfont icon-iconfontguanbi" @click.stop="hideTips"></text>
- </view>
- <view class="text-content">
- <view class="text"
- >请复制以下链接,并发送至电脑端,在浏览器访问该链接并选择银行尽快完成支付</view
- >
- <view class="text-p">{{ payHttpUrl }}</view> <view class="text-b">链接有效期为72小时</view>
- </view>
- <view class="text-button" @click.stop="clipboard(payHttpUrl)">复制链接</view>
- </view>
- </view>
- </view>
- <!-- 支付记录 -->
- <cm-record :show="popupShow" :list="discernReceipt" v-if="popupShow"></cm-record>
- <!-- 选择快捷支付银行 -->
- <cm-cards
- :show="popupShow1"
- :list="cardsList"
- @handleChoiceaCards="handleChoiceaCards"
- @addCards="handleAddCard"
- v-if="popupShow1"
- ></cm-cards>
- <!-- 弹窗提示 -->
- <tui-modal
- :show="modal"
- @click="handleClick"
- :content="contentModalText"
- :button="modalButton"
- color="#333"
- :size="32"
- shape="circle"
- :maskClosable="false"
- >
- </tui-modal>
- </view>
- </template>
- <script>
- import authorize from '@/common/config/authorize.js'
- import thorui from '@/components/clipboard/clipboard.thorui.js'
- import payMixins from '@/mixins/payMixins.js'
- import cardMixins from './mixins/cardMixins.js'
- import cmCards from './components/cm-cards-popup'
- import cmRecord from './components/cm-record-popup'
- export default {
- mixins: [payMixins, cardMixins],
- components: {
- cmRecord,
- cmCards
- },
- data() {
- return {
- skeletonShow: true,
- orderId: 0,
- shopOrderId: 0,
- shopOrderInfo: 0,
- payType: '',
- realPay: 0, //应付金额
- payableAmount: 0, // 应付总额
- receiptAmount: 0, // 已付金额
- obligation: 0, //待付金额
- balanceAmount: 0,
- payAmount: 0,
- nvabarData: {
- //顶部自定义导航
- showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
- showSearch: 0,
- title: '收银台', // 导航栏 中间的标题
- haveBack: true,
- textLeft: this.$store.state.isIphone
- },
- idCardList: [],
- isIphoneX: this.$store.state.isIphoneX,
- CustomBar: this.CustomBar, // 顶部导航栏高度
- isShowTip: false,
- discernReceipt: [],
- showDigitKeyboard: false,
- payHttpUrl: '',
- mbOrderId: 0, // 支付记录订单Id
- modal: false,
- contentModalText: '本次支付金额已超出微信支付限额,请输入小于5千的金额。', //操作文字提示语句
- modalButton: [
- {
- text: '知道了',
- customStyle: {
- color: '#fff',
- bgColor: '#F3B574'
- },
- plain: false
- }
- ],
- quickParams: {
- userId: 0, //机构UserId
- quickPayBankNumber: '', //快捷支付用户银行卡号/信用卡号
- quickPayMobile: '', //快捷支付银行卡绑定手机号
- quickPayBankExpireTime: '', //快捷支付信用卡过期时间,只包含年月,格式yy-MM
- quickPayUserName: '', //快捷支付用户姓名
- idCard: '', //身份证号
- cvvCode: '', //信用卡安全码
- quickPayFlag: 1,
- payAmount: 0,
- shopOrderId: 0
- },
- isSubLoding:false
- }
- },
- onLoad(option) {
- this.initData(option)
- },
- filters: {
- NumFormat(value) {
- if (!value) return '0.00'
- /*原来用的是Number(value).toFixed(0),这样取整时有问题,例如0.51取整之后为1,感谢Nils指正*/
- /*后来改成了 Number(value)|0,但是输入超过十一位就为负数了,具体见评论 */
- var intPart = Number(value) - (Number(value) % 1) //获取整数部分(这里是windy93的方法)
- var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') //将整数部分逢三一断
- var floatPart = '.00' //预定义小数部分
- var value2Array = value.toString().split('.')
- //=2表示数据有小数位
- if (value2Array.length == 2) {
- floatPart = value2Array[1].toString() //拿到小数部分
- if (floatPart.length == 1) {
- //补0,实际上用不着
- return intPartFormat + '.' + floatPart + '0'
- } else {
- return intPartFormat + '.' + floatPart
- }
- } else {
- return intPartFormat + floatPart
- }
- }
- },
- methods: {
- initData(e) {
- this.shopOrderId = e.shopOrderId
- this.GetPayOrderInfo()
- this.GetUserClubBanks()
- },
- async GetPayOrderInfo() {
- //初始化支付信息
- try{
- const res = await this.PayService.PayOrderCheckoutShoporders({ shopOrderId: this.shopOrderId })
- const data = res.data
- this.discernReceipt = data.discernReceipt // 支付记录
- this.shopOrderInfo = data.shopOrder // 子订单
- this.obligation = data.shopOrder.obligation // 待付金额
- this.orderId = data.shopOrder.orderId // 主订单Id
- this.receiptAmount = data.shopOrder.receiptAmount // 已付金额
- this.payableAmount = data.shopOrder.realPay // 应付金额
- this.payAmount = this.toFixedFn(this.obligation) // 自定义金额
- this.balanceAmount = this.obligation - this.payAmount // 计算剩余支付金额
- // 支付方式配置
- if(data.onlinePayWays){
- this.checkPayMode(data.onlinePayWays)
- }
- setTimeout(() => {
- this.skeletonShow = false
- }, 500)
- }catch(error){
- this.$util.msg(error.msg, 2000)
- }
- },
- async GetUserClubBanks() {
- //获取列表
- try {
- const user = await this.$api.getStorage()
- const res = await this.UserService.userClubBanks({ userId:user.userId })
- this.cardsList = res.data
- this.defaultCards = this.cardsList[0]
- this.quickParams.userId = user.userId
- this.quickParams.shopOrderId = Number(this.shopOrderId)
- this.quickParams.quickPayBankNumber = this.defaultCards.quickPayBankNumber
- this.quickParams.quickPayMobile = this.defaultCards.quickPayMobile
- this.quickParams.quickPayBankExpireTime = this.defaultCards.quickPayBankExpireTime ? this.defaultCards.quickPayBankExpireTime : ''
- this.quickParams.quickPayUserName = this.defaultCards.quickPayUserName
- this.quickParams.idCard = this.defaultCards.idCard
- this.quickParams.cvvCode = this.defaultCards.cvvCode ? this.defaultCards.cvvCode : ''
- } catch (error) {
- console.log(error)
- }
- },
- handleAddCard(index) {
- //跳转添加卡号支付
- //quickPayFlag 1普通订单 ,payAmount 支付金额,单位元,shopOrderId 子订单Id
- const data = {
- payData: {
- quickPayFlag: 1,
- payAmount: this.payAmount,
- shopOrderId: Number(this.shopOrderId)
- },
- orderId: this.orderId
- }
- this.$api.navigateTo(`/pages/user/pay/card-comfirm?type=${index}&data=${JSON.stringify(data)}`)
- },
- buttonSubMit() {
- if(this.isSubLoding){ return }
- switch (this.tabCurrentIndex) {
- case 0: // 微信支付
- this.MiniWxPayFor()
- break
- case 1: // 企业网银
- this.payType = '1'
- this.handlePayOrderPayLink()
- break
- case 2: // 个人网银
- this.payType = '2'
- this.handlePayOrderPayLink()
- break
- case 3: // 快捷支付
- this.orderPayQuickPay()
- break
- }
- this.isSubLoding = true
- },
- async orderPayQuickPay() {
- //快捷支付
- try {
- this.quickParams.payAmount = this.payAmount
- console.log('payAmount',this.quickParams.payAmount)
- const res = await this.PayService.orderPayQuickPay(this.quickParams)
- const data = {
- params: this.quickParams,
- payData: res.data,
- orderId: this.orderId,
- payAmount: this.payAmount
- }
- this.isSubLoding = false
- this.$api.navigateTo(
- `/pages/user/pay/card-comfirm-sub?type=3&data=${JSON.stringify(data)}`
- )
- } catch (error) {
- this.$util.msg(error.msg, 2000)
- this.isSubLoding = false
- }
- },
- async handlePayOrderPayLink() {
- // 企业网银 个人网银
- if (this.payAmount == 0) {
- this.$util.msg('请输入本次支付的金额', 2000)
- return
- }
- if (this.payAmount <= 10) {
- this.$util.msg('网银支付的金额必须大于¥10.00', 2000)
- return
- }
- if (this.payType == '1') {
- if (this.payAmount != this.obligation) {
- this.contentModalText = '企业网银支付每次收取的手续费较高,建议一次性全额付款。'
- this.modal = true
- return
- }
- }
- try {
- const linkParams = {
- unpaidAmount: this.payAmount,
- shopOrderId: this.shopOrderId,
- payType: this.payType
- }
- const res = await this.PayService.PayOrderPayLink(linkParams)
- this.payHttpUrl = res.data
- this.isSubLoding = false
- this.isShowTip = true
- console.log('isShowTip',this.isShowTip)
- } catch (error) {
- console.log(error)
- this.isSubLoding = false
- }
- },
- async MiniWxPayFor() {
- // 微信支付
- if (this.payAmount == 0) {
- this.$util.msg('请输入本次支付的金额', 2000)
- return
- }
- if (this.payAmount * 100 < 2) {
- this.$util.msg('本次支付的金额必须大于¥0.02', 2000)
- return
- }
- // 获取微信code
- const wechatCode = await authorize.getCode('weixin')
- const params = {
- payAmount: this.payAmount,
- payType: 'XCX',
- code: wechatCode,
- shopOrderId: this.shopOrderId
- }
- this.weChatMiniOrderWxPay(params)
- this.isSubLoding = false
- },
- handleClick() {
- this.modal = false
- this.isSubLoding = false
- },
- confirmEvent(value) {
- //点击自定义键盘完成的回调函数
- this.chechValue(value)
- this.showDigitKeyboard = false
- },
- blurInput(e) {
- this.chechValue(e.detail.value)
- },
- focusInput() {
- // this.showDigitKeyboard = true
- },
- hideKeyboard() {
- this.showDigitKeyboard = false
- },
- chechValue(value) {
- let patern = /\d+\.\d+/g
- if (value && value.split('.').length > 2) {
- value = patern.exec(value)
- }
- if (value == '' || value < 0) {
- this.payAmount = this.quickParams.payAmount = ''
- this.balanceAmount = this.obligation
- } else if (value > this.obligation) {
- this.payAmount = this.quickParams.payAmount = this.toFixedFn(this.obligation)
- this.balanceAmount = this.toFixedFn(this.obligation - this.payAmount)
- } else {
- this.payAmount = this.quickParams.payAmount = this.toFixedFn(value)
- this.balanceAmount = this.toFixedFn(this.obligation - this.payAmount)
- }
- },
- hanldNavigateBack() {
- //页面返回
- uni.navigateBack({
- delta: 1
- })
- },
- hideTips() {
- //隐藏弹窗
- this.isShowTip = false
- },
- toFixedFn(text) {
- //处理小数点后两位数
- return Number(text).toFixed(2)
- },
- copyClipboard(data) {
- //复制账号
- thorui.getClipboardData(data, res => {
- if (res) {
- this.$util.msg('已复制', 2000)
- } else {
- this.$util.msg('复制失败', 2000)
- }
- })
- },
- clipboard(data) {
- //复制链接
- console.log('data', data)
- thorui.getClipboardData(data, res => {
- if (res) {
- this.isShowTip = false
- this.$util.msg('已复制', 2000)
- // 友盟埋点收集复制网银链接
- if (process.env.NODE_ENV != 'development') {
- this.$uma.trackEvent('Um_Event_CopyUnionPay', {
- Um_Key_PageName: '网银支付',
- Um_Key_SourcePage: '线上支付',
- Um_Key_PayName: `${this.buttonText}`,
- Um_Key_PayOrderID: `${this.shopOrderId}`
- })
- }
- } else {
- this.$util.msg('复制失败', 2000)
- }
- })
- },
- discard() {
- //丢弃
- }
- },
- onShow() {}
- }
- </script>
- <style lang="scss">
- page {
- height: auto !important;
- background-color: #ffffff;
- }
- .container-cash {
- width: 100%;
- .container-wrapper {
- width: 100%;
- margin: 0 auto;
- .pay-content {
- width: 100%;
- height: 380rpx;
- box-sizing: border-box;
- padding: 38rpx 35rpx 0 35rpx;
- background: url(https://static.caimei365.com/app/mini-mcare/icon/icon_payment@2x.png) no-repeat;
- background-size: cover;
- float: left;
- position: relative;
- .pay-top {
- width: 100%;
- height: auto;
- float: left;
- margin-bottom: 44rpx;
- .pay-paid {
- width: 100%;
- height: auto;
- margin-bottom: 28rpx;
- text {
- line-height: 48rpx;
- text-align: left;
- color: #ffffff;
- width: 100%;
- }
- .txt-m {
- font-size: $font-size-26;
- opacity: 0.7;
- display: inline-block;
- }
- .txt-b {
- font-size: $font-size-48;
- display: inline-block;
- .small {
- font-size: $font-size-32;
- }
- }
- }
- .pay-payd {
- width: 100%;
- height: auto;
- .pay-paids {
- height: auto;
- float: left;
- margin-right: 48rpx;
- text {
- line-height: 48rpx;
- text-align: left;
- color: #ffffff;
- }
- .txt-m {
- width: 100%;
- display: inline-block;
- font-size: $font-size-26;
- opacity: 0.7;
- }
- .txt-b {
- width: 100%;
- display: inline-block;
- font-size: $font-size-32;
- }
- }
- }
- }
- .pay-bot {
- width: 680rpx;
- height: 240rpx;
- padding: 24rpx;
- box-sizing: border-box;
- background: #ffffff;
- border-radius: 28rpx;
- box-shadow: 0 2px 6px rgba(255, 77, 0, 0.17);
- position: absolute;
- bottom: -150rpx;
- left: 35rpx;
- .bot-title {
- line-height: 36rpx;
- font-size: $font-size-26;
- color: #666666;
- }
- .bot-input {
- width: 100%;
- height: 66rpx;
- margin: 15rpx 0;
- border-bottom: 1px solid #ebebeb;
- line-height: 66rpx;
- font-size: $font-size-32;
- color: $text-color;
- text {
- display: block;
- float: left;
- }
- .input {
- font-size: $font-size-40;
- width: 500rpx;
- height: 66rpx;
- padding: 0 10rpx;
- line-height: 66rpx;
- float: left;
- .none {
- color: $text-color;
- opacity: 0.3;
- }
- .text {
- color: $text-color;
- }
- }
- .placeholder {
- font-size: $font-size-26;
- }
- }
- .bot-resid {
- line-height: 36rpx;
- font-size: $font-size-26;
- margin-top: 24rpx;
- .bot-resid-le {
- display: inline-block;
- float: left;
- color: #F85050;
- }
- .bot-resid-ri {
- display: inline-block;
- float: right;
- color: #999999;
- .iconfont {
- font-size: 32rpx;
- }
- }
- }
- }
- }
- .pay-checked {
- width: 100%;
- height: auto;
- float: left;
- box-sizing: border-box;
- padding: 0 0 32rpx 0;
- margin-top: 180rpx;
- .pay-card-main {
- width: 100%;
- height: auto;
- float: left;
- border-top: 12px solid #f7f7f7;
- border-bottom: 12px solid #f7f7f7;
- box-sizing: border-box;
- padding: 0 32rpx;
- .pay-item-cell {
- height: 100rpx;
- box-sizing: border-box;
- padding: 26rpx 0;
- background-color: #ffffff;
- border-bottom: 1px solid #e1e1e1;
- &.add {
- border-bottom: none;
- padding-left: 66rpx;
- }
- .item-icon {
- width: 48rpx;
- height: 48rpx;
- margin-right: 20rpx;
- float: left;
- image {
- width: 48rpx;
- height: 48rpx;
- display: block;
- }
- }
- .item-texts {
- line-height: 48rpx;
- font-size: $font-size-28;
- color: $text-color;
- float: left;
- &.add {
- font-weight: bold;
- }
- }
- .item-checked {
- width: 48rpx;
- height: 48rpx;
- float: right;
- text-align: center;
- line-height: 48rpx;
- font-size: $font-size-40;
- color: #ffffff;
- .icon-weixuanze {
- color: #b2b2b2;
- }
- .icon-yixuanze3 {
- color: #F3B574;
- }
- .icon-xiangyou {
- color: #b2b2b2;
- }
- }
- }
- }
- .pay-item {
- width: 100%;
- height: auto;
- box-sizing: border-box;
- float: left;
- padding: 0 32rpx;
- .pay-item-cell {
- height: 100rpx;
- box-sizing: border-box;
- padding: 26rpx 0;
- background-color: #ffffff;
- border-bottom: 1px solid #e1e1e1;
- .item-icon {
- width: 48rpx;
- height: 48rpx;
- float: left;
- text-align: center;
- line-height: 48rpx;
- margin-right: 20rpx;
- .iconfont {
- font-size: 48rpx;
- }
- .icon-weixinzhifu {
- color: #0abc64;
- }
- .icon-gerenwangyinzhifu {
- color: #16afe8;
- }
- .icon-qiyewangyinzhifu {
- color: #007acc;
- }
- }
- .item-texts {
- line-height: 48rpx;
- font-size: $font-size-28;
- color: $text-color;
- float: left;
- &.add {
- font-weight: bold;
- }
- }
- .item-checked {
- width: 48rpx;
- height: 48rpx;
- float: right;
- text-align: center;
- line-height: 48rpx;
- font-size: $font-size-40;
- color: #ffffff;
- .icon-weixuanze {
- color: #b2b2b2;
- }
- .icon-yixuanze3 {
- color: #F3B574;
- }
- .icon-xiangyou {
- color: #b2b2b2;
- }
- }
- }
- }
- }
- .pay-statustext {
- width: 100%;
- height: auto;
- float: left;
- margin-top: 40rpx;
- padding-bottom: 160rpx;
- .pay-statustext-inner {
- width: 662rpx;
- height: 80rpx;
- margin: 0 auto;
- border: 1px solid #cccccc;
- padding: 20rpx;
- border-radius: 8rpx;
- .pay-icon {
- width: 62rpx;
- height: 100%;
- float: left;
- text-align: center;
- .iconfont {
- color: #999999;
- font-size: $font-size-36;
- line-height: 20rpx;
- }
- }
- .pay-text {
- width: 560rpx;
- height: 100%;
- float: left;
- line-height: 40rpx;
- font-size: $font-size-24;
- color: #999999;
- text-align: justify;
- }
- }
- }
- }
- .pay-button {
- width: 600rpx;
- background-color: #ffffff;
- position: fixed;
- height: 88rpx;
- padding: 24rpx 75rpx 0 75rpx;
- bottom: 0;
- .btn {
- width: 100%;
- height: 88rpx;
- border-radius: 44rpx;
- font-size: $font-size-28;
- line-height: 88rpx;
- color: #ffffff;
- margin: 0 auto;
- text-align: center;
- background: $btn-confirm;
- &.disabled{
- background: #e1e1e1 !important;
- }
- }
- }
- }
- .freight-alert {
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.5);
- position: fixed;
- top: 0;
- left: 0;
- z-index: 8888;
- transition: all 0.4s;
- &.none {
- display: none;
- }
- &.show {
- display: block;
- }
- .content {
- width: 422rpx;
- height: 434rpx;
- position: absolute;
- background: $bg-color;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- margin: auto;
- padding: 20rpx 32rpx;
- border-radius: 12rpx;
- .title {
- width: 100%;
- height: 68rpx;
- line-height: 68rpx;
- font-size: $font-size-28;
- color: $text-color;
- text-align: center;
- position: relative;
- .icon-iconfontguanbi {
- width: 68rpx;
- height: 68rpx;
- text-align: center;
- line-height: 68rpx;
- position: absolute;
- right: 0;
- top: 0;
- font-size: $font-size-36;
- color: #999999;
- }
- }
- .text-content {
- width: 100%;
- height: auto;
- .text {
- padding: 20rpx 0 0 0;
- line-height: 44rpx;
- font-size: $font-size-26;
- color: #666666;
- text-align: justify;
- }
- .text-p {
- width: 100%;
- line-height: 44rpx;
- font-size: $font-size-26;
- color: $color-system;
- text-align: left;
- text-overflow: ellipsis;
- display: -webkit-box;
- word-break: break-all;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 1;
- overflow: hidden;
- }
- .text-b {
- line-height: 44rpx;
- font-size: $font-size-24;
- color: #999999;
- text-align: left;
- }
- }
- .text-button {
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- background: $btn-confirm;
- font-size: $font-size-28;
- border-radius: 44rpx;
- color: #ffffff;
- text-align: center;
- margin-top: 20rpx;
- }
- }
- }
- .tui-prompt-title {
- width: 100%;
- height: 44rpx;
- line-height: 44rpx;
- padding: 20rpx 0;
- text-align: center;
- color: #333333;
- border-bottom: 1px solid #e2e7ef;
- }
- .tui-prompt-text {
- padding-top: 20rpx;
- .tui-prompt-tips {
- width: 100%;
- line-height: 36rpx;
- font-size: $font-size-22;
- color: #F3B574;
- text-align: justify;
- margin-bottom: 24rpx;
- }
- .tui-prompt-item {
- width: 100%;
- line-height: 60rpx;
- color: #333333;
- font-size: $font-size-26;
- .text {
- font-weight: bold;
- }
- .copy {
- height: 38rpx;
- box-sizing: border-box;
- padding: 0 24rpx;
- text-align: center;
- line-height: 36rpx;
- display: inline-block;
- .iconfont {
- font-size: $font-size-40;
- color: #666666;
- }
- }
- }
- }
- .tui-prompt-flex {
- width: 100%;
- height: auto;
- margin-top: 20rpx;
- box-sizing: border-box;
- padding: 0 35rpx;
- .btn {
- width: 100%;
- line-height: 84rpx;
- font-size: $font-size-26;
- text-align: center;
- color: #ffffff;
- border-radius: 44rpx;
- margin: 20rpx 0;
- &.btn-cancel {
- background: #ffffff;
- color: #333333;
- border: 1px solid #979797;
- }
- &.btn-confirm {
- background: $btn-confirm;
- }
- }
- }
- </style>
|