feat(M08-A): 接入顾客端个人中心

This commit is contained in:
Codex
2026-06-25 11:43:25 +08:00
parent c7c869c18b
commit 7446852cca
14 changed files with 476 additions and 4 deletions
+4
View File
@@ -69,6 +69,10 @@ Page({
wx.navigateTo({ url: '/pages/orders/list' })
},
openProfile() {
wx.navigateTo({ url: '/pages/profile/index' })
},
async resolveScene(code, sourceType) {
this.setData({ loading: true, errorMessage: '' })
try {
+4 -1
View File
@@ -1,7 +1,10 @@
<scroll-view class="scrollarea" scroll-y type="list">
<view class="container">
<view class="title">选择门店</view>
<button bindtap="openOrders">我的订单</button>
<view class="quick-actions">
<button bindtap="openOrders">我的订单</button>
<button bindtap="openProfile">个人中心</button>
</view>
<button loading="{{locating}}" bindtap="locateNearby">定位附近门店</button>
<view class="city-search">
<input value="{{city}}" placeholder="拒绝定位时输入城市" bindinput="onCityInput" />
+10
View File
@@ -13,6 +13,16 @@
font-weight: 600;
}
.quick-actions {
display: flex;
gap: 16rpx;
margin-bottom: 20rpx;
}
.quick-actions button {
flex: 1;
}
.city-search {
display: flex;
gap: 16rpx;