Merge branch 'master' of https://gitee.com/wjl2008_admin/medicine_app
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<z-nav-bar
|
||||
bgColor="#333"
|
||||
fontColor="#fff"
|
||||
:title="options.navTitle"
|
||||
title="教学内容"
|
||||
></z-nav-bar>
|
||||
|
||||
<view
|
||||
@@ -49,8 +49,11 @@
|
||||
>视频教学</view
|
||||
>
|
||||
<view class="scroll-view-item">
|
||||
<view style="padding: 20rpx; margin-bottom: 40rpx">
|
||||
{{ curriculumData.title }}
|
||||
<view style="padding: 20rpx; font-size: 26rpx;">
|
||||
课程:{{options.navTitle}}
|
||||
</view>
|
||||
<view style="padding: 20rpx; margin-bottom: 40rpx; font-size: 26rpx;">
|
||||
章节:{{ curriculumData.title }}
|
||||
</view>
|
||||
<common-curriculum-video
|
||||
v-if="videoArray && videoArray.length > 0"
|
||||
|
||||
@@ -667,6 +667,8 @@ export default {
|
||||
onShow() {
|
||||
// 隐藏原生的tabbar
|
||||
uni.hideTabBar();
|
||||
plus.screen.unlockOrientation();
|
||||
plus.screen.lockOrientation("portrait-primary");
|
||||
},
|
||||
onUnload() {
|
||||
this.selectGoodsData = {};
|
||||
|
||||
@@ -206,12 +206,13 @@
|
||||
},
|
||||
// 加入到购物车
|
||||
isAddLink(item) {
|
||||
// console.log('传入购物车',item);
|
||||
// 统计商品信息
|
||||
let data = {
|
||||
"userId": this.userInfo.id,
|
||||
"productId": item.productId,
|
||||
"productAmount": this.productAmount,
|
||||
"price": item.price
|
||||
"productAmount": 1,
|
||||
"price": item.activityPrice && item.activityPrice != 0 ? item.activityPrice : item.price
|
||||
}
|
||||
// 判断列表是否为空
|
||||
if (this.cartList.length > 0) {
|
||||
@@ -284,6 +285,7 @@
|
||||
},
|
||||
oprate(data) {
|
||||
console.log(data, '得到的内容')
|
||||
|
||||
if (data.name == 'buy') {
|
||||
this.buy(data.item)
|
||||
} else if (data.name == 'gouwuche') {
|
||||
|
||||
@@ -318,8 +318,8 @@
|
||||
let data = {
|
||||
"userId": this.userInfo.id,
|
||||
"productId": item.productId,
|
||||
"productAmount": this.productAmount,
|
||||
"price": item.price
|
||||
"productAmount": 1,
|
||||
"price": item.activityPrice && item.activityPrice != 0 ? item.activityPrice : item.price
|
||||
}
|
||||
// 判断列表是否为空
|
||||
if (this.cartList.length > 0) {
|
||||
|
||||
@@ -204,6 +204,8 @@
|
||||
onShow() {
|
||||
// 隐藏原生的tabbar
|
||||
uni.hideTabBar();
|
||||
plus.screen.unlockOrientation();
|
||||
plus.screen.lockOrientation("portrait-primary");
|
||||
this.getData(this.courseId)
|
||||
},
|
||||
onReachBottom() {
|
||||
@@ -717,8 +719,8 @@
|
||||
let data = {
|
||||
"userId": this.userInfo.id,
|
||||
"productId": item.productId,
|
||||
"productAmount": this.productAmount,
|
||||
"price": item.price
|
||||
"productAmount": 1,
|
||||
"price": item.activityPrice && item.activityPrice != 0 ? item.activityPrice : item.price
|
||||
}
|
||||
// 判断列表是否为空
|
||||
if (this.cartList.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user