feat: 接入品牌图片资源并优化尺寸
This commit is contained in:
1 parent
60c2937ee2
commit
3da24ede37
7 files changed
+2
-2
No files matched your search
@@ -11,7 +11,7 @@ Page({
|
||||
getApp().globalData.brand = brand;
|
||||
wx.setNavigationBarTitle({ title: brand.name || '个人品牌' });
|
||||
const copy = getTemplate(brand.templateKey);
|
||||
this.setData({ brand, services, copy, loading: false });
|
||||
this.setData({ brand: { ...brand, coverUrl: brand.coverUrl || '/assets/brand/home-hero.jpg' }, services, copy, loading: false });
|
||||
}).catch(() => this.setData({ loading: false, error: '暂时无法加载内容' }));
|
||||
},
|
||||
selectService(event) { wx.navigateTo({ url: '/pages/booking/index?serviceId=' + encodeURIComponent(event.currentTarget.dataset.id) }); },
|
||||
|
||||
Reference in new issue
Block a user