Browse Source

添加多语言

gcj 3 years ago
parent
commit
7bb7142099

+ 6 - 6
src/components/Personalcenter/Mycollect.vue

@@ -502,7 +502,7 @@ export default {
       if (item.goods_is_deleted == "true") {
         this.$message({
           showClose: true,
-          message: "商品已被删除,无法购买",
+          message: this.$t("Key733"), //"商品已被删除,无法购买",
           type: "error",
           offset: 80,
           duration: 2000,
@@ -510,7 +510,7 @@ export default {
       } else if (item.goods_publish_status == 0) {
         this.$message({
           showClose: true,
-          message: "商品已下架,无法购买",
+          message: this.$t("Key734"), //"商品已下架,无法购买",
           type: "error",
           offset: 80,
           duration: 2000,
@@ -533,11 +533,11 @@ export default {
       };
       getLearnWebContent(MethodName, data).then((res) => {
         if (res.is_audited == "false") {
-          _this.$message.warning("申请加入课程,被拒绝");
+          _this.$message.warning(_this.$t("Key745")); //"申请加入课程,被拒绝"
         } else if (res.is_audited == "true") {
-          _this.$message.success("申请加入课程,已通过,请去订单管理支付");
+          _this.$message.success(_this.$t("Key746")); //"申请加入课程,已通过,请去订单管理支付"
         } else {
-          _this.$message.success("申请加入课程,已提交");
+          _this.$message.success(_this.$t("Key747")); //"申请加入课程,已提交"
         }
       });
     },
@@ -556,7 +556,7 @@ export default {
         // this.$message.success("支付成功");
         this.$message.success(this.$t("Key657"));
       } else {
-        this.$message.warning("支付失败");
+        this.$message.warning(this.$t("Key735")); //"支付失败"
       }
       this.getMyCollectionList();
     },

+ 9 - 8
src/components/Personalcenter/OrderManage.vue

@@ -472,10 +472,11 @@ export default {
     //删除我的订单
     deleteMyOrder(id) {
       let _this = this;
+      // "此操作将永久删除该订单, 是否继续?"
       _this
-        .$confirm("此操作将永久删除该订单, 是否继续?", "提示", {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
+        .$confirm(_this.$t("Key103"), _this.$t("Key361"), {
+          confirmButtonText: _this.$t("Key94"),
+          cancelButtonText: _this.$t("Key83"),
           type: "warning",
         })
         .then(() => {
@@ -517,7 +518,7 @@ export default {
       if (item.goods_is_deleted == "true") {
         this.$message({
           showClose: true,
-          message: "商品已被删除,无法购买",
+          message: this.$t("Key733"), //"商品已被删除,无法购买",
           type: "error",
           offset: 80,
           duration: 2000,
@@ -525,7 +526,7 @@ export default {
       } else if (item.goods_publish_status == 0) {
         this.$message({
           showClose: true,
-          message: "商品已下架,无法购买",
+          message: this.$t("Key734"), //"商品已下架,无法购买",
           type: "error",
           offset: 80,
           duration: 2000,
@@ -541,7 +542,7 @@ export default {
       if (item.goods_is_deleted == "true") {
         this.$message({
           showClose: true,
-          message: "商品已被删除,不能购买",
+          message: this.$t("Key733"),
           type: "error",
           offset: 80,
           duration: 2000,
@@ -549,7 +550,7 @@ export default {
       } else if (item.goods_publish_status == 0) {
         this.$message({
           showClose: true,
-          message: "商品已下架,不能购买",
+          message: this.$t("Key734"), // "商品已下架,不能购买",
           type: "error",
           offset: 80,
           duration: 2000,
@@ -574,7 +575,7 @@ export default {
         // this.$message.success("支付成功");
         this.$message.success(this.$t("Key657"));
       } else {
-        this.$message.warning("支付失败");
+        this.$message.warning(this.$t("Key735"));
       }
       this.getOrderList();
     },

+ 6 - 0
src/views/Personalcenter.vue

@@ -566,6 +566,12 @@ export default {
           "Key699",
           "Key696",
           "Key697",
+          "Key733",
+          "Key734",
+          "Key735",
+          "Key745",
+          "Key746",
+          "Key747",
         ],
       });
       this.isData = true;