|
@@ -33,7 +33,12 @@
|
|
|
placeholder="请输入兑换码"
|
|
|
@input="changeCode"
|
|
|
/>
|
|
|
- <span class="sp2" v-loading="codeloading" @click="verifyCode" v-if="isShow">
|
|
|
+ <span
|
|
|
+ class="sp2"
|
|
|
+ v-loading="codeloading"
|
|
|
+ @click="verifyCode"
|
|
|
+ v-if="isShow"
|
|
|
+ >
|
|
|
<!-- 确定 -->{{ $t("Key94") }}
|
|
|
</span>
|
|
|
<template v-else>
|
|
@@ -45,7 +50,9 @@
|
|
|
<div class="total">
|
|
|
<p class="p1">
|
|
|
<span> {{ $t("Key53") }}: </span>
|
|
|
- <span class="co-value">¥<span v-html="changePrice(data.price, 16)"></span></span>
|
|
|
+ <span class="co-value"
|
|
|
+ >¥<span v-html="changePrice(data.price, 16)"></span
|
|
|
+ ></span>
|
|
|
</p>
|
|
|
<p class="p2">
|
|
|
<span> {{ $t("Key54") }}: </span>
|
|
@@ -73,7 +80,7 @@ import { LearnWebSI } from "@/api/api";
|
|
|
export default {
|
|
|
//import引入的组件需要注入到对象中才能使用
|
|
|
components: {},
|
|
|
- props: ["data", "changeOrderNumber", "goods_type","goods_detail_type"],
|
|
|
+ props: ["data", "changeOrderNumber", "goods_type", "goods_detail_type"],
|
|
|
data() {
|
|
|
//这里存放数据
|
|
|
return {
|
|
@@ -154,7 +161,6 @@ export default {
|
|
|
price: item.price, //价格
|
|
|
discount_code: this.back_discount_code,
|
|
|
goods_detail_type: this.goods_detail_type,
|
|
|
-
|
|
|
})
|
|
|
.then((res) => {
|
|
|
this.changeOrderNumber(
|
|
@@ -200,10 +206,10 @@ export default {
|
|
|
this.codeloading = false;
|
|
|
this.discount_code_status = res.discount_code_status;
|
|
|
if (this.discount_code_status != 1 && this.discount_code_status != 2) {
|
|
|
- this.$message.warning("优惠码无效");
|
|
|
+ this.$message.warning(this.$t("Key696")); //优惠码无效
|
|
|
} else {
|
|
|
if (this.discount_code_status == 2) {
|
|
|
- this.$message.warning("优惠码已被使用");
|
|
|
+ this.$message.warning(this.$t("Key697")); //优惠码已被使用
|
|
|
} else {
|
|
|
this.isShow = false;
|
|
|
this.back_discount_code = res.discount_code;
|