This commit is contained in:
2025-04-15 14:46:03 +08:00
parent 85edeae7db
commit 0ea678deec
16 changed files with 2250 additions and 2623 deletions

View File

@@ -135,7 +135,7 @@
<!-- 评论弹出 -->
<public-module></public-module>
<tree-list ref="treeList" v-if="treeListVisible" @clickCourseInfo="clickCourseInfo"></tree-list>
<buy-pup v-if="pricespop" :proPriceList="proPriceList" @closePup="closePup" @oprate="oprate"></buy-pup>
<buy-pup-fudu v-if="pricespop" :proPriceList="proPriceList" @closePup="closePup" @oprate="oprate"></buy-pup-fudu>
<z-navigation></z-navigation>
<!-- <music-play :playData="playData"></music-play> -->
</view>
@@ -144,7 +144,7 @@
<script>
// import musicPlay from '@/components/music.vue'
import buyPup from '@/components/buyPup.vue'
import buyPupFudu from '@/components/buyPupFudu.vue'
import treeList from '@/components/tagTree.vue'
import commentsList from '@/components/commentsList.vue'
import emojiList1 from '../../bkhumor-emojiplus/emoji/biaoqin.js'
@@ -276,7 +276,7 @@
// musicPlay
emotion,
treeList,
buyPup
buyPupFudu
// commentsList
},
@@ -285,7 +285,7 @@
oprate(data){
console.log(data,'得到的内容')
if(data.name == 'buy'){
this.buy(data.item)
this.buy(data.item,data.index)
}else if(data.name == 'gouwuche'){
this.addCart(data.item)
}
@@ -412,7 +412,7 @@
}
},
// 直接购买
buy(val){
buy(val,index){
var mynavData = JSON.stringify({
        goods: [
          {
@@ -423,7 +423,8 @@
            goodsType: val.goodsType,
          },
        ],
isFudu: true,
fuduId: val.catalogueId,
        navTitle: val.productName,
        title: val.productName,
        typeId: 0,
@@ -730,10 +731,10 @@
xufei(val){
// console.log('去续费,获取商品列表')
$http.request({
url: "sociology/product/getProductListForCourse",
url: "common/courseRelearn/relearnShopProductList",
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data: {
"id": val.catalogueId
"catalogueId": val.catalogueId
},
header: { //默认 无 说明:请求头
'Content-Type': 'application/json'
@@ -742,7 +743,7 @@
.then(res => {
if (res.code == 0) {
if (res.productList.length > 0) {
this.proPriceList = res.productList
this.proPriceList = res.productList.map((e)=>{return {...e,catalogueId:val.catalogueId}})
// this.curProId = this.proPriceList[0].productId
this.pricespop = true
} else {