|
|
|
@ -81,7 +81,7 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class="operaImg"> |
|
|
|
|
<image :src="$picUrl+'/static/detail/miaosha.png'" v-if="isSeckill" class="tips"></image> |
|
|
|
|
<image :src="$picUrl+'/static/detail/tip.png'" @click="toJDdetal(goods.goods_id)" class="tips"> |
|
|
|
|
<image :src="$picUrl+'/static/detail/tip.png'" v-if="goods_sku_no" @click="toJDdetal()" class="tips"> |
|
|
|
|
</image> |
|
|
|
|
<!-- <image :src="$picUrl+'/static/detail/ys.png'" class="tips"></image> --> |
|
|
|
|
</view> |
|
|
|
@ -376,7 +376,7 @@ |
|
|
|
|
<image :src="$picUrl+'/static/toTop.png?=1'"></image> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="isTodo"> |
|
|
|
|
<SkuPopup v-model="showSkuPopup" :skuMode="skuMode" :goods="goods" @addCart="onAddCart" /> |
|
|
|
|
<SkuPopup v-model="showSkuPopup" :skuMode="skuMode" :goods="goods" @addCart="onAddCart" /> |
|
|
|
|
</view> |
|
|
|
|
<setPrice ref="setRange" @getprice="getprice" /> |
|
|
|
|
<!-- 海报图弹层 --> |
|
|
|
@ -399,6 +399,7 @@ |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
goods_sku_no: "", |
|
|
|
|
isTodo: true, |
|
|
|
|
result: {}, |
|
|
|
|
max_price: "", |
|
|
|
@ -408,7 +409,6 @@ |
|
|
|
|
cityInfo: {}, |
|
|
|
|
currenIndex: 0, |
|
|
|
|
isTop: false, |
|
|
|
|
skuMode: 1, |
|
|
|
|
goodShow: false, |
|
|
|
|
showSkuPopup: false, |
|
|
|
|
allPicture: '', |
|
|
|
@ -462,6 +462,14 @@ |
|
|
|
|
that.selectShop = selectShop |
|
|
|
|
that.selectShop.price = that.selectShop.price / 100 |
|
|
|
|
}) |
|
|
|
|
// uni.$on("checkSelectShop", function(selectShop) { |
|
|
|
|
// console.log("checkSelectShop1",selectShop) |
|
|
|
|
// if(selectShop && selectShop.goods_sku_id){ |
|
|
|
|
// that.goodsId = selectShop.goods_id |
|
|
|
|
// that.getGoodsDetail(); |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
onShow() { |
|
|
|
|
if (uni.getStorageSync('AccessToken')) { |
|
|
|
@ -558,10 +566,10 @@ |
|
|
|
|
.catch() |
|
|
|
|
}, |
|
|
|
|
//跳转京东小程序详情 |
|
|
|
|
toJDdetal(sku) { |
|
|
|
|
toJDdetal() { |
|
|
|
|
wx.navigateToMiniProgram({ |
|
|
|
|
appId: 'wx91d27dbf599dff74', |
|
|
|
|
path: '/pages/item/detail/detail?sku=' + sku, |
|
|
|
|
path: '/pages/item/detail/detail?sku=' + this.goods_sku_no, |
|
|
|
|
envVersion: 'release', |
|
|
|
|
success(res) { |
|
|
|
|
// 打开成功 |
|
|
|
@ -655,7 +663,6 @@ |
|
|
|
|
if (res.status == 200) { |
|
|
|
|
that.addressList = res.data.list |
|
|
|
|
if (res.data.list && res.data.list.length > 0) { |
|
|
|
|
console.log(1111) |
|
|
|
|
that.getDefaultAddress() |
|
|
|
|
} else { |
|
|
|
|
console.log(222) |
|
|
|
@ -757,6 +764,10 @@ |
|
|
|
|
this.$set(this.goods, item, info[item]) |
|
|
|
|
// that.goods[item] = info[item] |
|
|
|
|
}) |
|
|
|
|
that.goods_sku_no ="" |
|
|
|
|
if(info.skuList && info.skuList.length > 0){ |
|
|
|
|
that.goods_sku_no = info.skuList[0].goods_sku_no |
|
|
|
|
} |
|
|
|
|
that.allPicture = info.goods_images.length; |
|
|
|
|
if (type == 1) { |
|
|
|
|
that.selectShop = {} |
|
|
|
|