yangan
2024-09-06 7e7e77134aa0324993ce7d9db9884eab4d8f98fe
pages/customer-page/customer-my/customer-my.vue
@@ -59,7 +59,7 @@
               </view>
            </view>
         </view>
         <view class="personal-information-block">
         <!-- <view class="personal-information-block">
            <view class="block-main">
               <view class="huodai">
                  <combined-title title="我的承运商"
@@ -90,7 +90,7 @@
                  </view>
               </view>
            </view>
         </view>
         </view> -->
         <view class="personal-information-block">
            <view class="block-main">
               <view class="fleet-container">
@@ -129,7 +129,7 @@
         <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>
@@ -259,6 +259,9 @@
      computed: {
         roleType() {
            return uni.getStorageSync('roleType');
         },
         userInfo(){
               return uni.getStorageSync('userInfo');
         }
      },
      methods: {
@@ -274,7 +277,7 @@
               url:  `${BaseUrl}/admin/dict/page`,
               method: 'GET',
               data: {
                  dictType:'phone'
                  dictType:'Setings'
               },
               header: {
                  Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),
@@ -295,7 +298,11 @@
                        '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 => {
                     }
@@ -480,17 +487,11 @@
            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) => {