lex vor 8 Monaten
Ursprung
Commit
b98f04d4dd

+ 7 - 6
src/views/member-center/index.module.less

@@ -417,12 +417,13 @@
 
 
   .discountTag {
-    background: linear-gradient(180deg, #FF491A 0%, #FF9F7E 100%);
-    border-radius: 8px;
-    font-weight: 500;
-    font-size: 12px;
-    color: #FFFFFF;
-    padding: 2px 4px;
+    // background: linear-gradient(180deg, #FF491A 0%, #FF9F7E 100%);
+    // color: #FFFFFF;
+    display: inline-block;
+    width: 48px;
+    height: 16px;
+    background: url('./new-images/icon_discount-round.png') no-repeat center;
+    background-size: contain;
     margin-top: 1px;
   }
 

+ 3 - 1
src/views/member-center/index.tsx

@@ -188,6 +188,8 @@ export default defineComponent({
 
     const onSubmit = async () => {
       try {
+        // 永久会员
+        if (isPermanent.value) return
         const { data } = await request.post(
           `${state.apiSuffix}/memberPriceSettings/list`,
           {
@@ -559,7 +561,7 @@ export default defineComponent({
 
                         <p class={styles.s_title}>{member.title}</p>
                         {member.discount === 1 && (
-                          <span class={styles.discountTag}>专属优惠</span>
+                          <span class={styles.discountTag}></span>
                         )}
                         <p class={styles.price}>
                           <span>¥</span>

BIN
src/views/member-center/new-images/icon_discount-round.png


+ 7 - 0
src/views/order-detail/index.tsx

@@ -300,6 +300,13 @@ export default defineComponent({
             }
           })
           const result = res.data || {}
+          if (res.code === 998) {
+            this.dialogVisiable = true
+            this.dialogContent = '您当前VIP天数更新,请刷新后尝试'
+            this.dialogBtnText = '刷新'
+            this.dialogType = 'refresh'
+            return
+          }
           // 支付成功
           if (result.status == 'PAID') {
             this.$router.replace({