陶杰
2025-01-19 87a56274d598af9842b593ec972f517161f60707
pages/home/supplier-home.vue
@@ -75,10 +75,10 @@
               </view>
               <view class="t2 flex " style="align-items: center; justify-content: start;" >
                  <view>{{ currentInfo.supplierSub.phone || currentInfo.tel || '暂无电话' }}</view>
                  <view v-if="selftype === 'supplier'">
                  <!-- <view v-if="selftype === 'supplier' && $hasPermission('supplier:workbench:common:functions:sub:account')  ">
                     <view v-if="currentInfo.isSubSupplier" class="account_sub  m-l-a m-r-0"  >子账号</view>
                     <view v-else class="account_sub  m-l-a m-r-0"  >主账号</view>
                  </view>
                  </view> -->
               </view>
               <view class="t2" v-if="currentInfo.partnerDTO && currentInfo.partnerDTO.id">
                  ID: {{ currentInfo.partnerDTO.id }}
@@ -281,7 +281,7 @@
            </view>
            <view class="nav row margin-tb function-item "
            <!-- <view class="nav row margin-tb function-item "
               v-if="(selftype === 'supplier' && $hasPermission('supplier:workbench:common:functions:sub:account'))"
               @click="goto('/sub_pages/supplier/sub-account/sub-account-list', true)">
               <view class="img-c">
@@ -290,7 +290,7 @@
                     mode="scaleToFill" />
               </view>
               <view class="order-desc syst">子账号</view>
            </view>
            </view> -->
            <!-- <view class="nav row margin-tb function-item "></view> -->
         </view>
      </view>
@@ -360,10 +360,20 @@
      uni.stopPullDownRefresh()
   },
   onLoad(options) {
      const url = options.q ? decodeURIComponent(options.q) : '';
      const urlcode = options.url && decodeURIComponent(options.url) || ''
   },
   onShow() {
   async onShow() {
      if(this.selftype==='supplier'){
         // 刷新供应商菜单
         await this.$store.dispatch('getAppMenuSupplier')
      }else if(this.selftype==='partner'){
         // 刷新合伙人菜单
         await this.$store.dispatch('getAppMenuPartner')
      }
      this.getTj(true)
   },
   created() {
@@ -431,6 +441,7 @@
         var that = this;
         wx.getBluetoothAdapterState({
            success: (result) => {
               // debugger;
               console.log('b s', result)
               console.log("蓝牙状态:\n" + result.errMsg)
               if (result.adapterState.available) {