@@ -39,7 +39,7 @@
<template v-if="!type||type!='bookShelf'">
<p class="price">
<span class="OPPOSans">¥{{item.price_discount?item.price_discount:item.price|cutMoneyFiter}}</span>
- <s v-if="item.price_discount">¥{{item.price|cutMoneyFiter}}</s>
+ <s v-if="item.price_discount&&item.price_discount!==item.price">¥{{item.price|cutMoneyFiter}}</s>
</p>
</template>
</div>
@@ -28,7 +28,7 @@
<template>
@@ -41,7 +41,7 @@
<div class="sales-left">
<span>优惠价</span>
<span class="OPPOSans">¥{{info.price_discount?info.price_discount:info.price|cutMoneyFiter}}</span>
- <span class="old-price" v-if="info.price_discount">¥{{info.price|cutMoneyFiter}}</span>
+ <span class="old-price" v-if="info.price_discount&&info.price_discount!==info.price">¥{{info.price|cutMoneyFiter}}</span>
<span class="sales-right" v-if="sales>=1000">累计销售 {{salesCn}}</span>
@@ -45,7 +45,7 @@
width="154">
<template slot-scope="scope">
<span class="currectPrice">¥{{scope.row.goods_price_discount?scope.row.goods_price_discount:scope.row.goods_price | cutMoneyFiter}}</span>
- <span class="oldPrice" v-if="scope.row.goods_price_discount">(¥{{scope.row.goods_price | cutMoneyFiter}})</span>
+ <span class="oldPrice" v-if="scope.row.goods_price_discount&&scope.row.goods_price_discount!==scope.row.goods_price">(¥{{scope.row.goods_price | cutMoneyFiter}})</span>
</el-table-column>
<el-table-column
@@ -150,7 +150,7 @@ export default {
};
const validateEmail = (rule, value, callback) => {
if (value === '') {
-
+ callback();
} else {
let reg = /^[a-zA-Z0-9_\.-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
let result = reg.test(value);