diff --git a/src/components/application-info.vue b/src/components/application-info.vue index e1100e07043bc210b7f2b1d170ad8b774c7878f8..4e41ab80cc8a773e2fe95b2d3298cb9cba8804d2 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 11fb944cc8b08f3e54535cd0c1a6643905c9c16d..98f22ff7f7afc76fe350910cca220b3361c6ed0e 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 0d981dac9af08bcb32f4b5a47d33db74dcb87af4..17d4feb9a079fefe21319b14c2f0668079b9089b 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 68e18ae3f174b8956d77e188a0f1a29d7b7a1c16..c7328729b7d327f7dcc44677c2795b81e45ed3c6 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 f9d74d396813d5f94503484b874c00c7e2db9451..130e768e188e836019659a10858af0da5c91a84f 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) => {