xuxy
2024-08-11 1e12164c39bad3891f2dc08729c4079fd56507d6
sub_pages/customer/trade/detail.vue
@@ -39,8 +39,11 @@
               <span class="num">{{ dto.price || '-' }}</span>
               元/扎
            </view>
            <view class="m-l-a m-r-15">
               <image src="../../../static/common/icon-kf.png" class="icon-kf m-l-15 img100"></image>
            <view class="m-l-a m-r-15">
               <button open-type="contact" class="component-button-contact" >
                  <image src="../../../static/common/icon-kf.png" class="icon-kf m-l-15 img100"></image>
               </button>
            </view>
            <view class="m-r-0 gwc" @click="submitShopping(dto)" v-if="!dto.shopnum">
@@ -183,13 +186,18 @@
         this.id = options.id || ''
         // #ifdef PUB_CUSTOMER
         if (options.partnerUserId) {
            let tmp = this
            tmp.sharePartnerUserId = options.partnerUserId
            //合伙人绑定的,判断当前用户,是否有登录,登录没绑定,没登录先缓存合伙人id,等注册和登录时候再弄
            setTimeout(() => {
               //并且当前用户没有绑定
               if(tmp.currentInfo.id&&tmp.currentInfo.customerDTO.partnerId){
                  return
               }
               if (tmp.currentInfo.id) {
                  tmp.bindPartnerUser(tmp.currentInfo.id, '')
                  tmp.bindPartnerUser(options.partnerUserId, '')
               } else {
                  tmp.sharePartnerUserId = options.partnerUserId
                  //没有登录到话设置到缓存