陶杰
2025-01-08 b920f9813d247e5c18677395c58281b00bef89cc
pages/user/supplier-user.vue
@@ -241,7 +241,7 @@
            <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">
                  <image src="/static/common/icon-wx.png" class="icon icon-call m-t-2  m-r-10 img100"></image>
@@ -642,9 +642,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 +664,7 @@
      }
      // #endif
   },
   created() {
@@ -675,6 +683,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'