From 20c447122a511820e40cb04f9352aeea5b7aded8 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 2 Jan 2025 18:02:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E6=B8=85=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SearchIpt/index.vue | 1 + src/pages.json | 14 + src/pages/agreement/index.vue | 20 +- src/pages/cart/index.vue | 378 ++++++++++++++------------- src/pages/demand-details/index.vue | 15 +- src/pages/demand-release/index.vue | 4 +- src/pages/index/index.vue | 8 + src/pages/lease-demand/index.vue | 14 +- src/pages/my-demand/index.vue | 100 +++++++ src/pages/my/index.vue | 6 + src/pages/order-confirm/index.vue | 34 ++- src/pages/order-details/index.vue | 32 ++- src/pages/order-list/index.vue | 206 ++++++++++++--- src/pages/order-settlement/index.vue | 45 +++- src/pages/order/index.vue | 12 +- src/pages/repair-details/index.vue | 256 ++++++++++++++++++ src/services/demand/index.js | 10 + src/style/vant.scss | 4 + 18 files changed, 909 insertions(+), 250 deletions(-) create mode 100644 src/pages/my-demand/index.vue create mode 100644 src/pages/repair-details/index.vue diff --git a/src/components/SearchIpt/index.vue b/src/components/SearchIpt/index.vue index 24a4f09..479fb1f 100644 --- a/src/components/SearchIpt/index.vue +++ b/src/components/SearchIpt/index.vue @@ -93,6 +93,7 @@ const onInputChange = (value) => { .check-type { position: relative; + padding-left: 12px; height: 36px; width: 100px; display: flex; diff --git a/src/pages.json b/src/pages.json index 880e185..0f42434 100644 --- a/src/pages.json +++ b/src/pages.json @@ -126,6 +126,13 @@ "navigationStyle": "custom" } }, + // 订单 检修详情 + { + "path": "pages/repair-details/index", + "style": { + "navigationStyle": "custom" + } + }, // 订单 费用确认 { "path": "pages/order-confirm/index", @@ -153,6 +160,13 @@ "style": { "navigationStyle": "custom" } + }, + // 地址管理 + { + "path": "pages/my-demand/index", + "style": { + "navigationStyle": "custom" + } } ], "tabBar": { diff --git a/src/pages/agreement/index.vue b/src/pages/agreement/index.vue index 30ca65d..45f20bb 100644 --- a/src/pages/agreement/index.vue +++ b/src/pages/agreement/index.vue @@ -20,16 +20,16 @@ import mammoth from 'mammoth' const docHtml = ref('') const pagesType = ref(1) const onClickLeft = () => { - let url = '' - if (pagesType.value == 1) url = '/pages/cart/index' - if (pagesType.value == 3) url = '/pages/order-list/index' - if (pagesType.value == 1 || pagesType.value == 3) { - uni.reLaunch({ - url, - }) - } else { - uni.navigateBack() - } + // let url = '' + // if (pagesType.value == 1) url = '/pages/cart/index' + // if (pagesType.value == 3) url = '/pages/order-list/index' + // if (pagesType.value == 3) { + // uni.reLaunch({ + // url, + // }) + // } else { + // } + uni.navigateBack() } onLoad(async (options) => { pagesType.value = options.type diff --git a/src/pages/cart/index.vue b/src/pages/cart/index.vue index 258bfa8..82d28aa 100644 --- a/src/pages/cart/index.vue +++ b/src/pages/cart/index.vue @@ -1,204 +1,216 @@ + + diff --git a/src/pages/my/index.vue b/src/pages/my/index.vue index 786e662..23e52f7 100644 --- a/src/pages/my/index.vue +++ b/src/pages/my/index.vue @@ -35,6 +35,12 @@ 出租订单 + + + + 我的需求 + + diff --git a/src/pages/order-confirm/index.vue b/src/pages/order-confirm/index.vue index eb3025b..c0f33cf 100644 --- a/src/pages/order-confirm/index.vue +++ b/src/pages/order-confirm/index.vue @@ -85,13 +85,19 @@ + @@ -111,13 +117,19 @@ + @@ -136,13 +148,19 @@ + @@ -152,6 +170,7 @@ import { ref } from 'vue' import TitleTip from '@/components/TitleTip' import { onLoad } from '@dcloudio/uni-app' import { getOverhaulAPI, confirmPriceAPI } from '@/services/order/index.js' +import { showImagePreview } from 'vant' const orderDetails = ref({}) const orderId = ref('') const orderDetailDtoList = ref({}) @@ -235,6 +254,9 @@ const onCostConfirm = () => { }) .catch(() => {}) } +const onPreviewFile = (fileList) => { + showImagePreview([fileList[0].fileUrl]) +} diff --git a/src/services/demand/index.js b/src/services/demand/index.js index 0a4021d..fddc906 100644 --- a/src/services/demand/index.js +++ b/src/services/demand/index.js @@ -40,3 +40,13 @@ export const getDemandDetailsByIdAPI = (data) => { data, }) } +/** + * 接单列表 + */ +export const getMyRentListAPI = (data) => { + return http({ + method: 'GET', + url: `/material-mall/ma-lease/rentList`, + data, + }) +} diff --git a/src/style/vant.scss b/src/style/vant.scss index 9ffc56f..2361e4d 100644 --- a/src/style/vant.scss +++ b/src/style/vant.scss @@ -43,6 +43,10 @@ padding: 20rpx 0; } +.view-file { + color: #00a288; +} + // :root { // --van-primary-color:#00a288; // } \ No newline at end of file