bding 1 سال پیش
والد
کامیت
aa90e8db65
1فایلهای تغییر یافته به همراه11 افزوده شده و 0 حذف شده
  1. 11 0
      pages-purchaser/components/infoCard.vue

+ 11 - 0
pages-purchaser/components/infoCard.vue

@@ -4,6 +4,7 @@
       <view class="author-img">
         <button class="avatar-wrapper" open-type="chooseAvatar" @chooseavatar="onChooseAvatar">
           <image :src="authorDetail.HeadImg"></image>
+          <image @click="onChooseAvatar" v-if="authorDetail.HasChangeHeadImg == 0" class="is-photo" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/photo_icon.png"></image>
         </button>
         <view class="set-btn" v-if="pagesType == '专栏详情'" @click.stop="editMyColumn"> 编辑专栏</view>
       </view>
@@ -70,6 +71,7 @@ export default {
           });
           if (resUp.Ret === 200) {
             that.$parent.authorDetail.HeadImg = data.Data.ResourceUrl;
+            that.$parent.authorDetail.HasChangeHeadImg = 1;
           }
         },
       });
@@ -106,6 +108,15 @@ export default {
       .avatar-wrapper {
         background: rgba(0, 0, 0, 0);
       }
+      .is-photo {
+        position: absolute;
+        top: (calc(50% - 15rpx));
+        left: 50%;
+        width: 60rpx;
+        height: 60rpx;
+        z-index: 9;
+        transform: translate(-50%, -50%);
+      }
       image {
         background: rgba(0, 0, 0, 0);
         width: 111rpx;