Commit 5ea3c458 by 李嘉林

优化

parent aee5135c
<template>
<div class="storeAddr flex">
<div class="left flex">
<div class="left flex" v-if="openThousandsStoresFlag">
<div class="logo">
<image :src="logoUrl" alt=""></image>
</div>
......@@ -46,15 +46,20 @@ export default {
}
if (this.openThousandsStoresFlag) {
this.getLocationHandle(() => {
this.getShopList();
this.$emit("toUpdate");
// this.getShopList();
});
}
let { offlineShopName } = getStoreInfo();
this.name = offlineShopName || "";
this.reloadName();
},
computed: {
},
methods: {
reloadName() {
let { offlineShopName } = getStoreInfo();
this.name = offlineShopName || "";
console.log(this.name,'----name')
},
getLocationHandle(callback) {
let _this = this;
wx.getLocation({
......
......@@ -81,10 +81,11 @@ Component({
if(res.data.code == '200'){
let list = res.data.data
if(list == null || list.length == 0){
if(this.query.pageNum == 1){
if(this.data.query.pageNum == 1){
this.setData({
showList: false
})
console.log('------change1')
}
}else{
list.forEach((item,index) => {
......@@ -140,7 +141,10 @@ Component({
}
if (this.data.WaterfallFlowList.length <= 0) {
this.showList = false;
this.setData({
showList : false
})
console.log('------change2')
}
}
if (list == null || list.length < 10) {
......@@ -159,6 +163,7 @@ Component({
finished : true,
showList : false
})
console.log('------change3')
}
})
......
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