|
@@ -52,7 +52,11 @@
|
|
|
<p class="p4">
|
|
|
<span></span>
|
|
|
<span class="co-value useCode">
|
|
|
- {{ data.discount_code ? $t("Key232") + data.discount_code : $t("Key108") }}
|
|
|
+ {{
|
|
|
+ data.back_discount_code
|
|
|
+ ? $t("Key232") + ":" + data.back_discount_code
|
|
|
+ : $t("Key108")
|
|
|
+ }}
|
|
|
</span>
|
|
|
</p>
|
|
|
<p class="p3">
|
|
@@ -97,19 +101,16 @@ export default {
|
|
|
watch: {},
|
|
|
//方法集合
|
|
|
methods: {
|
|
|
- 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>`;
|
|
|
- }
|
|
|
+ changePrice(price, fontSize1, fontSize2) {
|
|
|
+ price = price ? price * 1 : 0;
|
|
|
+ price = price.toFixed(2);
|
|
|
+ price = price.toString();
|
|
|
+ let arr = price.split(".");
|
|
|
+ let str = `<span style="font-size: ${fontSize1 ? fontSize1 : 16}px;">${
|
|
|
+ arr[0]
|
|
|
+ }</span>.<span style="font-size: ${fontSize2 ? fontSize2 : 16}px;">${
|
|
|
+ arr[1]
|
|
|
+ }</span>`;
|
|
|
|
|
|
return str;
|
|
|
},
|