| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044 |
- <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
- } 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: #FF233C;
- 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: #FF233C;
- border: 1rpx solid #FF233C;
- 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>
|