This commit is contained in:
Ankkaya 2024-05-30 18:57:02 +08:00
parent 69aa02da78
commit 659c5524a0
5 changed files with 41 additions and 25 deletions

View File

@ -29,6 +29,15 @@
"auth": false "auth": false
} }
}, },
{
"path": "pages/index/icons",
"style": {
"navigationBarTitleText": "ICONS"
},
"meta": {
"auth": false
}
},
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
@ -55,15 +64,6 @@
"meta": { "meta": {
"auth": false "auth": false
} }
},
{
"path": "pages/index/icons",
"style": {
"navigationBarTitleText": "uni-app"
},
"meta": {
"auth": false
}
} }
], ],
"subPackages": [ "subPackages": [
@ -103,18 +103,18 @@
] ]
}, },
{ {
"root": "pages/user", "root": "pages/user",
"pages": [ "pages": [
{ {
"path": "wallet/money", "path": "wallet/money",
"style": { "style": {
"navigationBarTitleText": "余额" "navigationBarTitleText": "余额"
}, },
"meta": { "meta": {
"auth": false "auth": false
} }
} }
] ]
} }
], ],
"tabBar": { "tabBar": {
@ -130,6 +130,9 @@
}, },
{ {
"pagePath": "pages/index/my" "pagePath": "pages/index/my"
},
{
"pagePath": "pages/index/icons"
} }
] ]
}, },

View File

@ -1,6 +1,5 @@
<template> <template>
<pb-layout navbar="inner" tabbar="/pages/index/index" :bgStyle="bgStyle"> <pb-layout navbar="inner" tabbar="/pages/index/index" :bgStyle="bgStyle">
<view :style="[{ paddingTop: peach.$platform.navBar + 'px' }]"></view>
<view class="dashboard-module ss-p-x-30"> <view class="dashboard-module ss-p-x-30">
<view class="merchant-info flex align-center"> <view class="merchant-info flex align-center">
<image class="logo" :src="merchantInfo.logo" mode="aspectFill"></image> <image class="logo" :src="merchantInfo.logo" mode="aspectFill"></image>

View File

@ -1,6 +1,5 @@
<template> <template>
<pb-layout navbar="inner" tabbar="/pages/index/my" :bgStyle="bgStyle"> <pb-layout navbar="inner" tabbar="/pages/index/my" :bgStyle="bgStyle">
<view :style="[{ paddingTop: peach.$platform.navBar + 'px' }]"></view>
<view class="my-module ss-p-x-30"> <view class="my-module ss-p-x-30">
<view class="user-info flex align-center"> <view class="user-info flex align-center">
<image class="avatar" :src="userInfo.avatar || '/static/default_avatar.png'" mode="aspectFill"></image> <image class="avatar" :src="userInfo.avatar || '/static/default_avatar.png'" mode="aspectFill"></image>
@ -18,7 +17,9 @@
<view class="unit self-start"></view> <view class="unit self-start"></view>
<view class="sremain ss-font-60">{{ remain }}</view> <view class="sremain ss-font-60">{{ remain }}</view>
</view> </view>
<button class="right-btn ss-reset-button">查看详情</button> <button @click="peach.$router.go('/pages/user/wallet/money')" class="right-btn ss-reset-button">
查看详情
</button>
</view> </view>
<view class="cent ss-m-t-20"> 总获取积分 {{ userInfo.point }} </view> <view class="cent ss-m-t-20"> 总获取积分 {{ userInfo.point }} </view>
</view> </view>

View File

@ -14,6 +14,13 @@ const AuthUtil = {
}, },
}) })
}, },
// 退出登陆
logout: () => {
return request({
url: '/particulars/member/auth/logout',
method: 'POST',
})
},
// 发送手机验证码 // 发送手机验证码
sendSmsCode: (mobile, scene) => { sendSmsCode: (mobile, scene) => {
return request({ return request({
@ -33,7 +40,7 @@ const AuthUtil = {
// 刷新令牌 // 刷新令牌
refreshToken: (refreshToken) => { refreshToken: (refreshToken) => {
return request({ return request({
url: '/member/auth/refresh-token', url: '/particulars/member/auth/refresh-token',
method: 'POST', method: 'POST',
params: { params: {
refreshToken, refreshToken,

View File

@ -80,6 +80,12 @@ const useAppStore = defineStore(
text: '我的', text: '我的',
url: '/pages/index/my', url: '/pages/index/my',
}, },
{
activeIconUrl: 'http://mall.yudao.iocoder.cn/static/images/4-002.png',
iconUrl: 'http://mall.yudao.iocoder.cn/static/images/4-001.png',
text: 'icons',
url: '/pages/index/icons',
},
], ],
style: { style: {
activeColor: '#fc4141', activeColor: '#fc4141',