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

修改弹窗返回

parent b6678f5f
<template>
<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">
<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>
......@@ -18,7 +18,6 @@
:style="{'color':payType==item.Id?'red':''}"></u-icon>
</view>
</view>
<view style="margin-top:30px">
<u-button @click="Pay" type="error" shape="circle" :loading="loading">支付</u-button>
</view>
......@@ -32,6 +31,7 @@
props: ['payInfo', 'isAlipay', 'StuId', 'TeacherIds'],
data() {
return {
pay:true,
u: {},
loading: false,
show: true,
......@@ -119,18 +119,19 @@
"signType": payData.signType, //微信签名方式:
"paySign": payData.paySign, //微信签名
'success': function(res) {
console.log(that.u,'===')
uni.hideLoading()
if (that.u && that.u.TenantId == 27) {
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)
});
that.pay = false
} else {
uni.navigateTo({
url: '/pages/order-submit/pay-success?payInfo=' + JSON.stringify(that
.payInfo)
});
that.pay = false
}
// uni.showToast({
// title:'支付成功'
......@@ -142,6 +143,7 @@
// url: `/pages/order-submit/pay-success2?payInfo=${JSON.stringify(that.payInfo)}&StuId=${that.StuId}&TeacherIds=${that.TeacherIds}`
url: '/pages/order/index/index?status=1'
});
that.pay = false
},
'complete': function(res) {
// 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