陶杰
2024-09-23 d23c25ffba52e073fbf120c45b511fc8ab683b0f
pages/user/supplier-user.vue
@@ -16,16 +16,20 @@
         <!-- v-if="currentInfo&&(currentInfo.id)" -->
         <view class="flex user-info">
            <!-- 头像 -->
            <image class="user-icon" v-if="
               currentInfo.customerDTO&&currentInfo.customerDTO.cover
               ||currentInfo.supplierDTO&&currentInfo.supplierDTO.cover
               (currentInfo.customerDTO&&currentInfo.customerDTO.cover)
               ||(currentInfo.supplierDTO&&currentInfo.supplierDTO.cover)
               ||(currentInfo.partnerDTO&&currentInfo.partnerDTO.cover)
               || currentInfo.picture
               " :src="
               currentInfo.customerDTO&&currentInfo.customerDTO.cover
               ||currentInfo.supplierDTO&&currentInfo.supplierDTO.cover
               (currentInfo.customerDTO&&currentInfo.customerDTO.cover)
               ||(currentInfo.supplierDTO&&currentInfo.supplierDTO.cover)
               ||(currentInfo.partnerDTO&&currentInfo.partnerDTO.cover)
               || currentInfo.picture
               " mode="scaleToFill"></image>
            <image class="user-icon" v-else
               src='https://youzhen123.oss-cn-huhehaote.aliyuncs.com/WechatOwnerProperty/images/mrtx.png'
               mode="scaleToFill"></image>
@@ -271,6 +275,13 @@
         <view class="user-util m-t-12 flex" v-if="selftype==='customer'||!selftype"
            @click="goto('/sub_pages/customer/customer-info/customer-info',true)">
            <view class="title">个人信息</view>
            <view class="right-icon">
               <uni-icons type="right"></uni-icons>
            </view>
         </view>
         <view class="user-util m-t-12 flex" v-if="selftype==='partner'||!selftype"
            @click="goto('/sub_pages/partner/partner-info/partner-info-personal',true)">
            <view class="title">个人资料</view>
            <view class="right-icon">
               <uni-icons type="right"></uni-icons>
            </view>
@@ -534,16 +545,7 @@
      onShow() {
         this.cacheUserId = ''
         this.getTj()
         // #ifdef PUB_CUSTOMER
         let that = this
         this.$http.request('get', '/api/customer/point/sign/sign/today', {}).then(res => {
            if (res.data) {
               that.signToday = true
            }
         })
         // #endif
         //判断有没有签到
      },
      onLoad(options) {
@@ -663,6 +665,9 @@
               this.cacheUserId = this.currentInfo.id
               let that = this
               setTimeout(() => {
                  // #ifdef PUB_CUSTOMER
                  this.$http.request('get', '/api/customer/center/tj', {}).then(res => {
                     if (res.code === 0) {
@@ -681,7 +686,13 @@
                        console.log('tj_order', that.tj_order)
                     }
                  })
                  //判断有没有签到
                  let that = this
                  this.$http.request('get', '/api/customer/point/sign/sign/today', {}).then(res => {
                     if (res.data) {
                        that.signToday = true
                     }
                  })
                  // #endif
               }, 200)