|
|
@ -70,11 +70,11 @@ |
|
|
|
{{goods.goods_name}} |
|
|
|
{{goods.goods_name}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="goodsOpera"> |
|
|
|
<view class="goodsOpera"> |
|
|
|
<view class="goodsNum" @click="copyNum(goods.skuList[0].goods_sku_id)" |
|
|
|
<!-- <view class="goodsNum" @click="copyNum(goods.skuList[0].goods_sku_no)" |
|
|
|
v-if="goods.specList && goods.specList.length>0"> |
|
|
|
v-if="goods.specList && goods.specList.length>0"> |
|
|
|
<text>{{goods.skuList[0].goods_sku_id}}</text> |
|
|
|
<text>{{goods.skuList[0].goods_sku_no}}</text> |
|
|
|
<image :src="$picUrl+'/static/detail/copy.png'"></image> |
|
|
|
<image :src="$picUrl+'/static/detail/copy.png'"></image> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
<view v-if="goods.goods_no" class="goodsNum" @click="copyNum(goods.goods_no)"> |
|
|
|
<view v-if="goods.goods_no" class="goodsNum" @click="copyNum(goods.goods_no)"> |
|
|
|
<text>{{goods.goods_no}}</text> |
|
|
|
<text>{{goods.goods_no}}</text> |
|
|
|
<image :src="$picUrl+'/static/detail/copy.png'"></image> |
|
|
|
<image :src="$picUrl+'/static/detail/copy.png'"></image> |
|
|
@ -401,7 +401,7 @@ |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
goods_sku_no: "", |
|
|
|
goods_sku_no: "", |
|
|
|
isTodo: true, |
|
|
|
isTodo: false, |
|
|
|
result: {}, |
|
|
|
result: {}, |
|
|
|
max_price: "", |
|
|
|
max_price: "", |
|
|
|
cost_price:'', |
|
|
|
cost_price:'', |
|
|
@ -728,7 +728,6 @@ |
|
|
|
this.getCartTotal() |
|
|
|
this.getCartTotal() |
|
|
|
}, |
|
|
|
}, |
|
|
|
choseSku(skuMode) { |
|
|
|
choseSku(skuMode) { |
|
|
|
console.log(this.goods) |
|
|
|
|
|
|
|
if (!uni.getStorageSync("AccessToken")) { |
|
|
|
if (!uni.getStorageSync("AccessToken")) { |
|
|
|
uni.navigateTo({ |
|
|
|
uni.navigateTo({ |
|
|
|
url: "/pages/login/index" |
|
|
|
url: "/pages/login/index" |
|
|
@ -737,6 +736,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
this.skuMode = skuMode |
|
|
|
this.skuMode = skuMode |
|
|
|
this.showSkuPopup = true |
|
|
|
this.showSkuPopup = true |
|
|
|
|
|
|
|
console.log("choseSku",this.goods) |
|
|
|
}, |
|
|
|
}, |
|
|
|
copyNum(msg) { |
|
|
|
copyNum(msg) { |
|
|
|
uni.setClipboardData({ |
|
|
|
uni.setClipboardData({ |
|
|
@ -775,6 +775,8 @@ |
|
|
|
this.$set(this.goods, item, info[item]) |
|
|
|
this.$set(this.goods, item, info[item]) |
|
|
|
// that.goods[item] = info[item] |
|
|
|
// that.goods[item] = info[item] |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.isTodo = true; |
|
|
|
that.goods_sku_no ="" |
|
|
|
that.goods_sku_no ="" |
|
|
|
if(info.skuList && info.skuList.length > 0){ |
|
|
|
if(info.skuList && info.skuList.length > 0){ |
|
|
|
that.goods_sku_no = info.skuList[0].goods_sku_no |
|
|
|
that.goods_sku_no = info.skuList[0].goods_sku_no |
|
|
@ -786,6 +788,8 @@ |
|
|
|
that.markup_rate = "" |
|
|
|
that.markup_rate = "" |
|
|
|
that.shareCancel(); |
|
|
|
that.shareCancel(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(result, 'getGoodsDetail') |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch() |
|
|
|
.catch() |
|
|
|
}) |
|
|
|
}) |
|
|
@ -795,7 +799,6 @@ |
|
|
|
const that = this |
|
|
|
const that = this |
|
|
|
GoodsApi.recommended() |
|
|
|
GoodsApi.recommended() |
|
|
|
.then(result => { |
|
|
|
.then(result => { |
|
|
|
console.log(result, '获取推荐商品列表') |
|
|
|
|
|
|
|
let arr = result.data.goodsList |
|
|
|
let arr = result.data.goodsList |
|
|
|
if (arr && arr.length > 0) { |
|
|
|
if (arr && arr.length > 0) { |
|
|
|
arr.map(a => { |
|
|
|
arr.map(a => { |
|
|
|