Commit bda09b1a by 胡悦

首页添加退出、优化弹窗

1 parent 79001e16
......@@ -4,18 +4,19 @@
},
"pages": [
{
"path": "pages/home/home",
"path": "pages/common/login",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/common/login",
"path": "pages/home/home",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/detail/detail",
"style": {
......
......@@ -3,12 +3,12 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 17:20:55
* @LastEditTime: 2024-04-08 17:46:38
-->
<template>
<view>
详情页
<button @click="open">打开弹窗</button>
<button @click="open">完成接待</button>
<uni-popup ref="popup" type="bottom" :mask-click="false" border-radius="16px 16px 0 0">
<view class="popup-wrapper">
<view class="popup-box">
......@@ -78,7 +78,7 @@ const ACCOUT_LIST = [
},
{
label: '支行账号',
field: 'paymentType'
field: 'subBranchAccount'
},
{
label: '一般账户',
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-07 14:39:40
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 16:44:42
* @LastEditTime: 2024-04-08 17:40:50
-->
<template>
<view class="container">
......@@ -15,11 +15,11 @@
src="../../static/logo.png"
mode="scaleToFill"
/>
<view class="user-name">huyue</view>
<view class="user-name">{{userInfo.name}}</view>
<view class="user-position">延保专员</view>
</view>
<view class="left-footer">
<view class="logout">
<view class="logout" @click="logout">
<glsx-image class="icon-logout" src="home/icon-logout.png" mode="scaleToFill" />
<view>退出</view>
</view>
......@@ -29,7 +29,7 @@
src="home/icon-addr.png"
mode="scaleToFill"
/>
<view class="addr-text">东莞问界交付中心</view>
<view class="addr-text">{{userInfo.merchantName}}</view>
</view>
</view>
</view>
......@@ -66,20 +66,26 @@ export default {
title: "问界三包政策",
type: 1,
}
]
],
userInfo: {}
};
},
onLoad(options) {
const text = options.text;
uni.setNavigationBarTitle({
title: text,
});
this.userInfo = uni.$storage.get('userInfo')
this.getSoure()
},
methods: {
// 查询素材
async getSoure() {
this.moduleList = await uni.$api.commonApi.findSoureList()
},
// 退出
logout() {
console.log(1111111)
uni.reLaunch({
url: '/pages/common/login'
})
},
toDetail(item) {
// this.$Router.push({name:'detail'})
uni.navigateTo({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!