From f76f0a489050e3ebdc159b78e0f61d36b7eba5e0 Mon Sep 17 00:00:00 2001
From: wangfukang <15630117759@163.com>
Date: Sat, 27 Jun 2026 18:14:46 +0800
Subject: [PATCH] 1
---
package1/buyFood/buyFood.vue | 27 ++-
package1/order/orderDetail.vue | 328 ++++++++++++++++++++++++++-----
package1/order/orderList.vue | 94 +++++++--
package1/order/returnOrder.vue | 8 +-
package1/runErrand/runErrand.vue | 18 +-
5 files changed, 405 insertions(+), 70 deletions(-)
diff --git a/package1/buyFood/buyFood.vue b/package1/buyFood/buyFood.vue
index 103ba41..8099553 100644
--- a/package1/buyFood/buyFood.vue
+++ b/package1/buyFood/buyFood.vue
@@ -137,7 +137,7 @@
-
+
@@ -357,6 +357,9 @@
+
-
- 若拼团失败,将会为您自动退款
+
+ 若24小时内拼团失败,将会为您自动退款
+
+
+ 若1小时内拼团失败,将会为您自动退款
@@ -897,7 +903,6 @@
refreshDeliveryTimeByModeChange() {
this.updateImmediateTimeStr();
if (this.formData.isImmediately === false) {
- this.formData.deliveryTime = '';
this.generateDeliveryTimes();
}
},
@@ -1027,7 +1032,7 @@
this.tui.request('/mall/coupon/available', 'GET', {
userId: userId,
regionId:JSON.parse(uni.getStorageSync('area')).id,
- applyScene: 1,
+ applyScene: this.isStoreGroupOrder ? 4 : 1,
amount: amount,
merchantId: this.shopItem.id || this.shopItem.shopId || '0'
}, false, true).then((res) => {
@@ -1940,6 +1945,18 @@
}
}
+ .commission-popup-tip {
+ margin-top: 18rpx;
+ padding: 14rpx 18rpx;
+ border-radius: 18rpx;
+ background: #fff5ec;
+ border: 1rpx solid rgba(255, 112, 67, 0.28);
+ color: #f0441f;
+ font-size: 22rpx;
+ font-weight: 800;
+ line-height: 34rpx;
+ }
+
.commission-popup-actions {
display: flex;
margin-top: 34rpx;
diff --git a/package1/order/orderDetail.vue b/package1/order/orderDetail.vue
index 27aeaf3..47ded27 100644
--- a/package1/order/orderDetail.vue
+++ b/package1/order/orderDetail.vue
@@ -154,7 +154,7 @@
- 创建时间 {{orderDetail.createTime | formatTime}}
+ 剩余支付时间 {{payCountdownText}}
@@ -700,7 +700,7 @@
- 取消订单需要商家同意
+ 请确认责任方,取消订单需要责任方同意!
请选择退款原因
@@ -783,6 +783,23 @@
+
+
+
+
-
-
-
-
+
+
+
+
+
+
-
-
+
+
¥{{item.totalAmount}}
共{{item.num}}件
@@ -339,6 +341,10 @@
this.searchForm.pageNum++;
this.getOrderList();
},
+ onPullDownRefresh() {
+ this.resetOrderList()
+ this.getOrderList()
+ },
filters: {
formatHourMinute(value) {
if (!value) return '';
@@ -388,12 +394,19 @@
},
onShow() {
- this.getOrderList()
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
this.searchForm.userId = uni.getStorageSync('id')
this.searchForm.regionId = JSON.parse(uni.getStorageSync('area')).id
+ this.resetOrderList()
+ this.getOrderList()
},
methods: {
+ resetOrderList() {
+ this.orderList = []
+ this.pageNum = 1
+ this.searchForm.pageNum = 1
+ this.loadStatus = 'more'
+ },
checkTab1(type) {
this.tab1Checked = type
if(type == 'quanbu'){
@@ -491,8 +504,22 @@
});
},
goEvaluate(item){
- uni.navigateTo({
- url: '/package1/order/orderEvaluate?item=' + JSON.stringify(item)
+ let that = this;
+ that.tui.request("/app/comment/getByOrderId?orderId=" + item.id, "POST", {}, false, true).then((res) => {
+ uni.hideLoading();
+ if (res.code == 200) {
+ if (res.result != null && res.result.length > 0) {
+ that.tui.toast("该订单已经评价过了");
+ return;
+ }
+ uni.navigateTo({
+ url: '/package1/order/orderEvaluate?item=' + JSON.stringify(item)
+ });
+ } else {
+ that.tui.toast(res.message);
+ }
+ }).catch((res) => {
+ uni.hideLoading();
});
},
checkTabs2(type) {
@@ -515,7 +542,7 @@
getOrderList(){
this.loadStatus = 'loading'
let that = this
- that.tui.request("/mall/order/page", "POST", this.searchForm, false, false).then((res) => {
+ return that.tui.request("/mall/order/page", "POST", this.searchForm, false, false).then((res) => {
that.loadStatus = 'nomore';
if (res.code == 200) {
if (that.searchForm.pageNum == 1) {
@@ -536,7 +563,9 @@
return;
}
uni.hideLoading();
- }).catch((res) => {});
+ }).catch((res) => {}).finally(() => {
+ uni.stopPullDownRefresh();
+ });
},
returnPopupProp(item){
this.payData = item;
@@ -921,23 +950,58 @@
position: relative;
background: #fff;
border-radius: 24rpx;
- margin-right: 10px;
overflow: hidden;
box-shadow: 0 12rpx 24rpx rgba(0, 35, 28, 0.08);
- img {
- width: 160rpx;
- background-size: 100%;
+ img,
+ image {
+ width: 100%;
height: 100%;
border-radius: 24rpx;
+ display: block;
}
}
+ .goods-card {
+ display: flex;
+ align-items: center;
+ padding: 20rpx;
+ background: rgba(247, 248, 248, 0.6);
+ border-radius: 20rpx;
+ box-sizing: border-box;
+ }
+
+ .goods-scroll {
+ flex: 1;
+ width: 0;
+ min-width: 0;
+ white-space: nowrap;
+ }
+
+ .goods-scroll-inner {
+ display: inline-flex;
+ align-items: center;
+ }
+
+ .goods-scroll-img {
+ flex: 0 0 160rpx;
+ margin-right: 20rpx;
+ }
+
+ .goods-scroll-img:last-child {
+ margin-right: 0;
+ }
+
.goods-content {
padding: 0 20rpx;
text-align: center;
}
+ .goods-price {
+ flex: 0 0 128rpx;
+ padding: 0 0 0 20rpx;
+ }
+
.goods-name {
font-weight: 900;
color: #243f38;
diff --git a/package1/order/returnOrder.vue b/package1/order/returnOrder.vue
index ee0e9ee..ae539d6 100644
--- a/package1/order/returnOrder.vue
+++ b/package1/order/returnOrder.vue
@@ -223,7 +223,7 @@
-
+
商品退款
@@ -295,7 +295,7 @@
export default {
data() {
return {
- sellTime: 0,
+ sellTime: 100,
pintuan: false,
menuButtonInfo: {},
orderId: '',
@@ -402,6 +402,10 @@
this.$refs.carPopup.open('bottom');
},
chooseReturnType() {
+ if(this.sellTime == 100){
+ this.tui.toast("请选择售后责任方");
+ return
+ }
this.$refs.carPopup.close()
if (this.sellTime == 0) {
this.returnData.refundAmount = 0
diff --git a/package1/runErrand/runErrand.vue b/package1/runErrand/runErrand.vue
index c8da1ba..df3f52f 100644
--- a/package1/runErrand/runErrand.vue
+++ b/package1/runErrand/runErrand.vue
@@ -896,9 +896,21 @@
this.$refs.warnPopup.open();
return;
}
- if (this.isKuaidi && (!this.addFormData.codeList || this.addFormData.codeList[0].code.trim() === '') && this.addFormData.picture.length === 0) {
- uni.showToast({ title: '请填写取件码或上传截图凭证', icon: 'none' });
- return;
+ if (this.isKuaidi) {
+ let hasEdit = false
+ if(this.addFormData.codeList && this.addFormData.codeList[0].code.trim() != ''){
+ hasEdit = true
+ }
+ if(this.addFormData.picture.length != 0){
+ hasEdit = true
+ }
+ if(this.addFormData.phoneNumber.length != 0){
+ hasEdit = true
+ }
+ if(hasEdit == false){
+ uni.showToast({ title: '请填写手机尾号或取件码或上传截图凭证', icon: 'none' });
+ return;
+ }
}
this.submitOrderToBackend();