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

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

Loading…
Cancel
Save