|
@@ -1,9 +1,9 @@
|
|
<template>
|
|
<template>
|
|
<view class="main">
|
|
<view class="main">
|
|
- <view class="user" @click="go('/pages/user/auth')">
|
|
|
|
|
|
+ <view class="user" @click="go('/pages/user/info')">
|
|
<image :src="user.avatar ? ip + user.avatar : '../../static/favicon.png'" class="head"></image>
|
|
<image :src="user.avatar ? ip + user.avatar : '../../static/favicon.png'" class="head"></image>
|
|
<view class="con" v-if="user.id">
|
|
<view class="con" v-if="user.id">
|
|
- <view class="nickName">{{ user.type == 0 ? '个人用户' : '企业用户' }}</view>
|
|
|
|
|
|
+ <view class="nickName">{{ user.nickName ? user.nickName : '个人用户' }}</view>
|
|
<view class="welcome">欢迎使用岑溪人民医院小程序</view>
|
|
<view class="welcome">欢迎使用岑溪人民医院小程序</view>
|
|
</view>
|
|
</view>
|
|
<view class="con" v-else>
|
|
<view class="con" v-else>
|
|
@@ -14,10 +14,30 @@
|
|
</view>
|
|
</view>
|
|
<view class="cmd">
|
|
<view class="cmd">
|
|
<view class="s_item" @click="go('/pages/help/my')">
|
|
<view class="s_item" @click="go('/pages/help/my')">
|
|
- <text class="icon ic" style="color: #f44336"></text>
|
|
|
|
|
|
+ <text class="icon ic" style="color: #03a9f4"></text>
|
|
|
|
+ <text class="title">我的体检</text>
|
|
|
|
+ <text class="icon arrow"></text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="s_item" @click="go('/pages/follow/index')">
|
|
|
|
+ <text class="icon ic" style="color: #607d8b"></text>
|
|
<text class="title">我的回访</text>
|
|
<text class="title">我的回访</text>
|
|
<text class="icon arrow"></text>
|
|
<text class="icon arrow"></text>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="s_item" @click="go('/pages/help/my')">
|
|
|
|
+ <text class="icon ic" style="color: #f44336"></text>
|
|
|
|
+ <text class="title">分享应用</text>
|
|
|
|
+ <text class="icon arrow"></text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="s_item" @click="go('/pages/help/my')">
|
|
|
|
+ <text class="icon ic" style="color: #4caf50"></text>
|
|
|
|
+ <text class="title">建议反馈</text>
|
|
|
|
+ <text class="icon arrow"></text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="s_item" @click="go('/pages/other/setting')">
|
|
|
|
+ <text class="icon ic" style="color: #9e9e9e"></text>
|
|
|
|
+ <text class="title">设置</text>
|
|
|
|
+ <text class="icon arrow"></text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -27,19 +47,14 @@ export default {
|
|
return {
|
|
return {
|
|
ip: this.http.ip,
|
|
ip: this.http.ip,
|
|
user: {},
|
|
user: {},
|
|
- type: [
|
|
|
|
- { name: '找工作(个人)', value: 0 },
|
|
|
|
- { name: '我要招聘(企业)', value: 1 }
|
|
|
|
- ],
|
|
|
|
show: false
|
|
show: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- /* this.user = {
|
|
|
|
- token: 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjdhZGY4MzFmLWE0NjQtNGY5YS04YTY5LWMzM2QyNDU2MzI2ZSJ9.EPHElRmlVoFTfT4OxHNpvIC7bDKc1gKpNiO1u_dBOerYh5JFIuSrSkgp0PtQ0kOhO9iuvU0dttEGbsgofdrcpQ'
|
|
|
|
|
|
+/* this.user = {
|
|
|
|
+ token: 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImQ3YmZjZjVkLTgxZTgtNGJjMi04MjA1LTE5ZTY3NzdhNzEyMSJ9._pm56LMt6uOsjee2AlZOKdESEEj9axkz62-T74YsHeifH78cn2BouBDSCl-lDPpvOWmJOs1-CZS44oCUeBGlhw'
|
|
};
|
|
};
|
|
uni.setStorageSync('user', this.user); */
|
|
uni.setStorageSync('user', this.user); */
|
|
-
|
|
|
|
if (this.hasLogin()) {
|
|
if (this.hasLogin()) {
|
|
this.getUserInfo();
|
|
this.getUserInfo();
|
|
} else {
|
|
} else {
|
|
@@ -52,12 +67,6 @@ export default {
|
|
url: '/app/user/info',
|
|
url: '/app/user/info',
|
|
success: (res) => {
|
|
success: (res) => {
|
|
this.user = res.data.data;
|
|
this.user = res.data.data;
|
|
- uni.setStorageSync('money', res.data.data.money || 0);
|
|
|
|
- uni.setStorageSync('bankName', res.data.data.bankName);
|
|
|
|
- if (res.data.data.type == null) {
|
|
|
|
- uni.navigateTo({ url: '/pages/user/switch' });
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -71,7 +80,7 @@ export default {
|
|
},
|
|
},
|
|
onShareAppMessage: function (res) {
|
|
onShareAppMessage: function (res) {
|
|
return {
|
|
return {
|
|
- title: '爱就业咨询服务平台',
|
|
|
|
|
|
+ title: '岑溪人民医院小程序',
|
|
path: '/pages/index/index',
|
|
path: '/pages/index/index',
|
|
imageUrl: 'https://chenglantimes.com/prod-api/profile/upload/2024/06/16/blob_20240616055022A009.jpeg',
|
|
imageUrl: 'https://chenglantimes.com/prod-api/profile/upload/2024/06/16/blob_20240616055022A009.jpeg',
|
|
success: (res) => {},
|
|
success: (res) => {},
|