vip功能测试
This commit is contained in:
@@ -3,20 +3,7 @@
|
|||||||
<!-- 公共组件-每个页面必须引入 -->
|
<!-- 公共组件-每个页面必须引入 -->
|
||||||
<public-module></public-module>
|
<public-module></public-module>
|
||||||
<z-nav-bar title="我的订单" bgColor="#258feb" fontColor="#fff" :backState="2000">
|
<z-nav-bar title="我的订单" bgColor="#258feb" fontColor="#fff" :backState="2000">
|
||||||
<!-- <template slot="left">
|
|
||||||
<u-icon
|
|
||||||
@click="goHome"
|
|
||||||
name="home"
|
|
||||||
color="#fff"
|
|
||||||
size="22"
|
|
||||||
style="display: inline-block; margin-left: 30rpx"
|
|
||||||
></u-icon>
|
|
||||||
</template> -->
|
|
||||||
</z-nav-bar>
|
</z-nav-bar>
|
||||||
|
|
||||||
<!-- 顶部导航栏 -->
|
|
||||||
<!-- <z-nav-bar backState="2000" title="我的订单"></z-nav-bar> -->
|
|
||||||
|
|
||||||
<view class="cateList flexbox">
|
<view class="cateList flexbox">
|
||||||
<common-sticky itemStyle="width:20%; height: 68rpx;font-size:24rpx;" :list="ordersTabs" label="name"
|
<common-sticky itemStyle="width:20%; height: 68rpx;font-size:24rpx;" :list="ordersTabs" label="name"
|
||||||
:currentCateIndex="currentCateIndex" @handleselectCate="ordersTabCLi"></common-sticky>
|
:currentCateIndex="currentCateIndex" @handleselectCate="ordersTabCLi"></common-sticky>
|
||||||
@@ -333,22 +320,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</common-list>
|
</common-list>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view v-if="status == 0" style="text-align: center">
|
|
||||||
<u-loading-icon style="display: inline-block"></u-loading-icon>
|
|
||||||
<font
|
|
||||||
style="
|
|
||||||
vertical-align: super;
|
|
||||||
margin-left: 10px;
|
|
||||||
font-size: 26rpx;
|
|
||||||
color: #909399;
|
|
||||||
"
|
|
||||||
>努力加载中</font
|
|
||||||
>
|
|
||||||
</view>
|
|
||||||
<view v-if="status == 1" style="padding-bottom: 20rpx">
|
|
||||||
<u-divider v-if="newList.length > 0" text="全部加载完成"></u-divider>
|
|
||||||
<u-divider v-else text="暂无订单"></u-divider>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<!-- 对话框 -->
|
<!-- 对话框 -->
|
||||||
<u-popup :show="pingjiaShow" :round="10" @close="closePingjia">
|
<u-popup :show="pingjiaShow" :round="10" @close="closePingjia">
|
||||||
@@ -409,7 +380,6 @@
|
|||||||
<z-navigation></z-navigation>
|
<z-navigation></z-navigation>
|
||||||
<u-action-sheet :closeOnClickAction="true" :closeOnClickOverlay="true" :actions="moreList" :show="isShowMore"
|
<u-action-sheet :closeOnClickAction="true" :closeOnClickOverlay="true" :actions="moreList" :show="isShowMore"
|
||||||
cancelText="关闭" @close="isShowMore = false" @select="selectClick"></u-action-sheet>
|
cancelText="关闭" @close="isShowMore = false" @select="selectClick"></u-action-sheet>
|
||||||
<!-- <music-play :playData="playData"></music-play> -->
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -511,41 +481,23 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
console.log("下拉刷新了");
|
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
|
|
||||||
this.newestpage = 1;
|
this.newestpage = 1;
|
||||||
// this.hotestpage = 1
|
|
||||||
// this.booksetpage = 1
|
|
||||||
this.newList = [];
|
this.newList = [];
|
||||||
// this.hotList = []
|
|
||||||
// this.bookList = []
|
|
||||||
this.getBookList(this.ordersListTab, false);
|
this.getBookList(this.ordersListTab, false);
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.newestpage++;
|
this.newestpage++;
|
||||||
// this.hotestpage++
|
|
||||||
// this.booksetpage++
|
|
||||||
this.getBookList(this.ordersListTab, false);
|
this.getBookList(this.ordersListTab, false);
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
this.windowWidth = uni.getSystemInfoSync().windowWidth;
|
this.windowWidth = uni.getSystemInfoSync().windowWidth;
|
||||||
console.log(e, "onload111");
|
|
||||||
// this.bookid = e.bookid
|
|
||||||
this.options = e;
|
this.options = e;
|
||||||
// this.newList = [];
|
// 隐藏原生的tabbar
|
||||||
// this.pagination = {
|
uni.hideTabBar();
|
||||||
// page: 1, //页码
|
|
||||||
// limit: 20, //每页显示
|
|
||||||
// total: 0, //总条数
|
|
||||||
// };
|
|
||||||
// this.$nextTick(() => {
|
|
||||||
// this.ordersTabCLi(this.ordersTabs[0],0);
|
|
||||||
// // this.getBookList(null, false);
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
async onShow() {
|
async onShow() {
|
||||||
uni.hideTabBar();
|
|
||||||
this.newList = [];
|
this.newList = [];
|
||||||
this.pagination = {
|
this.pagination = {
|
||||||
page: 1, //页码
|
page: 1, //页码
|
||||||
@@ -563,9 +515,6 @@
|
|||||||
limit: 20, //每页显示
|
limit: 20, //每页显示
|
||||||
total: 0, //总条数
|
total: 0, //总条数
|
||||||
};
|
};
|
||||||
// this.$nextTick(async () => {
|
|
||||||
// await this.ordersTabCLi(this.ordersTabs[0], 0);
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -1434,6 +1383,7 @@
|
|||||||
|
|
||||||
.commonDetailPage {
|
.commonDetailPage {
|
||||||
background-color: $themeBgColor;
|
background-color: $themeBgColor;
|
||||||
|
height: calc(100vh);
|
||||||
}
|
}
|
||||||
|
|
||||||
.order_box {
|
.order_box {
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
<image v-if="!course.image" src="/static/nobg.jpg" mode="widthFix"></image>
|
<image v-if="!course.image" src="/static/nobg.jpg" mode="widthFix"></image>
|
||||||
<image v-else :src="course.image" mode="widthFix"></image>
|
<image v-else :src="course.image" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="containerBg1">
|
<view class="containerBg1">
|
||||||
<view class="course_info_box">
|
<view class="course_info_box">
|
||||||
<view class="course_info">
|
<view class="course_info">
|
||||||
@@ -248,7 +249,7 @@
|
|||||||
<view class="shitingTag">
|
<view class="shitingTag">
|
||||||
<u-icon
|
<u-icon
|
||||||
v-if="librayList[curIndex].isBuy == 0 && userVip==null && item.isAudition == 0"
|
v-if="librayList[curIndex].isBuy == 0 && userVip==null && item.isAudition == 0"
|
||||||
name="lock" color="#258feb" size="28"></u-icon>
|
name="lock" color="#258feb" size="26"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@@ -564,15 +565,13 @@
|
|||||||
// 隐藏原生的tabbar
|
// 隐藏原生的tabbar
|
||||||
uni.hideTabBar();
|
uni.hideTabBar();
|
||||||
this.windowWidth = uni.getSystemInfoSync().windowWidth;
|
this.windowWidth = uni.getSystemInfoSync().windowWidth;
|
||||||
// this.pageTitle = e.title
|
|
||||||
console.log(e, "传入分类id");
|
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
|
|
||||||
this.courseId = e.id;
|
this.courseId = e.id;
|
||||||
//是否是vip
|
//是否是vip
|
||||||
this.getCourseByVip();
|
this.getCourseByVip();
|
||||||
this.getSayList();
|
this.getSayList();
|
||||||
this.getOS()
|
this.getOS();
|
||||||
},
|
},
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
this.scrollTop = e.scrollTop;
|
this.scrollTop = e.scrollTop;
|
||||||
@@ -1099,7 +1098,6 @@
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
console.log("res at line 493:", res);
|
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.getCourseDescriptionData(v);
|
this.getCourseDescriptionData(v);
|
||||||
}
|
}
|
||||||
@@ -3071,7 +3069,7 @@
|
|||||||
.describe_block button{
|
.describe_block button{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 150rpx;
|
width: 125rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
|
|||||||
@@ -1330,7 +1330,7 @@ export default {
|
|||||||
that.submitorder(data);
|
that.submitorder(data);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
//支付操作
|
||||||
async submitorder(data) {
|
async submitorder(data) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "正在请求订单",
|
title: "正在请求订单",
|
||||||
|
|||||||
@@ -93,6 +93,9 @@ export default{
|
|||||||
methods: {
|
methods: {
|
||||||
//获取数据
|
//获取数据
|
||||||
getData(){
|
getData(){
|
||||||
|
uni.showLoading({
|
||||||
|
title: '加载中'
|
||||||
|
})
|
||||||
$http.request({
|
$http.request({
|
||||||
url: "common/userVip/getVipBuyConfigList",
|
url: "common/userVip/getVipBuyConfigList",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
@@ -102,6 +105,7 @@ export default{
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.list = res.res;
|
this.list = res.res;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user