Browse Source

需求变更:原来要求必须是会员才能用的功能,不再做此要求。

任一存 2 năm trước cách đây
mục cha
commit
bddb402ad9

+ 17 - 16
packages/qjkankan-editor/src/views/base/customLogoSettings.vue

@@ -13,17 +13,17 @@
           @cancel="onClickCancelCustomLogo"
         ></SelectedImage>
       <div class="bottom-right">
-        <img 
+        <!-- <img 
           class="select-pic-btn"
           :src="require('@/assets/images/select_pic_btn.png')" alt=""
           @click="onClickSelectingPicBtn"
-        >
-        <!-- <button
+        > -->
+        <button
           class="ui-button submit"
           @click="onClickSelectingPicBtn"
         >
           选择图片
-        </button> -->
+        </button>
         <div class="remark">
           300*300px,600kb以内,支持<br>
           jpg/png格式
@@ -72,18 +72,19 @@ export default {
       this.info.isLogo = data
     },
     onClickSelectingPicBtn() {
-      getUserInfo((res) => {
-        try {
-          if (res.data.incrementNum > 0) {
-            this.isShowSelectionWindow = true
-          } else {
-            // 非会员,点击跳转四维看看会员权益页。
-            window.open('/#/mall/member')
-          }
-        } catch(e) {
-          console.error('解析会员身份失败:', e)
-        }
-      })
+      this.isShowSelectionWindow = true
+      // getUserInfo((res) => {
+      //   try {
+      //     if (res.data.incrementNum > 0) {
+      //       this.isShowSelectionWindow = true
+      //     } else {
+      //       // 非会员,点击跳转四维看看会员权益页。
+      //       window.open('/#/mall/member')
+      //     }
+      //   } catch(e) {
+      //     console.error('解析会员身份失败:', e)
+      //   }
+      // })
     },
     handleSubmitFromMaterialSelector(selected) {
       this.info.logo = selected[0].icon

+ 29 - 15
packages/qjkankan-editor/src/views/base/customMaskSettings.vue

@@ -13,11 +13,17 @@
           @cancel="onCancelSelection('sky')"
         ></SelectedImage>
         <div class="bottom-right">
-          <img 
+          <!-- <img 
             class="select-pic-btn"
             :src="require('@/assets/images/select_pic_btn.png')" alt=""
             @click="onSelectPic('sky')"
+          > -->
+          <button
+            class="ui-button submit"
+            @click="onSelectPic('sky')"
           >
+            选择图片
+          </button>
           <div class="ui-remark">建议500*500px,<br/>支持jpg/png格式</div>
         </div>
       </div>
@@ -31,11 +37,17 @@
           @cancel="onCancelSelection('earth')"
         ></SelectedImage>
         <div class="bottom-right">
-          <img 
+          <!-- <img 
             class="select-pic-btn"
             :src="require('@/assets/images/select_pic_btn.png')" alt=""
             @click="onSelectPic('earth')"
+          > -->
+          <button
+            class="ui-button submit"
+            @click="onSelectPic('earth')"
           >
+            选择图片
+          </button>
           <div class="ui-remark">建议500*500px,<br/>支持jpg/png格式</div>
         </div>
       </div>
@@ -76,19 +88,21 @@ export default {
   },
   methods: {
     onSelectPic(selectingFor) {
-      getUserInfo((res) => {
-        try {
-          if (res.data.incrementNum > 0) {
-            this.selectingFor = selectingFor
-            this.isShowSelectionWindow = true
-          } else {
-            // 非会员,点击跳转四维看看会员权益页。
-            window.open('/#/mall/member')
-          }
-        } catch(e) {
-          console.error('解析会员身份失败:', e)
-        }
-      })
+      this.selectingFor = selectingFor
+      this.isShowSelectionWindow = true
+      // getUserInfo((res) => {
+      //   try {
+      //     if (res.data.incrementNum > 0) {
+      //       this.selectingFor = selectingFor
+      //       this.isShowSelectionWindow = true
+      //     } else {
+      //       // 非会员,点击跳转四维看看会员权益页。
+      //       window.open('/#/mall/member')
+      //     }
+      //   } catch(e) {
+      //     console.error('解析会员身份失败:', e)
+      //   }
+      // })
     },
     handleSubmitFromMaterialSelector(selected) {
       this.info.customMask[this.selectingFor] = selected[0].icon