From 2a5181f49b65115558d8f8b17a0d8f2abfc26d90 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 16 May 2024 18:59:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=BE=E5=88=B0=E4=BA=86=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=A0=B7=E5=BC=8F=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98,=E5=88=97=E8=A1=A8=E5=AE=9E=E7=8E=B0,?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- babel.config.js | 5 +- src/api/index.js | 4 +- src/api/service.js | 21 ++++- src/assets/css/common.less | 24 ++++-- src/assets/css/vant-theme.less | 4 +- src/views/assistance/card.vue | 143 ++++++++------------------------- src/views/assistance/index.vue | 77 +++++++++++++++--- 7 files changed, 138 insertions(+), 140 deletions(-) diff --git a/babel.config.js b/babel.config.js index 0355640..33ddb7a 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,4 +1,5 @@ // 获取 VUE_APP_ENV 非 NODE_ENV,测试环境依然 console + const IS_PROD = ['production', 'prod'].includes(process.env.VUE_APP_ENV) const plugins = [ [ @@ -6,7 +7,7 @@ const plugins = [ { libraryName: 'vant', libraryDirectory: 'es', - style: true + style: name => `${name}/style/less` }, 'vant' ] @@ -17,6 +18,6 @@ if (IS_PROD) { } module.exports = { - presets: [['@vue/cli-plugin-babel/preset', {useBuiltIns: 'usage', corejs: 3}]], + presets: [['@vue/cli-plugin-babel/preset', { useBuiltIns: 'usage', corejs: 3 }]], plugins } diff --git a/src/api/index.js b/src/api/index.js index c8c57b2..b269942 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -2,7 +2,9 @@ const api = { Login: '/auth/login/govH5/loginByPassword', UserInfo: '/epmetuser/customerstaff/govH5/detail', Customerlist: '/epmetuser/customerstaff/customerlist', - ServiceList: '/governance/service/rcvAndProcess/waitingRcvServiceList' + ServiceListRcv: '/governance/service/rcvAndProcess/waitingRcvServiceList', + ServiceListProcess: '/governance/service/rcvAndProcess/waitingProcessServiceList', + ServiceListCompleted: '/governance/service/rcvAndProcess/completedServiceList' } export default api diff --git a/src/api/service.js b/src/api/service.js index 14aac96..5373b08 100644 --- a/src/api/service.js +++ b/src/api/service.js @@ -1,10 +1,25 @@ import api from './index' import request from '@/utils/request' -//获取列表 -export function getServiceList(params) { + +export function getServiceListRcv(params) { return request({ - url: api.ServiceList, + url: api.ServiceListRcv, method: 'get', params }) } +export function getServiceListProcess(params) { + return request({ + url: api.ServiceListProcess, + method: 'get', + params + }) +} +export function getServiceListCompleted(params) { + return request({ + url: api.ServiceListCompleted, + method: 'get', + params + }) +} + diff --git a/src/assets/css/common.less b/src/assets/css/common.less index 8d427da..5805215 100644 --- a/src/assets/css/common.less +++ b/src/assets/css/common.less @@ -26,6 +26,7 @@ background-color: #fff; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.3); + padding: 15px; box-sizing: border-box; width: auto; } @@ -57,23 +58,30 @@ justify-content: flex-end; } } -.m-top12{ - margin-top: 12px; - &-left{ +.m{ + &-left12{ margin-left: 12px; } - &-right{ + &-left18{ + margin-left: 18px; + } + &-right12{ margin-right: 12px; } -} -.m-top5{ - margin-top: 5px; + &-right7{ + margin-right: 7px; + } + &-top12{ + margin-top: 12px; + } + &-top5{ + margin-top: 5px; + } &-bottom{ margin-bottom: 5px; } } - .font-size13{ font-size: 13px; } diff --git a/src/assets/css/vant-theme.less b/src/assets/css/vant-theme.less index 25374ca..39dc417 100644 --- a/src/assets/css/vant-theme.less +++ b/src/assets/css/vant-theme.less @@ -91,7 +91,7 @@ @button-mini-height: 22px; @button-mini-min-width: 50px; @button-mini-font-size: @font-size-xs; -@button-small-height: 30px; +@button-small-height: 28px; @button-small-font-size: @font-size-sm; @button-small-min-width: 60px; @button-normal-font-size: @font-size-md; @@ -536,7 +536,7 @@ @tab-font-size: @font-size-md; // Tabs -@tabs-default-color: @red; +@tabs-default-color: @blue; @tabs-line-height: 44px; @tabs-card-height: 30px; @tabs-nav-background-color: @white; diff --git a/src/views/assistance/card.vue b/src/views/assistance/card.vue index ff9adcf..c89b360 100644 --- a/src/views/assistance/card.vue +++ b/src/views/assistance/card.vue @@ -1,123 +1,32 @@