|
@@ -4,7 +4,7 @@
|
|
<view class="customer">
|
|
<view class="customer">
|
|
<view class="bg"></view>
|
|
<view class="bg"></view>
|
|
<view class="info dir-top-wrap cross-center main-center">
|
|
<view class="info dir-top-wrap cross-center main-center">
|
|
- <view class="head-img">
|
|
|
|
|
|
+ <view class="head-img" @click="handleGetInfo">
|
|
<u-image
|
|
<u-image
|
|
width="140"
|
|
width="140"
|
|
height="140"
|
|
height="140"
|
|
@@ -45,7 +45,8 @@
|
|
{{setting.service_wechat}}
|
|
{{setting.service_wechat}}
|
|
<view slot="icon" class="icon wechat"></view>
|
|
<view slot="icon" class="icon wechat"></view>
|
|
</u-cell-item>
|
|
</u-cell-item>
|
|
- <u-cell-item title="在线客服" :border-bottom="false" bg-color="#f9f9f9">
|
|
|
|
|
|
+ <u-cell-item title="在线客服" :border-bottom="false" :use-label-slot="true" bg-color="#f9f9f9" :value-style="{position: 'relative'}">
|
|
|
|
+ <button open-type="contact" class="cell-btn" slot="label"></button>
|
|
<view slot="icon" class="icon kefu"></view>
|
|
<view slot="icon" class="icon kefu"></view>
|
|
</u-cell-item>
|
|
</u-cell-item>
|
|
<u-cell-item title="清除缓存" :border-bottom="false" icon="reload" bg-color="#f9f9f9" @click="handleClearCache">
|
|
<u-cell-item title="清除缓存" :border-bottom="false" icon="reload" bg-color="#f9f9f9" @click="handleClearCache">
|
|
@@ -120,7 +121,7 @@
|
|
handleGetInfo(){
|
|
handleGetInfo(){
|
|
let _this = this;
|
|
let _this = this;
|
|
uni.getUserProfile({
|
|
uni.getUserProfile({
|
|
- desc: '获取用户信息',
|
|
|
|
|
|
+ desc: '重新获取用户信息',
|
|
success: data => {
|
|
success: data => {
|
|
let params = {
|
|
let params = {
|
|
encryptedData: data.encryptedData,
|
|
encryptedData: data.encryptedData,
|
|
@@ -128,7 +129,7 @@
|
|
}
|
|
}
|
|
_this.$u.api.userUpdate(params).then(res => {
|
|
_this.$u.api.userUpdate(params).then(res => {
|
|
_this.$u.vuex(_this.$const.USER_DATA, res)
|
|
_this.$u.vuex(_this.$const.USER_DATA, res)
|
|
- _this.handleRedirect();
|
|
|
|
|
|
+ this.userData = res;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
fail: err => {
|
|
fail: err => {
|
|
@@ -170,6 +171,18 @@
|
|
/deep/.u-cell{
|
|
/deep/.u-cell{
|
|
padding: 22rpx 32rpx !important;
|
|
padding: 22rpx 32rpx !important;
|
|
}
|
|
}
|
|
|
|
+ .cell-btn{
|
|
|
|
+ border: 0;
|
|
|
|
+ background: transparent;
|
|
|
|
+ position: absolute;
|
|
|
|
+ height: 80rpx;
|
|
|
|
+ top: 0;
|
|
|
|
+ width: 86%;
|
|
|
|
+ z-index: 0;
|
|
|
|
+ &:after{
|
|
|
|
+ content: unset;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.container{
|
|
.container{
|
|
padding: 0;
|
|
padding: 0;
|
|
height: 100vh;
|
|
height: 100vh;
|