Jelajahi Sumber

feat(controller): 会员购买优化

Zhou Jianjia 3 tahun lalu
induk
melakukan
c577bf6f1e
1 mengubah file dengan 6 tambahan dan 15 penghapusan
  1. 6 15
      pages/index/index.vue

+ 6 - 15
pages/index/index.vue

xqd
@@ -49,22 +49,13 @@
 		methods: {
 			handleOpen(index){
 				if(this.setting.review_mode) return
-				if(this.vuex_user_data.is_vip == 0){
-					this.modal.show = true
-					/*if(this.$platform === 'ios'){
-						uni.showModal({
-							title: '提示',
-							content: '由于相关规范,iOS功能暂不可用',
-							success: function (res) {
-								// res.confirm res.cancel
-							}
-						});
-					}else{
+				this.$u.api.userGet().then(res => {
+					if(res.is_vip == 0){
 						this.modal.show = true
-					}*/
-				}else{
-					this.$jump({url: mathLists[index].url,type:'to'})
-				}
+					}else{
+						this.$jump({url: mathLists[index].url,type:'to'})
+					}
+				})
 			},
 			handleConfirmBuy(){
 				this.$jump({url:'/pages/my/member',type:'to'})