From aa43bcf4fd7c97978d5a5fe192e8902078ff0ec5 Mon Sep 17 00:00:00 2001 From: cjl520cy <8149487+cy250cy-520@user.noreply.gitee.com> Date: Wed, 22 Apr 2026 16:50:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/address/search.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pages/address/search.vue b/pages/address/search.vue index 808b6b7..d7467a0 100644 --- a/pages/address/search.vue +++ b/pages/address/search.vue @@ -2293,6 +2293,15 @@ const currentPage = pages[pages.length - 1] const source = this.source || currentPage.options.source + //特殊处理重庆 + if(addressItem.cityCode == 500100){ + addressItem.cityname = "重庆城区" + } + if(addressItem.cityCode == 500200){ + addressItem.cityname = "重庆郊县" + } + + if (source === 'syr_info') { uni.$emit('address-selected-for-syr', addressItem) uni.setStorageSync('syr_selected_address', addressItem) From f1e4ee07b0cbb8ac349eb16c43125612c11bd72b Mon Sep 17 00:00:00 2001 From: cjl520cy <8149487+cy250cy-520@user.noreply.gitee.com> Date: Wed, 22 Apr 2026 17:55:06 +0800 Subject: [PATCH 2/2] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shop/buyorder-detail.vue | 205 ++++++++++++++++++++++++++------ pages/shop/userorder-detail.vue | 8 +- 2 files changed, 172 insertions(+), 41 deletions(-) diff --git a/pages/shop/buyorder-detail.vue b/pages/shop/buyorder-detail.vue index f20a06e..24da70a 100644 --- a/pages/shop/buyorder-detail.vue +++ b/pages/shop/buyorder-detail.vue @@ -5,43 +5,48 @@ backgroundColor="transparent"> - - + + + {{ orderInfo.server_code }} + + + + + + {{ stateItem.text }} + {{ + ` (${getGroupType(orderInfo.team_buy_order_state)})` + }} + ,请上门/到店后出示服务码 + + + + - {{ stateItem.text }} + {{ stateItem.text }} + {{ + ` (${getGroupType(orderInfo.team_buy_order_state)})` + }} + - - - - - - - {{userInfo.name}} - {{userInfo.account}} - - {{userInfo.dependency}}{{userInfo.address}} - + + + + 预约手艺人信息 - - - - - {{user_syr.name}} - - - + + + + {{ `${user_syr.name} ${user_syr.account}` }} - + + @@ -49,7 +54,7 @@ 预约信息 - {{orderInfo.reservation_time}} + {{`服务时间 ${orderInfo.reservation_time}`}} @@ -64,7 +69,7 @@ ×1 - 实际支付金额: + 实付金额: ¥{{orderInfo.pay_money}} @@ -72,10 +77,6 @@ 订单信息 - - 服务码 - {{orderInfo.server_code}} - 订单编号 {{orderInfo.number}} @@ -228,6 +229,15 @@ }, }, methods: { + getGroupType(teamBuyOrderState) { + let list = [ + { id: 1, text: "拼团中" }, + { id: 2, text: "已成团" }, + { id: 3, text: "拼团失败" } + ]; + let name = list.find((it) => it.id == teamBuyOrderState)?.text; + return name; + }, getOrderDetail() { request.post('/sj/sjorderdetail', { id: this.id, @@ -476,6 +486,20 @@ background-color: #fff; } + /* 辅助类 */ + .flex-row-center-between { + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; + } + + .flex-row-center { + display: flex; + flex-direction: row; + align-items: center; + } + .detail-page::before { content: ''; position: fixed; @@ -558,7 +582,114 @@ color: #333333; font-weight: 600; } - + + /* 服务码状态区域 */ + .status-section2 { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding-top: 55rpx; + padding-bottom: 20rpx; + gap: 20rpx; + + .status-row { + display: flex; + align-items: center; + justify-content: center; + width: auto; + } + + .status-section-image { + width: 27rpx; + height: auto; + margin-right: 6rpx; + margin-top: -4rpx; + } + + .service-code { + display: flex; + align-items: baseline; + justify-content: center; + width: auto; + padding-bottom: 20rpx; + + .service-code-label { + width: 96rpx; + height: 41rpx; + margin-left: 6rpx; + position: relative; + top: -45rpx; + } + + .service-code-value { + font-family: DINPro, DINPro; + font-weight: bold; + font-size: 80rpx; + color: #333333; + line-height: 103rpx; + text-align: left; + font-style: normal; + } + } + + .status-text-red { + font-weight: 400; + font-size: 26rpx; + color: #DC232F; + line-height: 37rpx; + text-align: left; + font-style: normal; + } + + .status-text-normal { + color: #333333; + } + } + + /* 预约手艺人信息卡片 */ + .syr-card { + margin: 30rpx; + background-color: #ffffff; + padding: 30rpx 20rpx; + border-radius: 16rpx; + box-shadow: 0 4rpx 16rpx 0 rgba(210, 213, 224, 0.5); + + .syr-card-header { + font-weight: 500; + font-size: 32rpx; + color: #333333; + line-height: 45rpx; + text-align: left; + font-style: normal; + margin-bottom: 40rpx; + } + + .syr-card-footer { + .syr-card-footer-left { + .syr-card-footer-left-img { + width: 70rpx; + height: 70rpx; + border-radius: 50%; + margin-right: 20rpx; + } + + .syr-card-footer-left-text { + font-weight: 400; + font-size: 28rpx; + color: #333333; + line-height: 40rpx; + text-align: left; + font-style: normal; + } + } + + .syr-card-footer-right { + width: 40rpx; + height: 40rpx; + } + } + } /* 服务人员卡片 */ .service-card { diff --git a/pages/shop/userorder-detail.vue b/pages/shop/userorder-detail.vue index b87fbf5..9d9aaa4 100644 --- a/pages/shop/userorder-detail.vue +++ b/pages/shop/userorder-detail.vue @@ -621,9 +621,9 @@ } this.clickType = true request.post(url, data).then(res => { - if (res.state == 1) { + if (res.state == 1 || res.code == 200) { uni.showToast({ - title: '取消成功!', + title: res.msg, icon: 'none' }) this.getOrderDetail(); @@ -676,7 +676,7 @@ server_code: code, sjid: this.userInfo.id }).then(res => { - if (res.state == 1) { + if (res.state == 1 || res.code == 200) { uni.showToast({ title: res.msg, icon: 'success' @@ -726,7 +726,7 @@ id: order.id, sjid: this.userInfo.id }).then(res => { - if (res.state == 1) { + if (res.state == 1 || res.code == 200) { uni.showToast({ title: res.msg, icon: 'none'