Ver Fonte

修改多语言

秦鹏 há 3 anos atrás
pai
commit
de8d18099a

+ 12 - 6
src/components/payment/Confirmorder.vue

@@ -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;

+ 3 - 0
src/views/teacher-dev/Preview.vue

@@ -394,6 +394,9 @@ export default {
         "Key574",
         "Key575",
         "Key576",
+        "Key696",
+        "Key697",
+
       ],
     });
     this.isData = true;

+ 6 - 2
src/views/teacher-devEntering/discountCodeList.vue

@@ -166,6 +166,7 @@ export default {
         "Key164",
         "Key163",
         "Key166",
+        "Key172",
         "Key232",
         "Key361",
         "Key532",
@@ -179,6 +180,8 @@ export default {
         "Key567",
         "Key568",
         "Key569",
+        "Key687",
+        "Key689",
       ],
     });
 
@@ -217,7 +220,7 @@ export default {
         };
         LearnWebSI(MethodName, data)
           .then((res) => {
-            this.$message.success("操作成功");
+            this.$message.success(this.$t("Key687")); //操作成功
             this.discountNumber = null;
             this.loading = false;
             this.pageIndex = 1;
@@ -262,7 +265,8 @@ export default {
     },
     // 删除书籍
     handleDel(row) {
-      this.$confirm("确定要删除此优惠码吗?", this.$t("Key361"), {
+      // 确定删除此优惠码吗?
+      this.$confirm(this.$t("Key689"), this.$t("Key361"), {
         confirmButtonText: this.$t("Key94"), //"确定",
         cancelButtonText: this.$t("Key83"), //"取消",
         type: "warning",

+ 6 - 2
src/views/teacher-devEntering/index.vue

@@ -217,7 +217,8 @@ export default {
         this.$message.warning(this.$t("Key586"));
         return;
       }
-      this.$confirm("确定要删除此学习资料吗?", this.$t("Key361"), {
+      //  Key685 确定要删除此学习资料吗?
+      this.$confirm(this.$t("Key685"), this.$t("Key361"), {
         confirmButtonText: this.$t("Key94"), //"确定",
         cancelButtonText: this.$t("Key83"), //"取消",
         type: "warning",
@@ -254,7 +255,7 @@ export default {
         !item.teacher[0]
       ) {
         // "请先去完善信息再上架"
-        this.$message.warning("请先去完善信息再上架");
+        this.$message.warning(this.$t("Key686"));
         return;
       }
       this.loading = true;
@@ -380,6 +381,9 @@ export default {
         "Key588",
         "Key590",
         "Key501",
+        "Key685",
+        "Key686",
+
       ],
     });
     this.isData = true;