|
|
@ -10,6 +10,7 @@ |
|
|
|
<view>{{pageInfo.name || '-'}}</view> |
|
|
|
<!-- <image mode="aspectFit" src="/static/images/icon/arrow_b2.png"></image> --> |
|
|
|
</view> |
|
|
|
<!-- 仅有一家店铺情况下,没有品牌查看权限 --> |
|
|
|
<view class="tts-address" v-else-if="tabID == 1&&storeList.length ==1"> |
|
|
|
<view>{{curSelectStore.name || '-'}}</view> |
|
|
|
<!-- <image mode="aspectFit" src="/static/images/icon/arrow_b2.png"></image> --> |
|
|
@ -116,6 +117,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
async onLoad(){ |
|
|
|
try{ |
|
|
|
let { timeTabID } = this; |
|
|
|
let _timeObj = this.getTime(); |
|
|
|
|
|
|
@ -124,6 +126,10 @@ export default { |
|
|
|
if(_storeList.length == 1)this.tabID = 1; |
|
|
|
|
|
|
|
this.$nextTick(this.refreshPageInfo); |
|
|
|
}catch(err){ |
|
|
|
console.log(err); |
|
|
|
util.hideLoad(); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -196,6 +202,7 @@ export default { |
|
|
|
// 获取品牌店铺列表 |
|
|
|
getStoreList(){ |
|
|
|
let { brandInfo } = this; |
|
|
|
util.showLoad(); |
|
|
|
return servers.get({ |
|
|
|
url: API.stadiumList, |
|
|
|
data: { |
|
|
@ -204,6 +211,7 @@ export default { |
|
|
|
failMsg: '加载店铺列表失败!', |
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
|
util.hideLoad(); |
|
|
|
// let _list = [res.list[0]] || []; |
|
|
|
let _list = res.list || []; |
|
|
|
this.storeList = _list; |
|
|
|