|
@@ -65,7 +65,8 @@
|
|
|
} from '@dcloudio/uni-app';
|
|
|
import {
|
|
|
toast,
|
|
|
- getUserIdentity
|
|
|
+ getUserIdentity,
|
|
|
+ hasUserIdentity
|
|
|
} from "@/utils/common";
|
|
|
let payType = ref('weixin')
|
|
|
let cardId = ref('')
|
|
@@ -73,7 +74,7 @@
|
|
|
const daoPokeRef = ref(null);
|
|
|
const daoPokeAllRef = ref(null);
|
|
|
const selectZhangId = ref(null);//来自岛目录选择的章Id,支付后需要修改章id缓存记录,方便返回时定位到选中章的岛
|
|
|
- const isVip = getUserIdentity();
|
|
|
+ const isAlreadyVip = hasUserIdentity();
|
|
|
const svipArr = [{
|
|
|
iconPath: 'static/images/pay/svip-list-icon1.png',
|
|
|
title: '学习资源,随心畅学',
|
|
@@ -115,7 +116,7 @@
|
|
|
cacheManager.updateObject('auth', {
|
|
|
growthType: 1
|
|
|
})
|
|
|
- if (isVip != 'VIP') {
|
|
|
+ if (isAlreadyVip != 'VIP') {
|
|
|
daoPokeRef.value.handleShow();
|
|
|
} else {
|
|
|
daoPokeAllRef.value.handleShow();
|