|
|
@ -17,7 +17,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="title2"> |
|
|
<view class="title2"> |
|
|
<view class="title22"> |
|
|
<view class="title22"> |
|
|
{{shop.shopName == undefined ?"":shop.shopName}} |
|
|
{{(shop.shopName == undefined || shop.shopName == null) ?"":shop.shopName}} |
|
|
</view> |
|
|
</view> |
|
|
<view class="title33" @tap="updateStatus"> |
|
|
<view class="title33" @tap="updateStatus"> |
|
|
{{businessStatus == '1'?'暂停营业':'正常营业'}} |
|
|
{{businessStatus == '1'?'暂停营业':'正常营业'}} |
|
|
@ -314,13 +314,17 @@ |
|
|
}, |
|
|
}, |
|
|
//获取营业状态 |
|
|
//获取营业状态 |
|
|
getBusinessStatus(){ |
|
|
getBusinessStatus(){ |
|
|
|
|
|
|
|
|
|
|
|
this.shop.shopName = uni.getStorageSync('shopName') |
|
|
return this.tui.request("/app/shoptakeaway/getByShopId", "GET", { |
|
|
return this.tui.request("/app/shoptakeaway/getByShopId", "GET", { |
|
|
shopId: uni.getStorageSync('shopId') |
|
|
shopId: uni.getStorageSync('shopId') |
|
|
}, false, true).then((res) => { |
|
|
}, false, true).then((res) => { |
|
|
if (res.code == 200) { |
|
|
if (res.code == 200) { |
|
|
|
|
|
if(res.result != null){ |
|
|
this.shop = res.result |
|
|
this.shop = res.result |
|
|
uni.setStorageSync('shopTakeaway',res.result) |
|
|
} |
|
|
this.shop.shopIcon = uni.getStorageSync('shopIcon') |
|
|
this.shop.shopIcon = uni.getStorageSync('shopIcon') |
|
|
|
|
|
uni.setStorageSync('shopTakeaway',res.result) |
|
|
this.businessStatus = res.result.status |
|
|
this.businessStatus = res.result.status |
|
|
} else { |
|
|
} else { |
|
|
this.tui.toast(res.message) |
|
|
this.tui.toast(res.message) |
|
|
|