|
@@ -44,6 +44,7 @@
|
|
|
<CustomTabBar></CustomTabBar>
|
|
|
<!-- 蛋破壳 -->
|
|
|
<pay-success ref="daoPokeRef"></pay-success>
|
|
|
+ <pay-successAll ref="daoPokeAllRef"></pay-successAll>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -57,6 +58,7 @@
|
|
|
import CustomTabBar from '@/components/custom-tabbar/custom-tabbar.vue';
|
|
|
import cacheManager from "@/utils/cacheManager.js";
|
|
|
import paySuccess from './paySuccess.vue';
|
|
|
+ import paySuccessAll from './paySuccessAll.vue';
|
|
|
import {
|
|
|
onLoad,
|
|
|
onReady
|
|
@@ -68,6 +70,8 @@
|
|
|
let payType = ref('weixin')
|
|
|
let cardId = ref('')
|
|
|
const daoPokeRef = ref(null);
|
|
|
+ const daoPokeAllRef = ref(null);
|
|
|
+ const isVip = getUserIdentity();
|
|
|
const svipArr = [{
|
|
|
iconPath: 'static/images/pay/svip-list-icon1.png',
|
|
|
title: '学习资源,随心畅学',
|
|
@@ -98,21 +102,29 @@
|
|
|
}
|
|
|
|
|
|
function creatOrder(data) {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
let req = {
|
|
|
cardId: cardId.value
|
|
|
}
|
|
|
orderAdd(req).then(res => {
|
|
|
cacheManager.updateVipStatus('auth', cardId.value)
|
|
|
- daoPokeRef.value.handleShow();
|
|
|
+ cacheManager.updateObject('auth', {
|
|
|
+ growthType: 1
|
|
|
+ })
|
|
|
+ if (isVip != 'VIP') {
|
|
|
+ daoPokeRef.value.handleShow();
|
|
|
+ } else {
|
|
|
+ daoPokeAllRef.value.handleShow();
|
|
|
+ }
|
|
|
setTimeout(() => {
|
|
|
daoPokeRef.value.handleClose();
|
|
|
+ daoPokeAllRef.value.handleClose();
|
|
|
uni.redirectTo({
|
|
|
url: '/pages/study/index'
|
|
|
})
|
|
|
- },3000)
|
|
|
+ }, 3000)
|
|
|
})
|
|
|
}
|
|
|
|