兼容ios系统的调整
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<common-anchor-link style="width: 100%" baseHeight="200" ref="commonAnchorLink" :allDataList="allDataList"
|
||||
titleKey="title" dataListKey="courseList" :titleStyle="{}" :tabStyle="{background: '#fff'}">
|
||||
<template slot="otherContent" slot-scope="slotProps">
|
||||
<view v-if="goBuyTitle" class="describe_block">
|
||||
<view v-if="$platform=='android'&&goBuyTitle" class="describe_block">
|
||||
<view style=" display: flex; align-items: center;">
|
||||
<uni-icons type="info" size="20" color="#fff"></uni-icons>
|
||||
<text>{{goBuyTitle}}</text>
|
||||
@@ -14,10 +14,9 @@
|
||||
</button>
|
||||
</view>
|
||||
|
||||
<view v-if="curriculumData.image" style="padding-top:80rpx;">
|
||||
<view :style="$platform=='android'?'padding-top:80rpx;':''">
|
||||
<image style="width: 100%" :src="curriculumData.image" mode="widthFix"></image>
|
||||
</view>
|
||||
<view v-else class="headImage" style="height: 400rpx; background-color: #f5f5f5"></view>
|
||||
|
||||
<view class="containerBg1" :style="`${curriculumData.content && curriculumData.content != ''? 'padding:10rpx 0;': ''}`">
|
||||
<view class="course_info_box">
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
<template v-if="selectPayIndex == 2">
|
||||
<template v-if="selectPayIndex == 2 || $platform == 'ios'">
|
||||
<view class="goods_detail_list_title bg_box_shandow color_shandow bg_color">
|
||||
<view class="linlanzhifu" style="
|
||||
width: 100%;
|
||||
@@ -251,15 +251,15 @@ import parse from "../../uni_modules/uview-ui/libs/config/props/parse";
|
||||
handler(newRoute) {
|
||||
if (this.isDefaultCurrency) {
|
||||
if (platform == "ios") {
|
||||
this.selectPayIndex = 2;
|
||||
this.selectPayIndex = 0;
|
||||
} else {
|
||||
this.selectPayIndex = 2;
|
||||
this.selectPayIndex = 0;
|
||||
}
|
||||
} else {
|
||||
if (platform == "ios") {
|
||||
this.selectPayIndex = 1;
|
||||
this.selectPayIndex = 0;
|
||||
} else {
|
||||
this.selectPayIndex = 1;
|
||||
this.selectPayIndex = 0;
|
||||
}
|
||||
}
|
||||
this.payType = this.payList[this.selectPayIndex].type;
|
||||
@@ -279,7 +279,7 @@ import parse from "../../uni_modules/uview-ui/libs/config/props/parse";
|
||||
goodsDataList: [],
|
||||
orderModalShowInfo: {},
|
||||
orderModalShow: false,
|
||||
payType: 2,
|
||||
payType: 1,
|
||||
freightNum: 0,
|
||||
addressData: {
|
||||
address: "",
|
||||
@@ -288,25 +288,7 @@ import parse from "../../uni_modules/uview-ui/libs/config/props/parse";
|
||||
},
|
||||
selectPayIndex: 1,
|
||||
farePrice: 0,
|
||||
payList: [{
|
||||
text: "支付宝",
|
||||
imgUrl: require("@/static/icon/pay_1.png"),
|
||||
type: 2,
|
||||
value: "0",
|
||||
},
|
||||
{
|
||||
text: "微信",
|
||||
imgUrl: require("@/static/icon/pay_2.png"),
|
||||
type: 1,
|
||||
value: "1",
|
||||
},
|
||||
{
|
||||
text: "天医币",
|
||||
imgUrl: require("@/static/icon/pay_3.png"),
|
||||
type: 4,
|
||||
value: "2",
|
||||
},
|
||||
],
|
||||
payList: [],
|
||||
priceBreakdownList: [],
|
||||
orderInfoList: [{
|
||||
text: "订单备注",
|
||||
@@ -416,6 +398,41 @@ import parse from "../../uni_modules/uview-ui/libs/config/props/parse";
|
||||
|
||||
}
|
||||
});
|
||||
if (that.$platform == "ios") {
|
||||
that.payList = [
|
||||
{
|
||||
text: "天医币",
|
||||
imgUrl: require("@/static/icon/pay_3.png"),
|
||||
type: 4,
|
||||
value: "2",
|
||||
},
|
||||
];
|
||||
that.selectPayIndex = 0;
|
||||
that.payType = 4;
|
||||
} else {
|
||||
that.payList = [
|
||||
{
|
||||
text: "支付宝",
|
||||
imgUrl: require("@/static/icon/pay_1.png"),
|
||||
type: 2,
|
||||
value: "0",
|
||||
},
|
||||
{
|
||||
text: "微信",
|
||||
imgUrl: require("@/static/icon/pay_2.png"),
|
||||
type: 1,
|
||||
value: "1",
|
||||
},
|
||||
{
|
||||
text: "天医币",
|
||||
imgUrl: require("@/static/icon/pay_3.png"),
|
||||
type: 4,
|
||||
value: "2",
|
||||
},
|
||||
];
|
||||
that.selectPayIndex = 1;
|
||||
that.payType = 1;
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(["userInfo"]),
|
||||
|
||||
@@ -115,7 +115,34 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
curriculumList: [
|
||||
curriculumList: [],
|
||||
// curriculumList: [
|
||||
// {
|
||||
// name: "我的课程",
|
||||
// url: "/pages/curriculum/index/index",
|
||||
// imgUrl: require("@/static/icon/home_bg1.png")
|
||||
// },
|
||||
// {
|
||||
// name: "免费课程",
|
||||
// url: "/pages/curriculum/index/free",
|
||||
// imgUrl: require("@/static/icon/home_bg2.png")
|
||||
// },
|
||||
// {
|
||||
// name: "VIP情况",
|
||||
// url: "/pages/vip/index",
|
||||
// imgUrl: require("@/static/icon/home_bg3.png")
|
||||
// },
|
||||
// ],
|
||||
cateList: [],
|
||||
noticeList: [], //通知消息
|
||||
seckillLst: [], //秒杀列表
|
||||
studyList: [], //正在学习
|
||||
flashSaleList: [], //欢迎试听
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
if(this.$platform=='android'){
|
||||
this.curriculumList = [
|
||||
{
|
||||
name: "我的课程",
|
||||
url: "/pages/curriculum/index/index",
|
||||
@@ -131,16 +158,21 @@ export default {
|
||||
url: "/pages/vip/index",
|
||||
imgUrl: require("@/static/icon/home_bg3.png")
|
||||
},
|
||||
],
|
||||
cateList: [],
|
||||
noticeList: [], //通知消息
|
||||
seckillLst: [], //秒杀列表
|
||||
studyList: [], //正在学习
|
||||
flashSaleList: [], //欢迎试听
|
||||
]
|
||||
}else{
|
||||
this.curriculumList = [
|
||||
{
|
||||
name: "我的课程",
|
||||
url: "/pages/curriculum/index/index",
|
||||
imgUrl: require("@/static/icon/home_bg1.png")
|
||||
},
|
||||
{
|
||||
name: "免费课程",
|
||||
url: "/pages/curriculum/index/free",
|
||||
imgUrl: require("@/static/icon/home_bg2.png")
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
onShow() {
|
||||
this.getCourseList();
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<image src="../../static/logo.png" v-if="userMes.avatar == null||userMes.avatar == ''"
|
||||
class="per_mes_img color_shandow"></image>
|
||||
</view>
|
||||
<view class="user_vip_box" v-if="hasVipType1 || hasVipType2">
|
||||
<view class="user_vip_box" v-if="$platform=='android'&&hasVipType1 || $platform=='android'&&hasVipType2">
|
||||
<view class="user_vip super" :style="hasVipType2?'width: 170rpx;':''">
|
||||
<view class="user_vip_item" v-if="hasVipType1"><text>医学</text><image src="@/static/icon/chao_svip.png"></image></view>
|
||||
<view class="user_vip_item" v-if="hasVipType2"><text>国学心理学</text><image src="@/static/icon/chao_svip.png"></image></view>
|
||||
@@ -24,7 +24,7 @@
|
||||
<view class="userInfoBox">
|
||||
<view class="name">{{ userMes.nickname ? userMes.nickname : "未设置" }}</view>
|
||||
<view class="phone" v-if="userMes.tel">手机号:({{ userMes.tel }})</view>
|
||||
<view class="vip_type" v-if="textList.length>0">
|
||||
<view class="vip_type" v-if="$platform=='android'&&textList.length>0">
|
||||
<view class="vip_type_item" v-for="(item,index) in textList" :key="index">
|
||||
{{item}}<image src="@/static/icon/chao_vip.png"></image>
|
||||
</view>
|
||||
@@ -32,7 +32,7 @@
|
||||
</view>
|
||||
<br clear="both" />
|
||||
</view>
|
||||
<view class="modal_vip">
|
||||
<view class="modal_vip" v-if="$platform=='android'">
|
||||
<template>
|
||||
<view class="chong_zhi boxShadow box_fillet vip_box">
|
||||
<view class="noVip">
|
||||
|
||||
Reference in New Issue
Block a user