yangan
2024-09-05 48a4ff3409804fc62139a9fa9fc05498cbc0a0ce
pages/freight-forwarder-page/freightForwarder-my/freightForwarder-my.vue
@@ -166,6 +166,7 @@
            passwordModified: '',
            // 用户信息对象
            userInfo: {},
            phoneList:[]
         };
      },
      onLoad() {
@@ -179,7 +180,7 @@
               url:  `${BaseUrl}/admin/dict/page`,
               method: 'GET',
               data: {
                  dictType:'phone'
                  dictType:'Setings'
               },
               header: {
                  Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),
@@ -200,7 +201,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 => {
                     }
@@ -218,17 +223,11 @@
            });
         },
         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) => {