From 0e64b889d8cd1b577b04723a49da02a80d4826c3 Mon Sep 17 00:00:00 2001 From: xuyiming Date: Thu, 14 May 2020 11:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E8=AF=A6=E6=83=85=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/application-info.vue | 162 ++++++++++++++-------------- src/pages/sjfwDetail.vue | 5 + src/pages/skfwDetail.vue | 5 + src/pages/yysdDetail.vue | 5 + src/pages/zhyyfwDetail.vue | 5 + 5 files changed, 99 insertions(+), 83 deletions(-) diff --git a/src/components/application-info.vue b/src/components/application-info.vue index e1100e0..4e41ab8 100644 --- a/src/components/application-info.vue +++ b/src/components/application-info.vue @@ -1,62 +1,66 @@ @@ -73,13 +77,6 @@ export default { specification: 0, }, }), - computed: { - specificationDescription() { - let obj = - this.data.specifications[this.commodityData.specification] || {}; - return obj.description || ""; - }, - }, methods: { changeSpecification({ value }) { this.commodityData.specification = value; @@ -111,28 +108,29 @@ export default { .main_container-left { padding: 3px; background-color: #f9fafc; - margin-right: 30px; + margin-right: 10px; } .main_container-right { flex-grow: 1; } -.application_title { - display: flex; - justify-content: flex-start; - align-items: center; -} .application_title > .application_name { font-size: 22px; font-weight: bold; color: #0d1847; line-height: 36px; } -.application_base_info { - padding: 18px; +.application_base_container { + display: flex; + justify-content: flex-start; + align-items: flex-end; background-color: #f9fafc; + padding: 18px; + margin-top: 15px; } -.application_base_info > li, -.commodity_information { +.application_base_info:not(:last-child) { + margin-right: 50px; +} +.application_base_info > li { display: flex; justify-content: flex-start; align-items: flex-start; @@ -140,39 +138,37 @@ export default { color: #242c43; line-height: 20px; } -.application_base_info > li:not(:first-child) { - margin-top: 18px; -} -.application_base_info > li > span:first-child, -.commodity_information > span:first-child { +.application_base_info > li > span:first-child { + width: 6em; flex-shrink: 0; white-space: nowrap; color: #8890a7; + text-align: right; +} +.application_base_info > li:not(:first-child) { + margin-top: 20px; } .application_base_info > li > span:nth-child(2) { color: #242c43; } .commodity_information { + display: flex; + justify-content: flex-start; + align-items: flex-start; margin-top: 30px; } -.commodity_information > span:nth-child(2) { - color: #58617a; -} .commodity_information > span:first-child { + flex-shrink: 0; + width: 6em; + font-size: 14px; + color: #8890a7; line-height: 40px; } -.commodity_information > .commodity_text { - flex-grow: 1; - padding: 13px 18px; - background-color: #f9fafc; - border-radius: 5px; -} .commodity_information > .btn_container { margin-bottom: -15px; } -.commodity_information > .btn_container > .el-button, -.commodity_information > .btn_container > .el-input-number { - margin: 0 20px 15px 0; +.commodity_information > .btn_container > .el-button { + margin: 0 30px 15px 0; } .commodity_action { margin-top: 50px; diff --git a/src/pages/sjfwDetail.vue b/src/pages/sjfwDetail.vue index 11fb944..98f22ff 100644 --- a/src/pages/sjfwDetail.vue +++ b/src/pages/sjfwDetail.vue @@ -34,6 +34,11 @@ export default { specification: null, provider: null, }), + computed: { + id() { + return this.$route.params.id; + }, + }, methods: { getDataFromApi(_url) { return new Promise((resolve, reject) => { diff --git a/src/pages/skfwDetail.vue b/src/pages/skfwDetail.vue index 0d981da..17d4feb 100644 --- a/src/pages/skfwDetail.vue +++ b/src/pages/skfwDetail.vue @@ -31,6 +31,11 @@ export default { data: () => ({ baseInfo: null, }), + computed: { + id() { + return this.$route.params.id; + }, + }, methods: { getDataFromApi(_url) { return new Promise((resolve, reject) => { diff --git a/src/pages/yysdDetail.vue b/src/pages/yysdDetail.vue index 68e18ae..c732872 100644 --- a/src/pages/yysdDetail.vue +++ b/src/pages/yysdDetail.vue @@ -35,6 +35,11 @@ export default { specification: null, provider: null, }), + computed: { + id() { + return this.$route.params.id; + }, + }, methods: { getDataFromApi(_url) { return new Promise((resolve, reject) => { diff --git a/src/pages/zhyyfwDetail.vue b/src/pages/zhyyfwDetail.vue index f9d74d3..130e768 100644 --- a/src/pages/zhyyfwDetail.vue +++ b/src/pages/zhyyfwDetail.vue @@ -31,6 +31,11 @@ export default { data: () => ({ baseInfo: null, }), + computed: { + id() { + return this.$route.params.id; + }, + }, methods: { getDataFromApi(_url) { return new Promise((resolve, reject) => { -- 2.26.0