...
|
...
|
@@ -36,6 +36,10 @@ Page({ |
|
|
onShow: function() {
|
|
|
const shopId = app.getShopId();
|
|
|
|
|
|
wx.setNavigationBarTitle({
|
|
|
title: app.getMiniappName(),
|
|
|
});
|
|
|
|
|
|
if (shopId) {
|
|
|
this.getShopData(shopId);
|
|
|
this.getShopProducts(shopId);
|
...
|
...
|
@@ -123,14 +127,6 @@ Page({ |
|
|
|
|
|
indexModel.shopInfo(params)
|
|
|
.then(res => {
|
|
|
if (res.data.shop_name) {
|
|
|
let shopName = res.data.shop_name;
|
|
|
|
|
|
wx.setNavigationBarTitle({
|
|
|
title: shopName,
|
|
|
});
|
|
|
}
|
|
|
|
|
|
let shopInfo = res.data;
|
|
|
|
|
|
this.setData({
|
...
|
...
|
|