Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
wly-APP
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘川
wly-APP
Commits
d59bde3f
Commit
d59bde3f
authored
Aug 23, 2022
by
chuan.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增登出 修复消息已读列表不可编辑状态
parent
b5770471
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
8 deletions
+40
-8
message-list-page.nvue
pages/message-list/message-list-page.nvue
+3
-0
usercenter.nvue
pages/usercenter/usercenter.nvue
+25
-8
user.js
servers/user.js
+12
-0
No files found.
pages/message-list/message-list-page.nvue
View file @
d59bde3f
...
...
@@ -173,6 +173,9 @@
this.requestParams.minId = 0;
},
async goDetail(item) {
if (item?.MSGSTATUS === '1') {
return
}
const params = {
id: item.id
}
...
...
pages/usercenter/usercenter.nvue
View file @
d59bde3f
...
...
@@ -78,20 +78,20 @@
</view>
</view>
<
!-- <
view class="bottom">
<view class="bottom">
<view class="cell-list">
<view class="cell-list-block">
<view class="cell-list-block"
@click="logOut"
>
<image class="icon-address" src="@/static/image/uc_address@3x.png" mode="aspectFit"></image>
<text class="cell-list-block__title">
收货地址
</text>
<
image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image
>
<text class="cell-list-block__title">
退出登录
</text>
<
!-- <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image> --
>
</view>
<view class="cell-list-block">
<
!-- <
view class="cell-list-block">
<image class="icon-address" src="@/static/image/uc_setting@3x.png" mode="aspectFit"></image>
<text class="cell-list-block__title">设置</text>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
</view>
</view>
-->
</view>
</view>
-->
</view>
</view>
</view>
</template>
...
...
@@ -104,6 +104,10 @@
apiGetBpPrice
} from '@/servers/common.js'
import {
apiLogOut
} from '@/servers/user.js'
export default {
onLoad() {
this.winHeight = `height:${this.sysinfo.safeArea.height}px`
...
...
@@ -147,6 +151,19 @@
uni.navigateTo({
url: "/pages/apply-order/apply-order"
})
},
logOut() {
apiLogOut().then((res) => {
uni.navigateTo({
url: "/pages/login/login"
})
}).catch(() => {
uni.showToast({
title: '登出异常',
icon: 'none',
duration: 1500
});
})
}
}
}
...
...
servers/user.js
View file @
d59bde3f
...
...
@@ -12,6 +12,18 @@ export async function apiLogin(params) {
return
res
}
/**
* 登出服务
* @param
* @returns {Promise<AxiosResponse<T>>}
*/
export
async
function
apiLogOut
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/crm-app/logout'
,
params
,
{
'Content-Type'
:
"application/x-www-form-urlencoded"
})
return
res
}
export
default
{
apiLogin
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment