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

View File

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