feat(M09-D4): 完成商品选购与运营工作台
This commit is contained in:
@@ -44,6 +44,13 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
openGoods() {
|
||||
if (!this.data.storeId) return
|
||||
wx.navigateTo({
|
||||
url: `/pages/goods/index?storeId=${encodeURIComponent(this.data.storeId)}`,
|
||||
})
|
||||
},
|
||||
|
||||
async loadWifi() {
|
||||
if (!this.data.storeId) return
|
||||
this.setData({ loading: true, errorMessage: '' })
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<view wx:else class="title">门店详情</view>
|
||||
|
||||
<view wx:if="{{errorMessage}}" class="error">{{errorMessage}}</view>
|
||||
<button class="goods-entry" bindtap="openGoods">选购商品 · 查看商品订单与寄存</button>
|
||||
|
||||
<view class="section-title">房间</view>
|
||||
<view wx:if="{{!loading && rooms.length === 0}}" class="empty">暂无可预订房间</view>
|
||||
|
||||
@@ -67,3 +67,9 @@
|
||||
color: #888888;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.goods-entry {
|
||||
margin: 24rpx 0;
|
||||
color: #ffffff;
|
||||
background: #1d4ed8;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user