超v课程 添加购买

This commit is contained in:
@fawn-nine
2024-06-25 11:34:27 +08:00
parent 6dd47a5638
commit 0e28140768
6 changed files with 432 additions and 24 deletions

View File

@@ -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
},
// 跳转