<template>
|
<view class="main-container user-container">
|
<!-- <view>
|
我的
|
</view> -->
|
<!-- 背景图 -->
|
<view class="top-bg" :style="{'padding-top':(StatusBar)+'px','line-height':CustomBar+'rpx' }">
|
<view class="title" style="position: relative;" >
|
我<uni-icons type="settings"></uni-icons>
|
|
</view>
|
<view class="icons">
|
<image class="icon1" src="../../static/imgs/user/usr-icon1.png" mode="aspectFit"></image>
|
<image class="icon2" src="../../static/imgs/home/home-shop-top-icon.png" mode="aspectFit"></image>
|
</view>
|
<view class="flex m-20 user-info" @click="goto('/pages/user/user-info/user-info',true)"
|
v-if="currentInfo&&(currentInfo.id)">
|
<!-- 头像 -->
|
<image class="user-icon" v-if="!currentInfo.picture" src="../../static/imgs/home/home-shop-top-icon.png"
|
mode="aspectFit"></image>
|
<image class="user-icon" v-if="currentInfo.picture" :src="currentInfo.picture" mode="aspectFit"></image>
|
|
<view class="name">
|
{{currentInfo.nickName || '-'}}
|
</view>
|
<uni-icons class="right-icon" type="right"></uni-icons>
|
</view>
|
|
|
</view>
|
<view class="user-utils m-20">
|
<view class="user-util">
|
<view>我的客服</view>
|
<view class="flex">
|
<image class="icon-clock m-r-6 m-t-2" src="../../static/common/icon-call.png"></image>
|
<view class="name">
|
客服电话: <span class="topic-gray">1386785374</span>
|
</view>
|
</view>
|
</view>
|
</view>
|
|
|
<view class="button-login-ou topic-gray" @click="clearlogout">
|
退出登录
|
</view>
|
|
<view style="padding-bottom:200rpx">
|
</view>
|
<farmer-footer flg="1"></farmer-footer>
|
|
|
</view>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
CustomBar: uni.getStorageSync('CustomBar'),
|
StatusBar: uni.getStorageSync('StatusBar'),
|
tcode: '',
|
inviterName: '',
|
// StatusBar:0,
|
|
};
|
},
|
|
onLoad(options) {
|
const url = options.q ? decodeURIComponent(options.q) : '';
|
const urlcode = options.url&&decodeURIComponent(options.url) || ''
|
},
|
created() {
|
|
},
|
methods: {
|
|
async clearlogout() {
|
await this.$message.confirm('是否退出登录?')
|
this.$store.commit('updateLogin',false)
|
|
uni.reLaunch({
|
url: '/pages/login/farmer-login'
|
})
|
},
|
|
|
|
}
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
@import "./user.scss";
|
</style>
|
|
<style lang="scss" scoped>
|
</style>
|