瀏覽代碼

Merge branch 'iteration-20240715'

lex 1 年之前
父節點
當前提交
9c54bad0f0

二進制
src/components/col-share/images/vip1.png


二進制
src/teacher/share-page/share-vip/images/icon-equity-bg.png


+ 8 - 5
src/views/member-center/index.module.less

@@ -319,7 +319,7 @@
   line-height: 18px;
   line-height: 18px;
 
 
   .discountAvatar {
   .discountAvatar {
-    margin-left: 15px;
+    margin-left: 12px;
     width: 34px;
     width: 34px;
     height: 34px;
     height: 34px;
     border-radius: 50%;
     border-radius: 50%;
@@ -452,7 +452,7 @@
     top: -7px;
     top: -7px;
     width: 77px;
     width: 77px;
     height: 20px;
     height: 20px;
-    background: url('./new-images/icon-permanent.png') no-repeat center;
+    background: url('./new-images/icon-permanent1.png') no-repeat center;
     background-size: contain;
     background-size: contain;
 
 
   }
   }
@@ -537,7 +537,7 @@
     justify-content: space-between;
     justify-content: space-between;
     padding: 0 20px;
     padding: 0 20px;
     width: calc(100% - 32px);
     width: calc(100% - 32px);
-    margin: 0 16px;
+    margin: 0 0 0 16px;
     // margin: 0;
     // margin: 0;
     min-height: 81px;
     min-height: 81px;
     border: 2px solid #0ED8B0;
     border: 2px solid #0ED8B0;
@@ -545,13 +545,16 @@
 
 
     .iconPermanent {
     .iconPermanent {
       left: -2px;
       left: -2px;
+      background: url('./new-images/icon-permanent.png') no-repeat center;
+      background-size: contain;
     }
     }
 
 
     .discountTag {
     .discountTag {
       position: absolute;
       position: absolute;
-      left: -2px;
+      right: -2px;
       top: -2px;
       top: -2px;
-      background: url('./new-images/icon_discount.png') no-repeat center;
+      left: auto;
+      background: url('./new-images/icon_discount2.png') no-repeat center;
       background-size: contain;
       background-size: contain;
       width: 48px;
       width: 48px;
       height: 16px;
       height: 16px;

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

@@ -171,7 +171,7 @@ export default defineComponent({
         window.scrollY ||
         window.scrollY ||
         window.pageYOffset ||
         window.pageYOffset ||
         document.documentElement.scrollTop
         document.documentElement.scrollTop
-      state.titleOpacity = height > 80 ? 1 : 0
+      state.titleOpacity = height > 30 ? 1 : 0
     })
     })
 
 
     /** 切换购买类型 */
     /** 切换购买类型 */
@@ -289,6 +289,7 @@ export default defineComponent({
             salePrice: member.salePrice,
             salePrice: member.salePrice,
             period: member.period,
             period: member.period,
             vipEndDays: userInfo.value.userVip?.vipEndDays || 0, // 会员剩余天数
             vipEndDays: userInfo.value.userVip?.vipEndDays || 0, // 会员剩余天数
+            svipEndDays: userInfo.value.userVip?.svipEndDays || 0,
             discount: member.discount, // 是否有折扣
             discount: member.discount, // 是否有折扣
             discountPrice: member.discountPrice, // 折扣金额
             discountPrice: member.discountPrice, // 折扣金额
             price: calcSalePrice(member),
             price: calcSalePrice(member),

二進制
src/views/member-center/new-images/icon-permanent1.png


二進制
src/views/member-center/new-images/icon_discount2.png


+ 1 - 1
src/views/order-detail/index.tsx

@@ -526,7 +526,7 @@ export default defineComponent({
                 return (
                 return (
                   <OrderVip
                   <OrderVip
                     item={item}
                     item={item}
-                    disabled={orderStatus.orderObject.orderNo ? true : false}
+                    disabled={this.disabledCoupon}
                     onPriceChange={(price: number) => {
                     onPriceChange={(price: number) => {
                       // 重置金额
                       // 重置金额
                       this.orderAmount = Number(price)
                       this.orderAmount = Number(price)

+ 11 - 1
src/views/order-detail/order-vip/index.tsx

@@ -43,6 +43,16 @@ export default defineComponent({
         }
         }
       }
       }
       return 1
       return 1
+    },
+    startTime() {
+      const item = this.item
+      if (this.disabled) {
+        return item.startTime
+      }
+      if (item.svipEndDays > 0) {
+        return dayjs(item.startTime).add(1, 'day').format('YYYY-MM-DD')
+      }
+      return item.startTime
     }
     }
   },
   },
   render() {
   render() {
@@ -145,7 +155,7 @@ export default defineComponent({
                       <span style={{ paddingLeft: '5px' }}>生效时间</span>
                       <span style={{ paddingLeft: '5px' }}>生效时间</span>
                     </div>
                     </div>
                     <div class={styles.timer}>
                     <div class={styles.timer}>
-                      {item.startTime} 至 {item.endTime}
+                      {this.startTime} 至 {item.endTime}
                     </div>
                     </div>
                   </div>
                   </div>
                 )
                 )