超v课程 添加购买
This commit is contained in:
@@ -110,14 +110,13 @@
|
||||
<view class="txt555" @click="onPageJump('/pages/course/courseDetail',item.id)">
|
||||
{{item.title}}-{{item.catalogueTitle}}
|
||||
</view>
|
||||
<view class="jianjie" v-html="item.content">
|
||||
<view class="jianjie" v-html="item.content" style="margin-bottom: 10rpx;">
|
||||
|
||||
</view>
|
||||
<view class="btn_box" @click="xufei(item)">
|
||||
<view class="btn_box" @click="xufei(item)" >
|
||||
<text>续费课程</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-divider v-show="ExpiredCourseList.status == 2" text="已加载全部"></u-divider>
|
||||
@@ -662,7 +661,7 @@
|
||||
})
|
||||
},
|
||||
xufei(val){
|
||||
console.log('去续费,获取商品列表')
|
||||
// console.log('去续费,获取商品列表')
|
||||
$http.request({
|
||||
url: "sociology/product/getProductListForCourse",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
@@ -678,16 +677,25 @@
|
||||
if (res.productList.length > 0) {
|
||||
this.proPriceList = res.productList
|
||||
// this.curProId = this.proPriceList[0].productId
|
||||
this.pricespop = true
|
||||
} else {
|
||||
this.proPriceList = []
|
||||
uni.showToast({
|
||||
title:'课程未绑定商品',
|
||||
icon:'none'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}).catch(e => {
|
||||
console.log(e, '获取商品列表报错')
|
||||
uni.showToast({
|
||||
title:'获取商品失败',
|
||||
icon:'none'
|
||||
})
|
||||
});
|
||||
|
||||
this.pricespop = true
|
||||
|
||||
|
||||
},
|
||||
// 跳转
|
||||
|
||||
Reference in New Issue
Block a user