|
@@ -4,7 +4,7 @@
|
|
<tm-menubars title="详情" :shadow="0" :showback="true"></tm-menubars>
|
|
<tm-menubars title="详情" :shadow="0" :showback="true"></tm-menubars>
|
|
<image class="touimg" :src="moren" mode="widthFix"></image>
|
|
<image class="touimg" :src="moren" mode="widthFix"></image>
|
|
<view class="qiehuancla">
|
|
<view class="qiehuancla">
|
|
- <view :class="index==0?'border':'border1'" class="da" v-for="(item,index) in datall.images" @click="qiehuan(index,item)">
|
|
|
|
|
|
+ <view :class="index==0?'border':'border1'" class="da" v-for="(item,index) in datall.atlas_thumb" @click="qiehuan(index,item)">
|
|
<image class="xiaoimg" :src="item"></image>
|
|
<image class="xiaoimg" :src="item"></image>
|
|
<image v-if="index==chooseindex" class="sanjiao" src="/static/img/93.png" mode="widthFix"></image>
|
|
<image v-if="index==chooseindex" class="sanjiao" src="/static/img/93.png" mode="widthFix"></image>
|
|
</view>
|
|
</view>
|
|
@@ -89,7 +89,7 @@ export default {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
console.log(res.data.data.details,'shuju1');
|
|
console.log(res.data.data.details,'shuju1');
|
|
that.datall=res.data.data.data;
|
|
that.datall=res.data.data.data;
|
|
- that.moren=that.datall.images[0]
|
|
|
|
|
|
+ that.moren=that.datall.atlas_thumb[0]
|
|
res.data.data.details.forEach(item => {
|
|
res.data.data.details.forEach(item => {
|
|
that.test.push({
|
|
that.test.push({
|
|
img: item.shopGoods.image,
|
|
img: item.shopGoods.image,
|
|
@@ -99,8 +99,7 @@ export default {
|
|
id: item.shopGoods.id,
|
|
id: item.shopGoods.id,
|
|
price:item.shopGoods.sale_price,
|
|
price:item.shopGoods.sale_price,
|
|
category_id:item.shopGoods.category_id,
|
|
category_id:item.shopGoods.category_id,
|
|
- sale_num:item.shopGoods.sale_num,
|
|
|
|
-
|
|
|
|
|
|
+ sale_num:item.shopGoods.sale_num,
|
|
})
|
|
})
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|