uniapp 支付回调处理

pull/2/head
Jruome 2023-05-19 17:56:58 +08:00
parent d75d571637
commit c4a02b30ba
6 changed files with 29 additions and 22 deletions

View File

@ -31,15 +31,14 @@
id: 0 id: 0
}, },
onLaunch: function(option) { onLaunch: function(option) {
const res = memberGradeInfo().then((res) =>{ // const res = memberGradeInfo().then((res) =>{
if(res.data.some((item) => !!parseInt(item.isExist))){ // if(res.data.some((item) => !!parseInt(item.isExist))){
uni.setTabBarItem({ // uni.setTabBarItem({
index: 2, // index: 2,
text: 'text', // pagePath: '/pages/member_equity/index'
pagePath: '/pages/member_equity/index' // })
}) // }
} // })
})
let that = this; let that = this;
// #ifdef H5 // #ifdef H5

View File

@ -88,9 +88,10 @@
}, },
function(res) { function(res) {
if (res.err_msg == "get_brand_wcpay_request:ok") { if (res.err_msg == "get_brand_wcpay_request:ok") {
uni.switchTab({ window.location.reload()
url: '/pages/member_application/index' // uni.switchTab({
}) // url: '/pages/member_application/index'
// })
} }
}) })
} }

View File

@ -101,6 +101,15 @@
}, },
async onLoad() { async onLoad() {
const res = await memberGradeInfo() const res = await memberGradeInfo()
if(res.data.some((item) => !!parseInt(item.isExist))){
uni.setTabBarItem({
index: 2,
pagePath: '/pages/member_equity/index'
})
uni.switchTab({
url:'/pages/member_equity/index'
})
}
this.memberData = res.data this.memberData = res.data
}, },
methods: { methods: {
@ -235,13 +244,12 @@
.box-title { .box-title {
position: absolute; position: absolute;
top: -5.5%; top: -37rpx;
left: -203rpx; left: -203rpx;
margin-left: 50%; margin-left: 50%;
image { image {
width: 406rpx; width: 406rpx;
height: 87rpx; height: 88rpx;
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
@ -399,13 +407,13 @@
.box-title { .box-title {
position: absolute; position: absolute;
top: -9%; top: -37rpx;
left: -203rpx; left: -203rpx;
margin-left: 50%; margin-left: 50%;
image { image {
width: 406rpx; width: 406rpx;
height: 87rpx; height: 88rpx;
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -247,13 +247,13 @@
.box-title { .box-title {
position: absolute; position: absolute;
top: -5.5%; top: -37rpx;
left: -203rpx; left: -203rpx;
margin-left: 50%; margin-left: 50%;
image { image {
width: 406rpx; width: 406rpx;
height: 87rpx; height: 88rpx;
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -44,7 +44,6 @@
} }
}) })
this.memberData = arr this.memberData = arr
console.log(this.memberData)
}, },
watch:{ watch:{
keyword :Debounce (function (){ keyword :Debounce (function (){

View File

@ -223,13 +223,13 @@ import store from '@/store/index';
.box-title { .box-title {
position: absolute; position: absolute;
top: -5.5%; top: -37rpx;
left: -203rpx; left: -203rpx;
margin-left: 50%; margin-left: 50%;
image { image {
width: 406rpx; width: 406rpx;
height: 87rpx; height: 88rpx;
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;