From 48477eb1b6a58721fe7690ae790e14e58c87a2b1 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Tue, 2 Jun 2020 19:26:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=9F=E4=B8=80=E6=8A=A5?= =?UTF-8?q?=E9=94=99=EF=BC=8C=E5=AF=B9=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=EF=BC=8C=E5=86=99=E4=B8=80=E7=82=B9=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E6=A1=A3=E6=A1=88=EF=BC=8C+i18n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/menu.vue | 5 +- src/components/order-list/order-list-cell.vue | 22 ++-- .../{ => service-list}/commodity-card.vue | 0 .../{ => service-list}/commodity-cell.vue | 26 ++--- .../{ => service-list}/commodity-list.vue | 4 +- .../{ => service-list}/commodity.vue | 0 .../{ => service-list}/service_list.vue | 108 ++++++------------ .../shopping-cart/shopping-cart-cell.vue | 2 +- .../shopping-cart/shopping-cart-com.vue | 20 +++- src/i18n/language-zh.js | 14 +++ src/main.js | 9 +- src/pages/example/example_com_list.vue | 2 +- src/pages/example/example_commodity.vue | 2 +- src/pages/service_shop/shop_list.vue | 2 +- src/pages/user/message.vue | 6 +- src/pages/user/user_info.vue | 25 +++- src/pages/workbench/fwzc_fwcs.vue | 9 ++ src/request/http.js | 14 +-- src/store/index.js | 2 +- 19 files changed, 152 insertions(+), 120 deletions(-) rename src/components/{ => service-list}/commodity-card.vue (100%) rename src/components/{ => service-list}/commodity-cell.vue (82%) rename src/components/{ => service-list}/commodity-list.vue (96%) rename src/components/{ => service-list}/commodity.vue (100%) rename src/components/{ => service-list}/service_list.vue (79%) create mode 100644 src/i18n/language-zh.js diff --git a/src/components/menu.vue b/src/components/menu.vue index 5ab2356..0ef140a 100644 --- a/src/components/menu.vue +++ b/src/components/menu.vue @@ -132,7 +132,7 @@ export default { user_arr: [ { name: "个人档案", path: "/user/user_info" }, { name: "消息通知", path: "/user/message" }, - { name: "收银中心", path: "" }, + { name: "收银中心", path: "/authority" }, { name: "关于BD-aPaaS", path: "" }, { name: "退出登录", path: "" } ], @@ -194,6 +194,9 @@ export default { if (v.path) { if (v.path == "/fwgl/" || v.path == "/yygl/") { this.$router.push(v.path + this.$store.state.role); + } else if (parent == 2) { + this.$router.push(v.path); + this.$store.commit("serviceShopMenuAct", v.path); } else { this.$router.push(v.path); } diff --git a/src/components/order-list/order-list-cell.vue b/src/components/order-list/order-list-cell.vue index e8007aa..485a385 100644 --- a/src/components/order-list/order-list-cell.vue +++ b/src/components/order-list/order-list-cell.vue @@ -1,9 +1,9 @@ \ No newline at end of file diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 3ac03d0..b6f88b0 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -944,4 +944,13 @@ export default { .fwcs_tabs .el-tabs__header { margin: 20px 0; } +.zhyy_select .el-input__prefix, .el-input__suffix { + position: absolute; + top: 0; + right: 10px; + -webkit-transition: all .3s; + height: 100%; + color: #C0C4CC; + text-align: right; +} diff --git a/src/request/http.js b/src/request/http.js index 0598ab2..10ebfc5 100644 --- a/src/request/http.js +++ b/src/request/http.js @@ -48,13 +48,13 @@ const errorHandle = (status, other) => { }, 1000); break; case 404: tip('请求的资源不存在'); break; - case 408: tip('请求超时(408)'); - case 500: tip('服务器错误(500)'); - case 501: tip('服务未实现(501)'); - case 502: tip('网络错误(502)'); - case 503: tip('服务不可用(503)'); - case 504: tip('网络超时(504)'); - case 505: tip('HTTP版本不受支持(505)'); + case 408: tip('请求超时(408)'); break; + case 500: tip('服务器错误(500)'); break; + case 501: tip('服务未实现(501)'); break; + case 502: tip('网络错误(502)'); break; + case 503: tip('服务不可用(503)'); break; + case 504: tip('网络超时(504)'); break; + case 505: tip('HTTP版本不受支持(505)'); break; default: tip(`连接出错,${other}`); } } diff --git a/src/store/index.js b/src/store/index.js index 1cea098..41414d7 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -5,7 +5,7 @@ Vue.use(Vuex); const store = new Vuex.Store({ state: { role: 2, // 0:普通用户,1:组织管理员,2:超级管理员 - serviceShopMenu: "shopDataList", // 服务超市侧边栏 + serviceShopMenu: "/shop/data_service_list", // 服务超市侧边栏 fwglNav: [ ["注册发布的服务", "申请的服务", "云资源服务"], // 普通用户 ["组织服务管理", "服务审批管理", "云资源管理"], // 组织管理员 -- 2.26.0