苹果内购调整,苹果端隐藏vip相关内容
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
<view class="contentBox commonPageContentBox">
|
||||
<u-alert
|
||||
v-if="goBuyTitle"
|
||||
v-if="goBuyTitle && isAndorid"
|
||||
style="
|
||||
background: linear-gradient(90deg, #258feb 0%, #00e1ec 100%);
|
||||
position: fixed;
|
||||
@@ -599,7 +599,7 @@ export default {
|
||||
uploadPicLIst: [], // 上传的图片列表
|
||||
courseId: null,
|
||||
sayList: [],
|
||||
pPage: 1,
|
||||
pPage: 1,
|
||||
totalP: 0,
|
||||
status: 88,
|
||||
loadFlag: false,
|
||||
@@ -638,6 +638,7 @@ export default {
|
||||
goodsList: "sociology/product/getProductListForCourse",
|
||||
startStudyForMF: "sociology/course/startStudyForMF",
|
||||
},
|
||||
isAndorid:true
|
||||
};
|
||||
},
|
||||
//第一次加载
|
||||
@@ -652,6 +653,7 @@ export default {
|
||||
// this.getCateList(this.courseId)
|
||||
await this.getData(e.id);
|
||||
await this.getSayList();
|
||||
this.getOS()
|
||||
},
|
||||
onPageScroll(e) {
|
||||
this.scrollTop = e.scrollTop;
|
||||
@@ -670,6 +672,7 @@ export default {
|
||||
uni.hideTabBar();
|
||||
plus.screen.unlockOrientation();
|
||||
plus.screen.lockOrientation("portrait-primary");
|
||||
|
||||
},
|
||||
onUnload() {
|
||||
this.selectGoodsData = {};
|
||||
@@ -700,6 +703,17 @@ export default {
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
// 获得操作系统
|
||||
getOS() {
|
||||
let oprateOs = "";
|
||||
oprateOs = uni.getSystemInfoSync().platform;
|
||||
// console.log(oprateOs)
|
||||
if (oprateOs == "android") {
|
||||
this.isAndorid = true;
|
||||
} else {
|
||||
this.isAndorid = false;
|
||||
}
|
||||
},
|
||||
async checkPermision(){
|
||||
var result = await permission.premissionCheck("CAMERA_EXTERNAL_STORAGE")
|
||||
if (result != 1) {
|
||||
@@ -1492,7 +1506,7 @@ export default {
|
||||
} else {
|
||||
list = [];
|
||||
}
|
||||
console.log("at line 1333:", list);
|
||||
// console.log("at line 1333:", list);
|
||||
this.$forceUpdate();
|
||||
});
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<public-module></public-module>
|
||||
<z-nav-bar title="课程价格"></z-nav-bar>
|
||||
<view class="addVip">
|
||||
<u-alert v-if="" style="
|
||||
<u-alert v-if="isAndorid" style="
|
||||
width: 100%;
|
||||
" :title="goBuyTitle" type="warning" :show-icon="true">
|
||||
<template slot="rightSlot" slot-scope="slotProps">
|
||||
@@ -105,7 +105,8 @@
|
||||
proPriceList: [],
|
||||
pricespop: false,
|
||||
userMsg: {},
|
||||
cartList: []
|
||||
cartList: [],
|
||||
isAndorid:true
|
||||
};
|
||||
},
|
||||
//第一次加载
|
||||
@@ -115,6 +116,7 @@
|
||||
// console.log(e, '------')
|
||||
this.getUserInfo()
|
||||
this.getCoursePriceList1()
|
||||
this.getOS()
|
||||
},
|
||||
computed: {
|
||||
...mapState(['userInfo'])
|
||||
@@ -122,7 +124,7 @@
|
||||
//页面显示
|
||||
onShow() {
|
||||
// 隐藏原生的tabbar
|
||||
uni.hideTabBar();
|
||||
uni.hideTabBar();
|
||||
// this.getCoursePriceList()
|
||||
},
|
||||
onPageScroll(e) {
|
||||
@@ -138,6 +140,17 @@
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
// 获得操作系统
|
||||
getOS() {
|
||||
let oprateOs = "";
|
||||
oprateOs = uni.getSystemInfoSync().platform;
|
||||
// console.log(oprateOs)
|
||||
if (oprateOs == "android") {
|
||||
this.isAndorid = true;
|
||||
} else {
|
||||
this.isAndorid = false;
|
||||
}
|
||||
},
|
||||
loadMoreCourse(val, i) {
|
||||
console.log(val, 'val',i,'++++++++++++++++')
|
||||
let _page = val.subpage
|
||||
|
||||
@@ -74,10 +74,8 @@
|
||||
<!-- </text> -->
|
||||
</view>
|
||||
<view class="tag-view">
|
||||
|
||||
|
||||
<uni-tag @click="goBuy()" text="购买课程" type="warning" style="larg" />
|
||||
<uni-tag @click="onPageJump('/pages/mine/vip/index')" style="margin-left: 20rpx;" text="开通VIP" type="success" />
|
||||
<uni-tag @click="goBuy()" text="购买课程" type="warning" size="normal" />
|
||||
<uni-tag v-if="isAndorid" @click="onPageJump('/pages/mine/vip/index')" size="normal" style="margin-left: 20rpx;" text="开通VIP" type="success" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -116,6 +114,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isAndorid: true,
|
||||
playData: {},
|
||||
catalogueId: null,
|
||||
// fixed: false,
|
||||
@@ -208,7 +207,8 @@
|
||||
plus.screen.unlockOrientation();
|
||||
plus.screen.lockOrientation("portrait-primary");
|
||||
// #endif
|
||||
this.getData(this.courseId)
|
||||
this.getData(this.courseId)
|
||||
this.getOS()
|
||||
},
|
||||
onReachBottom() {
|
||||
console.log('触底');
|
||||
@@ -225,7 +225,17 @@
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
|
||||
// 获得操作系统
|
||||
getOS() {
|
||||
let oprateOs = "";
|
||||
oprateOs = uni.getSystemInfoSync().platform;
|
||||
// console.log(oprateOs)
|
||||
if (oprateOs == "android") {
|
||||
this.isAndorid = true;
|
||||
} else {
|
||||
this.isAndorid = false;
|
||||
}
|
||||
},
|
||||
getUserInfo() {
|
||||
// 用户详情
|
||||
// if (this.userInfo.id != undefined) {
|
||||
|
||||
Reference in New Issue
Block a user