修复code二维码长按识别调整开通vip后返回页面
This commit is contained in:
@@ -26,9 +26,13 @@
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
managesCategory().then(res => {
|
managesCategory().then(res => {
|
||||||
console.log(res)
|
|
||||||
this.loding = false
|
this.loding = false
|
||||||
this.category = res
|
this.category = res
|
||||||
|
}).catch(err => {
|
||||||
|
uni.showToast({
|
||||||
|
title: err.message,
|
||||||
|
icon : 'none'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
<swiper class="code-swiper" previous-margin="70rpx" next-margin="70rpx" @change="swiperChange">
|
<swiper class="code-swiper" previous-margin="70rpx" next-margin="70rpx" @change="swiperChange">
|
||||||
<swiper-item v-for="(item, index) in inviteData" :key="index">
|
<swiper-item v-for="(item, index) in inviteData" :key="index">
|
||||||
<view class="code-item">
|
<view class="code-item">
|
||||||
|
<view class="code-lay"></view>
|
||||||
<image class="code-back-image" :src="item.cover" mode="aspectFill"></image>
|
<image class="code-back-image" :src="item.cover" mode="aspectFill"></image>
|
||||||
<view class="codDate">
|
<view class="codDate">
|
||||||
<view class="codDate-year">
|
<view class="codDate-year">
|
||||||
@@ -315,6 +316,12 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 $padding/2;
|
padding: 0 $padding/2;
|
||||||
|
.code-lay{
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
.code-back-image{
|
.code-back-image{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -236,12 +236,15 @@ export default {
|
|||||||
openid: this.$store.getters.getCode
|
openid: this.$store.getters.getCode
|
||||||
}).then(payConfig => {
|
}).then(payConfig => {
|
||||||
wx.chooseWXPay({...payConfig,
|
wx.chooseWXPay({...payConfig,
|
||||||
success: ()=> {
|
success() {
|
||||||
uni.showToast({
|
uni.showModal({
|
||||||
title: '支付成功',
|
title : '提示',
|
||||||
icon: "success"
|
content : '支付成功,恭喜您成功开通',
|
||||||
|
cancelColor: '#8b64fd',
|
||||||
|
success() {
|
||||||
|
this.$Router.back()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.idenInfo();
|
|
||||||
},
|
},
|
||||||
fail(err) {
|
fail(err) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
@@ -24,11 +24,11 @@ const router = createRouter({
|
|||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
const token = store.getters.getToken || uni.getStorageSync('token')
|
const token = store.getters.getToken || uni.getStorageSync('token')
|
||||||
// 检查是否需要微信授权
|
// 检查是否需要微信授权
|
||||||
if(store.getters.getCode === '' && to.name != 'wxAuth'){
|
// if(store.getters.getCode === '' && to.name != 'wxAuth'){
|
||||||
next({
|
// next({
|
||||||
name: 'wxAuth'
|
// name: 'wxAuth'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
// 检查是否需要登录
|
// 检查是否需要登录
|
||||||
if(to.auth && token === ''){
|
if(to.auth && token === ''){
|
||||||
next({
|
next({
|
||||||
|
|||||||
Reference in New Issue
Block a user