陶杰
2025-01-13 f926e6141482ca1c7ea8de58c06736e7d93abf9f
pages/user/supplier-user.vue
@@ -229,26 +229,25 @@
         </view>
      </view>
      <view class="user-utils kf-container  m-20 flex" v-if="selftype === 'customer' || !selftype"
         @click="goto('/sub_pages/supplier/customer_service/customer_service', false)">
         <view class="">
      <view class="user-utils kf-container  m-20 flex" v-if="selftype === 'customer' || !selftype" >
         <view class="" @click="goto('/sub_pages/supplier/customer_service/customer_service', false)">
            <image src="/static/common/icon-kf.png" class="icon-kf m-r-15 img100 icon"></image>
         </view>
         <view class="flex1">
            <view class="icon-view" style="font-weight: 600;">
            <view class="icon-view" style="font-weight: 600;" @click="goto('/sub_pages/supplier/customer_service/customer_service', false)">
               我的客服
            </view>
            <view class="flex m-t-12">
               <view class="flex1 w-fit m-auto icon-view" @click.stop="callTel">
                  <image src="/static/common/icon-call.png" class="icon icon-call m-r-10  img100"></image>
                  {{ tel }}
                  {{ tel || '' }}
               </view>
               <view class="flex1 w-fit m-auto icon-view flex flex-wrap-normal" open-type="contact">
               <view class="flex1 w-fit m-auto icon-view flex flex-wrap-normal" @click="goto('/sub_pages/supplier/customer_service/customer_service', false)">
                  <image src="/static/common/icon-wx.png" class="icon icon-call m-t-2  m-r-10 img100"></image>
                  <button open-type="contact" class="component-button-contact" @handleContact="handleContact">
                  <view>在线客服</view>
                  <!-- <button open-type="contact" class="component-button-contact" @handleContact="handleContact">
                     在线客服
                  </button>
                  </button> -->
               </view>
@@ -642,9 +641,16 @@
      }
   },
   // #endif
   onShow() {
   async onShow() {
      if(this.selftype==='supplier'){
         await this.$store.dispatch('getAppMenuSupplier')
      }else if(this.selftype==='partner'){
         await this.$store.dispatch('getAppMenuPartner')
      }
      this.cacheUserId = ''
      this.getTj()
      this.getHotLineConfig()
   },
@@ -657,6 +663,7 @@
      }
      // #endif
   },
   created() {
@@ -675,6 +682,27 @@
      uni.stopPullDownRefresh()
   },
   methods: {
      async getHotLineConfig() {
         this.$message.showLoading()
         const {
            code,
            data
         } = await this.$http.request('get', `/v2/config-param/base/getBaseString`, {
            params: {
               paramGroup: "servicehotline",
               paramKey: "hotline_tel"
            }
         })
         this.$message.hideLoading()
         if (code === 0) {
            // 电话
            console.log(data)
            this.tel =data
         }
      },
      switchSubAccount() {
         uni.navigateTo({
            url: '/sub_pages/supplier/sub-account/sub-account-switch-list'