星油云站更新
This commit is contained in:
@@ -11,15 +11,10 @@
|
||||
<view class="cu-avatar round xl " :style="'background-image: url('+mainURL+'default-avator.png)'">
|
||||
|
||||
</view>
|
||||
<view class="content padding-left">
|
||||
<view class="">{{userInfo.cUserName}}</view>
|
||||
<view class=" text-sm flex">
|
||||
<view class="text-cut">
|
||||
<!-- <text class="cuIcon-infofill text-red margin-right-xs"></text> -->
|
||||
{{userInfo.cUserId}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-tag round bg-dark-main-color sm "> <text class="text-sm"> {{userInfo.phone}}</text></view>
|
||||
<view class="content userInfoList padding-left">
|
||||
<view class="margin-left-xs">{{userInfo.name}}</view>
|
||||
<view class=" showIds " > <text class="text-sm"> {{userInfo.id}}</text></view>
|
||||
<view class="cu-tag round bg-dark-main-color sm "> <text class="text-sm"> {{userInfo.userPhone}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -32,7 +27,7 @@
|
||||
<text class="color-000">所属油站</text>
|
||||
</view>
|
||||
<view class="action" @tap="routerTo('/pages/station-info/station-info')">
|
||||
<text class="text-grey text-sm">{{userInfo.cSiteName}}</text>
|
||||
<text class="text-grey text-sm">{{accountName}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -82,7 +77,10 @@
|
||||
data() {
|
||||
return {
|
||||
mainURL: this.global.mainURL,
|
||||
userInfo: {}
|
||||
userInfo: {},
|
||||
channel:{},
|
||||
accountName:''
|
||||
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -100,16 +98,19 @@
|
||||
loginOut() {
|
||||
uni.clearStorage()
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/boforeLogin/boforeLogin'
|
||||
url: '/pages/login/boforeLogin/boforeLogin?type=1' //
|
||||
})
|
||||
},
|
||||
getInfo() {
|
||||
cloudSiteApi.personCenter().then(res => {
|
||||
if (res.code == 20000) {
|
||||
this.userInfo = res.data
|
||||
uni.setStorageSync('oldPhone', res.data.phone)
|
||||
}
|
||||
})
|
||||
this.userInfo = uni.getStorageSync('loginUser')
|
||||
this.accountName=uni.getStorageSync('siteOli'),
|
||||
console.log(this.userInfo)
|
||||
// cloudSiteApi.personCenter().then(res => {
|
||||
// if (res.code == 20000) {
|
||||
// this.userInfo = res.data
|
||||
// uni.setStorageSync('oldPhone', res.data.phone)
|
||||
// }
|
||||
// })
|
||||
},
|
||||
setpwd() {
|
||||
uni.navigateTo({
|
||||
@@ -130,6 +131,20 @@
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.userInfoList{
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
.showIds{
|
||||
border-radius: 27rpx;
|
||||
padding: 0rpx 14rpx;
|
||||
font-size: 15rpx;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 3px;
|
||||
margin-bottom: 10upx;
|
||||
}
|
||||
.cu-list+.cu-list {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user