浏览代码

修改遗漏多语言

秦鹏 3 年之前
父节点
当前提交
b7354b8368

+ 2 - 1
src/components/Personalcenter/AccountSet.vue

@@ -316,7 +316,8 @@ export default {
         })
         .catch(() => {
           this.realLoading = false;
-          this.$message.error("保存失败");
+          // this.$message.error("保存失败");
+          this.$message.success(this.$t("Key658"));
         });
     },
     //修改国家

+ 4 - 2
src/components/Personalcenter/Mycollect.vue

@@ -446,7 +446,8 @@ export default {
     deleteMyCollection() {
       let _this = this;
       if (_this.selecedGoodsList.length < 1) {
-        this.$message.warning("请先勾选");
+        // this.$message.warning("请先勾选");
+        this.$message.warning(this.$t("Key660"));
         return;
       }
       return new Promise((resolve) => {
@@ -503,7 +504,8 @@ export default {
       this.isPayment = false;
       this.isConfirmorder = false;
       if (bool) {
-        this.$message.success("支付成功");
+        // this.$message.success("支付成功");
+        this.$message.success(this.$t("Key657"));
       } else {
         this.$message.warning("支付失败");
       }

+ 6 - 3
src/components/Personalcenter/OrderManage.vue

@@ -463,7 +463,9 @@ export default {
         id: id,
       };
       getLearnWebContent(MethodName, data).then((res) => {
-        _this.$message.success("取消成功");
+        // _this.$message.success("取消成功");
+        this.$message.success(this.$t("Key661"));
+
         _this.handleSelect(this.activeIndex);
       });
     },
@@ -482,7 +484,7 @@ export default {
         .catch(() => {
           this.$message({
             type: "info",
-            message: "已取消删除",
+            message: this.$t("Key673"), //Key673 已取消删除
           });
         });
     },
@@ -533,7 +535,8 @@ export default {
       this.isPayment = false;
       this.isConfirmorder = false;
       if (bool) {
-        this.$message.success("支付成功");
+        // this.$message.success("支付成功");
+        this.$message.success(this.$t("Key657"));
       } else {
         this.$message.warning("支付失败");
       }

+ 1 - 1
src/components/Personalcenter/TeachMaterial.vue

@@ -213,7 +213,7 @@ export default {
         .catch(() => {
           this.$message({
             type: "info",
-            message: "已取消删除",
+            message:this.$t("Key673"), //Key673 已取消删除
           });
         });
     },

+ 1 - 1
src/components/Personalcenter/Traincourse.vue

@@ -202,7 +202,7 @@ export default {
         .catch(() => {
           this.$message({
             type: "info",
-            message: "已取消删除",
+            message: this.$t("Key673"), //Key673 已取消删除
           });
         });
     },

+ 2 - 2
src/components/common/Empty.vue

@@ -28,7 +28,7 @@ export default {
         case "0": //系统通知
           obj = {
             url: require("../../assets/Personalcenter/1.png"),
-            con: "没有任何通知",
+            con: this.$t("Key677"), //Key677 没有任何通知
             link: "",
           };
           break;
@@ -100,7 +100,7 @@ export default {
         case "0": //系统通知
           obj = {
             url: require("../../assets/Personalcenter/1.png"),
-            con: "没有任何通知",
+            con: this.$t("Key677"), //Key677 没有任何通知
             link: "",
           };
           break;

+ 4 - 2
src/components/common/Enword.vue

@@ -39,7 +39,8 @@
     <div class="enword-top">
       <div class="cancle-coll" @click="cancleColl">
         <span class="coll-icon"></span>
-        <span class="coll-text"> 取消收藏 </span>
+        <span class="coll-text"> {{ $t("Key662") }} </span>
+        <!-- 取消收藏 -->
       </div>
       <!-- 查看更多 -->
       <span class="look-more" @click="lookMore">{{ $t("Key47") }}</span>
@@ -76,7 +77,8 @@ export default {
       };
       let MethodName = "order-collection_manager-DeleteMyCollection";
       getLearnWebContent(MethodName, data).then((res) => {
-        this.$message.success("取消成功!");
+        // this.$message.success("取消成功!");
+        this.$message.success(this.$t("Key661"));
         this.$emit("getMyCollectionList");
       });
     },

+ 5 - 2
src/components/common/Hanzi.vue

@@ -62,7 +62,8 @@
     <div class="right">
       <div class="cancle-coll" @click="cancleColl">
         <span class="coll-icon"></span>
-        <span class="coll-text">取消收藏</span>
+        <span class="coll-text">{{ $t("Key662") }}</span>
+        <!-- 取消收藏 -->
       </div>
       <!-- 查看更多 -->
       <span class="look-more" @click="lookMore">{{ $t("Key47") }}</span>
@@ -105,7 +106,9 @@ export default {
       };
       let MethodName = "order-collection_manager-DeleteMyCollection";
       getLearnWebContent(MethodName, data).then((res) => {
-        this.$message.success("取消成功!");
+        // this.$message.success("取消成功!");
+        this.$message.success(this.$t("Key661"));
+
         this.$emit("getMyCollectionList");
       });
     },

+ 11 - 7
src/components/common/Intp.vue

@@ -1,21 +1,23 @@
 <!--  -->
 <template>
   <div class="wordIntp" v-if="flag">
-    <p class="from">数据来自百度汉语</p>
+    <!-- Key678  数据来自百度汉语-->
+    <p class="from">{{ $t("Key678") }}</p>
     <el-menu
       :default-active="activeIndex"
       class="el-menu-demo"
       mode="horizontal"
       @select="handleSelect"
     >
-      <el-menu-item index="1">词典释义</el-menu-item>
-      <el-menu-item index="2">近/反义词</el-menu-item>
-      <el-menu-item index="3">组词</el-menu-item>
+      <!--词典释义   近/反义词 组词 -->
+      <el-menu-item index="1">{{ $t("Key679") }}</el-menu-item>
+      <el-menu-item index="2">{{ $t("Key680") }}</el-menu-item>
+      <el-menu-item index="3">{{ $t("Key681") }}</el-menu-item>
     </el-menu>
     <template v-if="activeIndex == '1'">
       <div class="bwc-intp">
         <!-- 基本释义 -->
-        <h1>基本释义</h1>
+        <h1>{{ $t("Key681") }}</h1>
         <span v-if="pinyin" class="pinyin">{{ pinyin }}</span>
         <template v-if="isHasValue2 == 'definitionWithSpell'">
           <div
@@ -70,7 +72,8 @@
     </template>
     <template v-if="activeIndex == '2'">
       <div class="bwc-intp">
-        <h1 v-if="synonymList.length > 0">近义词</h1>
+        <!-- 近义词 -->
+        <h1 v-if="synonymList.length > 0">{{$t("Key683")}}</h1>
         <ul class="synonym">
           <li
             v-for="(itemss, indexss) in synonymList"
@@ -80,7 +83,8 @@
             {{ itemss["@value"] }}
           </li>
         </ul>
-        <h1 v-if="antonymList.length > 0">反义词</h1>
+        <!-- 反义词 -->
+        <h1 v-if="antonymList.length > 0">{{$t("Key684")}}</h1>
         <ul class="synonym">
           <li
             v-for="(itemss, indexss) in antonymList"

+ 2 - 1
src/components/common/Modifymail.vue

@@ -113,7 +113,8 @@ export default {
     var validateNew = (rule, value, callback) => {
       let _this = this;
       if (value === "") {
-        callback(new Error("邮箱不能为空"));
+        // callback(new Error("邮箱不能为空"));
+        callback(new Error(this.$t("Key659")));
       } else {
         let reg = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/; //验证邮箱的正则
         let EmailError = reg.test(value);

+ 6 - 3
src/components/common/Sentence.vue

@@ -21,7 +21,8 @@
       </div>
       <div class="cancle-coll" @click="cancleColl">
         <span class="coll-icon"></span>
-        <span class="coll-text">取消收藏</span>
+        <span class="coll-text">{{ $t("Key662") }}</span>
+        <!-- 取消收藏 -->
       </div>
     </div>
     <div class="vc-main" v-if="item">
@@ -189,7 +190,7 @@
     <div class="sent-bottom">
       <span class="create_time">{{ sItem.create_time }}</span>
       <span class="resource" v-if="sItem.resource"
-        >来自:{{ sItem.resource }}</span
+        >{{ $t("Key663") }}:{{ sItem.resource }}</span
       >
     </div>
   </div>
@@ -270,7 +271,9 @@ export default {
       };
       let MethodName = "order-collection_manager-DeleteMyCollection";
       getLearnWebContent(MethodName, data).then((res) => {
-        this.$message.success("取消成功!");
+        // this.$message.success("取消成功!");
+        this.$message.success(this.$t("Key661"));
+
         this.$emit("getMyCollectionList");
       });
     },

+ 56 - 52
src/components/common/SentenceEn.vue

@@ -21,7 +21,8 @@
       </div>
       <div class="cancle-coll" @click="cancleColl">
         <span class="coll-icon"></span>
-        <span class="coll-text">取消收藏</span>
+        <span class="coll-text">{{ $t("Key662") }}</span>
+        <!-- 取消收藏 -->
       </div>
     </div>
     <div class="vc-main" v-if="item">
@@ -33,59 +34,60 @@
           :class="[pItem.wordIndex == 0 ? 'textLeft' : 'textCenter']"
         >
           <template v-if="pItem.isShow">
-                <template
-                  v-if="
-                    item[pIndex + 1] &&
-                    item[pIndex + 1].en &&
-                    enFhList.indexOf(item[pIndex + 1].en.word_bt) > -1
-                  "
-                >
-                  <span class="NNPE-words-box NNPE-words-box-Both">
+            <template
+              v-if="
+                item[pIndex + 1] &&
+                item[pIndex + 1].en &&
+                enFhList.indexOf(item[pIndex + 1].en.word_bt) > -1
+              "
+            >
+              <span class="NNPE-words-box NNPE-words-box-Both">
+                <span :class="[]">
+                  <span class="NNPE-words-box">
                     <span
-                      :class="[]"
+                      :class="[
+                        pItem.timeList &&
+                        pItem.timeList[pItem.leg - 1] &&
+                        curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
+                        curTime <= ed
+                          ? 'active'
+                          : '',
+                      ]"
                     >
-                        <span class="NNPE-words-box">
-                            <span
-                                :class="[pItem.timeList &&
-                                        pItem.timeList[pItem.leg - 1] &&
-                                        curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
-                                        curTime <= ed
-                                        ? 'active'
-                                        : '',]"
-                            >
-                                {{pItem.en.word_bt}}
-                            </span>
-                        </span>
-                      <span
-                        :class="[pItem.timeList[pItem.leg - 1] &&
-                                curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
-                                curTime <= ed
-                                ? 'active'
-                                : '',
-                        ]"
-                        >{{ item[pIndex + 1].en.word_bt }}</span
-                      >
+                      {{ pItem.en.word_bt }}
                     </span>
                   </span>
-                </template>
-                <template v-else>
-                    <span class="NNPE-words-box NNPE-words-box-single">
-                        <span
-                        :class="[
-                            pItem.padding? 'padding' : '',
-                            pItem.timeList &&
-                            pItem.timeList[pItem.leg - 1] &&
-                            curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
-                            curTime <= ed
-                                ? 'active'
-                                : '',
-                        ]"
-                        >
-                            {{pItem.en.word_bt}}
-                        </span>
-                    </span>
-                </template>
-              </template>
+                  <span
+                    :class="[
+                      pItem.timeList[pItem.leg - 1] &&
+                      curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
+                      curTime <= ed
+                        ? 'active'
+                        : '',
+                    ]"
+                    >{{ item[pIndex + 1].en.word_bt }}</span
+                  >
+                </span>
+              </span>
+            </template>
+            <template v-else>
+              <span class="NNPE-words-box NNPE-words-box-single">
+                <span
+                  :class="[
+                    pItem.padding ? 'padding' : '',
+                    pItem.timeList &&
+                    pItem.timeList[pItem.leg - 1] &&
+                    curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
+                    curTime <= ed
+                      ? 'active'
+                      : '',
+                  ]"
+                >
+                  {{ pItem.en.word_bt }}
+                </span>
+              </span>
+            </template>
+          </template>
         </div>
       </div>
       <div style="clear: both; overflow: hidden"></div>
@@ -96,7 +98,7 @@
     <div class="sent-bottom">
       <span class="create_time">{{ sItem.create_time }}</span>
       <span class="resource" v-if="sItem.resource"
-        >来自:{{ sItem.resource }}</span
+        >{{ $t("Key663") }}:{{ sItem.resource }}</span
       >
     </div>
   </div>
@@ -177,7 +179,9 @@ export default {
       };
       let MethodName = "order-collection_manager-DeleteMyCollection";
       getLearnWebContent(MethodName, data).then((res) => {
-        this.$message.success("取消成功!");
+        // this.$message.success("取消成功!");
+        this.$message.success(this.$t("Key661"));
+
         this.$emit("getMyCollectionList");
       });
     },

+ 1 - 1
src/components/common/Uploadavator.vue

@@ -1,6 +1,6 @@
 <!--  -->
 <template>
-  <el-dialog title="上传头像" :visible.sync="dialogVisible" width="256px">
+  <el-dialog :title="$t("Key675")" :visible.sync="dialogVisible" width="256px">
     <div class="ava-main">
       <my-upload
         field="img"

+ 13 - 8
src/components/common/WordPhraseDetail.vue

@@ -96,9 +96,10 @@
         <div class="zhedie-white">
           <div v-if="list1 && list1.length > 0" v-loading="loading1">
             <div class="topTitle">
-              <span>本课例句({{ list1.length }})</span>
+              <!-- Key668  本课例句-->
+              <span>{{ $t("Key668") }}({{ list1.length }})</span>
               <span @click="handleChangeTab('wordShow')"
-                >{{ wordShow ?  $t("Key531") : $t("Key530")}}
+                >{{ wordShow ? $t("Key531") : $t("Key530") }}
                 <img v-if="wordShow" src="../../assets/down-black.png" alt="" />
                 <img v-else src="../../assets/up-black.png" alt="" />
               </span>
@@ -110,7 +111,7 @@
                   <div>
                     <p v-html="item.res"></p>
                     <p class="p2">
-                      来源:{{ item.source_courseware_name_path }}
+                      {{ $t("Key666") }}:{{ item.source_courseware_name_path }}
                     </p>
                   </div>
                 </div>
@@ -119,7 +120,8 @@
           </div>
           <div v-if="list2 && list2.length > 0" v-loading="loading2">
             <div class="topTitle">
-              <span>本书例句({{ list2.length }})</span>
+              <!-- 本书例句 -->
+              <span>{{$t("Key669")}}({{ list2.length }})</span>
               <span @click="handleChangeTab('wordShow2')"
                 >{{ wordShow2 ? $t("Key531") : $t("Key530") }}
                 <img
@@ -137,7 +139,7 @@
                   <div>
                     <p v-html="item.res"></p>
                     <p class="p2">
-                      来源:{{ item.source_courseware_name_path }}
+                      {{ $t("Key666") }}:{{ item.source_courseware_name_path }}
                     </p>
                   </div>
                 </div>
@@ -160,7 +162,7 @@
                   <div>
                     <p>{{ item.sentence }}</p>
                     <p class="p2">
-                      来源:{{ item.source_courseware_name_path }}
+                      {{ $t("Key666") }}:{{ item.source_courseware_name_path }}
                     </p>
                   </div>
                 </div>
@@ -244,7 +246,9 @@ export default {
     // 上一个单词详情
     lastDetail() {
       if (this.detailIndex == 0) {
-        this.$message.warning("当前已经是第一个");
+        // this.$message.warning("当前已经是第一个");
+        this.$message.warning(this.$t("Key665"));
+
         return;
       }
       this.changeDetailIndex("last");
@@ -253,7 +257,8 @@ export default {
     nextDetail() {
       let _this = this;
       if (_this.detailIndex == _this.optionRes.length - 1) {
-        this.$message.warning("当前已经是最后一个了 ");
+        // this.$message.warning("当前已经是最后一个了 ");
+        this.$message.warning(this.$t("Key664"));
         return;
       }
       _this.changeDetailIndex("next");

+ 22 - 11
src/components/common/WordPhraseDetailEn.vue

@@ -79,7 +79,8 @@
         <div class="zhedie">
           <div v-if="list1 && list1.length > 0">
             <div class="topTitle">
-              <span>本课例句({{ list1.length }})</span>
+              <!-- 本课例句 -->
+              <span>{{ $t("Key668") }}({{ list1.length }})</span>
               <span @click="handleChangeTab('wordShow')"
                 >{{ wordShow ? $t("Key531") : $t("Key530") }}
                 <img v-if="wordShow" src="../../assets/down-black.png" alt="" />
@@ -98,7 +99,7 @@
                   <div style="flex: 1">
                     <p v-html="item.res"></p>
                     <p class="p2">
-                      来源:{{ item.source_courseware_name_path }}
+                      {{ $t("Key666") }}:{{ item.source_courseware_name_path }}
                     </p>
                   </div>
                 </div>
@@ -107,7 +108,8 @@
           </div>
           <div v-if="list2 && list2.length > 0">
             <div class="topTitle">
-              <span>本书例句({{ list2.length }})</span>
+              <!-- 本书例句 -->
+              <span>{{ $t("Key669") }}({{ list2.length }})</span>
               <span @click="handleChangeTab('wordShow2')"
                 >{{ wordShow2 ? $t("Key531") : $t("Key530") }}
                 <img
@@ -130,7 +132,7 @@
                   <div style="flex: 1">
                     <p v-html="item.res"></p>
                     <p class="p2">
-                      来源:{{ item.source_courseware_name_path }}
+                      {{ $t("Key666") }}:{{ item.source_courseware_name_path }}
                     </p>
                   </div>
                 </div>
@@ -139,7 +141,8 @@
           </div>
           <div v-if="list3 && list3.length > 0">
             <div class="topTitle">
-              <span>本套教材例句({{ list3.length }})</span>
+              <!-- Key667 本套教材例句 -->
+              <span>{{ $t("Key667") }}({{ list3.length }})</span>
               <span @click="handleChangeTab('wordShow3')"
                 >{{ wordShow3 ? $t("Key531") : $t("Key530") }}
                 <img
@@ -162,7 +165,7 @@
                   <div style="flex: 1">
                     <p v-html="item.res"></p>
                     <p class="p2">
-                      来源:{{ item.source_courseware_name_path }}
+                      {{ $t("Key666") }}:{{ item.source_courseware_name_path }}
                     </p>
                   </div>
                 </div>
@@ -173,7 +176,9 @@
       </div>
       <div class="bottom" v-if="dictDetail">
         <div class="from">
-          来自网易有道<img
+          <!-- Key670  来自网易有道-->
+          {{ $t("Key670")
+          }}<img
             @click="closeWordShow"
             src="../../assets/Cross-16-normal-Black.png"
             alt=""
@@ -186,7 +191,8 @@
           </p>
           <div class="yinpin">
             <div class="yinpin-box">
-              <span>英 </span>
+              <!-- 英 -->
+              <span>{{ $t("Key671") }}</span>
               <span v-if="dictDetail['uk-phonetic']">
                 /{{ dictDetail["uk-phonetic"] }}/</span
               >
@@ -210,7 +216,8 @@
               <audio id="Y" :src="dictDetail['uk-sound']"></audio>
             </div>
             <div>
-              <span>美 </span>
+              <!-- 美 -->
+              <span>{{ $t("Key672") }}</span>
               <span v-if="dictDetail['us-phonetic']">
                 /{{ dictDetail["us-phonetic"] }}/</span
               >
@@ -315,7 +322,9 @@ export default {
     // 上一个单词详情
     lastDetail() {
       if (this.detailIndex == 0) {
-        this.$message.warning("当前已经是第一个");
+        // this.$message.warning("当前已经是第一个");
+        this.$message.warning(this.$t("Key665"));
+
         return;
       }
       this.changeDetailIndex("last");
@@ -323,7 +332,9 @@ export default {
     // 下一个单词详情
     nextDetail() {
       if (this.detailIndex == this.curQue.option.length - 1) {
-        this.$message.warning("当前已经是最后一个了 ");
+        // this.$message.warning("当前已经是最后一个了 ");
+        this.$message.warning(this.$t("Key664"));
+
         return;
       }
       this.changeDetailIndex("next");

+ 2 - 1
src/components/vue-image-crop-upload/upload-2 copy.vue

@@ -4,7 +4,8 @@
       <div class="vicp-close" @click="off">
         <i class="vicp-icon4"></i>
       </div>
-      <h1 class="vicp-title">修改头像</h1>
+      <!-- 修改头像 -->
+      <h1 class="vicp-title">{{ $t("Key674") }}</h1>
       <div class="vicp-step1" v-show="step == 1">
         <div
           class="vicp-drop-area"

+ 6 - 3
src/components/vue-image-crop-upload/upload-2.vue

@@ -1,7 +1,8 @@
 <template>
   <div class="vue-image-crop-upload" v-show="value">
     <div class="vicp-wrap">
-      <h1 class="vicp-title">修改头像</h1>
+      <!-- 修改头像 -->
+      <h1 class="vicp-title">{{ $t("Key674") }}</h1>
 
       <div class="vicp-step2" v-if="step == 1">
         <div class="vicp-crop">
@@ -100,7 +101,8 @@
               lang.hint
             }}</span> -->
             <button class="vicp-upload-btn" v-show="loading !== 1">
-              上传头像
+              <!-- 上传头像 -->
+              {{ $t("Key675") }}
             </button>
             <span class="vicp-no-supported-hint" v-show="!isSupported">{{
               lang.noSupported
@@ -822,7 +824,8 @@ export default {
     prepareUpload() {
       let { url, createImgUrl, field, ki } = this;
       if (!createImgUrl) {
-        alert("请先上传头像!");
+        // alert("请先上传头像!");
+        alert(this.$t("Key676"));
         return;
       }
       this.$emit("crop-success", createImgUrl, field, ki);

+ 6 - 2
src/views/OrderPaySuccess.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="paymentSuccess">
     <Header />
-    <div class="main">支付成功</div>
+    <div class="main">{{ $t("Key657") }}</div>
   </div>
 </template>
 
@@ -25,7 +25,11 @@ export default {
   //方法集合
   methods: {},
   //生命周期 - 创建完成(可以访问当前this实例)
-  created() {},
+  created() {
+    await updateWordPack({
+      word_key_list: ["Key657"],
+    });
+  },
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {},
   //生命周期-创建之前

+ 29 - 0
src/views/Personalcenter.vue

@@ -515,6 +515,35 @@ export default {
           "Key532",
           "Key577",
           "Key598",
+          "Key657",
+          "Key658",
+          "Key659",
+          "Key660",
+          "Key661",
+          "Key662",
+          "Key663",
+          "Key664",
+          "Key665",
+          "Key666",
+          "Key667",
+          "Key668",
+          "Key669",
+          "Key670",
+          "Key671",
+          "Key672",
+          "Key673",
+          "Key674",
+          "Key675",
+          "Key676",
+          "Key677",
+          "Key678",
+          "Key679",
+          "Key680",
+          "Key681",
+          "Key682",
+          "Key683",
+          "Key684",
+
         ],
       });
       this.isData = true;