ios系统同步显示vip规则,但是不允许购买

This commit is contained in:
liuyuan
2025-03-13 09:44:59 +08:00
parent 59823a2ca1
commit 2cc0395549
2 changed files with 19 additions and 36 deletions

View File

@@ -49,7 +49,7 @@
<view <view
class="user_vip_box" class="user_vip_box"
v-if="(isAndorid && hasVipType1) || (isAndorid && hasVipType2)" v-if="hasVipType1||hasVipType2"
> >
<view <view
class="user_vip super" class="user_vip super"
@@ -82,7 +82,7 @@
>手机号({{ userMes.tel }})</view >手机号({{ userMes.tel }})</view
> >
<template v-if="isAndorid && textList.length > 0"> <template v-if="textList.length > 0">
<view class="vip_type"> <view class="vip_type">
<view <view
class="vip_type_item" class="vip_type_item"
@@ -98,7 +98,6 @@
</view> </view>
<view <view
v-if="isAndorid"
style=" style="
padding: 20rpx 20rpx 0; padding: 20rpx 20rpx 0;
margin-top: 50rpx; margin-top: 50rpx;
@@ -384,8 +383,6 @@ export default {
signShow: false, signShow: false,
signContent: "是否要退出登录?", signContent: "是否要退出登录?",
playData: {}, playData: {},
isAndorid: true,
platform: null, // 设备系统
pageList: [ pageList: [
{ {
@@ -430,10 +427,7 @@ export default {
}, },
//第一次加载 //第一次加载
onLoad(e) { onLoad(e) {
// #ifdef APP-PLUS
this.getOS();
this.platform = uni.getSystemInfoSync().platform;
// #endif
}, },
computed: { computed: {
...mapState(["userInfo"]), ...mapState(["userInfo"]),
@@ -568,16 +562,6 @@ export default {
break; break;
} }
}, },
// 获得操作系统
getOS() {
let oprateOs = "";
oprateOs = uni.getSystemInfoSync().platform;
if (oprateOs == "android") {
this.isAndorid = true;
} else {
this.isAndorid = false;
}
},
haveSelected(data) { haveSelected(data) {
console.log(data, " 选择的是"); console.log(data, " 选择的是");
if (data.index == 0) { if (data.index == 0) {

View File

@@ -21,9 +21,7 @@
<view> <view>
<text class="vip_item_title">{{ item.title }}</text> <text class="vip_item_title">{{ item.title }}</text>
<text class="vip_item_tip" v-if="item.tip && item.tip < 100" <text class="vip_item_tip" v-if="item.tip && item.tip < 100"
><uni-icons type="info" size="17" color="#ff1f00"></uni-icons>还有{{ ><uni-icons type="info" size="17" color="#ff1f00"></uni-icons>还有{{item.tip}}天到期</text
item.tip
}}天到期</text
> >
<text class="vip_item_flag" v-if="item.state == 1"> <text class="vip_item_flag" v-if="item.state == 1">
<uni-icons type="info" size="17" color="#999"></uni-icons>已过期 <uni-icons type="info" size="17" color="#999"></uni-icons>已过期
@@ -32,21 +30,19 @@
<view class="vip_price" style="padding-top: 10rpx"> <view class="vip_price" style="padding-top: 10rpx">
<text class="font_bold">课程价格</text> <text class="font_bold">课程价格</text>
<view class="vip_qx_v" <view class="vip_qx_v">一年<text class="vip_fee line">{{ item.originalPrice || 0 }}</text></view>
>一年<text class="vip_fee line">{{ item.originalPrice || 0 }}</text
></view
>
</view> </view>
<view v-if="$platform!='ios'">
<text <text
class="vip_item_btn" class="vip_item_btn"
v-if="item.state == null" v-if="item.state == null"
@click="openorderModal(item, 0)" @click="openorderModal(item, 0)"
>去办理</text >去办理</text
> >
<text class="vip_item_btn" v-else @click="openorderModal(item, 0)" <text class="vip_item_btn" v-else @click="openorderModal(item, 0)"
>去续费</text >去续费</text
> >
</view>
<view class="vip_price" v-if="item.vcbList && item.vcbList.length > 0"> <view class="vip_price" v-if="item.vcbList && item.vcbList.length > 0">
<text class="font_bold" v-if="item.type == 1 || item.type == 2" <text class="font_bold" v-if="item.type == 1 || item.type == 2"
@@ -182,6 +178,9 @@ export default {
}, },
//点击购买 //点击购买
openorderModal(item, type) { openorderModal(item, type) {
if(this.$platform=='ios'){
return false
}
let text = ""; let text = "";
//如果是右侧按钮点击展示 //如果是右侧按钮点击展示
//判断点击类型是vip价格还是延期价格 //判断点击类型是vip价格还是延期价格