feat: add resident miniapp MVP
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
.menu {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user