Commit ca1292d1 by 肖康

商品详情

parent 9d273a8d
Showing with 14 additions and 5 deletions
......@@ -15,7 +15,7 @@
<text class="goodsName elep">{{obj.sku_name||obj.goods_name}}</text>
<text class="actag" v-if="obj.ac_type==10">{{obj.activity_info.sign}}</text>
</view>
<view class="tdbox row verCenter" @click="open()">
<view class="tdbox row verCenter" @click="open()" v-if="tigoods.length>0">
<view class="round row verCenter rowCenter"><text class="icon iconfont icon-tdzty"></text></view>
<text>可替代</text>
</view>
......@@ -119,12 +119,12 @@
<uni-popup ref="popup" type="bottom">
<view class="layer-box">
<view class="title row verCenter bothSide">
<view class="left"><text>3</text>个替代型号</view>
<view class="left"><text>{{tigoods.length}}</text>个替代型号</view>
<view class="right"><text class="iconfont icon-xxx" @click="close()"></text></view>
</view>
<view class="cons">
<navigator url="/s?k=lm358" class="group row verCenter bothSide">
<text class="goods elep">lm358</text>
<navigator :url="'/s?k='+item.goods_name" class="group row verCenter bothSide" v-for="(item,index) in tigoods" :key="index">
<text class="goods elep">{{item.goods_name}}</text>
<text class="icon iconfont icon-jt"></text>
</navigator>
</view>
......@@ -148,7 +148,8 @@
pticearr:[],
num:1,
isdl:1,
totalmoney:0
totalmoney:0,
tigoods:[],
}
},
mounted() {
......@@ -162,6 +163,13 @@
this.getData();
},
methods: {
gettidatas(goods_name){
this.request(Api_Es + '/detail/alike', 'GET', {p: 1,keyword:goods_name, offset: 100 }).then(res => {
if (res.error_code == 0) {
this.tigoods=res.data.data||[]
}
});
},
clickbug(){
return false;
},
......@@ -312,6 +320,7 @@
this.isdl=2
}
this.pticeui()
this.gettidatas(this.obj.goods_name)
}
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment