浏览代码

调整home。vue

Lijy 2 年之前
父节点
当前提交
5638ac01da

二进制
fhKeeper/formulahousekeeper/timesheet/src/assets/image/qwcode.png


+ 2 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/en.json

@@ -1448,5 +1448,6 @@
   "xiang-mu-chuang-jian-shi-jian-duan": "Project Creation Period",
   "dao-chu-jia-qi": "Export holidays",
   "an-ji-du-dao-chu": "export by quarter",
-  "han-qing-jia": "(including leave)"
+  "han-qing-jia": "(including leave)",
+  "ke-fu-wei-xin": "Customer service wechat"
 }

+ 2 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/zh.json

@@ -1448,5 +1448,6 @@
   "xiang-mu-chuang-jian-shi-jian-duan": "项目创建时间段",
   "dao-chu-jia-qi": "导出假期",
   "an-ji-du-dao-chu": "按季度导出",
-  "han-qing-jia": "(含请假)"
+  "han-qing-jia": "(含请假)",
+  "ke-fu-wei-xin": "客服微信"
 }

+ 14 - 6
fhKeeper/formulahousekeeper/timesheet/src/views/Home.vue

@@ -36,11 +36,17 @@
                     </span> 
                     <el-dropdown-menu slot="dropdown">
                         <el-dropdown-item >
-                            <div>
-                            <div>{{$t('other.sweepWeChatYards')}}</div>
-                            <img
-                            style="width: 120px; height: 120px"
-                            src="../assets/image/code.jpg" />
+                            <div v-if="!isCorpWX">
+                                <div>{{$t('other.sweepWeChatYards')}}</div>
+                                <img
+                                style="width: 120px; height: 120px"
+                                src="../assets/image/code.jpg" />
+                            </div>
+                            <div v-if="isCorpWX">
+                                <div>客服微信</div>
+                                <img
+                                style="width: 120px; height: 120px"
+                                src="../assets/image/qwcode.png" />
                             </div>
                         </el-dropdown-item>
                     </el-dropdown-menu>
@@ -264,7 +270,8 @@
                 popoverData: [],
                 num: 0,
 
-                language: ''
+                language: '',
+                setTimeLoad: null
             };
         },
         methods: {
@@ -472,6 +479,7 @@
                     });
                 });
             },
+
             //点击消息的跳转
             locationHerf(id, date, type) {
                 this.http.post( this.port.manage.check, { id: id },