Commit 4c385ae2 authored by 黄奎's avatar 黄奎

修改弹窗返回

parent b6678f5f
<template> <template>
<view> <view>
<u-popup close-icon-color="red" v-model="show" mode="center" :mask-close-able="false" length="auto" <u-popup v-if="pay" close-icon-color="red" v-model="show" mode="center" :mask-close-able="false" length="auto"
:closeable="true" close-icon="close" :border-radius="20" :z-index="9999"> :closeable="true" close-icon="close" :border-radius="20" :z-index="9999">
<view style="background:#fff;width:550rpx;padding:40rpx;border-radius:20px"> <view style="background:#fff;width:550rpx;padding:40rpx;border-radius:20px">
<u-icon @click="closePay" name="close" style="float:right;font-size:40rpx"></u-icon> <u-icon @click="closePay" name="close" style="float:right;font-size:40rpx"></u-icon>
<p style="text-align: center;font-size: 26rpx;">支付方式</p> <p style="text-align: center;font-size: 26rpx;">支付方式</p>
<p style="font-size: 36rpx;font-weight: 700;text-align: center;margin:30px 0"> <p style="font-size: 36rpx;font-weight: 700;text-align: center;margin:30px 0">
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
:style="{'color':payType==item.Id?'red':''}"></u-icon> :style="{'color':payType==item.Id?'red':''}"></u-icon>
</view> </view>
</view> </view>
<view style="margin-top:30px"> <view style="margin-top:30px">
<u-button @click="Pay" type="error" shape="circle" :loading="loading">支付</u-button> <u-button @click="Pay" type="error" shape="circle" :loading="loading">支付</u-button>
</view> </view>
...@@ -32,6 +31,7 @@ ...@@ -32,6 +31,7 @@
props: ['payInfo', 'isAlipay', 'StuId', 'TeacherIds'], props: ['payInfo', 'isAlipay', 'StuId', 'TeacherIds'],
data() { data() {
return { return {
pay:true,
u: {}, u: {},
loading: false, loading: false,
show: true, show: true,
...@@ -119,18 +119,19 @@ ...@@ -119,18 +119,19 @@
"signType": payData.signType, //微信签名方式: "signType": payData.signType, //微信签名方式:
"paySign": payData.paySign, //微信签名 "paySign": payData.paySign, //微信签名
'success': function(res) { 'success': function(res) {
console.log(that.u,'===')
uni.hideLoading() uni.hideLoading()
if (that.u && that.u.TenantId == 27) { if (that.u && that.u.TenantId == 27) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/order-submit/pay-success2?payInfo=${JSON.stringify(that.payInfo)}&StuId=${that.StuId}&TeacherIds=${that.TeacherIds}` url: `/pages/order-submit/pay-success2?payInfo=${JSON.stringify(that.payInfo)}&StuId=${that.StuId}&TeacherIds=${that.TeacherIds}`
// url: '/pages/order-submit/pay-success2?payInfo='+JSON.stringify(that.payInfo) // url: '/pages/order-submit/pay-success2?payInfo='+JSON.stringify(that.payInfo)
}); });
that.pay = false
} else { } else {
uni.navigateTo({ uni.navigateTo({
url: '/pages/order-submit/pay-success?payInfo=' + JSON.stringify(that url: '/pages/order-submit/pay-success?payInfo=' + JSON.stringify(that
.payInfo) .payInfo)
}); });
that.pay = false
} }
// uni.showToast({ // uni.showToast({
// title:'支付成功' // title:'支付成功'
...@@ -142,6 +143,7 @@ ...@@ -142,6 +143,7 @@
// url: `/pages/order-submit/pay-success2?payInfo=${JSON.stringify(that.payInfo)}&StuId=${that.StuId}&TeacherIds=${that.TeacherIds}` // url: `/pages/order-submit/pay-success2?payInfo=${JSON.stringify(that.payInfo)}&StuId=${that.StuId}&TeacherIds=${that.TeacherIds}`
url: '/pages/order/index/index?status=1' url: '/pages/order/index/index?status=1'
}); });
that.pay = false
}, },
'complete': function(res) { 'complete': function(res) {
// uni.showToast({ // uni.showToast({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment