xiebaomin 1 سال پیش
والد
کامیت
d007264166
1فایلهای تغییر یافته به همراه18 افزوده شده و 9 حذف شده
  1. 18 9
      components/cm-share-popup/cm-seller-modal.vue

+ 18 - 9
components/cm-share-popup/cm-seller-modal.vue

@@ -2,7 +2,11 @@
     <view class="seller-card" v-if="userId > 0">
         <view class="seller-card-mine" v-if="!modal" @click="changeModal">
             <image
-                :src="userInfo.image.length > 12 ? userInfo.image : 'https://static.caimei365.com/app/img/icon/default-head-new.png'"
+                :src="
+                    userInfo.image && userInfo.image.length > 12
+                        ? userInfo.image
+                        : 'https://static.caimei365.com/app/img/icon/default-head-new.png'
+                "
                 style="width: 100%;height: 100%;object-fit: contain;border-radius: 50%;"
                 mode=""
             ></image>
@@ -29,7 +33,9 @@
                             <view class="card-head">
                                 <image
                                     :src="
-                                        userInfo.image.length > 12 ? userInfo.image : 'https://static.caimei365.com/app/img/icon/default-head-new.png'
+                                        userInfo.image && userInfo.image.length > 12
+                                            ? userInfo.image
+                                            : 'https://static.caimei365.com/app/img/icon/default-head-new.png'
                                     "
                                     mode=""
                                     class="head"
@@ -40,7 +46,12 @@
                                     <view class="card-name">{{ userInfo.linkMan }}</view>
                                     <view class="card-info-tab">客户经理</view>
                                 </view>
-                                <view class="card-info-iphone">{{ userInfo.contractMobile && userInfo.contractMobile.replace(/(?=(\d{4})+$)/g,"-") }}</view>
+                                <view class="card-info-iphone">
+                                    {{
+                                        userInfo.contractMobile &&
+                                            userInfo.contractMobile.replace(/(?=(\d{4})+$)/g, '-')
+                                    }}
+                                </view>
                             </view>
                         </view>
                         <view class="card-qrcode">
@@ -53,9 +64,7 @@
                                 ></image>
                             </view>
                             <view class="tips">
-                                <view>
-                                    长按或扫二维码
-                                </view>
+                                <view>长按或扫二维码</view>
                                 <view style="white-space: nowrap;">——联系我——</view>
                             </view>
                         </view>
@@ -95,7 +104,7 @@ export default {
         },
         initData() {
             this.userId = this.sellerUserId || uni.getStorageSync('sellerUserId')
-            if(this.userId > 0) {
+            if (this.userId > 0) {
                 this.getUserInfo()
                 if (uni.getStorageSync('sellerCardChange') === 1) {
                     this.modal = true
@@ -133,13 +142,13 @@ export default {
         color: #fff;
         font-size: 18rpx;
         font-weight: bold;
-        background-color: #FF5B00;
+        background-color: #ff5b00;
         bottom: 0;
         left: 0;
         border-radius: 20rpx;
         text-align: center;
         line-height: 30rpx;
-        box-shadow: 0rpx 3rpx 6rpx 1rpx rgba(255,92,0,0.16);
+        box-shadow: 0rpx 3rpx 6rpx 1rpx rgba(255, 92, 0, 0.16);
         transform: translate(-12%, 70%);
     }
 }