1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

小程序商品列表页优化;添加我的订单页面

This commit is contained in:
2023-03-20 23:34:59 +08:00
parent 960280b11e
commit c9f171e5d5
17 changed files with 331 additions and 167 deletions

View File

@@ -16,11 +16,17 @@ Page({
avatarUrl: defaultAvatarUrl,
nickName: "请登录",
displayUserId: "",
menuList: [{
id: "logout",
color: 'red',
title: "退出登录",
}]
menuList: [
{
id: "myOrder",
title: "我的订单",
},
{
id: "logout",
color: 'red',
title: "退出登录",
}
]
},
/**
@@ -111,6 +117,14 @@ Page({
console.log("event.target", event.target)
let menuId = event.target.id
switch (menuId) {
// 我的订单
case "myOrder":
wx.navigateTo({
url: '/pages/shop/myOrder'
})
break
// 退出登录
case "logout":
wx.clearStorageSync()
app.globalData.userInfo = null