feat: add resident miniapp MVP

This commit is contained in:
王鹏
2026-07-07 16:38:13 +08:00
parent bb325151d6
commit 576c54ec9d
52 changed files with 17865 additions and 66 deletions

View File

@@ -1 +1,19 @@
Page({})
Page({
data: {
user: null
},
onShow() {
const app = getApp()
this.setData({ user: app.globalData.user || null })
},
go(event) {
const url = event.currentTarget.dataset.url
if (event.currentTarget.dataset.tab) {
wx.switchTab({ url })
return
}
wx.navigateTo({ url })
}
})

View File

@@ -1 +1,11 @@
<view class="page">我的</view>
<view class="page">
<view class="card">
<view class="section-title">我的</view>
<view class="muted">邻小帮居民端</view>
</view>
<view class="card menu" bindtap="go" data-url="/pages/orders/index">我的订单</view>
<view class="card menu" bindtap="go" data-url="/pages/address/index">地址管理</view>
<view class="card menu" bindtap="go" data-url="/pages/express/create">代取快递</view>
<view class="card menu" bindtap="go" data-url="/pages/products/index">商品预定</view>
<view class="card menu" bindtap="go" data-url="/pages/notices/index">社区公告</view>
</view>

View File

@@ -1,3 +1,3 @@
.page {
min-height: 100vh;
.menu {
font-weight: 600;
}