Commit 1326a6e2 authored by zhengke's avatar zhengke

修改

parent 73b6f0ad
...@@ -93,6 +93,14 @@ export default { ...@@ -93,6 +93,14 @@ export default {
this.currentList = this.goods.catList[i].goodsList; this.currentList = this.goods.catList[i].goodsList;
this.activeKey = i; this.activeKey = i;
} }
},
watch:{
goods:{
handler(newValue,oldValue){
this.currentList = newValue.list;
},
deep:true
}
} }
}; };
</script> </script>
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
return { return {
windowWidth: 0, windowWidth: 0,
posiTop: 0, posiTop: 0,
storeinfo: {}, // storeinfo: {},
position:'', position:'',
} }
}, },
...@@ -92,19 +92,6 @@ ...@@ -92,19 +92,6 @@
methods:{ methods:{
goUrl(){ goUrl(){
},
getCurrentStore(){
this.request2(
{
url: "/api/AppletStores/GetCurrentStore",
data: {storeId:0,position:this.position},
},
(res) => {
if(res.data && res.data.storeinfo){
this.storeinfo = res.data.storeinfo
}
}
);
}, },
goStorelist(){//门店选择 goStorelist(){//门店选择
uni.navigateTo({ uni.navigateTo({
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
{{c.Name}} {{c.Name}}
</view> </view>
<view class="c-t-r"> <view class="c-t-r">
距离:{{c.KM>=1000?(c.KM/1000).toFixed(2)+'km':c.KM+'m'}} 距离:{{c.KM>1?c.KM+'km':(c.KM*1000)+'m'}}
</view> </view>
</view> </view>
<view class="address"> <view class="address">
......
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 to comment