From 0d1dbd0350b0ee4fc04dbabaf7f5ad57440636c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Thu, 21 Oct 2021 17:50:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=AD=E8=A8=80=E6=8F=92?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/home/home.vue | 41 +++++++++++------ .../views/lili-components/i18n-translate.vue | 46 ++++++++++--------- .../src/views/lili-components/languages.js | 1 + .../views/lili-components/i18n-translate.vue | 46 ++++++++++--------- seller/src/views/lili-components/languages.js | 1 + 5 files changed, 80 insertions(+), 55 deletions(-) create mode 100644 manager/src/views/lili-components/languages.js create mode 100644 seller/src/views/lili-components/languages.js diff --git a/manager/src/views/home/home.vue b/manager/src/views/home/home.vue index 4e604194..f29f19b8 100644 --- a/manager/src/views/home/home.vue +++ b/manager/src/views/home/home.vue @@ -68,7 +68,7 @@
{{$store.state.notices.refund|| 0}}
待审核售后
-
+
{{$store.state.notices.distributionCash|| 0}}
待审核分销提现
@@ -197,6 +197,13 @@
+
+ + + {{test}} + + +
@@ -205,11 +212,22 @@ import { homeStatistics, hotGoods, hotShops, getNoticePage } from "@/api/index"; import * as API_Goods from "@/api/goods"; import { Chart } from "@antv/g2"; import * as API_Member from "@/api/member"; +// import i18nBox from '@/views/lili-components/i18n-translate' export default { name: "home", + // components:{ + // i18nBox + // }, data() { return { - tophotShopsColumns: [ // 表格表头 + // 测试数据 + test: { + a: "test", + languages:[] + }, + // 测试数据结束 + tophotShopsColumns: [ + // 表格表头 { type: "index", width: 100, @@ -275,7 +293,8 @@ export default { pvChart: "", // 流量统计 orderChart: "", // 订单统计 historyMemberChart: "", // 最近会员流量统计 - params: { // 请求参数 + params: { + // 请求参数 searchType: "LAST_SEVEN", }, // 订单传参 @@ -475,15 +494,13 @@ export default { } }, // 历史在线人数 - initHistoryMemberChart(){ + initHistoryMemberChart() { // 默认已经加载 legend-filter 交互 let data = this.chartList; data.forEach((item) => { - item.title = "历史在线人数"; - item.date = item.date.substring(5) - + item.date = item.date.substring(5); }); this.historyMemberChart.data(data); @@ -495,16 +512,14 @@ export default { this.historyMemberChart .line() .position("date*num") - .color("title",['#ffaa71']) - .shape("smooth") - ; + .color("title", ["#ffaa71"]) + .shape("smooth"); this.historyMemberChart .point() .position("date*num") - .color("title",['#ffaa71']) - .shape("circle") - ; + .color("title", ["#ffaa71"]) + .shape("circle"); this.historyMemberChart.render(); }, // 初始化信息 diff --git a/manager/src/views/lili-components/i18n-translate.vue b/manager/src/views/lili-components/i18n-translate.vue index 1ff68403..d1d7198e 100644 --- a/manager/src/views/lili-components/i18n-translate.vue +++ b/manager/src/views/lili-components/i18n-translate.vue @@ -2,48 +2,52 @@
-
- - - {{item.title || item.name}} - - -
+ + + + +
diff --git a/manager/src/views/lili-components/languages.js b/manager/src/views/lili-components/languages.js new file mode 100644 index 00000000..b7324d56 --- /dev/null +++ b/manager/src/views/lili-components/languages.js @@ -0,0 +1 @@ +export const language = [{ title: "中文",value:1 }, { title: "英文" ,value:2}]; diff --git a/seller/src/views/lili-components/i18n-translate.vue b/seller/src/views/lili-components/i18n-translate.vue index 1ff68403..d1d7198e 100644 --- a/seller/src/views/lili-components/i18n-translate.vue +++ b/seller/src/views/lili-components/i18n-translate.vue @@ -2,48 +2,52 @@
-
- - - {{item.title || item.name}} - - -
+ + + + +
diff --git a/seller/src/views/lili-components/languages.js b/seller/src/views/lili-components/languages.js new file mode 100644 index 00000000..b7324d56 --- /dev/null +++ b/seller/src/views/lili-components/languages.js @@ -0,0 +1 @@ +export const language = [{ title: "中文",value:1 }, { title: "英文" ,value:2}];