| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="personal-information-block"> |
| | | <!-- <view class="personal-information-block"> |
| | | <view class="block-main"> |
| | | <view class="huodai"> |
| | | <combined-title title="我的承运商" |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view class="personal-information-block"> |
| | | <view class="block-main"> |
| | | <view class="fleet-container"> |
| | |
| | | <view class="statistics"><u-button text="用户管理" |
| | | type="primary" |
| | | @click="userManage" |
| | | v-if="roleType == 1 && userEntity.isHostUser === '0'"></u-button></view> |
| | | v-if="roleType == 1 && userInfo.isHostUser === 0"></u-button></view> |
| | | <view class="logout"><u-button text="修改密码" |
| | | type="primary" |
| | | @click="modifyPwd"></u-button></view> |
| | |
| | | computed: { |
| | | roleType() { |
| | | return uni.getStorageSync('roleType'); |
| | | }, |
| | | userInfo(){ |
| | | return uni.getStorageSync('userInfo'); |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | url: `${BaseUrl}/admin/dict/page`, |
| | | method: 'GET', |
| | | data: { |
| | | dictType:'phone' |
| | | dictType:'Setings' |
| | | }, |
| | | header: { |
| | | Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'), |
| | |
| | | 'CLIENT_TOC': 'Y', |
| | | }, |
| | | success: res => { |
| | | this.phoneList=res.data.data.records |
| | | res.data.data.records.forEach(item=>{ |
| | | if(item.description.includes('联系')){ |
| | | this.phoneList=item.value.split(',') |
| | | } |
| | | }) |
| | | }, |
| | | fail: err => { |
| | | } |
| | |
| | | this.logoutShow = true; |
| | | }, |
| | | contactUs(){ |
| | | let data=[] |
| | | this.phoneList.map(item=>{ |
| | | item.value.split(',').map(ite=>{ |
| | | data.push(ite) |
| | | }) |
| | | }) |
| | | uni.showActionSheet({ |
| | | itemList: Array.from(new Set(data)), |
| | | success: (res) => { |
| | | itemList: this.phoneList, |
| | | success: (res) => { |
| | | uni.makePhoneCall({ |
| | | phoneNumber:Array.from(new Set(data))[res.tapIndex + 1] |
| | | phoneNumber:this.phoneList[res.tapIndex].split(":")[1] |
| | | }) |
| | | }, |
| | | fail: (err) => { |