|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<view class="main">
|
|
|
<view class="user" @click="go('info')">
|
|
|
- <image :src="user.avatarUrl ? user.avatarUrl : '../../../static/favicon.png'" class="head"></image>
|
|
|
+ <image :src="user.avatarUrl ? user.avatarUrl : '../../static/favicon.png'" class="head"></image>
|
|
|
<view class="con" v-if="user.id">
|
|
|
<view class="nickName">微信用户</view>
|
|
|
<view class="welcome">欢迎使用爱就业咨询服务平台</view>
|
|
@@ -132,26 +132,26 @@
|
|
|
</view>
|
|
|
<view class="mtt">更多服务</view>
|
|
|
<view class="menu">
|
|
|
- <view class="cd" @click="go('index')">
|
|
|
+ <view class="cd" @click="go('/pages/statement/index/index')">
|
|
|
<view class="out">
|
|
|
<view class="int">
|
|
|
- <view class="icon" style="background-color: #ffc107"></view>
|
|
|
+ <view class="icon" style="background-color: #ffc107"></view>
|
|
|
<view class="title">结算广场</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="cd">
|
|
|
<view class="out">
|
|
|
- <view class="int">
|
|
|
- <view class="icon" style="background-color: #ff5722"></view>
|
|
|
- <view class="title">分享有利</view>
|
|
|
- </view>
|
|
|
+ <button class="int share" open-type="share" hover-class="none">
|
|
|
+ <view class="icon" style="background-color: #ff5722"></view>
|
|
|
+ <view class="title">分享应用</view>
|
|
|
+ </button>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="cd">
|
|
|
+ <view class="cd" @click="go('/pages/other/setting')">
|
|
|
<view class="out">
|
|
|
<view class="int">
|
|
|
- <view class="icon" style="background-color: #2196f3"></view>
|
|
|
+ <view class="icon" style="background-color: #9e9e9e"></view>
|
|
|
<view class="title">设置</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -174,6 +174,8 @@ export default {
|
|
|
uni.setStorageSync('user', this.user); */
|
|
|
if (this.hasLogin()) {
|
|
|
this.getUserInfo();
|
|
|
+ } else {
|
|
|
+ this.user = {};
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -194,28 +196,16 @@ export default {
|
|
|
} else {
|
|
|
uni.navigateTo({ url: '/pages/user/login' });
|
|
|
}
|
|
|
- },
|
|
|
- //退出登录
|
|
|
- exit(url) {
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '确定退出登录?',
|
|
|
- success: (res) => {
|
|
|
- if (res.confirm) {
|
|
|
- this.http.request({
|
|
|
- url: this.http.urls.logout,
|
|
|
- success: (res) => {
|
|
|
- uni.removeStorageSync('user');
|
|
|
- uni.$emit('top');
|
|
|
- uni.switchTab({
|
|
|
- url: '/pages/index/index'
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
}
|
|
|
+ },
|
|
|
+ onShareAppMessage: function (res) {
|
|
|
+ return {
|
|
|
+ title: '爱就业咨询服务平台',
|
|
|
+ path: '/pages/index/index',
|
|
|
+ imageUrl: '../../static/favicon.png',
|
|
|
+ success: (res) => {},
|
|
|
+ fail: (res) => {}
|
|
|
+ };
|
|
|
}
|
|
|
};
|
|
|
</script>
|