|
@@ -15,7 +15,7 @@
|
|
|
<p class="p3">{{ data.author }}</p>
|
|
|
</div>
|
|
|
<div class="price">
|
|
|
- <p>¥{{ data.price }}</p>
|
|
|
+ <p>¥<span v-html="changePrice(data.price,16 )"></span></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="promotionCode">
|
|
@@ -36,7 +36,7 @@
|
|
|
<!-- 确定 -->
|
|
|
{{ $t("Key94") }}</span
|
|
|
>
|
|
|
- <span class="sp2" v-else>-{{ discount_money }}</span>
|
|
|
+ <span class="sp2" v-else>-¥<span v-html="changePrice(discount_money,16)"></span></span>
|
|
|
</div>
|
|
|
<div class="total">
|
|
|
<p class="p1">
|
|
@@ -45,21 +45,21 @@
|
|
|
|
|
|
{{ $t("Key53") }}:</span
|
|
|
>
|
|
|
- <span class="co-value">¥{{ data.price }}</span>
|
|
|
+ <span class="co-value">¥<span v-html="changePrice(data.price,16)"></span></span>
|
|
|
</p>
|
|
|
<p class="p2">
|
|
|
<span>
|
|
|
<!-- 优惠折扣 -->
|
|
|
{{ $t("Key54") }}:</span
|
|
|
>
|
|
|
- <span class="co-value">-¥{{ discount_money }}</span>
|
|
|
+ <span class="co-value">-¥<span v-html="changePrice(discount_money,16)"></span></span>
|
|
|
</p>
|
|
|
<p class="p3">
|
|
|
<span>
|
|
|
<!-- 应付 -->
|
|
|
{{ $t("Key55") }}:</span
|
|
|
>
|
|
|
- <span class="co-value">¥{{ receivables_money }}</span>
|
|
|
+ <span class="co-value">¥<span v-html="changePrice(receivables_money,24)"></span></span>
|
|
|
</p>
|
|
|
</div>
|
|
|
<div class="submitBtn">
|
|
@@ -79,6 +79,7 @@ export default {
|
|
|
//import引入的组件需要注入到对象中才能使用
|
|
|
components: {},
|
|
|
props: ["data", "changeOrderNumber", "goods_type"],
|
|
|
+
|
|
|
data() {
|
|
|
//这里存放数据
|
|
|
return {
|
|
@@ -166,6 +167,18 @@ export default {
|
|
|
this.receivables_money = res.receivables_money; // 应收款
|
|
|
});
|
|
|
},
|
|
|
+ changePrice(price,fontSize) {
|
|
|
+ let str = "";
|
|
|
+ price = price ? price.toString() : "0.00";
|
|
|
+ if (price.indexOf(".") > -1) {
|
|
|
+ let arr = price.split(".");
|
|
|
+ str = `<span style="font-size: ${fontSize?fontSize:16}px;">${arr[0]}</span>.<span style="font-size: 16px;">${arr[1]}</span>`;
|
|
|
+ } else {
|
|
|
+ str = `<span style="font-size: ${fontSize?fontSize:16}px;">${price}</span>.<span style="font-size: 16px;">00</span>`;
|
|
|
+ }
|
|
|
+
|
|
|
+ return str;
|
|
|
+ },
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {},
|
|
@@ -240,13 +253,16 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.price {
|
|
|
+ flex:1;
|
|
|
+ box-sizing:border-box;
|
|
|
+ padding-right: 16px;
|
|
|
p {
|
|
|
- margin-left: 67px;
|
|
|
margin-top: 22px;
|
|
|
font-weight: bold;
|
|
|
font-size: 16px;
|
|
|
text-align: right;
|
|
|
color: #ff4c00;
|
|
|
+ line-height:150%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -314,8 +330,11 @@ export default {
|
|
|
.submitBtn {
|
|
|
text-align: right;
|
|
|
margin-top: 16px;
|
|
|
+
|
|
|
button {
|
|
|
- width: 120px;
|
|
|
+ min-width: 120px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding:0 16px;
|
|
|
height: 40px;
|
|
|
background: #ff9900;
|
|
|
|
|
@@ -326,6 +345,7 @@ export default {
|
|
|
border: none;
|
|
|
outline: none;
|
|
|
cursor: pointer;
|
|
|
+ font-size:16px;
|
|
|
}
|
|
|
}
|
|
|
}
|