| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045 |
- <template>
- <view class="content">
- <u-navbar title="去支付" :autoBack="true"> </u-navbar>
- <view class="inner" v-if="order">
- <!-- 时间、价格 -->
- <view class="time-price">
- <text class="time">请在{{payLimitTime}}前完成支付</text>
- <view class="price-box">
- <text class="unit">¥</text>
- <text class="num">{{payMoney.toFixed(2)}}</text>
- </view>
- <text class="desc" v-if="payType==2">代收金额{{payDelivery.toFixed(2)}},请您在收到快递后支付尾款给快递人员。</text>
- <text class="desc" v-if="payType==3">货到付款金额{{payDelivery.toFixed(2)}},请您在收到快递后支付给快递人员。</text>
- </view>
- <!-- 支付方式 -->
- <view class="pay-type">
- <view class="title">支付方式</view>
- <!-- 改价订单只能选择微信支付和物流代收 -->
- <radio-group @change="payTypeChange" v-if="order.isEditMoney!=null&&order.isEditMoney==1">
- <view class="item">
- <view class="left">
- <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/wecha_pay.png"
- mode=""></image>
- <text class="text">微信支付</text>
- </view>
- <label>
- <radio :value="1" :checked="order.payType=='1'" />
- </label>
- </view>
- <view class="item">
- <view class="left">
- <image src="/static/images/zfb.png" mode=""></image>
- <text class="text">支付宝支付</text>
- </view>
- <label>
- <radio :value="99" :checked="order.payType=='99'" />
- </label>
- </view>
- <view class="item">
- <view class="left">
- <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/pay_de.png" mode="">
- </image>
- <text class="text">物流代收</text>
- </view>
- <label>
- <radio :value="2" :checked="order.payType=='2'" />
- </label>
- </view>
- </radio-group>
- <radio-group @change="payTypeChange" v-else-if="order.orderCreateType!=null&& order.orderCreateType==3">
- <view class="item">
- <view class="left">
- <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/wecha_pay.png"
- mode=""></image>
- <text class="text">微信支付</text>
- </view>
- <label>
- <radio :value="1" :checked="order.payType=='1'" />
- </label>
- </view>
- <view class="item">
- <view class="left">
- <image src="/static/images/zfb.png" mode=""></image>
- <text class="text">支付宝支付</text>
- </view>
- <label>
- <radio :value="99" :checked="order.payType=='99'" />
- </label>
- </view>
- <view class="item">
- <view class="left">
- <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/pay_de.png" mode="">
- </image>
- <text class="text">物流代收</text>
- </view>
- <label>
- <radio :value="2" :checked="order.payType=='2'" />
- </label>
- </view>
- <!-- <view class="item" v-if="user!=null&&user.level==1 "> -->
- <view class="item">
- <view class="left">
- <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/pay_1.png" mode="">
- </image>
- <text class="text">货到付款</text>
- </view>
- <label>
- <radio :value="3" :checked="order.payType=='3'" />
- </label>
- </view>
- </radio-group>
- <radio-group @change="payTypeChange" v-else-if="order.orderCreateType!=null&& order.orderCreateType==2">
- <view class="item" v-if="payType==1||payType==4">
- <view class="left">
- <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/wecha_pay.png"
- mode=""></image>
- <text class="text">微信支付</text>
- </view>
- <label>
- <radio :value="1" :checked="order.payType=='1'" />
- </label>
- </view>
- <view class="item">
- <view class="left">
- <image src="/static/images/zfb.png" mode=""></image>
- <text class="text">支付宝支付</text>
- </view>
- <label>
- <radio :value="99" :checked="order.payType=='99'" />
- </label>
- </view>
- <view class="item" v-if="payType==2||payType==4">
- <view class="left">
- <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/pay_de.png" mode="">
- </image>
- <text class="text">物流代收</text>
- </view>
- <label>
- <radio :value="2" :checked="order.payType=='2'" />
- </label>
- </view>
- <!-- <view class="item" v-if="user!=null&&user.level==1 "> -->
- <view class="item" v-if="payType==1||payType==4">
- <view class="left">
- <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/pay_1.png" mode="">
- </image>
- <text class="text">货到付款</text>
- </view>
- <label>
- <radio :value="3" :checked="order.payType=='3'" />
- </label>
- </view>
- </radio-group>
- <radio-group @change="payTypeChange"
- v-else-if="order.orderCreateType!=null&&(order.orderCreateType==1)">
- <view class="item">
- <view class="left">
- <image src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/wecha_pay.png"
- mode=""></image>
- <text class="text">微信支付</text>
- </view>
- <label>
- <radio :value="1" checked />
- </label>
- </view>
- <view class="item">
- <view class="left">
- <image src="/static/images/zfb.png" mode=""></image>
- <text class="text">支付宝支付</text>
- </view>
- <label>
- <radio :value="99" :checked="order.payType=='99'" />
- </label>
- </view>
- </radio-group>
- </view>
- <!-- 订单详情查看 -->
- <view class="order-info">
- <view class="title">订单信息</view>
- <view class="item">
- <text class="label">订单编号</text>
- <view class="sn-box">
- <text class="text">{{order.orderCode}}</text>
- <view class="copy-btn" @click="copyOrderSn(order.orderCode)">复制</view>
- </view>
- </view>
- <view class="item">
- <text class="label">下单时间</text>
- <text class="text">{{order.createTime}}</text>
- </view>
- <view class="item">
- <text class="label">订单金额</text>
- <text class="text" v-if="order!=null">{{order.payPrice.toFixed(2)}}</text>
- </view>
- <!-- <view class="item">
- <text class="label">支付方式</text>
- <text class="text">微信支付</text>
- </view> -->
- </view>
- </view>
- <view class="btn-box">
- <view class="btn" @click="payOrder()">去支付</view>
- <!-- <view class="other-btn" >
- 亲友代付
- <button class="share" data-name="shareBtn" open-type="share">分享</button>
- </view> -->
- </view>
- <!-- <ykscreenRecord></ykscreenRecord> -->
- <uni-popup ref="popPayType" type="bottom" borderRadius="10rpx 10rpx 0px 0px">
- <view class="pay-box">
- <view class="title">请选择支付方式</view>
- <view class="pay-list">
- <!-- <view class="pay-item alipay" @click="doAlipay()">
- <image src="/static/images/alipay.png"></image>
- <view class="name">支付宝支付</view>
- </view> -->
- <view class="pay-item wx" @click="doWxPay()">
- <image src="/static/images/wx.png"></image>
- <view class="name">微信支付</view>
- </view>
- </view>
- </view>
- </uni-popup>
- <uni-popup ref="popTip" type="dialog">
- <uni-popup-dialog cancelText="支付失败" confirmText="支付成功" mode="base" content="是否已支付成功?" title="提示"
- :duration="2000" :before-close="true" @close="confirmTip" @confirm="confirmTip"></uni-popup-dialog>
- </uni-popup>
- </view>
- </template>
- <script>
- import {
- getUserInfo
- } from '@/api/user'
- import {
- getStoreConfig
- } from '@/api/common'
- import {
- editPayType,
- pay,
- getStoreOrderById,
- orderBindUser,
- aliPayment,
- wxPayment,
- } from '@/api/storeOrder'
- import {
- H5WxPayment
- } from '@/api/packageOrder'
- import ykscreenRecord from "@/components/yk-screenRecord/yk-screenRecord.vue"
- export default {
- components: {
- ykscreenRecord
- },
- data() {
- return {
- orderId: null,
- payDelivery: 0,
- payMoney: 0,
- config: null,
- payType: 1,
- payLimitTime: null,
- order: null,
- user: null,
- }
- },
- onLoad(option) {
- // this.orderId = JSON.parse(option.orderId);
- this.orderId = option.orderId
- // this.orderBindUser(this.orderId)
- this.getStoreOrderById();
- this.getStoreConfig();
- this.getUserInfo();
- },
- methods: {
- payFun() {
- var data = {
- orderId: this.orderId
- };
- var that = this;
- uni.showLoading();
- getStoreOrderById(data).then(
- res => {
- this.$refs.popTip.close();
- uni.hideLoading();
- if (res.order.paid == 1) {
- uni.redirectTo({
- url: "/pages_user/user/storeOrderDetail?id=" + that.orderId
- })
- } else {
- uni.showToast({
- title: '未支付成功',
- icon: 'none'
- });
- }
- },
- rej => {}
- );
- },
- confirmTip() {
- uni.showLoading({
- title: "请稍侯...",
- mask: true
- });
- setTimeout(() => {
- uni.hideLoading();
- this.payFun();
- }, 2000);
- },
- doWxPay() {
- var that = this;
- var data = {
- orderId: this.orderId,
- };
- // #ifdef H5
- if (String(navigator.userAgent.toLowerCase().match(/MicroMessenger/i)) === "micromessenger") {
- uni.showLoading();
- H5WxPayment(data).then(
- res => {
- uni.hideLoading()
- if (res.code == 200) {
- if (res.type == "tz") {
- window.location.href = res.data.body.url
- // uni.setStorageSync("h5PayUrl",res.data.body.url);
- // console.log(res.data.body.url)
- // uni.redirectTo({
- // url:"/pages/store/payH5"
- // })
- } else if (res.type == 'hf') {
- var payObj = JSON.parse(res.data.pay_info);
- jweixin.config({
- debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
- appId: payObj.appId, // 必填,公众号的唯一标识
- timestamp: payObj.timeStamp, // 必填,生成签名的时间戳
- nonceStr: payObj.nonceStr, // 必填,生成签名的随机串
- signature: payObj.paySign, // 必填,签名
- jsApiList: ['chooseWXPay'] // 必填,需要使用的JS接口列表
- })
- jweixin.ready(function() {
- jweixin.chooseWXPay({
- timestamp: payObj.timeStamp, // 时间戳
- nonceStr: payObj.nonceStr, // 随机数
- package: payObj.package, //
- signType: payObj.signType,
- paySign: payObj.paySign, // 签名
- success: function() {
- uni.showToast({
- title: '支付成功'
- });
- setTimeout(() => {
- uni.navigateTo({
- url: `/pages/store/packageOrderPaySuccess?orderId=${that.orderId}`
- });
- }, 2000);
- },
- cancel: function() {
- uni.showToast({
- title: '取消支付',
- icon: 'none'
- });
- },
- fail: function(res) {
- uni.showToast({
- title: '支付失败' + JSON.stringify(res),
- icon: 'none'
- });
- }
- })
- })
- }
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg,
- });
- }
- },
- rej => {}
- );
- } else {
- uni.showToast({
- title: '请在微信内打开',
- icon: 'none'
- })
- }
- // #endif
- // #ifdef APP-PLUS
- plus.share.getServices(function(res) {
- var sweixin = null;
- for (var i = 0; i < res.length; i++) {
- var t = res[i];
- if (t.id == 'weixin') {
- sweixin = t;
- }
- }
- if (sweixin) {
- console.log('调起小程序')
- // that.$refs.popPayType.close()
- that.$refs.popTip.open()
- //唤起微信跳转小程序
- sweixin.launchMiniProgram({
- // id: "gh_0b4b9e32adba",
- id: getApp().globalData.miniprogamId,
- // path:'pages_order/packagePayment?orderId='+that.orderId+"&payMethod=app",
- path: 'pages/shopping/paymentOrder?orderId=' + that.orderId + "&payMethod=app",
- type: 0
- }, function() {
- console.log("微信唤起成功");
- return true;
- }, function(e) {
- console.log("微信唤起失败", e);
- uni.showToast({
- title: '微信唤起失败,请检查是否有微信应用',
- icon: 'none'
- })
- return false;
- })
- } else {
- uni.showToast({
- title: '微信唤起失败,请检查是否有微信应用',
- icon: 'none',
- duration: 3000
- });
- return false;
- }
- }, function(res) {
- console.log(JSON.stringify(res));
- });
- // #endif
- },
- orderBindUser(orderId) {
- uni.showLoading({
- title: '加载中...'
- })
- orderBindUser({
- orderId: orderId
- }).then(res => {
- uni.hideLoading()
- if (res.code == 200) {
- this.getStoreOrderById();
- this.getStoreConfig();
- this.getUserInfo();
- // uni.showShareMenu({
- // withShareTicket:true,
- // //小程序的原生菜单中显示分享按钮,才能够让发送给朋友与分享到朋友圈两个按钮可以点击
- // menus:["shareAppMessage"] //不设置默认发送给朋友
- // })
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg,
- });
- }
- }).catch(() => {
- uni.hideLoading()
- });
- },
- getUserInfo() {
- getUserInfo().then(
- res => {
- if (res.code == 200) {
- if (res.user != null) {
- this.user = res.user;
- }
- } else {
- uni.showToast({
- icon: 'none',
- title: "请求失败",
- });
- }
- },
- rej => {}
- );
- },
- getStoreConfig() {
- getStoreConfig().then(
- res => {
- if (res.code == 200) {
- this.config = res.data
- console.log(this.config);
- }
- },
- rej => {}
- );
- },
- payTypeChange(e) {
- this.editPayType(e.detail.value)
- },
- copyOrderSn(text) {
- // 复制方法
- uni.setClipboardData({
- data: text,
- success: () => {
- uni.showToast({
- title: '内容已成功复制到剪切板',
- icon: 'none'
- })
- }
- });
- },
- getStoreOrderById() {
- var data = {
- orderId: this.orderId
- };
- var that = this;
- uni.showLoading();
- getStoreOrderById(data).then(
- res => {
- if (res.code == 200) {
- console.log(res);
- uni.hideLoading();
- that.order = res.order;
- that.payLimitTime = res.payLimitTime;
- //套餐订单处理
- if (res.productPackage != null) {
- this.payType = res.productPackage.payType;
- console.log(this.payType)
- if (this.order.payType == 4) {
- this.order.payType = 1;
- }
- }
- this.editPayType(this.order.payType)
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg,
- });
- }
- },
- rej => {}
- );
- },
- editPayType(payType) {
- var data = {
- orderId: this.orderId,
- payType: payType
- };
- var that = this;
- uni.showLoading();
- editPayType(data).then(
- res => {
- if (res.code == 200) {
- console.log(res);
- uni.hideLoading();
- that.order = res.order;
- //this.payType=this.order.payType
- this.payMoney = this.order.payMoney;
- this.payDelivery = this.order.payDelivery;
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg,
- });
- }
- },
- rej => {}
- );
- },
- otherPayOrder() {
- uni.navigateTo({
- url: '/pages_user/user/otherPaymentOrder?orderId=' + this.orderId
- })
- },
- doWxPay() {
- var that = this;
- var data = {
- orderId: this.orderId,
- };
- // #ifdef H5
- if (String(navigator.userAgent.toLowerCase().match(/MicroMessenger/i)) === "micromessenger") {
- uni.showLoading();
- H5WxPayment(data).then(
- res => {
- uni.hideLoading()
- if (res.code == 200) {
- if (res.type == "tz") {
- window.location.href = res.data.body.url
- // uni.setStorageSync("h5PayUrl",res.data.body.url);
- // console.log(res.data.body.url)
- // uni.redirectTo({
- // url:"/pages/store/payH5"
- // })
- } else if (res.type == 'hf') {
- var payObj = JSON.parse(res.data.pay_info);
- jweixin.config({
- debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
- appId: payObj.appId, // 必填,公众号的唯一标识
- timestamp: payObj.timeStamp, // 必填,生成签名的时间戳
- nonceStr: payObj.nonceStr, // 必填,生成签名的随机串
- signature: payObj.paySign, // 必填,签名
- jsApiList: ['chooseWXPay'] // 必填,需要使用的JS接口列表
- })
- jweixin.ready(function() {
- jweixin.chooseWXPay({
- timestamp: payObj.timeStamp, // 时间戳
- nonceStr: payObj.nonceStr, // 随机数
- package: payObj.package, //
- signType: payObj.signType,
- paySign: payObj.paySign, // 签名
- success: function() {
- uni.showToast({
- title: '支付成功'
- });
- setTimeout(() => {
- uni.navigateTo({
- url: `/pages/store/packageOrderPaySuccess?orderId=${that.orderId}`
- });
- }, 2000);
- },
- cancel: function() {
- uni.showToast({
- title: '取消支付',
- icon: 'none'
- });
- },
- fail: function(res) {
- uni.showToast({
- title: '支付失败' + JSON.stringify(res),
- icon: 'none'
- });
- }
- })
- })
- }
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg,
- });
- }
- },
- rej => {}
- );
- } else {
- uni.showToast({
- title: '请在微信内打开',
- icon: 'none'
- })
- }
- // #endif
- // #ifdef APP-PLUS
- plus.share.getServices(function(res) {
- var sweixin = null;
- for (var i = 0; i < res.length; i++) {
- var t = res[i];
- if (t.id == 'weixin') {
- sweixin = t;
- }
- }
- if (sweixin) {
- console.log('调起小程序')
- // that.$refs.popPayType.close()
- that.$refs.popTip.open()
- //唤起微信跳转小程序
- sweixin.launchMiniProgram({
- // id: "gh_0b4b9e32adba",
- id: getApp().globalData.miniprogamId,
- // path:'pages_order/packagePayment?orderId='+that.orderId+"&payMethod=app",
- path: 'pages/shopping/paymentOrder?orderId=' + that.orderId + "&payMethod=app",
- type: 0
- }, function() {
- console.log("微信唤起成功");
- return true;
- }, function(e) {
- console.log("微信唤起失败", e);
- uni.showToast({
- title: '微信唤起失败,请检查是否有微信应用',
- icon: 'none'
- })
- return false;
- })
- } else {
- uni.showToast({
- title: '微信唤起失败,请检查是否有微信应用',
- icon: 'none',
- duration: 3000
- });
- return false;
- }
- }, function(res) {
- console.log(JSON.stringify(res));
- });
- // #endif
- },
- async payOrder() {
- let params = {
- orderId: this.orderId,
- type: 'store'
- }
- let that = this
- if (this.order.payType == 1) {
- const res = await wxPayment(params)
- if (res.code == 200) {
- let payData = res.data
- uni.requestPayment({
- provider: 'wxpay',
- orderInfo: {
- appid: payData.appId,
- noncestr: payData.nonceStr,
- package: payData.packageValue,
- partnerid: payData.partnerId,
- prepayid: payData.prepayId,
- timestamp: payData.timeStamp,
- sign: payData.sign,
- },
- success: function(res) {
- that.$refs.popTip.open()
- uni.hideLoading();
- // uni.redirectTo({
- // url: `/pages_mall/paymentSuccess?order=${JSON.stringify(that.order)}`
- // })
- },
- fail: function(err) {
- that.$refs.popTip.open()
- uni.showToast({
- icon: 'none',
- title: "支付失败",
- });
- uni.hideLoading();
- },
- });
- }
- } else if (this.order.payType == 99) {
- const res = await aliPayment(params)
- if (res.code == 200) {
- let alipayScheme = ''
- if (uni.getSystemInfoSync().platform == 'android') {
- alipayScheme = `alipays://platformapi/startApp?&saId=10000007&qrcode=${res.data.qr_code}`;
- } else {
- alipayScheme = `alipay://platformapi/startApp?&saId=10000007&qrcode=${res.data.qr_code}`;
- }
- console.log(alipayScheme)
- plus.runtime.openURL(alipayScheme, function(error) {
- console.error('打开支付宝失败: ' + error);
- });
- that.$refs.popTip.open()
- }
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .content {
- height: 100%;
- min-height: 100vh;
- height: 100%;
- display: flex;
- flex-direction: column;
- margin-top: 168rpx;
- box-sizing: border-box;
- // justify-content: space-between;
- .inner {
- padding: 20upx;
- .time-price {
- box-sizing: border-box;
- padding: 20upx 0upx;
- background: #FFFFFF;
- border-radius: 16upx;
- display: flex;
- flex-direction: column;
- align-items: center;
- .time {
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #222222;
- line-height: 1;
- text-align: center;
- }
- .desc {
- margin: 30upx 0upx 15upx;
- font-size: 26upx;
- font-family: PingFang SC;
- color: #999999;
- line-height: 1;
- text-align: center;
- }
- .price-box {
- display: flex;
- align-items: flex-end;
- margin-top: 28upx;
- .unit {
- font-size: 32upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF6633;
- line-height: 1.3;
- margin-right: 10upx;
- }
- .num {
- font-size: 56upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF6633;
- line-height: 1;
- }
- }
- }
- .pay-type {
- box-sizing: border-box;
- background: #FFFFFF;
- border-radius: 16upx;
- margin-top: 20upx;
- padding: 40upx 30upx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- .title {
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 1;
- margin-bottom: 10upx;
- }
- .item {
- padding: 15upx 0upx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .left {
- display: flex;
- align-items: center;
- image {
- width: 44upx;
- height: 44upx;
- margin-right: 20upx;
- }
- .text {
- font-size: 30upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #222222;
- line-height: 1;
- }
- }
- }
- }
- .order-info {
- margin-top: 20upx;
- background: #FFFFFF;
- border-radius: 16upx;
- padding: 40upx 30upx;
- .title {
- font-size: 30upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #222222;
- line-height: 1;
- }
- .item {
- margin-top: 40upx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .label {
- font-size: 26upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- line-height: 1;
- }
- .text {
- font-size: 26upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #222222;
- line-height: 32upx;
- }
- .cont-text {
- font-size: 26upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- .bold {
- color: #111111;
- }
- }
- .sn-box {
- display: flex;
- align-items: center;
- .copy-btn {
- width: 58upx;
- height: 32upx;
- line-height: 32upx;
- text-align: center;
- font-size: 22upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #222222;
- background: #F5F5F5;
- border-radius: 4upx;
- margin-left: 24upx;
- }
- }
- }
- .line {
- width: 100%;
- height: 1px;
- background: #F0F0F0;
- margin-top: 30upx;
- }
- }
- }
- .btn-box {
- height: 242upx;
- background: #FFFFFF;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- .btn {
- width: 91.73%;
- height: 88upx;
- line-height: 88upx;
- font-size: 30upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- text-align: center;
- background: #2583EB;
- border-radius: 44upx;
- margin-bottom: 10rpx;
- }
- .other-btn {
- width: 91.73%;
- height: 88upx;
- line-height: 88upx;
- font-size: 30upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #2583EB;
- border: 1rpx solid #2583EB;
- text-align: center;
- background: #FFFFFF;
- border-radius: 44upx;
- margin-bottom: 10rpx;
- position: relative;
- .share {
- display: inline-block;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- opacity: 0;
- }
- }
- }
- }
- .pay-box {
- border-radius: 30rpx 30rpx 0rpx 0rpx;
- padding: 30rpx;
- height: 350rpx;
- background-color: #fff;
- width: 100%;
- display: flex;
- flex-direction: column;
- text-align: center;
- justify-content: flex-start;
- .title {
- font-size: 32rpx;
- font-weight: bold;
- color: #111;
- }
- .pay-list {
- margin-top: 50rpx;
- display: flex;
- text-align: center;
- justify-content: center;
- .pay-item {
- margin: 10rpx;
- padding: 30rpx 0rpx;
- border-radius: 60rpx;
- background-color: green;
- flex: 1;
- display: flex;
- text-align: center;
- justify-content: center;
- image {
- width: 40rpx;
- height: 40rpx;
- }
- .name {
- margin-left: 15rpx;
- font-size: 32rpx;
- font-weight: bold;
- color: #fff;
- }
- }
- .wx {
- background-color: #09ba08;
- }
- .alipay {
- background-color: #04a9ed;
- }
- }
- }
- </style>
|