Sfoglia il codice sorgente

超级会员版本 订单划线价格修改

zhengjinyi 3 anni fa
parent
commit
757ac9cda8

+ 9 - 3
components/cm-module/orderDetails/goodsList.vue

@@ -31,7 +31,13 @@
 								>规格:{{ pros.productUnit ? pros.productUnit : '' }}</view
 							>
 							<view class="product-view">
-								<view class="view-num red" :class="pros.svipPriceFlag == 1 ? 'none' : ''">¥{{ pros.price | NumFormat }}</view>
+								<view
+									class="view-num red"
+									:class="
+										pros.svipPriceFlag == 1 || PromotionsFormat(pros.productPromotion) ? 'none' : ''
+									"
+									>¥{{ pros.price | NumFormat }}</view
+								>
 							</view>
 							<view class="floor-item-act">
 								<template v-if="pros.productPromotion">
@@ -132,7 +138,7 @@ export default {
 	data() {
 		return {
 			initData: [],
-			vipFlag:0,
+			vipFlag: 0
 		}
 	},
 	created() {
@@ -323,7 +329,7 @@ export default {
 					&.red {
 						color: #ff2000;
 						font-weight: bold;
-						&.none{
+						&.none {
 							text-decoration: line-through;
 							color: #999999;
 						}

+ 10 - 2
pages/search/search-order.vue

@@ -119,7 +119,15 @@
 												>规格:{{ pros.productUnit }}</view
 											>
 											<view class="productprice">
-												<view class="price tui-skeleton-fillet" :class="pros.svipPriceFlag == 1 ? 'none' : ''">
+												<view
+													class="price tui-skeleton-fillet"
+													:class="
+														pros.svipPriceFlag == 1 ||
+														PromotionsFormat(pros.productPromotion)
+															? 'none'
+															: ''
+													"
+												>
 													<text>¥{{ pros.price | NumFormat }}</text>
 												</view>
 												<view class="count tui-skeleton-fillet">
@@ -968,7 +976,7 @@ page {
 			color: #ff2a2a;
 			float: left;
 			font-weight: bold;
-			&.none{
+			&.none {
 				text-decoration: line-through;
 				color: #999999;
 			}

+ 17 - 4
pages/seller/order/order-historylist.vue

@@ -128,7 +128,15 @@
 													规格:{{ pros.productUnit ? pros.productUnit : '' }}
 												</view>
 												<view class="productprice">
-													<view class="price tui-skeleton-fillet" :class="pros.svipPriceFlag == 1 ? 'none' : ''">
+													<view
+														class="price tui-skeleton-fillet"
+														:class="
+															pros.svipPriceFlag == 1 ||
+															PromotionsFormat(pros.productPromotion)
+																? 'none'
+																: ''
+														"
+													>
 														<text>¥{{ pros.price | NumFormat }}</text>
 													</view>
 													<view class="count tui-skeleton-fillet">
@@ -143,7 +151,12 @@
 															@click.stop="clickPopupShow(pros.productPromotion)"
 														>
 															{{ pros.productPromotion.name }}
-															<text v-if="pros.productPromotion != null && pros.productPromotion.type != 3">
+															<text
+																v-if="
+																	pros.productPromotion != null &&
+																		pros.productPromotion.type != 3
+																"
+															>
 																:¥{{
 																	pros.productPromotion == null
 																		? '0.00'
@@ -492,7 +505,7 @@ export default {
 			switch (data.type) {
 				case 'query':
 					this.isModalLayer = true
-					this.$api.navigateTo('/pages/user/order/order-logistics?orderId='+ data.orderId)
+					this.$api.navigateTo('/pages/user/order/order-logistics?orderId=' + data.orderId)
 					break
 				case 'delete':
 					this.handOrderDetele(data.orderId)
@@ -963,7 +976,7 @@ page {
 			color: #ff2a2a;
 			float: left;
 			font-weight: bold;
-			&.none{
+			&.none {
 				text-decoration: line-through;
 				color: #999999;
 			}

+ 17 - 4
pages/seller/order/order-list.vue

@@ -139,7 +139,15 @@
 													规格:{{ pros.productUnit ? pros.productUnit : '' }}
 												</view>
 												<view class="productprice">
-													<view class="price tui-skeleton-fillet" :class="pros.svipPriceFlag == 1 ? 'none' : ''">
+													<view
+														class="price tui-skeleton-fillet"
+														:class="
+															pros.svipPriceFlag == 1 ||
+															PromotionsFormat(pros.productPromotion)
+																? 'none'
+																: ''
+														"
+													>
 														<text>¥{{ pros.price | NumFormat }}</text>
 													</view>
 													<view class="count tui-skeleton-fillet">
@@ -154,7 +162,12 @@
 															@click.stop="clickPopupShow(pros.productPromotion)"
 														>
 															{{ pros.productPromotion.name }}
-															<text v-if="pros.productPromotion != null && pros.productPromotion.type != 3">
+															<text
+																v-if="
+																	pros.productPromotion != null &&
+																		pros.productPromotion.type != 3
+																"
+															>
 																:¥{{
 																	pros.productPromotion == null
 																		? '0.00'
@@ -510,7 +523,7 @@ export default {
 			switch (data.type) {
 				case 'query':
 					this.isModalLayer = true
-					this.$api.navigateTo('/pages/user/order/order-logistics?orderId='+ data.orderId)
+					this.$api.navigateTo('/pages/user/order/order-logistics?orderId=' + data.orderId)
 					break
 				case 'delete':
 					this.handOrderDetele(data.orderId)
@@ -1023,7 +1036,7 @@ page {
 			color: #ff2a2a;
 			float: left;
 			font-weight: bold;
-			&.none{
+			&.none {
 				text-decoration: line-through;
 				color: #999999;
 			}

+ 16 - 3
pages/seller/search/search-order.vue

@@ -122,7 +122,15 @@
 												>规格:{{ pros.productUnit }}</view
 											>
 											<view class="productprice">
-												<view class="price tui-skeleton-fillet" :class="pros.svipPriceFlag == 1 ? 'none' : ''">
+												<view
+													class="price tui-skeleton-fillet"
+													:class="
+														pros.svipPriceFlag == 1 ||
+														PromotionsFormat(pros.productPromotion)
+															? 'none'
+															: ''
+													"
+												>
 													<text>¥{{ pros.price | NumFormat }}</text>
 												</view>
 												<view class="count tui-skeleton-fillet">
@@ -137,7 +145,12 @@
 														@click.stop="clickPopupShow(pros.productPromotion)"
 													>
 														{{ pros.productPromotion.name }}
-														<text v-if="pros.productPromotion != null && pros.productPromotion.type != 3">
+														<text
+															v-if="
+																pros.productPromotion != null &&
+																	pros.productPromotion.type != 3
+															"
+														>
 															:¥{{
 																pros.productPromotion == null
 																	? '0.00'
@@ -1018,7 +1031,7 @@ page {
 			color: #ff2a2a;
 			float: left;
 			font-weight: bold;
-			&.none{
+			&.none {
 				text-decoration: line-through;
 				color: #999999;
 			}

+ 10 - 2
pages/user/order/order-list.vue

@@ -124,7 +124,15 @@
 													>规格:{{ pros.productUnit }}</view
 												>
 												<view class="productprice">
-													<view class="price tui-skeleton-fillet" :class="pros.svipPriceFlag == 1 ? 'none' : ''">
+													<view
+														class="price tui-skeleton-fillet"
+														:class="
+															pros.svipPriceFlag == 1 ||
+															PromotionsFormat(pros.productPromotion)
+																? 'none'
+																: ''
+														"
+													>
 														<text>¥{{ pros.price | NumFormat }}</text>
 													</view>
 													<view class="count tui-skeleton-fillet">
@@ -1036,7 +1044,7 @@ page {
 			color: #ff2a2a;
 			float: left;
 			font-weight: bold;
-			&.none{
+			&.none {
 				text-decoration: line-through;
 				color: #999999;
 			}