feat(M09-D4): 完成商品选购与运营工作台

This commit is contained in:
Codex
2026-08-11 08:06:13 +08:00
parent 60264cbd11
commit e91b979128
32 changed files with 1065 additions and 60 deletions
+7
View File
@@ -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: '' })
+1
View File
@@ -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>
+6
View File
@@ -67,3 +67,9 @@
color: #888888;
text-align: center;
}
.goods-entry {
margin: 24rpx 0;
color: #ffffff;
background: #1d4ed8;
}