<template>
|
|
<view class="u-page">
|
|
<view class="se-pt-50 se-pb-40 se-px-40 se-bgc-green se-c-white se-pos">
|
|
<view class="se-flex">
|
|
<image :src="user.cerImage" class="se-br-p-50 se-w-100 se-h-100 se-bgc-f5" mode=""></image>
|
|
<view class="se-ml-20 se-flex se-flex-v-sa se-flex-ai-fs">
|
|
<view class="se-flex">
|
|
<text class="se-fw-6 se-fs-30">{{user.name}}</text>
|
|
<!-- <view class="se-flex se-flex-ai-c se-ml-20">
|
|
<image class="se-a-25 se-mr-10" src="@/static/image/pencil.png" mode=""></image>
|
|
<text class="se-fs-22">修改资料</text>
|
|
</view> -->
|
|
</view>
|
|
<view class="se-fs-24 se-display-ib">
|
|
<text>手机号:</text>
|
|
<text class="se-ml-20">{{user.phone}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="se-m-30 se-mt-30 se-pl-30 se-pr-20 se-br-20 se-bgc-white">
|
|
<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onReservation()">
|
|
<view class="se-flex se-flex-ai-c">
|
|
<image class="se-a-30" src="@/static/image/482011.png" mode=""></image>
|
|
<text class="se-ml-20 se-fs-24 se-fw-5">预约信息</text>
|
|
</view>
|
|
<view class="se-flex se-flex-ai-c">
|
|
<u-icon name="arrow-right"></u-icon>
|
|
</view>
|
|
</view>
|
|
<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onRelease">
|
|
<view class="se-flex se-flex-ai-c">
|
|
<image class="se-a-30" src="@/static/image/482014.png" mode=""></image>
|
|
<text class="se-ml-20 se-fs-24 se-fw-5">我的发布</text>
|
|
</view>
|
|
<view class="se-flex se-flex-ai-c">
|
|
<u-icon name="arrow-right"></u-icon>
|
|
</view>
|
|
</view>
|
|
<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onApply()">
|
|
<view class="se-flex se-flex-ai-c">
|
|
<image class="se-a-30" src="@/static/image/482013.png" mode=""></image>
|
|
<text class="se-ml-20 se-fs-24 se-fw-5">我的寻车申请</text>
|
|
</view>
|
|
<view class="se-flex se-flex-ai-c">
|
|
<u-icon name="arrow-right"></u-icon>
|
|
</view>
|
|
</view>
|
|
<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onInvite">
|
|
<view class="se-flex se-flex-ai-c">
|
|
<image class="se-a-30" src="@/static/image/482012.png" mode=""></image>
|
|
<text class="se-ml-20 se-fs-24 se-fw-5">我的邀请</text>
|
|
</view>
|
|
<view class="se-flex se-flex-ai-c">
|
|
<u-icon name="arrow-right"></u-icon>
|
|
</view>
|
|
</view>
|
|
<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onRecommend">
|
|
<view class="se-flex se-flex-ai-c">
|
|
<image class="se-a-30" src="@/static/image/482012.png" mode=""></image>
|
|
<text class="se-ml-20 se-fs-24 se-fw-5">我的推荐</text>
|
|
</view>
|
|
<view class="se-flex se-flex-ai-c">
|
|
<u-icon name="arrow-right"></u-icon>
|
|
</view>
|
|
</view>
|
|
<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onCustomerService">
|
|
<view class="se-flex se-flex-ai-c">
|
|
<image class="se-a-30" src="@/static/image/470868.png" mode=""></image>
|
|
<text class="se-ml-20 se-fs-24 se-fw-5">在线客服</text>
|
|
</view>
|
|
<view class="se-flex se-flex-ai-c">
|
|
<u-icon name="arrow-right"></u-icon>
|
|
</view>
|
|
</view>
|
|
<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onVersion">
|
|
<view class="se-flex se-flex-ai-c">
|
|
<image class="se-a-30" src="@/static/image/470868.png" mode=""></image>
|
|
<text class="se-ml-20 se-fs-24 se-fw-5">关于我们</text>
|
|
</view>
|
|
<view class="se-flex se-flex-ai-c">
|
|
<u-icon name="arrow-right"></u-icon>
|
|
</view>
|
|
</view>
|
|
<view class="se-py-30 se-px-20 se-flex se-flex-h-sb" @click="onLogOut">
|
|
<view class="se-flex se-flex-ai-c">
|
|
<text class="se-fs-24 se-fw-5">退出登录</text>
|
|
</view>
|
|
<view class="se-flex se-flex-ai-c">
|
|
<u-icon name="arrow-right"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { getInfo,queryPhone } from "@/common/api.js"
|
|
export default {
|
|
data() {
|
|
return {
|
|
user:{},
|
|
phone:"",
|
|
}
|
|
},
|
|
onLoad() {
|
|
this.onUserInfo()
|
|
this.onQueryPhone()
|
|
},
|
|
methods: {
|
|
onUserInfo(){
|
|
let that = this
|
|
getInfo({id:uni.getStorageSync('userInfo').id}).then(response=>{
|
|
console.info('resultresult',response)
|
|
that.user = response.result
|
|
}).catch(err=>{
|
|
|
|
})
|
|
},
|
|
onQueryPhone(){
|
|
queryPhone({}).then(response=>{
|
|
this.phone = response.result.paramValue
|
|
}).catch(error=>{
|
|
|
|
})
|
|
},
|
|
onInvite(){
|
|
uni.navigateTo({
|
|
url:"/pages_subpack/invite/index"
|
|
})
|
|
},
|
|
onRecommend(){
|
|
uni.navigateTo({
|
|
url:"/pages_subpack/recommend/index"
|
|
})
|
|
},
|
|
onRelease(){
|
|
uni.navigateTo({
|
|
url:"/pages_subpack/release/index"
|
|
})
|
|
},
|
|
onApply(){
|
|
uni.navigateTo({
|
|
url:"/pages_subpack/apply/list"
|
|
})
|
|
},
|
|
onSystem(){
|
|
uni.navigateTo({
|
|
url:"/pages_subpack/system/index"
|
|
})
|
|
},
|
|
onReservation(){
|
|
uni.navigateTo({
|
|
url:"/pages/reservation/index"
|
|
})
|
|
},
|
|
onVersion(){
|
|
uni.navigateTo({
|
|
url:"/pages_subpack/version/index"
|
|
})
|
|
},
|
|
onLogOut(){
|
|
uni.showModal({
|
|
title:"温馨提示",
|
|
content:"确定退出当前登录",
|
|
cancelText:"取消",
|
|
confirmText:"确定",
|
|
success:(res)=> {
|
|
console.info(res)
|
|
if(res.confirm==true){
|
|
uni.removeStorageSync("userInfo")
|
|
uni.removeStorageSync("token")
|
|
uni.removeStorageSync("sessionKey")
|
|
uni.navigateTo({
|
|
url:"/pages/auth/index"
|
|
})
|
|
}
|
|
}
|
|
})
|
|
|
|
},
|
|
onCustomerService(){
|
|
let that = this
|
|
// let obj = that.$utils.getkeyContent('phone')
|
|
if (uni.canIUse('makePhoneCall')) {
|
|
uni.makePhoneCall({
|
|
phoneNumber: String(that.phone),
|
|
success: function () {
|
|
console.log('拨打电话成功');
|
|
},
|
|
fail: function () {
|
|
console.log('拨打电话失败');
|
|
}
|
|
});
|
|
} else {
|
|
console.log('你的设备不支持拨打电话功能');
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
page {
|
|
background-color: #f5f5f5 !important;
|
|
}
|
|
|
|
.se-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
gap: 10rpx;
|
|
padding-bottom: 4rpx;
|
|
}
|
|
</style>
|