fanfan 6 months ago
parent 4a0b437edf
commit 5db235312a
  1. 15
      pages/goods/detail.vue

@ -840,10 +840,10 @@
})
.catch()
},
getServeList() {
getServeList(goodsId) {
const that = this
let params = {
goodsId: that.goods.goods_id
goodsId: goodsId
}
return new Promise((resolve, reject) => {
GoodsApi.serveList(params).then(res => {
@ -1006,6 +1006,7 @@
GoodsApi.detail(this.goodsId)
.then(result => {
let info = result.data.detail;
this.getServeList(info.goods_id)
let item = this.findItemById(info.skuList, info.goods_id)
if (item) {
if (item.sec_start_time) {
@ -1062,7 +1063,6 @@
}
}
}
that.getServeList()
})
.catch()
})
@ -1174,10 +1174,13 @@
//
const that = this;
//
const params = that.$getShareUrlParams(this.options)
// const params = that.$getShareUrlParams(that.options)
const res = await GoodsApi.goodsShortUrl({
page_url: `pages/goods/detail?${params}`,
page_title: that.goods.goods_name
page_url: 'pages/goods/detail?refereeId=' + store.getters.userId + '&goodsId=' + this.goods
.goods_id,
page_title: that.goods.goods_name,
// goodsId:that.goods.goods_id,
// refereeId:store.getters.userId
})
if (res.data.url) {
let str =

Loading…
Cancel
Save