|
@@ -25,12 +25,14 @@
|
|
<text>你还未人脸认证,请先人脸认证</text>
|
|
<text>你还未人脸认证,请先人脸认证</text>
|
|
<text class="icon" style="float: right"></text>
|
|
<text class="icon" style="float: right"></text>
|
|
</view>
|
|
</view>
|
|
- <view class="message _info" v-if="(user.userType == 1 || user.userType == 2) && user.face == 1">
|
|
|
|
|
|
+ <view class="message _info" style="padding: 10px;"
|
|
|
|
+ v-if="(user.userType == 1 || user.userType == 2) && user.face == 1">
|
|
<text class="icon"></text>
|
|
<text class="icon"></text>
|
|
- <text>人脸已认证<text style="color: blue;margin-left: 5px;"></text><text style="color: blue;" @click="authAgain">重新认证</text></text>
|
|
|
|
|
|
+ <text>人脸已认证<text style="color: blue;margin-left: 5px;"></text><text style="color: blue;"
|
|
|
|
+ @click="authAgain">重新认证</text></text>
|
|
</view>
|
|
</view>
|
|
<!--用户信息-->
|
|
<!--用户信息-->
|
|
- <view class="user" style="display: flex;">
|
|
|
|
|
|
+ <view class="user" style="display: flex;position: relative;">
|
|
<image src="../../static/icon/user.png" mode="widthFix" class="head"></image>
|
|
<image src="../../static/icon/user.png" mode="widthFix" class="head"></image>
|
|
<view class="con">
|
|
<view class="con">
|
|
<view class="nickName omit">{{user.name}}({{ user.phone }})</view>
|
|
<view class="nickName omit">{{user.name}}({{ user.phone }})</view>
|
|
@@ -40,9 +42,14 @@
|
|
<view class="tag" v-if="user.userType == 4">司机</view>
|
|
<view class="tag" v-if="user.userType == 4">司机</view>
|
|
<view class="tag" v-if="user.userType == 5">商户</view>
|
|
<view class="tag" v-if="user.userType == 5">商户</view>
|
|
<view class="tag" v-if="user.userType == 6">合作社</view>
|
|
<view class="tag" v-if="user.userType == 6">合作社</view>
|
|
- <view class="tag" style="margin-left: 0.5rem;" v-if="user.userType == 1||user.userType == 2"
|
|
|
|
- @click="go('/pages/wallet/wallet')">服务点数: {{ user.wallet }}</view>
|
|
|
|
|
|
+ <view class="tag" style="margin-left: 0.5rem;background: #ef9010;"
|
|
|
|
+ v-if="user.userType == 1||user.userType == 2" @click="go('/pages/wallet/wallet')">服务点:<text
|
|
|
|
+ style="margin-left: 5px;">{{user.wallet}}</text></view>
|
|
|
|
+ <view @click="go('/pages/wallet/wallet')" class="tag" style="background: 08a2f1;margin-left: 5px;"
|
|
|
|
+ v-if="user.userType == 1||user.userType == 2">充值</view>
|
|
|
|
+ <view class="del-account" @click="cancelAccount">注销</view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
<view class="clear"></view>
|
|
<view class="clear"></view>
|
|
</view>
|
|
</view>
|
|
<view class="cmd">
|
|
<view class="cmd">
|
|
@@ -66,11 +73,6 @@
|
|
<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/personal/setting')">
|
|
|
|
- <text class="icon ic"></text>
|
|
|
|
- <text class="title">设置</text>
|
|
|
|
- <text class="icon arrow"></text>
|
|
|
|
- </view> -->
|
|
|
|
<view class="s_item" @click="go('/pages/personal/editPassword')">
|
|
<view class="s_item" @click="go('/pages/personal/editPassword')">
|
|
<text class="icon ic"></text>
|
|
<text class="icon ic"></text>
|
|
<text class="title">修改密码</text>
|
|
<text class="title">修改密码</text>
|
|
@@ -86,11 +88,11 @@
|
|
<!-- <button class="btn exit" @click="cancelAccount()">注销账号</button> -->
|
|
<!-- <button class="btn exit" @click="cancelAccount()">注销账号</button> -->
|
|
</view>
|
|
</view>
|
|
<view class="version">
|
|
<view class="version">
|
|
- <view style="line-height: 30px;">
|
|
|
|
- <view>Copyright@2024-2030</view>
|
|
|
|
- <view>天保国际物流投资有限公司版权所有</view>
|
|
|
|
- <view>APP版本 {{version}}</view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <view style="line-height: 30px;">
|
|
|
|
+ <view>Copyright@2024-2030</view>
|
|
|
|
+ <view>天保国际物流投资有限公司版权所有</view>
|
|
|
|
+ <view>APP版本 {{version}}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -99,7 +101,9 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- user: {},
|
|
|
|
|
|
+ user: {
|
|
|
|
+ wallet: 0
|
|
|
|
+ },
|
|
version: uni.getAppBaseInfo().appVersion
|
|
version: uni.getAppBaseInfo().appVersion
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -135,7 +139,7 @@
|
|
uni.setStorageSync('info', this.user);
|
|
uni.setStorageSync('info', this.user);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- if (this.user.userType === 1) {
|
|
|
|
|
|
+ if (this.user.userType === 1 || this.user.userType == 2) {
|
|
this.http.request({
|
|
this.http.request({
|
|
url: '/level-one-server/app/TbPeople/getById',
|
|
url: '/level-one-server/app/TbPeople/getById',
|
|
data: {
|
|
data: {
|
|
@@ -149,7 +153,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- authAgain(){
|
|
|
|
|
|
+ authAgain() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages/face/faceRegister?type=1'
|
|
url: '/pages/face/faceRegister?type=1'
|
|
});
|
|
});
|
|
@@ -243,7 +247,7 @@
|
|
};
|
|
};
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
- content: '确定注销账号?注销后不能登录APP',
|
|
|
|
|
|
+ content: '注销后账号将无法使用!',
|
|
success: res => {
|
|
success: res => {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
uni.removeStorageSync('token');
|
|
uni.removeStorageSync('token');
|
|
@@ -261,7 +265,7 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -325,6 +329,19 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ .del-account {
|
|
|
|
+ width: 35px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 10px;
|
|
|
|
+ top: 10px;
|
|
|
|
+ background: #f54242;
|
|
|
|
+ color: white;
|
|
|
|
+ padding: 2px 3px;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+ line-height: 20px;
|
|
|
|
+ height: 20px;
|
|
|
|
+ }
|
|
|
|
+
|
|
.exit {
|
|
.exit {
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
background-color: white;
|
|
background-color: white;
|
|
@@ -336,4 +353,4 @@
|
|
color: #888484;
|
|
color: #888484;
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|