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
}
},
{
"path": "pages/index/icons",
"style": {
"navigationBarTitleText": "ICONS"
},
"meta": {
"auth": false
}
},
{
"path": "pages/index/index",
"style": {
@ -55,15 +64,6 @@
"meta": {
"auth": false
}
},
{
"path": "pages/index/icons",
"style": {
"navigationBarTitleText": "uni-app"
},
"meta": {
"auth": false
}
}
],
"subPackages": [
@ -130,6 +130,9 @@
},
{
"pagePath": "pages/index/my"
},
{
"pagePath": "pages/index/icons"
}
]
},

View File

@ -1,6 +1,5 @@
<template>
<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="merchant-info flex align-center">
<image class="logo" :src="merchantInfo.logo" mode="aspectFill"></image>

View File

@ -1,6 +1,5 @@
<template>
<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="user-info flex align-center">
<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="sremain ss-font-60">{{ remain }}</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 class="cent ss-m-t-20"> 总获取积分 {{ userInfo.point }} </view>
</view>

View File

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

View File

@ -80,6 +80,12 @@ const useAppStore = defineStore(
text: '我的',
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: {
activeColor: '#fc4141',