瀏覽代碼

中文字段提取

panhui 5 年之前
父節點
當前提交
61165efe12
共有 48 個文件被更改,包括 446 次插入226 次删除
  1. 0 2
      src/App.vue
  2. 9 7
      src/components/AuthPhone.vue
  3. 2 2
      src/components/ChangeText.vue
  4. 8 6
      src/components/ChatInfo.vue
  5. 8 6
      src/components/Member.vue
  6. 2 2
      src/components/News/Grid.vue
  7. 4 4
      src/components/Order.vue
  8. 5 3
      src/components/SortList.vue
  9. 1 1
      src/components/bar/FilterSortBar.vue
  10. 1 1
      src/components/bar/SearchBar.vue
  11. 4 2
      src/components/filter/Country.vue
  12. 5 3
      src/components/filter/EnterpriseType.vue
  13. 8 4
      src/components/filter/ProductCategory.vue
  14. 5 3
      src/components/filter/ProductCustomCateId.vue
  15. 5 3
      src/components/filter/ProductTags.vue
  16. 2 2
      src/components/select/Application.vue
  17. 5 3
      src/components/select/Country.vue
  18. 3 3
      src/components/select/Industry.vue
  19. 3 3
      src/components/select/ProductCategory.vue
  20. 2 2
      src/components/select/ProductCategoryOnly.vue
  21. 127 1
      src/locales/zh.json
  22. 2 2
      src/main.js
  23. 1 1
      src/pages/Chat.vue
  24. 13 13
      src/pagesHome/Edit.vue
  25. 3 3
      src/pagesMine/Activity.vue
  26. 1 1
      src/pagesMine/Order.vue
  27. 3 3
      src/pagesMine/OrderDetail.vue
  28. 4 4
      src/pagesMine/ReadRecords.vue
  29. 7 4
      src/pagesMine/Upload.vue
  30. 14 7
      src/pagesNews/Detail.vue
  31. 7 1
      src/pagesNews/News.vue
  32. 35 26
      src/pagesNews/Submit.vue
  33. 30 14
      src/pagesProduct/Contrast.vue
  34. 12 8
      src/pagesProduct/ContrastDetail.vue
  35. 33 25
      src/pagesProduct/Detail.vue
  36. 5 2
      src/pagesProduct/FilterProduct.vue
  37. 3 0
      src/pagesProduct/FilterVendor.vue
  38. 14 11
      src/pagesProduct/Inquiry.vue
  39. 3 3
      src/pagesProduct/InquiryResult.vue
  40. 9 6
      src/pagesProduct/IntentionList.vue
  41. 3 3
      src/pagesVendor/About.vue
  42. 2 2
      src/pagesVendor/Case.vue
  43. 14 11
      src/pagesVendor/Connect.vue
  44. 7 7
      src/pagesVendor/Detail.vue
  45. 1 1
      src/pagesVendor/FilterProduct.vue
  46. 1 1
      src/pagesVendor/Product.vue
  47. 7 1
      src/pagesVendor/ProductList.vue
  48. 3 3
      src/utils/appState.js

+ 0 - 2
src/App.vue

@@ -1,8 +1,6 @@
 <script>
 export default {
     onLaunch(options) {
-        // Do something initial when launch.
-        // console.log('App onLaunch, env文件自定义的环境变量VUE_APP_TEST值:', process.env.VUE_APP_TEST);
         wx.login({
             success: res => {
                 console.log(res);

+ 9 - 7
src/components/AuthPhone.vue

@@ -16,23 +16,25 @@
                     round
                     class="logo"
                 />
-                <h3>IMT科技平台 <span>申请使用</span></h3>
+                <h3>
+                    {{ $t('imt-ke-ji-ping-tai') }} <span>{{ $t('shen-qing-shi-yong') }}</span>
+                </h3>
             </div>
-            <h2>获取你的昵称、头像、地区及性别</h2>
+            <h2>{{ $t('huo-qu-ni-de-ni-cheng-tou-xiang-di-qu-ji-xing-bie') }}</h2>
 
             <div class="userinfo">
                 <van-image :width="40" :height="40" round :src="info.avatarUrl" fit="cover" />
                 <div class="info">
                     <div class="text1">{{ info.nickName }}</div>
-                    <div class="text2">微信个人信息</div>
+                    <div class="text2">{{ $t('wei-xin-ge-ren-xin-xi') }}</div>
                 </div>
             </div>
 
             <div class="btn-list">
-                <van-button :radius="4" style="margin-right: 20px;" @click="refus">拒绝</van-button>
-                <van-button open-type="getPhoneNumber" @getphonenumber="bindPhone" :radius="4" type="primary"
-                    >允许</van-button
-                >
+                <van-button :radius="4" style="margin-right: 20px;" @click="refus">{{ $t('ju-jue') }}</van-button>
+                <van-button open-type="getPhoneNumber" @getphonenumber="bindPhone" :radius="4" type="primary">{{
+                    $t('yun-xu')
+                }}</van-button>
             </div>
         </div>
     </van-popup>

+ 2 - 2
src/components/ChangeText.vue

@@ -9,11 +9,11 @@
                 "
                 :value="value"
                 :focus="focus"
-                placeholder="请输入..."
+                :placeholder="$t('qing-shu-ru')"
                 confirm-type="done"
             />
             <div class="btn">
-                <van-button block :color="$colors.warn" @click="submit">确定</van-button>
+                <van-button block :color="$colors.warn" @click="submit">{{ $t('que-ding') }}</van-button>
             </div>
         </div>
     </van-popup>

+ 8 - 6
src/components/ChatInfo.vue

@@ -13,9 +13,9 @@
                 />
 
                 <div class="order-info">
-                    <div class="name">{{ contentJson.sex ? '咨询单' : '企业认领' }}</div>
+                    <div class="name">{{ contentJson.sex ? $t('zi-xun-dan') : $t('qi-ye-ren-ling') }}</div>
                     <div class="time">{{ info.time.format('YYYY-MM-DD') }}</div>
-                    <div class="btn">查看详情</div>
+                    <div class="btn">{{ $t('cha-kan-xiang-qing') }}</div>
                 </div>
             </div>
             <van-image class="right-icon" :src="logo + $oss.mini" :width="36" :height="36" :radius="4" fit="cover" />
@@ -23,7 +23,7 @@
         <div class="chatInfo" :class="{ right: isMine }">
             <van-image class="left-icon" :src="logo + $oss.mini" :width="36" :height="36" :radius="4" fit="cover" />
             <van-image
-                style="margin:0 10px"
+                style="margin: 0 10px;"
                 :src="content + '?x-oss-process=image/resize,l_100,m_mfit'"
                 v-if="isImg"
                 :width="100"
@@ -83,15 +83,17 @@ export default {
         content() {
             if (this.info.content) {
                 if (this.info.content[0] === '{' && this.isService) {
-                    return '咨询:' + this.contentJson.functionalRequirements;
+                    return this.$t('zi-xun-1') + ':' + this.contentJson.functionalRequirements;
                     // return (
                     //    +
                     //     (this.contentJson.otherProblems ? ':' + this.contentJson.otherProblems : '')
                     // );
                 } else if (this.info.content[0] === '{') {
                     return this.contentJson.sex
-                        ? '你好,我对贵方的产品非常感兴趣,希望可以详细聊聊'
-                        : '你好,我对贵方发送了一条企业认领请求';
+                        ? this.$t(
+                              'ni-hao-wo-dui-gui-fang-de-chan-pin-fei-chang-gan-xing-qu-xi-wang-ke-yi-xiang-xi-liao-liao'
+                          )
+                        : this.$t('ni-hao-wo-dui-gui-fang-fa-song-le-yi-tiao-qi-ye-ren-ling-qing-qiu');
                 } else if (this.isImg) {
                     return this.info.content;
                 } else {

+ 8 - 6
src/components/Member.vue

@@ -51,11 +51,11 @@ export default {
         },
         name() {
             if (this.type === 'system') {
-                return '系统消息';
+                return this.$t('xi-tong-xiao-xi');
             } else if (this.type === 'admin') {
-                return '服务管家';
+                return this.$t('fu-wu-guan-jia');
             } else {
-                return this.info.otherName || '神秘用户';
+                return this.info.otherName || this.$t('shen-mi-yong-hu');
             }
         },
         content() {
@@ -63,11 +63,13 @@ export default {
                 return this.info.content || '';
             } else if (this.info.message) {
                 if (this.info.message[0] === '{' && this.type === 'admin') {
-                    return '咨询:' + this.contentJson.functionalRequirements;
+                    return this.$t('zi-xun-1') + ':' + this.contentJson.functionalRequirements;
                 } else if (this.info.message[0] === '{') {
                     return this.contentJson.sex
-                        ? '你好,我对贵方的产品非常感兴趣,希望可以详细聊聊'
-                        : '你好,我对贵方发送了一条企业认领请求';
+                        ? this.$t(
+                              'ni-hao-wo-dui-gui-fang-de-chan-pin-fei-chang-gan-xing-qu-xi-wang-ke-yi-xiang-xi-liao-liao'
+                          )
+                        : this.$t('ni-hao-wo-dui-gui-fang-fa-song-le-yi-tiao-qi-ye-ren-ling-qing-qiu');
                 } else {
                     return this.info.message;
                 }

+ 2 - 2
src/components/News/Grid.vue

@@ -14,7 +14,7 @@
                 </div>
 
                 <div class="btn" v-if="info.del">
-                    <van-button :color="$colors.warn" :radius="4" disabled>活动已取消</van-button>
+                    <van-button :color="$colors.warn" :radius="4" disabled>{{ $t('huo-dong-yi-qu-xiao') }}</van-button>
                 </div>
 
                 <div class="btn" v-else>
@@ -30,7 +30,7 @@
                     >
 
                     <van-button :color="$colors.warn" :radius="4" :disabled="isEnd" :readonly="userActivity">{{
-                        isEnd ? $t('bao-ming-jie-shu') : activityId ? '报名中' : '活动报名'
+                        isEnd ? $t('bao-ming-jie-shu') : activityId ? $t('bao-ming-zhong') : $t('huo-dong-bao-ming')
                     }}</van-button>
                 </div>
             </div>

+ 4 - 4
src/components/Order.vue

@@ -6,10 +6,10 @@
         </div>
         <div class="order-info-content">
             <van-cell-group :border="false">
-                <van-cell :border="false" title="产品品牌" :value="info.brand" />
-                <van-cell :border="false" title="产品类别" :value="productCategory" />
-                <van-cell :border="false" title="应用领域" :value="applicationField" />
-                <van-cell :border="false" title="产品描述" :value="info.introduction" />
+                <van-cell :border="false" :title="$t('chan-pin-pin-pai')" :value="info.brand" />
+                <van-cell :border="false" :title="$t('chan-pin-lei-bie')" :value="productCategory" />
+                <van-cell :border="false" :title="$t('ying-yong-ling-yu')" :value="applicationField" />
+                <van-cell :border="false" :title="$t('chan-pin-miao-shu')" :value="info.introduction" />
             </van-cell-group>
         </div>
     </div>

+ 5 - 3
src/components/SortList.vue

@@ -7,8 +7,8 @@
             </div>
         </van-empty>
         <div class="endText" v-else>
-            <van-loading size="24px" v-if="loading">加载中...</van-loading>
-            <p v-if="finish">没有更多了~</p>
+            <van-loading size="24px" v-if="loading">{{ $t('jia-zai-zhong') }}...</van-loading>
+            <p v-if="finish">{{ $t('mei-you-geng-duo-le') }}</p>
         </div>
     </div>
 </template>
@@ -38,7 +38,9 @@ export default {
         },
         emptyText: {
             type: String,
-            default: '敬请期待'
+            default: () => {
+                return this.$t('jing-qing-qi-dai');
+            }
         }
     },
     computed: {

+ 1 - 1
src/components/bar/FilterSortBar.vue

@@ -35,7 +35,7 @@
                 ></van-icon>
             </div>
             <div class="shaixuan" @click="showFilter">
-                <span>筛选</span>
+                <span>{{ $t('shai-xuan') }}</span>
                 <van-image
                     :width="16"
                     :height="16"

+ 1 - 1
src/components/bar/SearchBar.vue

@@ -4,7 +4,7 @@
             <img class="logo" src="../../static/imgs/home_logo.png" alt="" />
             <div class="search" @click="navigateTo('/pagesHome/Search', false)">
                 <van-icon name="http://imttech.oss-cn-hangzhou.aliyuncs.com/micro/search.png" />
-                <span>搜索展商/产品/资讯</span>
+                <span>{{ $t('sou-suo-zhan-shang-chan-pin-zi-xun') }}</span>
                 <!-- <span>搜索...</span> -->
             </div>
         </div>

+ 4 - 2
src/components/filter/Country.vue

@@ -1,10 +1,12 @@
 <template>
     <div class="filterInfo" :class="`filter--${size}`">
         <block v-if="size === 'big'">
-            <h3 class="filterInfoTitle">国家和地区</h3>
+            <h3 class="filterInfoTitle">{{ $t('guo-jia-he-di-qu') }}</h3>
         </block>
         <div class="filter-btn" :class="{ noChoose: !valueInfo }" @click="show">
-            <h3 class="fontNormal">{{ valueInfo ? $t(valueInfo.label) : size === 'big' ? '请选择' : '国家/地区' }}</h3>
+            <h3 class="fontNormal">
+                {{ valueInfo ? $t(valueInfo.label) : size === 'big' ? $t('qing-xuan-ze') : $t('guo-jia-di-qu') }}
+            </h3>
             <van-icon v-if="size === 'big'" color="#CBCFDB" :size="18" name="arrow" />
             <van-icon
                 v-if="size === 'small'"

+ 5 - 3
src/components/filter/EnterpriseType.vue

@@ -1,11 +1,13 @@
 <template>
     <div class="filterInfo" :class="`filter--${size}`">
         <block v-if="size === 'big'">
-            <h3 class="filterInfoTitle">企业类型</h3>
+            <h3 class="filterInfoTitle">{{ $t('qi-ye-lei-xing') }}</h3>
         </block>
 
         <div class="filter-btn" :class="{ noChoose: !valueInfo }" @click="show">
-            <h3 class="fontNormal">{{ valueInfo ? $t(valueInfo.name) : size === 'big' ? '请选择' : '企业类型' }}</h3>
+            <h3 class="fontNormal">
+                {{ valueInfo ? $t(valueInfo.name) : size === 'big' ? $t('qing-xuan-ze') : $t('qi-ye-lei-xing') }}
+            </h3>
             <van-icon v-if="size === 'big'" color="#CBCFDB" :size="18" name="arrow" />
             <van-icon
                 v-if="size === 'small'"
@@ -27,7 +29,7 @@
                 <div class="left-icon">
                     <van-icon v-if="headerInfo" color="#5E636D" @click="back" :size="24" name="arrow-left" />
                 </div>
-                <h3>选择企业类型</h3>
+                <h3>{{ $t('xuan-ze-qi-ye-lei-xing') }}</h3>
                 <van-icon color="#5E636D" :size="24" name="cross" @click="showPopup = false" />
             </div>
             <van-cell-group :border="false">

+ 8 - 4
src/components/filter/ProductCategory.vue

@@ -1,10 +1,12 @@
 <template>
     <div class="filterInfo" :class="`filter--${size}`">
         <block v-if="size === 'big'">
-            <h3 class="filterInfoTitle">分类</h3>
+            <h3 class="filterInfoTitle">{{ $t('fen-lei') }}</h3>
         </block>
         <div class="filter-btn" :class="{ noChoose: !valueInfo }" @click="show">
-            <h3 class="fontNormal">{{ valueInfo ? getName(valueInfo) : size === 'big' ? '请选择' : '产品类别' }}</h3>
+            <h3 class="fontNormal">
+                {{ valueInfo ? getName(valueInfo) : size === 'big' ? $t('qing-xuan-ze') : $t('chan-pin-lei-bie') }}
+            </h3>
             <van-icon v-if="size === 'big'" color="#CBCFDB" :size="18" name="arrow" />
             <van-icon
                 v-if="size === 'small'"
@@ -26,7 +28,7 @@
                 <div class="left-icon">
                     <van-icon v-if="headerInfo" color="#5E636D" @click="back" :size="24" name="arrow-left" />
                 </div>
-                <h3>选择类别</h3>
+                <h3>{{ $t('xuan-ze-lei-bie') }}</h3>
                 <van-icon color="#5E636D" :size="24" name="cross" @click="showPopup = false" />
             </div>
             <van-cell-group :border="false">
@@ -36,7 +38,9 @@
                     :border="false"
                     :custom-class="valueId === headerInfo.id ? 'active' : ''"
                 >
-                    <h3 class="fontNormal" slot="title">全部{{ getName(headerInfo) }}类别</h3>
+                    <h3 class="fontNormal" slot="title">
+                        {{ $t('quan-bu') }}{{ getName(headerInfo) }}{{ $t('lei-bie') }}
+                    </h3>
                     <van-icon
                         slot="right-icon"
                         :size="24"

+ 5 - 3
src/components/filter/ProductCustomCateId.vue

@@ -1,10 +1,12 @@
 <template>
     <div class="filterInfo" :class="`filter--${size}`">
         <block v-if="size === 'big'">
-            <h3 class="filterInfoTitle">产品目录</h3>
+            <h3 class="filterInfoTitle">{{ $t('chan-pin-mu-lu') }}</h3>
         </block>
         <div class="filter-btn" :class="{ noChoose: !valueInfo }" @click="show">
-            <h3 class="fontNormal">{{ valueInfo ? getName(valueInfo) : size === 'big' ? '请选择' : '目录' }}</h3>
+            <h3 class="fontNormal">
+                {{ valueInfo ? getName(valueInfo) : size === 'big' ? $t('qing-xuan-ze') : $t('mu-lu') }}
+            </h3>
             <van-icon v-if="size === 'big'" color="#CBCFDB" :size="18" name="arrow" />
             <van-icon
                 v-if="size === 'small'"
@@ -26,7 +28,7 @@
                 <div class="left-icon">
                     <van-icon v-if="headerInfo" color="#5E636D" @click="back" :size="24" name="arrow-left" />
                 </div>
-                <h3>产品目录</h3>
+                <h3>{{ $t('chan-pin-mu-lu') }}</h3>
                 <van-icon color="#5E636D" :size="24" name="cross" @click="showPopup = false" />
             </div>
             <van-cell-group :border="false">

+ 5 - 3
src/components/filter/ProductTags.vue

@@ -1,10 +1,12 @@
 <template>
     <div class="filterInfo" :class="`filter--${size}`">
         <block v-if="size === 'big'">
-            <h3 class="filterInfoTitle">产品标签</h3>
+            <h3 class="filterInfoTitle">{{ $t('chan-pin-biao-qian') }}</h3>
         </block>
         <div class="filter-btn" :class="{ noChoose: !valueInfo }" @click="show">
-            <h3 class="fontNormal">{{ valueInfo ? getName(valueInfo) : size === 'big' ? '请选择' : '标签' }}</h3>
+            <h3 class="fontNormal">
+                {{ valueInfo ? getName(valueInfo) : size === 'big' ? $t('qing-xuan-ze') : $t('biao-qian') }}
+            </h3>
             <van-icon v-if="size === 'big'" color="#CBCFDB" :size="18" name="arrow" />
             <van-icon
                 v-if="size === 'small'"
@@ -26,7 +28,7 @@
                 <div class="left-icon">
                     <van-icon v-if="headerInfo" color="#5E636D" @click="back" :size="24" name="arrow-left" />
                 </div>
-                <h3>选择标签</h3>
+                <h3>{{ $t('xuan-ze-biao-qian') }}</h3>
                 <van-icon color="#5E636D" :size="24" name="cross" @click="showPopup = false" />
             </div>
             <van-cell-group :border="false">

+ 2 - 2
src/components/select/Application.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="select" @click.stop="">
         <div class="filter-btn" :class="{ noChoose: !valueInfo }" @click="show">
-            <h3 class="fontNormal">{{ valueInfo ? valueInfo : '请选择应用领域' }}</h3>
+            <h3 class="fontNormal">{{ valueInfo ? valueInfo : $t('qing-xuan-ze-ying-yong-ling-yu') }}</h3>
         </div>
 
         <van-popup
@@ -16,7 +16,7 @@
                 <div class="left-icon">
                     <van-icon v-if="headerInfo" color="#5E636D" @click="back" :size="24" name="arrow-left" />
                 </div>
-                <h3>选择应用领域</h3>
+                <h3>{{ $t('xuan-ze-ying-yong-ling-yu') }}</h3>
                 <van-button :color="$colors.warn" plain @click="submit">确定</van-button>
             </div>
             <van-cell-group :border="false">

+ 5 - 3
src/components/select/Country.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="filterInfo" :class="`filter--${size}`" @click.stop="">
         <div class="select" :class="{ noChoose: !valueInfo }" @click="show">
-            <h3 class="fontNormal">{{ valueInfo ? valueInfo : '未选择' }}</h3>
+            <h3 class="fontNormal">{{ valueInfo ? valueInfo : $t('wei-xuan-ze') }}</h3>
         </div>
 
         <van-popup
@@ -16,7 +16,7 @@
                 <div class="left-icon">
                     <van-icon v-if="headerInfo" color="#5E636D" @click="back" :size="24" name="arrow-left" />
                 </div>
-                <h3>国家地区</h3>
+                <h3>{{ $t('guo-jia-di-qu') }}</h3>
                 <van-icon color="#5E636D" :size="24" name="cross" @click="showPopup = false" />
             </div>
             <van-cell-group :border="false">
@@ -27,7 +27,9 @@
                     :custom-class="chooseId === headerInfo.value ? 'active' : ''"
                     style="display: none;"
                 >
-                    <h3 class="fontNormal" slot="title">全部{{ $t(headerInfo.label) }}地区</h3>
+                    <h3 class="fontNormal" slot="title">
+                        {{ $t('quan-bu') }}{{ $t(headerInfo.label) }}{{ $t('di-qu') }}
+                    </h3>
                     <van-icon
                         v-if="chooseId === headerInfo.value"
                         slot="right-icon"

+ 3 - 3
src/components/select/Industry.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="select" @click.stop="">
         <div class="filter-btn" :class="{ noChoose: !valueInfo }" @click="show">
-            <h3 class="fontNormal">{{ valueInfo ? valueInfo : '未选择' }}</h3>
+            <h3 class="fontNormal">{{ valueInfo ? valueInfo : $t('wei-xuan-ze') }}</h3>
         </div>
 
         <van-popup
@@ -16,8 +16,8 @@
                 <div class="left-icon">
                     <van-icon v-if="headerInfo" color="#5E636D" @click="back" :size="24" name="arrow-left" />
                 </div>
-                <h3>选择所属行业</h3>
-                <van-button :color="$colors.warn" plain @click="submit">确定</van-button>
+                <h3>{{ $t('xuan-ze-suo-shu-hang-ye') }}</h3>
+                <van-button :color="$colors.warn" plain @click="submit">{{ $t('que-ding') }}</van-button>
             </div>
             <van-cell-group :border="false">
                 <block v-for="item in showList" :key="item.id">

+ 3 - 3
src/components/select/ProductCategory.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="select" @click.stop="">
         <div class="filter-btn" :class="{ noChoose: !valueInfo }" @click="show">
-            <h3 class="fontNormal">{{ valueInfo ? valueInfo : '未选择' }}</h3>
+            <h3 class="fontNormal">{{ valueInfo ? valueInfo : $t('wei-xuan-ze') }}</h3>
         </div>
 
         <van-popup
@@ -16,8 +16,8 @@
                 <div class="left-icon">
                     <van-icon v-if="headerInfo" color="#5E636D" @click="back" :size="24" name="arrow-left" />
                 </div>
-                <h3>选择感兴趣的产品</h3>
-                <van-button :color="$colors.warn" plain @click="submit">确定</van-button>
+                <h3>{{ $t('xuan-ze-gan-xing-qu-de-chan-pin') }}</h3>
+                <van-button :color="$colors.warn" plain @click="submit">{{ $t('que-ding') }}</van-button>
             </div>
             <van-cell-group :border="false">
                 <block v-for="item in showList" :key="item.id">

+ 2 - 2
src/components/select/ProductCategoryOnly.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="select" @click.stop="">
         <div class="filter-btn" :class="{ noChoose: !valueInfo }" @click="show">
-            <h3 class="fontNormal">{{ valueInfo ? valueInfo : '请选择类别' }}</h3>
+            <h3 class="fontNormal">{{ valueInfo ? valueInfo : $t('qing-xuan-ze-lei-bie') }}</h3>
         </div>
 
         <van-popup
@@ -16,7 +16,7 @@
                 <div class="left-icon">
                     <van-icon v-if="headerInfo" color="#5E636D" @click="back" :size="24" name="arrow-left" />
                 </div>
-                <h3>选择感兴趣的产品</h3>
+                <h3>{{ $t('xuan-ze-gan-xing-qu-de-chan-pin') }}</h3>
                 <van-icon
                     v-if="size === 'small'"
                     :color="valueInfo ? $colors.warn : '#878D99'"

+ 127 - 1
src/locales/zh.json

@@ -274,5 +274,131 @@
   "qing-xuan-ze-ying-yong-ling-yu": "请选择应用领域",
   "qing-shu-ru-chan-pin-miao-shu": "请输入产品描述",
   "xin-zeng-cheng-gong": "新增成功",
-  "qing-shu-ru-chan-pin-lei-bie": "请输入产品类别"
+  "qing-shu-ru-chan-pin-lei-bie": "请输入产品类别",
+  "huo-dong-xiang-qing": "活动详情",
+  "xin-wen-xiang-qing": "新闻详情",
+  "xin-wen": "新闻",
+  "huo-dong": "活动",
+  "xiang-qing": "详情",
+  "cha-kan-bao-ming-xin-xi": "查看报名信息",
+  "que-ding-yao-qu-xiao-bao-ming-ma": "确定要取消报名吗?",
+  "qu-xiao-cheng-gong": "取消成功!",
+  "zui-duo-ke-xuan-ze-liang-ge-chan-pin-jin-hang-dui-bi": "最多可选择两个产品进行对比",
+  "zai-dui-bi-shi-ke-yi-sui-shi-qie-huan-qi-ta-chan-pin": "在对比时可以随时切换其他产品",
+  "chan-pin-dui-bi-jin-xian-tong-lei-bie-chan-pin-jin-hang-dui-bi": "产品对比仅限同类别产品进行对比",
+  "shi-fou-li-ji-qing-kong-dang-qian-dui-bi-lie-biao": "是否立即清空当前对比列表",
+  "tian-jia-dang-qian-shang-pin-dui-bi": "添加当前商品对比",
+  "tian-jia-chan-pin": "添加产品",
+  "kai-shi-dui-bi": "开始对比",
+  "xian-xia-ti-yan": "线下体验",
+  "ke-yi": "可以",
+  "hang-ye-zi-xun": "行业资讯",
+  "ru-zhu-chang-shang": "入驻展商",
+  "zhu-ce": "注册",
+  "xuan-ze-shang-pin": "选择商品",
+  "jiao-huo-zhou-qi": "交货周期",
+  "chan-pin-chan-di": "产品产地",
+  "tu-wen-xiang-qing": "图文详情",
+  "xiang-xi-can-shu": "详细参数",
+  "pdf-zi-liao": "PDF资料",
+  "cha-kan-pdf-wen-jian": "查看PDF文件",
+  "dui-bi": "对比",
+  "yi-xiang-dan": "意向单",
+  "yi-tian-jia": "已添加",
+  "xun-jia": "询价",
+  "tian-jia-cheng-gong": "添加成功!",
+  "chan-pin-xiang-qing": "产品详情",
+  "ke-zai-imt-zhan-ting-xian-xia-ti-yan-dian-ji-cha-kan-di-zhi": "可在IMT展厅线下体验,点击查看地址",
+  "jin-ru-zhan-shang": "进入展商",
+  "shang-pin-yi-zai-dui-bi-lie-biao-zhong-huo-wu-shang-pin": "商品已在对比列表中或无商品",
+  "qing-shang-chuan-tou-xiang": "请上传头像",
+  "qing-shu-ru-ni-cheng": "请输入昵称",
+  "qing-shu-ru-gong-si-ming-cheng": "请输入公司名称",
+  "qing-tian-xie-zhi-wei": "请填写职位",
+  "qing-xuan-ze-di-zhi": "请选择地址",
+  "qing-xuan-ze-suo-shu-hang-ye": "请选择所属行业",
+  "qing-xuan-ze-gan-xing-qu-de-chan-pin": "请选择感兴趣的产品",
+  "qing-xuan-ze-jiao-liu-yu-yan": "请选择交流语言",
+  "qing-tian-xie-you-xiang-xin-xi": "请填写邮箱信息",
+  "bao-cun-cheng-gong": "保存成功",
+  "que-ren-yao-shan-chu-gai-qing-dan-ma": "确认要删除该清单吗?",
+  "li-ji-shan-chu": "立即删除",
+  "qing-chu-liu-lan-ji-lu": "清除浏览记录",
+  "dang-qian-zan-wu-liu-lan-ji-luo": "当前暂无浏览记录哦~",
+  "que-ding-yao-qing-chu-quan-bu-liu-lan-ji-lu-ma": "确定要清除全部浏览记录吗?",
+  "sheng-cheng-tu-pian": "生成图片",
+  "huo-qu-tu-pian-shi-bai": "获取图片失败",
+  "cai-qie-tu-pian": "裁切图片",
+  "huo-dong-chang-ci-xuan-ze": "活动场次选择",
+  "qu-xiao-bao-ming": "取消报名",
+  "bao-ming-biao-xin-xi": "报名表信息",
+  "qing-xuan-ze-huo-dong-chang-ci": "请选择活动场次",
+  "qing-shu-ru-xing-ming": "请输入姓名",
+  "qing-shu-ru-zhi-wu": "请输入职务",
+  "qing-shu-ru-lian-xi-dian-hua": "请输入联系电话",
+  "bao-ming-cheng-gong": "报名成功!",
+  "tian-xie-bao-ming-biao": "填写报名表",
+  "chan-pin-dui-bi": "产品对比",
+  "tong-lei-bie-tui-jian": "同类别推荐",
+  "dang-qian-lei-bie": "当前类别",
+  "dang-qian-zan-wu-ke-dui-bi-chan-pino": "当前暂无可对比产品哦~",
+  "chan-pin-dui-bi-jin-xian-tong-lei-bie-chan-pin-jin-hang-dui-bi-ruo-yao-geng-huan-lei-bie-qing-xian-jiang-lie-biao-zhong-de-chan-pin-shan-chu-zai-ci-tian-jia-chan-pin-ze-hui-bian-wei-xin-chan-pin-de-lei-bie": "产品对比仅限同类别产品进行对比,若要更换类别,请先将列表中的产品删除,再次添加产品则会变为新产品的类别",
+  "li-ji-tian-jia": "立即添加",
+  "que-ren-yao-shan-chu-gai-shang-pin-ma": "确认要删除该商品吗?",
+  "zhan-shang": "展商",
+  "xun-jia-chan-pin": "询价产品",
+  "zhan-kai-quan-bu": "展开全部",
+  "ge": "个",
+  "shi-mo-du-mei-you-o": "什么都没有哦",
+  "qing-shu-ru-ji-hua-jia-gong-de-gong-jian-ming-cheng": "请输入计划加工的工件名称",
+  "qing-jian-yao-miao-shu-nin-de-wen-ti-xu-qiu-100-zi-yi-nei": "请简要描述您的问题需求,100字以内",
+  "ti-jiao-xun-jia": "提交询价",
+  "qing-shu-ru-ji-hua-jia-gong-de-gong-jian": "请输入计划加工的工件",
+  "qing-shu-ru-wen-ti-xu-qiu": "请输入问题需求",
+  "yi-ti-jiao-xun-jia-xin-xi": "已提交询价信息",
+  "shao-hou-ke-zai-zi-xun-xiao-xi-lie-biao-zhong-cha-kan-hui-fu-qing-kuang": "稍后可在咨询消息列表中查看回复情况",
+  "dang-qian-zan-wu-yi-xiang-chan-pino": "当前暂无意向产品哦~",
+  "pi-liang-xun-jia": "批量询价",
+  "zhu-yao-chan-pin": "主要产品",
+  "cheng-gong-an-li": "成功案例",
+  "an-li-xiang-qing": "案例详情",
+  "tian-jia": "添加",
+  "ti-jiao-zi-xun": "提交咨询",
+  "qing-tian-jia-zi-xun-chan-pin": "请添加咨询产品",
+  "zi-xun-zhan-shang": "咨询展商",
+  "yi-guan-zhu": "已关注",
+  "guan-yu-zhan-shang": "关于展商",
+  "quan-bu-chan-pin": "全部产品",
+  "xian-sheng": "先生",
+  "nv-shi": "女士",
+  "sou-suo-zhan-shang-chan-pin-zi-xun": "搜索展商/产品/资讯",
+  "guo-jia-he-di-qu": "国家和地区",
+  "xuan-ze-qi-ye-lei-xing": "选择企业类型",
+  "fen-lei": "分类",
+  "xuan-ze-lei-bie": "选择类别",
+  "lei-bie": "类别",
+  "quan-bu": "全部",
+  "mu-lu": "目录",
+  "biao-qian": "标签",
+  "xuan-ze-biao-qian": "选择标签",
+  "huo-dong-yi-qu-xiao": "活动已取消",
+  "bao-ming-zhong": "报名中",
+  "huo-dong-bao-ming": "活动报名",
+  "xuan-ze-ying-yong-ling-yu": "选择应用领域",
+  "di-qu": "地区",
+  "xuan-ze-suo-shu-hang-ye": "选择所属行业",
+  "xuan-ze-gan-xing-qu-de-chan-pin": "选择感兴趣的产品",
+  "qing-xuan-ze-lei-bie": "请选择类别",
+  "shen-qing-shi-yong": "申请使用",
+  "huo-qu-ni-de-ni-cheng-tou-xiang-di-qu-ji-xing-bie": "获取你的昵称、头像、地区及性别",
+  "wei-xin-ge-ren-xin-xi": "微信个人信息",
+  "ju-jue": "拒绝",
+  "yun-xu": "允许",
+  "zi-xun-dan": "咨询单",
+  "ni-hao-wo-dui-gui-fang-de-chan-pin-fei-chang-gan-xing-qu-xi-wang-ke-yi-xiang-xi-liao-liao": "你好,我对贵方的产品非常感兴趣,希望可以详细聊聊",
+  "ni-hao-wo-dui-gui-fang-fa-song-le-yi-tiao-qi-ye-ren-ling-qing-qiu": "你好,我对贵方发送了一条企业认领请求",
+  "shen-mi-yong-hu": "神秘用户",
+  "mei-you-geng-duo-le": "没有更多了~",
+  "zhong-ying": "中/英",
+  "qi-ta": "其他"
 }

+ 2 - 2
src/main.js

@@ -41,7 +41,7 @@ Vue.i18n.set('zh');
 
 Vue.prototype.$store = store;
 
-Vue.prototype.$toast = function(title, icon) {
+Vue.prototype.$toast = function (title, icon) {
     if (!icon) {
         icon = 'none';
     }
@@ -56,7 +56,7 @@ function $loading(title) {
         title: title || ''
     });
 }
-$loading.close = function() {
+$loading.close = function () {
     wx.hideLoading();
 };
 Vue.prototype.$loading = $loading;

+ 1 - 1
src/pages/Chat.vue

@@ -22,7 +22,7 @@
                     inertia
                 >
                     <member :info="item"></member>
-                    <div class="del" @click="del(item.otherUserId)">删除</div>
+                    <div class="del" @click="del(item.otherUserId)">{{ $t('shan-chu') }}</div>
                 </movable-view>
             </movable-area>
         </block>

+ 13 - 13
src/pagesHome/Edit.vue

@@ -142,7 +142,7 @@ export default {
             console.log(file);
         },
         loginMethods() {
-            this.$loading('加载中...');
+            this.$loading(this.$t('jia-zai-zhong'));
             this.$store.dispatch('getUserInfo').then(res => {
                 this.$loading.close();
                 res.logo = res.logo || this.userInfo.avatar;
@@ -190,56 +190,56 @@ export default {
         },
         save() {
             if (!this.myInfo.logo) {
-                this.toast('请上传头像');
+                this.toast(this.$t('qing-shang-chuan-tou-xiang'));
                 return;
             }
 
             if (!this.myInfo.nickname) {
-                this.toast('请输入昵称');
+                this.toast(this.$t('qing-shu-ru-ni-cheng'));
                 return;
             }
 
             if (!this.sex) {
-                this.toast('请选择称呼');
+                this.toast(this.$t('qing-xuan-ze-cheng-hu'));
                 return;
             }
 
             if (!this.myInfo.chCompanyName) {
-                this.toast('请输入公司名称');
+                this.toast(this.$t('qing-shu-ru-gong-si-ming-cheng'));
                 return;
             }
 
             if (!this.myInfo.userPosition) {
-                this.toast('请填写职位');
+                this.toast(this.$t('qing-tian-xie-zhi-wei'));
                 return;
             }
 
             if (!this.myInfo.country) {
-                this.toast('请选择地址');
+                this.toast(this.$t('qing-xuan-ze-di-zhi'));
                 return;
             }
 
             if (!this.myInfo.industryId) {
-                this.toast('请选择所属行业');
+                this.toast(this.$t('qing-xuan-ze-suo-shu-hang-ye'));
                 return;
             }
 
             if (!this.myInfo.interestedProCateId) {
-                this.toast('请选择感兴趣的产品');
+                this.toast(this.$t('qing-xuan-ze-gan-xing-qu-de-chan-pin'));
                 return;
             }
 
             if (!this.languageOfCommunication) {
-                this.toast('请选择交流语言');
+                this.toast(this.$t('qing-xuan-ze-jiao-liu-yu-yan'));
                 return;
             }
             if (!this.myInfo.userEmail) {
-                this.toast('请填写邮箱信息');
+                this.toast(this.$t('qing-tian-xie-you-xiang-xin-xi'));
                 return;
             }
 
             var form = { ...this.myInfo };
-            this.$loading('加载中...');
+            this.$loading(this.$t('jia-zai-zhong'));
             this.$http
                 .post('/buyersInfo/saveVO', form, {
                     header: {
@@ -248,7 +248,7 @@ export default {
                 })
                 .then(res => {
                     this.$loading.close();
-                    this.toast('保存成功', 'success');
+                    this.toast(this.$t('bao-cun-cheng-gong'), 'success');
                     this.$store.dispatch('getUserInfo').then(() => {
                         this.navigateBack();
                     });

+ 3 - 3
src/pagesMine/Activity.vue

@@ -77,13 +77,13 @@ export default {
     },
     methods: {
         cancel(activityId) {
-            this.dialog('确定要取消报名吗?', true).then(() => {
-                this.$loading('加载中...');
+            this.dialog(this.$t('que-ding-yao-qu-xiao-bao-ming-ma'), true).then(() => {
+                this.$loading(this.$t('jia-zai-zhong'));
                 return this.$http
                     .post('/eventRegistration/del/' + activityId)
                     .then(res => {
                         this.$loading.close();
-                        this.toast('取消成功!', 'success');
+                        this.toast(this.$t('qu-xiao-cheng-gong'), 'success');
                         this.refreash();
                     })
                     .catch(e => {

+ 1 - 1
src/pagesMine/Order.vue

@@ -38,7 +38,7 @@
             </div>
             <fixed-button v-if="!empty && !(isVendor && type === 'OWN_PRODUCT')">
                 <van-button block :color="$colors.warn" @click="navigateTo('/pagesMine/OrderDetail?type=' + type)">
-                    新增
+                    {{ $t('xin-zeng') }}
                 </van-button>
             </fixed-button>
             <template slot="emptyButton">

+ 3 - 3
src/pagesMine/OrderDetail.vue

@@ -217,7 +217,7 @@ export default {
                 return;
             }
             if (this.form.type === 'OWN_PRODUCT' && !form.customCategory) {
-                this.toast('请输入产品类别');
+                this.toast(this.$t('qing-shu-ru-chan-pin-lei-bie'));
                 return;
             }
             if (this.form.type !== 'OWN_PRODUCT' && !form.productCategoryId) {
@@ -255,12 +255,12 @@ export default {
                 });
         },
         del() {
-            this.dialog('确认要删除该清单吗?', true, false, '立即删除')
+            this.dialog(this.$t('que-ren-yao-shan-chu-gai-qing-dan-ma'), true, false, this.$t('li-ji-shan-chu'))
                 .then(() => {
                     return this.$http.post(`/productList/del/${this.orderId}`);
                 })
                 .then(() => {
-                    this.toast('删除成功!', 'success');
+                    this.toast(this.$t('shan-chu-cheng-gong'), 'success');
                     setTimeout(() => {
                         this.navigateBack();
                     }, 1000);

+ 4 - 4
src/pagesMine/ReadRecords.vue

@@ -6,7 +6,7 @@
 <template>
     <sort-list
         emptyImg="http://imttech.oss-cn-hangzhou.aliyuncs.com/micro/kong_img_jilu.png"
-        emptyText="当前暂无浏览记录哦~"
+        :emptyText="$t('dang-qian-zan-wu-liu-lan-ji-luo')"
         :empty="empty"
         :loading="loading"
         :finish="finish"
@@ -18,7 +18,7 @@
             </div>
         </div>
         <fixed-button v-if="!empty">
-            <van-button :color="$colors.warn" block @click="clear">清除浏览记录</van-button>
+            <van-button :color="$colors.warn" block @click="clear">{{ $t('qing-chu-liu-lan-ji-lu') }}</van-button>
         </fixed-button>
         <van-dialog id="van-dialog" />
     </sort-list>
@@ -66,8 +66,8 @@ export default {
     methods: {
         clear() {
             Dialog.confirm({
-                title: '提示',
-                message: '确定要清除全部浏览记录吗?',
+                title: this.$t('ti-shi'),
+                message: this.$t('que-ding-yao-qing-chu-quan-bu-liu-lan-ji-lu-ma'),
                 confirmButtonColor: this.$colors.warn
             })
                 .then(() => {

+ 7 - 4
src/pagesMine/Upload.vue

@@ -18,14 +18,14 @@
         ></cropper>
         <div class="cropper-buttons" :style="{ color: cropperOpt.boundStyle.color }">
             <div class="upload btn" @tap="navigateBack">
-                取消
+                {{ $t('qu-xiao') }}
             </div>
             <div
                 class="getCropperImage btn"
                 :style="{ backgroundColor: cropperOpt.boundStyle.color }"
                 @tap="getCropperImage"
             >
-                生成图片
+                this.$t('sheng-cheng-tu-pian')
             </div>
         </div>
     </div>
@@ -98,7 +98,7 @@ export default {
             this.wecropper
                 .getCropperImage({ original: true })
                 .then(src => {
-                    this.$loading('加载中...');
+                    this.$loading(this.$t('jia-zai-zhong'));
                     this.$http.uploadFile(src).then(res => {
                         this.$loading.close();
                         const pages = getCurrentPages();
@@ -107,7 +107,7 @@ export default {
                     });
                 })
                 .catch(e => {
-                    console.error('获取图片失败');
+                    console.error(this.$t('huo-qu-tu-pian-shi-bai'));
                 });
         }
     },
@@ -118,6 +118,9 @@ export default {
             this.cropperOpt.src = this.$mp.options.src;
             this.wecropper.init();
         }
+        wx.setNavigationBarTitle({
+            title: this.$t('cai-qie-tu-pian')
+        });
     }
 };
 </script>

+ 14 - 7
src/pagesNews/Detail.vue

@@ -10,7 +10,12 @@
 </config>
 <template>
     <div>
-        <custom-bar detail :pre="0" :title="isActivity ? '活动详情' : '新闻详情'" :barTop="260"></custom-bar>
+        <custom-bar
+            detail
+            :pre="0"
+            :title="isActivity ? $t('huo-dong-xiang-qing') : $t('xin-wen-xiang-qing')"
+            :barTop="260"
+        ></custom-bar>
         <banner :banners="banners" fixed :height="260" :radius="0"></banner>
 
         <div class="main" id="main">
@@ -19,15 +24,15 @@
 
             <div class="activity" v-if="isActivity">
                 <div class="activity-info">
-                    <div class="name">时间:</div>
+                    <div class="name">{{ $t('shi-jian') }}:</div>
                     <div class="text">{{ info.date }}</div>
                 </div>
                 <div class="activity-info">
-                    <div class="name">地址:</div>
+                    <div class="name">{{ $t('di-zhi') }}:</div>
                     <div class="text">{{ info.address }}</div>
                 </div>
                 <div class="activity-info" v-if="session.length > 0">
-                    <div class="name">场次:</div>
+                    <div class="name">{{ $t('chang-ci') }}:</div>
                     <div class="sessions">
                         <block v-for="(item, index) in session" :key="index">
                             <div class="session-item">
@@ -42,7 +47,7 @@
             </div>
 
             <div class="detail">
-                <h2>{{ isActivity ? '活动' : '新闻' }}详情</h2>
+                <h2>{{ isActivity ? $t('huo-dong') : $t('xin-wen') }}{{ $t('xiang-qing') }}</h2>
 
                 <div class="html" v-html="info.content"></div>
             </div>
@@ -54,7 +59,9 @@
                 :color="$colors.warn"
                 :radius="4"
                 @click="navigateTo('/pagesNews/Submit?infoId=' + info.id + '&activityId=' + activityId)"
-                >{{ isEnd ? '报名结束' : activityId ? '查看报名信息' : '立即报名' }}</van-button
+                >{{
+                    isEnd ? $t('bao-ming-jie-shu') : activityId ? $t('cha-kan-bao-ming-xin-xi') : $t('li-ji-bao-ming')
+                }}</van-button
             >
         </fixed-button>
 
@@ -191,7 +198,7 @@ export default {
     onPageScroll() {},
     onShareAppMessage(from, target) {
         return {
-            title: 'IMT科技平台——' + this.info.title,
+            title: this.$t('imt-ke-ji-ping-tai') + '——' + this.info.title,
             path: '/pagesNews/Detail?id=' + this.informationId,
             imageUrl: this.getList(this.info.img) + '?x-oss-process=image/resize,m_pad,h_400,w_500,color_FFFFFF'
         };

+ 7 - 1
src/pagesNews/News.vue

@@ -27,7 +27,13 @@
                 </div>
             </van-sticky>
 
-            <sort-list :empty="empty" emptyText="敬请期待" :loading="loading" :finish="finish" top="44px">
+            <sort-list
+                :empty="empty"
+                :emptyText="$t('jing-qing-qi-dai')"
+                :loading="loading"
+                :finish="finish"
+                top="44px"
+            >
                 <div class="list">
                     <template v-if="pageType === 'bigImg'">
                         <block v-for="item in list" :key="item.id">

+ 35 - 26
src/pagesNews/Submit.vue

@@ -9,19 +9,19 @@
         <div class="activutyInfo">
             <div class="title">{{ information.title }}</div>
             <div class="info">
-                <div class="name">时间:</div>
+                <div class="name">{{ $t('shi-jian') }}:</div>
                 <div class="val">{{ information.date }}</div>
             </div>
 
             <div class="info">
-                <div class="name">地址:</div>
+                <div class="name">{{ $t('di-zhi') }}:</div>
                 <div class="val">{{ information.address }}</div>
             </div>
         </div>
 
         <div class="form">
             <div class="session" v-if="session.length > 0">
-                <h3>活动场次选择</h3>
+                <h3>{{ $t('huo-dong-chang-ci-xuan-ze') }}</h3>
 
                 <div class="session-list">
                     <div
@@ -40,36 +40,42 @@
 
             <van-cell-group :border="false">
                 <van-field
-                    label="姓名"
+                    :label="$t('xing-ming')"
                     :value="newForm.nickname"
                     input-align="right"
                     @input="form.nickname = $event.detail"
                     :readonly="!!activityId"
                 />
-                <van-field label="称呼" :value="getSexName(form.sex)" input-align="right" readonly @click="chooseSex" />
                 <van-field
-                    label="公司名称"
+                    :label="$t('cheng-hu')"
+                    :value="getSexName(form.sex)"
+                    input-align="right"
+                    readonly
+                    @click="chooseSex"
+                />
+                <van-field
+                    :label="$t('gong-si-ming-cheng')"
                     :value="newForm.companyName"
                     input-align="right"
                     @input="form.companyName = $event.detail"
                     :readonly="!!activityId"
                 />
                 <van-field
-                    label="职位"
+                    :label="$t('zhi-wei')"
                     :value="newForm.position"
                     input-align="right"
                     @input="form.position = $event.detail"
                     :readonly="!!activityId"
                 />
                 <van-field
-                    label="电话"
+                    :label="$t('dian-hua')"
                     :value="newForm.phone"
                     input-align="right"
                     :readonly="!!activityId"
                     @input="form.phone = $event.detail"
                 />
                 <van-field
-                    label="邮箱"
+                    :label="$t('you-xiang')"
                     :value="newForm.email"
                     input-align="right"
                     :readonly="!!activityId"
@@ -85,11 +91,11 @@
                     :disabled="!canNext"
                     :radius="4"
                     @click="submit"
-                    >提交</van-button
-                >
-                <van-button class="cancel" v-else block color="#565B66" plain :radius="4" @click="cancel"
-                    >取消报名</van-button
+                    >{{ $t('ti-jiao') }}</van-button
                 >
+                <van-button class="cancel" v-else block color="#565B66" plain :radius="4" @click="cancel">{{
+                    $t('qu-xiao-bao-ming')
+                }}</van-button>
             </fixed-button>
         </div>
         <van-dialog id="van-dialog" />
@@ -140,6 +146,9 @@ export default {
         }
     },
     onLoad(options) {
+        wx.setNavigationBarTitle({
+            title: this.$t('tian-xie-bao-ming-biao')
+        });
         if (options.activityId && Number(options.activityId)) {
             this.activityId = Number(options.activityId);
             this.$http.get('/eventRegistration/get/' + options.activityId).then(res => {
@@ -148,7 +157,7 @@ export default {
                 this.newForm = { ...this.form };
             });
             wx.setNavigationBarTitle({
-                title: '报名表信息'
+                title: this.$t('bao-ming-biao-xin-xi')
             });
         } else {
             this.informationId = options.infoId;
@@ -166,34 +175,34 @@ export default {
     methods: {
         submit() {
             if (!this.form.session) {
-                this.$toast('请选择活动场次');
+                this.$toast(this.$t('qing-xuan-ze-huo-dong-chang-ci'));
                 return;
             }
             if (!this.form.nickname) {
-                this.$toast('请输入姓名', 'success');
+                this.$toast(this.$t('qing-shu-ru-xing-ming'), 'success');
                 return;
             }
             if (!this.form.sex) {
-                this.$toast('请选择称呼');
+                this.$toast(this.$t('qing-xuan-ze-cheng-hu'));
                 return;
             }
             if (!this.form.companyName) {
-                this.$toast('请输入公司名称');
+                this.$toast(this.$t('qing-shu-ru-gong-si-ming-cheng'));
                 return;
             }
             if (!this.form.position) {
-                this.$toast('请输入职务');
+                this.$toast(this.$t('qing-shu-ru-zhi-wu'));
                 return;
             }
             if (!this.form.phone) {
-                this.$toast('请输入联系电话');
+                this.$toast(this.$t('qing-shu-ru-lian-xi-dian-hua'));
                 return;
             }
             if (!this.form.email) {
-                this.$toast('请输入邮箱');
+                this.$toast(this.$t('qing-shu-ru-you-xiang'));
                 return;
             }
-            this.$loading('加载中...');
+            this.$loading(this.$t('jia-zai-zhong'));
             this.$http
                 .post(
                     '/eventRegistration/save',
@@ -208,7 +217,7 @@ export default {
                 )
                 .then(res => {
                     this.$loading.close();
-                    this.toast('报名成功!', 'success');
+                    this.toast(this.$t('bao-ming-cheng-gong'), 'success');
                     setTimeout(() => {
                         this.navigateBack();
                     }, 1000);
@@ -259,14 +268,14 @@ export default {
             });
         },
         cancel() {
-            this.dialog('确定要取消报名吗?', true).then(() => {
-                this.$loading('加载中...');
+            this.dialog(this.$t('que-ding-yao-qu-xiao-bao-ming-ma'), true).then(() => {
+                this.$loading(this.$t('jia-zai-zhong'));
                 this.$http
                     .post('/eventRegistration/del/' + this.activityId, '', '', true)
                     .then(res => {
                         console.log('aaaaa');
                         this.$loading.close();
-                        this.toast('取消成功!', 'success');
+                        this.toast(this.$t('qu-xiao-cheng-gong'), 'success');
                         setTimeout(() => {
                             this.navigateBack();
                         }, 1000);

+ 30 - 14
src/pagesProduct/Contrast.vue

@@ -13,14 +13,20 @@
                 :background="$colors.bg"
                 :scrollable="false"
                 custom-class="my-notice"
-                text="产品对比仅限同类别产品进行对比,若要更换类别,请先将列表中的产品删除,再次添加产品则会变为新产品的类别"
+                :text="
+                    $t(
+                        'chan-pin-dui-bi-jin-xian-tong-lei-bie-chan-pin-jin-hang-dui-bi-ruo-yao-geng-huan-lei-bie-qing-xian-jiang-lie-biao-zhong-de-chan-pin-shan-chu-zai-ci-tian-jia-chan-pin-ze-hui-bian-wei-xin-chan-pin-de-lei-bie'
+                    )
+                "
             />
-            <van-button :color="$colors.warn" plain @click="goRead">我知道了</van-button>
+            <van-button :color="$colors.warn" plain @click="goRead">{{ $t('wo-zhi-dao-le') }}</van-button>
         </div>
 
         <div class="contrast-top" v-if="category.id">
             <div class="category-btn">
-                <van-button :color="$colors.warn" plain block>当前类别&nbsp;&nbsp;{{ getName(category) }}</van-button>
+                <van-button :color="$colors.warn" plain block
+                    >{{ $t('dang-qian-lei-bie') }}&nbsp;&nbsp;{{ getName(category) }}</van-button
+                >
             </div>
 
             <div class="product-list">
@@ -36,7 +42,7 @@
         </div>
 
         <van-empty
-            description="当前暂无可对比产品哦~"
+            :description="$t('dang-qian-zan-wu-ke-dui-bi-chan-pino')"
             image="http://imttech.oss-cn-hangzhou.aliyuncs.com/micro/kong_img_duibi.png"
             v-else
         >
@@ -48,7 +54,7 @@
         </van-empty>
 
         <div class="contrast-content" v-if="showList.length > 0">
-            <div class="title">同类别推荐</div>
+            <div class="title">{{ $t('tong-lei-bie-tui-jian') }}</div>
             <div class="product-list">
                 <product-row
                     :checked="[...addList].includes(item.id)"
@@ -65,10 +71,16 @@
             <div class="dialog-center">
                 <van-icon name="info" :size="55" :color="$colors.warn" />
                 <div class="dialog-title" v-if="isMoreWarn">
-                    最多可选择两个产品进行对比<br />在对比时可以随时切换其他产品
+                    {{ $t('zui-duo-ke-xuan-ze-liang-ge-chan-pin-jin-hang-dui-bi') }}
+                    <br />
+                    {{ $t('zai-dui-bi-shi-ke-yi-sui-shi-qie-huan-qi-ta-chan-pin') }}
                 </div>
                 <div class="dialog-title" v-else>
-                    产品对比仅限同类别产品进行对比<br />是否立即清空当前对比列表<br />添加当前商品对比
+                    {{ $t('chan-pin-dui-bi-jin-xian-tong-lei-bie-chan-pin-jin-hang-dui-bi') }}
+                    <br />
+                    {{ $t('shi-fou-li-ji-qing-kong-dang-qian-dui-bi-lie-biao') }}
+                    <br />
+                    {{ $t('tian-jia-dang-qian-shang-pin-dui-bi') }}
                 </div>
             </div>
         </van-dialog>
@@ -78,10 +90,12 @@
                 block
                 :radius="4"
                 @click="navigateTo('/pagesProduct/FilterVendor?categoryIds=' + (category.id || ''))"
-                >添加产品</van-button
             >
-            <van-button block :color="$colors.warn" :radius="4" :disabled="chooseIds.length < 2" @click="compare"
-                >开始对比({{ chooseIds.length }})</van-button
+                {{ $t('tian-jia-chan-pin') }}
+            </van-button>
+            <van-button block :color="$colors.warn" :radius="4" :disabled="chooseIds.length < 2" @click="compare">
+                {{ $t('kai-shi-dui-bi') }}
+                ({{ chooseIds.length }})</van-button
             >
         </fixed-button>
     </div>
@@ -102,7 +116,9 @@ export default {
         };
     },
     onLoad(options) {
-        console.log(options);
+        wx.setNavigationBarTitle({
+            title: this.$t('chan-pin-dui-bi')
+        });
         if (options.productId) {
             this.productId = Number(options.productId);
         }
@@ -165,7 +181,7 @@ export default {
                     if (res.error === '已添加') {
                         console.log('已经添加');
                     } else if (res.error === '类别不同') {
-                        this.dialog('', true, true, '立即添加')
+                        this.dialog('', true, true, this.$t('li-ji-tian-jia'))
                             .then(() => {
                                 return this.clearAllContrast();
                             })
@@ -191,7 +207,7 @@ export default {
             });
         },
         delContrast(id) {
-            this.dialog('确认要删除该商品吗?', true, false, '立即删除')
+            this.dialog(this.$t('que-ren-yao-shan-chu-gai-shang-pin-ma'), true, false, this.$t('li-ji-shan-chu'))
                 .then(() => {
                     return this.$http.post('/intentionList/delOne', {
                         type: 'PRODUCT_COMPARISON',
@@ -202,7 +218,7 @@ export default {
                     if (this.chooseIds.includes(id)) {
                         this.choose(id);
                     }
-                    this.toast('删除成功!', 'success');
+                    this.toast(this.$t('shan-chu-cheng-gong'), 'success');
                     this.$store.dispatch('getContrastInfo');
                 });
         },

+ 12 - 8
src/pagesProduct/ContrastDetail.vue

@@ -5,7 +5,7 @@
 }
 </config>
 <template>
-    <scroll-view style="height:100vh" :scroll-y="!showPopup" enable-flex @scroll="scroll">
+    <scroll-view style="height: 100vh;" :scroll-y="!showPopup" enable-flex @scroll="scroll">
         <div class="content" v-if="!loading">
             <div class="top tr" :class="{ fixedTop: fixedTop }">
                 <div class="left td" :class="{ fixedLeft: fixedLeft }">产品</div>
@@ -19,7 +19,7 @@
 
             <div class="tr">
                 <div class="left td" :class="{ fixedLeft: fixedLeft }">
-                    图片
+                    {{ $t('tu-pian') }}
                 </div>
                 <div class="td pro" v-for="(item, index) in showContrastList" :key="index">
                     <van-image :src="getList(item.img)" :width="60" :height="60" fit="cover" />
@@ -35,7 +35,7 @@
             </div>
             <div class="tr">
                 <div class="left td" :class="{ fixedLeft: fixedLeft }">
-                    产品类别
+                    {{ $t('chan-pin-lei-bie') }}
                 </div>
                 <div class="td pro" v-for="(item, index) in showContrastList" :key="index">
                     {{ getName(item.productCategory) }}
@@ -72,10 +72,10 @@
             </div>
             <div class="tr">
                 <div class="left td" :class="{ fixedLeft: fixedLeft }">
-                    线下体验
+                    {{ $t('xian-xia-ti-yan') }}
                 </div>
                 <div class="td pro" v-for="(item, index) in showContrastList" :key="index">
-                    {{ item.offlineExperience ? '可以' : '-' }}
+                    {{ item.offlineExperience ? $t('ke-yi') : '-' }}
                 </div>
             </div>
             <block v-for="(p, pIndex) in tableParameters" :key="pIndex">
@@ -99,8 +99,8 @@
         </div>
 
         <van-popup :show="showPopup" round position="bottom" custom-style="height: 656rpx" @close="showPopup = false">
-            <div class="title">选择商品</div>
-            <scroll-view scroll-y style="height:576rpx">
+            <div class="title">{{ $t('xuan-ze-shang-pin') }}</div>
+            <scroll-view scroll-y style="height: 576rpx;">
                 <div class="product-list">
                     <product-row
                         :checked="[...chooseIds].includes(item.id)"
@@ -259,12 +259,16 @@ export default {
     },
     onLoad(options) {
         this.loading = true;
-        this.$loading('加载中...');
+        this.$loading(this.$t('jia-zai-zhong'));
         if (options.chooseIds) {
             this.chooseIds = options.chooseIds.split(',').map(item => {
                 return Number(item);
             });
         }
+
+        wx.setNavigationBarTitle({
+            title: this.$t('chan-pin-dui-bi')
+        });
     },
     methods: {
         loginMethods() {

+ 33 - 25
src/pagesProduct/Detail.vue

@@ -8,13 +8,19 @@
 </config>
 <template>
     <div>
-        <custom-bar detail title="产品详情" :pre="0" :dark="!!productInfo.video" :barTop="375"></custom-bar>
+        <custom-bar
+            detail
+            :title="$t('chan-pin-xiang-qing')"
+            :pre="0"
+            :dark="!!productInfo.video"
+            :barTop="375"
+        ></custom-bar>
         <banner :banners="banners" :height="375" :radius="0" :autoplay="false"></banner>
         <div class="main" id="main">
             <div id="detailTop">
                 <div class="info">
                     <div class="ad" @click="goLocation" v-if="productInfo.offlineExperience">
-                        <span>可在IMT展厅线下体验,点击查看地址</span>
+                        <span>{{ $t('ke-zai-imt-zhan-ting-xian-xia-ti-yan-dian-ji-cha-kan-di-zhi') }}</span>
                         <img src="../static/imgs/iocn_dingwei.png" alt="" />
                     </div>
 
@@ -53,14 +59,14 @@
                         <van-cell :title="$t('ying-wen-pin-ming')" :border="false" :value="productInfo.enName" />
                         <van-cell :title="$t('chan-pin-lei-bie')" :border="false" :value="productCategoryName" />
                         <van-cell
-                            title="交货周期"
+                            :title="$t('jiao-huo-zhou-qi')"
                             :border="false"
                             v-if="productInfo.averageLeadTime"
                             :value="productInfo.averageLeadTime"
                         />
-                        <van-cell title="产品产地" v-if="origin" :border="false" :value="origin" />
-                        <van-cell title="应用领域" :border="false" :value="applicationField" />
-                        <van-cell title="产品标签" :border="false">
+                        <van-cell :title="$t('chan-pin-chan-di')" v-if="origin" :border="false" :value="origin" />
+                        <van-cell :title="$t('ying-yong-ling-yu')" :border="false" :value="applicationField" />
+                        <van-cell :title="$t('chan-pin-biao-qian')" :border="false">
                             <div>
                                 <van-tag color="#000" plain v-for="(item, index) in tags" :key="index">{{
                                     item
@@ -90,7 +96,7 @@
                         </div>
 
                         <div class="vendor-btn">
-                            <van-button :color="$colors.warn" size="small">进入展商</van-button>
+                            <van-button :color="$colors.warn" size="small">{{ $t('jin-ru-zhan-shang') }}</van-button>
                         </div>
                     </div>
                 </div>
@@ -106,7 +112,7 @@
                     sticky
                     :offset-top="barHeight"
                 >
-                    <van-tab title="图文详情" name="detail">
+                    <van-tab :title="$t('tu-wen-xiang-qing')" name="detail">
                         <div class="detail-content first">
                             <div class="imgList-btn" v-if="showBtn && detailImgList.length > 0" @click="showImgs">
                                 <van-image
@@ -124,21 +130,21 @@
                             </div>
                         </div>
                     </van-tab>
-                    <van-tab title="详细参数" name="list">
+                    <van-tab :title="$t('xiang-xi-can-shu')" name="list">
                         <div class="detail-content">
                             <parameter :productId="productId"></parameter>
                         </div>
                     </van-tab>
-                    <van-tab title="PDF资料" name="pdf" v-if="pdf.length > 0">
+                    <van-tab :title="$t('pdf-zi-liao')" name="pdf" v-if="pdf.length > 0">
                         <div class="detail-content">
                             <van-empty
                                 class="pdf"
                                 image="http://imttech.oss-cn-hangzhou.aliyuncs.com/micro/kong_img_pdf.png"
                             >
                                 <div class="empty-button">
-                                    <van-button @click="showPdf" :radius="4" color="#F5F7FA" block
-                                        >查看PDF文件</van-button
-                                    >
+                                    <van-button @click="showPdf" :radius="4" color="#F5F7FA" block>
+                                        {{ $t('cha-kan-pdf-wen-jian') }}
+                                    </van-button>
                                 </div>
                             </van-empty>
                         </div>
@@ -154,7 +160,9 @@
                             :width="24"
                             :height="24"
                         />
-                        <div class="text">对比</div>
+                        <div class="text">
+                            {{ $t('dui-bi') }}
+                        </div>
                     </div>
                     <div class="btn-icon" @click="navigateTo('/pagesProduct/IntentionList')">
                         <van-icon
@@ -162,7 +170,7 @@
                             :info="intentionList.length > 0 ? intentionList.length : ''"
                             :size="24"
                         />
-                        <div class="text">意向单</div>
+                        <div class="text">{{ $t('yi-xiang-dan') }}</div>
                     </div>
 
                     <div class="btn-list">
@@ -172,11 +180,11 @@
                             :disabled="isIntented"
                             @click="addIntentionList"
                             class="intentionList"
-                            >{{ isIntented ? '已添加' : '添加意向单' }}</van-button
-                        >
-                        <van-button :color="$colors.warn" @click="goConnect" type="primary" :radius="0"
-                            >询价</van-button
+                            >{{ isIntented ? $t('yi-tian-jia') : $t('tian-jia-yi-xiang-dan') }}</van-button
                         >
+                        <van-button :color="$colors.warn" @click="goConnect" type="primary" :radius="0">{{
+                            $t('xun-jia')
+                        }}</van-button>
                     </div>
                 </div>
             </div>
@@ -294,7 +302,7 @@ export default {
             }
         }
         if (id) {
-            this.$loading('加载中...');
+            this.$loading(this.$t('jia-zai-zhong'));
             this.productId = Number(id);
             this.$http
                 .get(`/product/getDto/${id}`)
@@ -373,7 +381,7 @@ export default {
     },
     onShareAppMessage(from, target) {
         return {
-            title: 'IMT科技平台——' + this.getName(this.productInfo),
+            title: this.$t('imt-ke-ji-ping-tai') + '——' + this.getName(this.productInfo),
             path: '/pagesProduct/Detail?id=' + this.productId,
             imageUrl: this.getList(this.productInfo.img) + '?x-oss-process=image/resize,m_pad,h_400,w_500,color_FFFFFF'
         };
@@ -392,7 +400,7 @@ export default {
                     return name;
                 }),
                 success: res => {
-                    this.$loading('加载中...');
+                    this.$loading(this.$t('jia-zai-zhong'));
                     wx.downloadFile({
                         url: this.pdf[res.tapIndex].url,
                         fileType: 'pdf',
@@ -437,7 +445,7 @@ export default {
                     });
                 })
                 .then(() => {
-                    this.toast('添加成功!', 'success');
+                    this.toast(this.$t('tian-jia-cheng-gong'), 'success');
                     this.$store.dispatch('getIntentionList');
                 })
                 .catch(e => {
@@ -462,8 +470,8 @@ export default {
             wx.openLocation({
                 latitude: 31.298919,
                 longitude: 121.629521,
-                name: '外高桥智能制造服务产业园',
-                address: '中国(上海)自由贸易试验区富特东三路526号'
+                name: this.$t('wai-gao-qiao-zhi-neng-zhi-zao-fu-wu-chan-ye-yuan'),
+                address: this.$t('zhong-guo-shang-hai-zi-you-mao-yi-shi-yan-qu-fu-te-dong-san-lu-526-hao')
             });
         },
         getImgList(detailImg) {

+ 5 - 2
src/pagesProduct/FilterProduct.vue

@@ -16,7 +16,10 @@
                 :hasCheck="false"
             ></product-row>
         </div>
-        <van-empty v-else-if="!loading && finish" description="商品已在对比列表中或无商品" />
+        <van-empty
+            v-else-if="!loading && finish"
+            :description="$t('shang-pin-yi-zai-dui-bi-lie-biao-zhong-huo-wu-shang-pin')"
+        />
     </div>
 </template>
 <script>
@@ -67,7 +70,7 @@ export default {
     },
     methods: {
         getList() {
-            this.$loading('加载中');
+            this.$loading(this.$t('jia-zai-zhong'));
             this.loading = true;
             this.$http
                 .post('/product/show', {

+ 3 - 0
src/pagesProduct/FilterVendor.vue

@@ -94,6 +94,9 @@ export default {
             });
         }
         this.getList();
+        wx.setNavigationBarTitle({
+            title: this.$t('zhan-shang')
+        });
     },
     methods: {
         getList() {

+ 14 - 11
src/pagesProduct/Inquiry.vue

@@ -5,7 +5,7 @@
 </config>
 <template>
     <div class="Inquiry">
-        <h2>询价产品</h2>
+        <h2>{{ $t('xun-jia-chan-pin') }}</h2>
         <div class="product-list" v-if="showList.length > 0">
             <product-row
                 v-for="item in showList"
@@ -16,11 +16,11 @@
             ></product-row>
 
             <div class="limit" v-if="hasLimit" @click="isLimit = false">
-                <span>展开全部{{ idList.length }}个产品</span>
+                <span>{{ $t('zhan-kai-quan-bu') }}{{ idList.length }}{{ $t('ge') }}{{ $t('chan-pin') }}</span>
                 <van-icon color="#BCC1CC" :size="20" name="arrow-down" />
             </div>
         </div>
-        <van-empty description="什么都没有哦" v-else />
+        <van-empty :description="$t('shi-mo-du-mei-you-o')" v-else />
         <van-divider />
         <div class="form">
             <h2>计划加工</h2>
@@ -30,27 +30,27 @@
                 @blur="artifact = $event.detail.value"
                 @change="artifact = $event.detail.value"
                 auto-height
-                placeholder="请输入计划加工的工件名称"
+                :placeholder="$t('qing-shu-ru-ji-hua-jia-gong-de-gong-jian-ming-cheng')"
                 placeholder-class="pla-textarea"
             />
         </div>
         <div class="form">
-            <h2>需求描述</h2>
+            <h2>{{ $t('xu-qiu-miao-shu') }}</h2>
             <textarea
                 class="textarea"
                 @input="otherProblems = $event.detail.value"
                 @blur="otherProblems = $event.detail.value"
                 @change="otherProblems = $event.detail.value"
                 auto-height
-                placeholder="请简要描述您的问题需求,100字以内"
+                :placeholder="$t('qing-jian-yao-miao-shu-nin-de-wen-ti-xu-qiu-100-zi-yi-nei')"
                 placeholder-class="pla-textarea"
             />
         </div>
 
         <fixed-button>
-            <van-button block :color="$colors.warn" :radius="4" :disabled="!canNext" @click="submit"
-                >提交询价</van-button
-            >
+            <van-button block :color="$colors.warn" :radius="4" :disabled="!canNext" @click="submit">{{
+                $t('ti-jiao-xun-jia')
+            }}</van-button>
         </fixed-button>
     </div>
 </template>
@@ -129,6 +129,9 @@ export default {
             this.idList = options.chooseIds.split(',');
             console.log(this.idList);
         }
+        wx.setNavigationBarTitle({
+            title: '询价'
+        });
     },
     methods: {
         loginMethods() {
@@ -138,11 +141,11 @@ export default {
         },
         submit() {
             if (!this.artifact) {
-                this.toast('请输入计划加工的工件');
+                this.toast(this.$t('qing-shu-ru-ji-hua-jia-gong-de-gong-jian'));
                 return;
             }
             if (!this.otherProblems) {
-                this.toast('请输入问题需求');
+                this.toast(this.$t('qing-shu-ru-wen-ti-xu-qiu'));
                 return;
             }
 

+ 3 - 3
src/pagesProduct/InquiryResult.vue

@@ -8,15 +8,15 @@
     <div class="container">
         <div class="top">
             <van-icon name="checked" :size="68" :color="$colors.warn" />
-            <h2>已提交询价信息</h2>
-            <p>稍后可在咨询消息列表中查看回复情况</p>
+            <h2>{{ $t('yi-ti-jiao-xun-jia-xin-xi') }}</h2>
+            <p>{{ $t('shao-hou-ke-zai-zi-xun-xiao-xi-lie-biao-zhong-cha-kan-hui-fu-qing-kuang') }}</p>
         </div>
 
         <div class="btn-content">
             <div>
                 <van-button :color="$colors.warn" block :radius="4" @click="navigateBack">返回</van-button>
             </div>
-            <div style="margin-top:20px">
+            <div style="margin-top: 20px;">
                 <van-button block :radius="4" :color="$colors.warn" plain @click="goChat">查看记录</van-button>
             </div>
         </div>

+ 9 - 6
src/pagesProduct/IntentionList.vue

@@ -17,7 +17,7 @@
         </div>
 
         <van-empty
-            description="当前暂无意向产品哦~"
+            :description="$t('dang-qian-zan-wu-yi-xiang-chan-pino')"
             image="http://imttech.oss-cn-hangzhou.aliyuncs.com/micro/kong_img_duibi.png"
             v-else
         >
@@ -29,9 +29,9 @@
         <van-dialog id="van-dialog"> </van-dialog>
 
         <fixed-button v-if="intentionList.length > 0">
-            <van-button block :color="$colors.warn" :radius="4" :disabled="chooseIds.length === 0" @click="goNext"
-                >批量询价</van-button
-            >
+            <van-button block :color="$colors.warn" :radius="4" :disabled="chooseIds.length === 0" @click="goNext">{{
+                $t('pi-liang-xun-jia')
+            }}</van-button>
         </fixed-button>
     </div>
 </template>
@@ -53,6 +53,9 @@ export default {
         if (options.productId) {
             this.productId = Number(options.productId);
         }
+        wx.setNavigationBarTitle({
+            title: '意向单'
+        });
     },
     computed: {
         ...mapState(['intentionList'])
@@ -62,7 +65,7 @@ export default {
             this.$store.dispatch('getIntentionList');
         },
         delContrast(id) {
-            this.dialog('确认要删除该商品吗?', true, false, '立即删除')
+            this.dialog(this.$t('que-ren-yao-shan-chu-gai-shang-pin-ma'), true, false, this.$t('li-ji-shan-chu'))
                 .then(() => {
                     return this.$http.post('/intentionList/delOne', {
                         type: 'BATCH_INQUIRY',
@@ -73,7 +76,7 @@ export default {
                     if (this.chooseIds.includes(id)) {
                         this.choose(id);
                     }
-                    this.toast('删除成功!', 'success');
+                    this.toast(this.$t('shan-chu-cheng-gong'), 'success');
                     this.$store.dispatch('getIntentionList');
                 });
         },

+ 3 - 3
src/pagesVendor/About.vue

@@ -25,7 +25,7 @@
             </div>
 
             <div class="box" v-if="categoriesList.length > 0" :style="{ order: decorationInfo.productOrder }">
-                <div class="box-title">主要产品</div>
+                <div class="box-title">{{ $t('zhu-yao-chan-pin') }}</div>
 
                 <div class="serviceList">
                     <div
@@ -45,7 +45,7 @@
                 v-if="applications.length > 0"
                 :style="{ order: decorationInfo.applicationOrder }"
             >
-                <div class="box-title">应用领域</div>
+                <div class="box-title">{{ $t('ying-yong-ling-yu') }}</div>
                 <scroll-view :scroll-x="true">
                     <div class="applications">
                         <block v-for="(item, index) in applications" :key="item.id">
@@ -65,7 +65,7 @@
             </div>
 
             <div class="box scrollBox" v-if="cases.length > 0" :style="{ order: decorationInfo.caseOrder }">
-                <div class="box-title">成功案例</div>
+                <div class="box-title">{{ $t('cheng-gong-an-li') }}</div>
                 <scroll-view :scroll-x="true">
                     <div class="applications">
                         <block v-for="(item, index) in cases" :key="index">

+ 2 - 2
src/pagesVendor/Case.vue

@@ -10,7 +10,7 @@
 </config>
 <template>
     <div>
-        <custom-bar :pre="0" title="案例详情" :barTop="260"></custom-bar>
+        <custom-bar :pre="0" :title="$t('an-li-xiang-qing')" :barTop="260"></custom-bar>
         <banner :banners="banners" fixed :height="260" :radius="0"></banner>
 
         <div class="main" id="main">
@@ -18,7 +18,7 @@
             <div class="title">{{ info.title }}</div>
 
             <div class="detail">
-                <h2>案例详情</h2>
+                <h2>{{ $t('an-li-xiang-qing') }}</h2>
 
                 <div class="html" v-html="info.content"></div>
             </div>

+ 14 - 11
src/pagesVendor/Connect.vue

@@ -5,7 +5,7 @@
 </config>
 <template>
     <div class="Inquiry">
-        <h2>感兴趣的产品</h2>
+        <h2>{{ $t('gan-xing-qu-de-chan-pin') }}</h2>
         <div class="product-list" v-if="allList.length > 0">
             <product-row
                 v-for="item in allList"
@@ -19,7 +19,7 @@
             <van-button block round @click="navigateTo('/pagesVendor/FilterProduct?vendorId=' + vendorId)">
                 <div class="add">
                     <van-icon :size="20" color="#565B66" name="plus" />
-                    添加
+                    {{ $t('tian-jia') }}
                 </div>
             </van-button>
         </div>
@@ -31,27 +31,27 @@
                 @confirm="artifact = $event.detail.value"
                 @blur="artifact = $event.detail.value"
                 auto-height
-                placeholder="请输入计划加工的工件名称"
+                :placeholder="$t('qing-shu-ru-ji-hua-jia-gong-de-gong-jian-ming-cheng')"
                 placeholder-class="pla-textarea"
             />
         </div>
         <div class="form">
-            <h2>需求描述</h2>
+            <h2>{{ $t('xu-qiu-miao-shu') }}</h2>
             <textarea
                 class="textarea"
                 @input="otherProblems = $event.detail.value"
                 @confirm="otherProblems = $event.detail.value"
                 @blur="otherProblems = $event.detail.value"
                 auto-height
-                placeholder="请简要描述您的问题需求,100字以内"
+                :placeholder="$t('qing-jian-yao-miao-shu-nin-de-wen-ti-xu-qiu-100-zi-yi-nei')"
                 placeholder-class="pla-textarea"
             />
         </div>
 
         <fixed-button>
-            <van-button block :color="$colors.warn" :radius="4" :disabled="!canNext" @click="submit"
-                >提交咨询</van-button
-            >
+            <van-button block :color="$colors.warn" :radius="4" :disabled="!canNext" @click="submit">{{
+                $t('ti-jiao-zi-xun')
+            }}</van-button>
         </fixed-button>
     </div>
 </template>
@@ -112,6 +112,9 @@ export default {
         }
     },
     onLoad(options) {
+        wx.setNavigationBarTitle({
+            title: this.$t('zi-xun-zhan-shang')
+        });
         if (options.productId) {
             console.log(this.chooseList);
             this.productId = options.productId;
@@ -134,15 +137,15 @@ export default {
     methods: {
         submit() {
             if (this.allList.length === 0) {
-                this.toast('请添加咨询产品');
+                this.toast(this.$t('qing-tian-jia-zi-xun-chan-pin'));
                 return;
             }
             if (!this.artifact) {
-                this.toast('请输入计划加工的工件');
+                this.toast(this.$t('qing-shu-ru-ji-hua-jia-gong-de-gong-jian'));
                 return;
             }
             if (!this.otherProblems) {
-                this.toast('请输入问题需求');
+                this.toast(this.$t('qing-shu-ru-wen-ti-xu-qiu'));
                 return;
             }
             this.save(JSON.stringify(this.submitForm));

+ 7 - 7
src/pagesVendor/Detail.vue

@@ -42,16 +42,16 @@
                         :color="isCollection ? $colors.warn : '#BCC1CC'"
                         class-prefix="iconfont"
                     />
-                    <div class="text">{{ isCollection ? '已关注' : '关注' }}</div>
+                    <div class="text">{{ isCollection ? $t('yi-guan-zhu') : $t('guan-zhu') }}</div>
                 </div>
             </div>
             <div class="line"></div>
             <div class="main" id="top">
                 <van-sticky :scroll-top="scrollTop" :offset-top="offsetTop">
                     <van-tabs :sticky="false" :active="active" :line-height="0" @change="active = $event.detail.index">
-                        <van-tab title="关于展商"> </van-tab>
-                        <van-tab title="产品"> </van-tab>
-                        <van-tab title="新闻资讯"> </van-tab>
+                        <van-tab :title="$t('guan-yu-zhan-shang')"> </van-tab>
+                        <van-tab :title="$t('chan-pin')"> </van-tab>
+                        <van-tab :title="$t('xin-wen-zi-xun')"> </van-tab>
                     </van-tabs>
                 </van-sticky>
             </div>
@@ -89,7 +89,7 @@
                             getName(vendorInfo, ['chCompanyName', 'enCompanyName'])
                     )
                 "
-                >咨询展商</van-button
+                >{{ $t('zi-xun-zhan-shang') }}</van-button
             >
         </fixed-button>
         <van-dialog id="van-dialog" />
@@ -189,7 +189,7 @@ export default {
                 id = query[1];
             }
         }
-        this.$loading('加载中');
+        this.$loading(this.$t('jia-zai-zhong'));
         this.$http.get('/vendorInfo/getHome/' + id).then(res => {
             this.vendorInfo = res;
             this.$loading.close();
@@ -226,7 +226,7 @@ export default {
     },
     onShareAppMessage(from, target) {
         return {
-            title: 'IMT科技平台——' + this.vendorInfo.chCompanyName,
+            title: this.$t('imt-ke-ji-ping-tai') + '——' + this.vendorInfo.chCompanyName,
             path: '/pagesVendor/Detail?id=' + this.vendorInfo.id,
             imageUrl: this.getList(this.vendorInfo.logo) + '?x-oss-process=image/resize,m_pad,h_400,w_500,color_FFFFFF'
         };

+ 1 - 1
src/pagesVendor/FilterProduct.vue

@@ -10,7 +10,7 @@
                 :hasDel="false"
             ></product-row>
         </div>
-        <van-empty v-else description="什么都没有哦" />
+        <van-empty v-else :description="$t('shi-mo-du-mei-you-o')" />
 
         <fixed-button v-if="chooseIds.length > 0">
             <van-button :color="$colors.warn" block @click="submit">确定</van-button>

+ 1 - 1
src/pagesVendor/Product.vue

@@ -13,7 +13,7 @@
             </van-sidebar> -->
 
             <div class="left-side-item" :class="{ active: activeKey === 0 }" id="cate_0" @click="changeCustomCate(0)">
-                全部产品
+                {{ $t('quan-bu-chan-pin') }}
             </div>
 
             <div

+ 7 - 1
src/pagesVendor/ProductList.vue

@@ -43,7 +43,13 @@
                 </filter-sort-bar>
             </van-sticky>
 
-            <sort-list :empty="empty" emptyText="敬请期待" :loading="loading" :finish="finish" top="172rpx">
+            <sort-list
+                :empty="empty"
+                :emptyText="$t('jing-qing-qi-dai')"
+                :loading="loading"
+                :finish="finish"
+                top="172rpx"
+            >
                 <div class="product-list" v-if="showType === 'grid'">
                     <div class="clo-2" v-for="item in list" :key="item.id">
                         <product-grid :info="item"></product-grid>

+ 3 - 3
src/utils/appState.js

@@ -32,20 +32,20 @@ const sexModels = new Map([
     [
         'male',
         {
-            label: '先生',
+            label: 'xian-sheng',
             zh: '男'
         }
     ],
     [
         'female',
         {
-            label: '女士',
+            label: 'nv-shi',
             zh: '女'
         }
     ]
 ]);
 
-const languageModels = new Map([['ch', '中文'], ['en', '英文'], ['both', '中/英'], ['other', '其他']]);
+const languageModels = new Map([['ch', 'zhong-wen'], ['en', 'ying-wen'], ['both', 'zhong-ying'], ['other', 'qi-ta']]);
 
 const InformationType = new Map([
     [