fanfan 10 months ago
parent 8826b49521
commit ec17a75ad4
  1. 15
      pages/goods/detail.vue

@ -218,7 +218,8 @@
<view class="chosed" v-if="goods.remark"> <view class="chosed" v-if="goods.remark">
<view class="title">须知</view> <view class="title">须知</view>
<view class="info"> <view class="info">
<u-read-more :toggle="true" font-size='24' text-indent='0' show-height="200" open-text='收起' close-text='展开'> <u-read-more :toggle="true" font-size='24' text-indent='0' show-height="200" open-text='收起'
close-text='展开'>
<rich-text :nodes="goods.remark"></rich-text> <rich-text :nodes="goods.remark"></rich-text>
</u-read-more> </u-read-more>
</view> </view>
@ -581,7 +582,6 @@
console.log(this.isBuy); console.log(this.isBuy);
this.seckillText = options.seckillText ? decodeURIComponent(options.seckillText) : null; this.seckillText = options.seckillText ? decodeURIComponent(options.seckillText) : null;
this.getSuggestGoods() this.getSuggestGoods()
this.getServeList()
this.getGoodsDetail() this.getGoodsDetail()
this.cityInfo = uni.getStorageSync("cityInfo"); this.cityInfo = uni.getStorageSync("cityInfo");
this.getGoodsStockInfor() this.getGoodsStockInfor()
@ -730,7 +730,7 @@
this.$refs.setRange.secondPrice = item.seckill_price this.$refs.setRange.secondPrice = item.seckill_price
this.$refs.setRange.secondQuota = item.is_limit == 1 ? true : false this.$refs.setRange.secondQuota = item.is_limit == 1 ? true : false
this.$refs.setRange.quotaNum = item.limit_times; this.$refs.setRange.quotaNum = item.limit_times;
this.$refs.setRange.cost_price_min=this.goods.cost_price_min this.$refs.setRange.cost_price_min = this.goods.cost_price_min
} }
this.$refs.setRange.afterSale = true; this.$refs.setRange.afterSale = true;
@ -843,7 +843,7 @@
getServeList() { getServeList() {
const that = this const that = this
let params = { let params = {
goodsId: that.goodsId goodsId: that.goods.goods_id
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
GoodsApi.serveList(params).then(res => { GoodsApi.serveList(params).then(res => {
@ -1018,7 +1018,8 @@
} else { } else {
that.seckillCountTime = 0 that.seckillCountTime = 0
} }
that.seckillCountTime = that.seckillCountTime > 0 && that.seckillCountTime <= item.sec_hour * 60 * 60 * 1000 ? that.seckillCountTime : 0 that.seckillCountTime = that.seckillCountTime > 0 && that.seckillCountTime <= item
.sec_hour * 60 * 60 * 1000 ? that.seckillCountTime : 0
that.goods.skuList = []; that.goods.skuList = [];
that.godds = {} that.godds = {}
info.goods_images1 = [] info.goods_images1 = []
@ -1061,6 +1062,7 @@
} }
} }
} }
that.getServeList()
}) })
.catch() .catch()
}) })
@ -1174,7 +1176,8 @@
// //
// const params = that.$getShareUrlParams(that.options) // const params = that.$getShareUrlParams(that.options)
const res = await GoodsApi.goodsShortUrl({ const res = await GoodsApi.goodsShortUrl({
page_url: 'pages/goods/detail?refereeId='+store.getters.userId+'&goodsId='+this.goods.goods_id, page_url: 'pages/goods/detail?refereeId=' + store.getters.userId + '&goodsId=' + this.goods
.goods_id,
page_title: that.goods.goods_name, page_title: that.goods.goods_name,
// goodsId:that.goods.goods_id, // goodsId:that.goods.goods_id,
// refereeId:store.getters.userId // refereeId:store.getters.userId

Loading…
Cancel
Save