Преглед на файлове

feat(view): 优化IOS 审核不通过

Zhou Jianjia преди 3 години
родител
ревизия
cba3059504
променени са 4 файла, в които са добавени 29 реда и са изтрити 5 реда
  1. 2 0
      main.js
  2. 12 2
      pages/index/index.vue
  3. 14 1
      pages/my/index.vue
  4. 1 2
      pages/my/member.vue

+ 2 - 0
main.js

xqd
@@ -35,6 +35,8 @@ Vue.use({
 		Vue.prototype.$const = $const;
 		// 路由
 		Vue.prototype.$jump = jump;
+		// 平台
+		Vue.prototype.$platform = uni.getSystemInfoSync().platform
 	}
 });
 

+ 12 - 2
pages/index/index.vue

xqd xqd
@@ -39,7 +39,7 @@
 				mathLists: mathLists,
 				modal:{
 					show: false,
-					title: '该功能需付费永久使用',
+					title: '该功能需开通永久使用',
 					subTitle: '做桥架不求人,让你秒变大师',
 				},
 				scene: ''
@@ -48,7 +48,17 @@
 		methods: {
 			handleOpen(index){
 				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.modal.show = true
+					}
 				}else{
 					this.$jump({url: mathLists[index].url,type:'to'})
 				}

+ 14 - 1
pages/my/index.vue

xqd xqd
@@ -24,7 +24,7 @@
 				</view>
 			</view>
 			<u-cell-group :border="false" class="tab-list">
-				<u-cell-item title="桥架会员" :border-bottom="false" bg-color="#f9f9f9" @click="$jump({url:'/pages/my/member',type:'to'})">
+				<u-cell-item title="桥架会员" :border-bottom="false" bg-color="#f9f9f9" @click="handleJumpBuy">
 					<view slot="icon" class="icon bridge"></view>
 				</u-cell-item>
 				<u-cell-item title="会员购买记录" :border-bottom="false" bg-color="#f9f9f9" @click="$jump({url:'/pages/my/member-record',type:'to'})">
@@ -83,6 +83,19 @@
 			}
 		},
 		methods: {
+			handleJumpBuy(){
+				if(this.$platform === 'ios'){
+					uni.showModal({
+						title: '提示',
+						content: '由于相关规范,iOS功能暂不可用',
+						success: function (res) {
+							// res.confirm res.cancel
+						}
+					});
+					return false
+				}
+				this.$jump({url:'/pages/my/member',type:'to'})
+			},
 			getPhoneNumber(phoneNumber){
 				uni.checkSession({
 					success: data => {

+ 1 - 2
pages/my/member.vue

xqd
@@ -56,8 +56,7 @@
 			},
 			handleBuy(){
 				let _this = this;
-				let platform = uni.getSystemInfoSync().platform;
-				if(platform === 'ios'){
+				if(this.$platform === 'ios'){
 					uni.showModal({
 						title: '提示',
 						content: '由于相关规范,iOS功能暂不可用',