This commit is contained in:
ylj20011123 2025-05-06 19:03:56 +08:00
parent 77882c6a69
commit d3756bda64
69 changed files with 198 additions and 242 deletions

View File

@ -27,38 +27,20 @@
</div> -->
<div class="tabs">
<div
class="tabs_item"
:class="currentTab === item.value ? 'tab_active' : ''"
v-for="(item, idx) in tabList"
:key="idx"
@click="handleTab(item.value)"
>
<div class="tabs_item" :class="currentTab === item.value ? 'tab_active' : ''" v-for="(item, idx) in tabList"
:key="idx" @click="handleTab(item.value)">
{{ item.label }}
</div>
</div>
<div class="sum_count" v-if="TotalCount > 0">
<span>{{ TotalCount }}</span
>笔订单, 合计<span>{{ TotalAmount }}</span
>
<span>{{ TotalCount }}</span>笔订单, 合计<span>{{ TotalAmount }}</span>
</div>
</div>
<scroll-view
v-if="orderList && orderList.length > 0"
class="srcollView"
scroll-y="true"
refresher-enabled="true"
@refresherrefresh="handleRefresherrefresh"
:refresher-triggered="triggered"
@scrolltolower="handleScrollTolower"
>
<div
@click="goEvaluate(item)"
v-for="(item, idx) in orderList"
:key="idx"
>
<scroll-view v-if="orderList && orderList.length > 0" class="srcollView" scroll-y="true" refresher-enabled="true"
@refresherrefresh="handleRefresherrefresh" :refresher-triggered="triggered" @scrolltolower="handleScrollTolower">
<div @click="goEvaluate(item)" v-for="(item, idx) in orderList" :key="idx">
<OrderItem :obj="item" @handleGetOrderList="handleGetOrderList" />
</div>
<view class="inBottom">
@ -71,8 +53,6 @@
</view>
</template>
</view>
</template>
<script>
import NoData from "../../../components/noData.vue";
import OrderItem from "./components/orderItem.vue";
@ -131,7 +111,7 @@ export default {
: this.currentTab === 4
? "2000"
: this.currentTab === 5
? ""
? "3000"
: "";
//
this.handleGetOrderList(type);
@ -147,11 +127,11 @@ export default {
: this.currentTab === 2
? "1005"
: this.currentTab === 3
? "1010,2000"
? "1010"
: this.currentTab === 4
? "2010"
? "2000"
: this.currentTab === 5
? ""
? "3000"
: "";
this.handleGetOrderList(type);
},
@ -189,16 +169,16 @@ export default {
this.currentTab = val;
this.orderList = [];
let type =
val === 1
this.currentTab === 1
? ""
: val === 2
: this.currentTab === 2
? "1005"
: val === 3
: this.currentTab === 3
? "1010"
: val === 4
: this.currentTab === 4
? "2000"
: val === 5
? ""
: this.currentTab === 5
? "3000"
: "";
this.handleGetOrderList(type);
},
@ -258,13 +238,13 @@ export default {
uni.navigateTo({
url:
"/pages/order/orderFoodDetail/index?sellchildid=" +
item.SALEBILL_CHILD_ID +
(item.SALEBILL_CHILD_ID || "") +
"&orderInternal=" +
item.SALEBILL_ID +
(item.SALEBILL_ID || "") +
"&orderStatus=" +
item.SALEBILL_STATE +
(item.SALEBILL_STATE || "") +
"&SUPPLIER_NAME=" +
item.SUPPLIER_NAME,
(item.SUPPLIER_NAME || ""),
});
},
},
@ -373,14 +353,17 @@ export default {
}
}
}
.srcollView {
width: 100%;
height: calc(100vh - 160rpx);
.inBottom {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
.bottomText {
font-family: PingFangSC, PingFang SC;
font-weight: 400;
@ -392,6 +375,7 @@ export default {
position: relative;
padding: 6rpx 0;
}
.bottomText::after {
content: "";
width: 30vw;
@ -401,6 +385,7 @@ export default {
left: -32vw;
top: 50%;
}
.bottomText::before {
content: "";
width: 30vw;

View File

@ -33,8 +33,7 @@
去付款 <span>{{ minutes }}</span>
</div>
</block>
<block
v-if="
<block v-if="
orderInfo.SALEBILL_STATE !== 1005 &&
orderInfo.SALEBILL_STATE !== 8000 &&
orderInfo.SALEBILL_STATE !== 8010 &&
@ -42,17 +41,12 @@
orderInfo.SALEBILL_STATE !== 8900 &&
orderInfo.SALEBILL_STATE !== 8999 &&
orderInfo.SALEBILL_STATE !== 9000 &&
orderInfo.SALEBILL_STATE !== 9999 &&
orderInfo.COMMENT_STATE === 0
"
>
<!-- <div class="continu-btn" @click="handleRefund">发起退款</div> -->
orderInfo.SALEBILL_STATE !== 9999
">
<!-- && orderInfo.COMMENT_STATE === 0 -->
<div class="continu-btn" @click="handleRefund" v-if="orderInfo.SALEBILL_STATE === 1010">发起退款</div>
<!-- <div class="back-btn" @click="goShop" v-if="orderInfo.SALEBILL_STATE!=1010">再来一单</div> -->
<div
v-if="orderInfo.COMMENT_STATE !== 1"
class="continu-btn"
@click="goEvaluate"
>
<div v-if="orderInfo.COMMENT_STATE !== 1" class="continu-btn" @click="goEvaluate">
评价得积分
</div>
</block>
@ -68,26 +62,21 @@
}}</span>
</p>
<p class="order-info-type">
<span class="order-info-t">订单编号</span
><span>{{ orderInfo.SALEBILL_CODE }}</span>
<span class="order-info-t">订单编号</span><span>{{ orderInfo.SALEBILL_CODE }}</span>
</p>
<p class="order-info-type">
<span class="order-info-t">下单时间</span
><span>{{ orderInfo.ORDER_DATE }}</span>
<span class="order-info-t">下单时间</span><span>{{ orderInfo.ORDER_DATE }}</span>
</p>
<block v-if="orderInfo.TAKE_TYPE === 2000">
<p class="order-info-type">
<span class="order-info-t">下单人员</span
><span>{{ orderInfo.ORDER_PERSON }}</span>
<span class="order-info-t">下单人员</span><span>{{ orderInfo.ORDER_PERSON }}</span>
</p>
<p class="order-info-type">
<span class="order-info-t">预约时间</span
><span>{{ orderInfo.RESERVATION_DATE }}</span>
<span class="order-info-t">预约时间</span><span>{{ orderInfo.RESERVATION_DATE }}</span>
</p>
<p class="order-info-type">
<span class="order-info-t">预约电话</span
><span>{{ orderInfo.ORDER_PERSONTEL }}</span>
<span class="order-info-t">预约电话</span><span>{{ orderInfo.ORDER_PERSONTEL }}</span>
</p>
</block>
</div>
@ -95,15 +84,12 @@
<div class="order-box">
<div class="order-top" @click="goShop">
<div style="display: flex; align-items: center">
<img
src="https://eshangtech.com/ShopICO/shop_ico.png"
style="
<img src="https://eshangtech.com/ShopICO/shop_ico.png" style="
width: 56rpx;
height: 36rpx;
vertical-align: middle;
margin-right: 10rpx;
"
/>
" />
<span class="order-addr">{{ ShopAddress }}</span>
</div>
<van-icon name="arrow" size="30rpx" v-if="pageMsg.type === 0" />
@ -133,12 +119,7 @@
</div>
<div class="price-sum">
<div class="link-store" @click="callPhone">
<van-icon
name="phone-circle-o"
size="40rpx"
color="#CAA97F"
custom-style="margin-right:16rpx;"
></van-icon>
<van-icon name="phone-circle-o" size="40rpx" color="#CAA97F" custom-style="margin-right:16rpx;"></van-icon>
联系商家
</div>
<div class="">
@ -154,42 +135,23 @@
<div class="payList">
<radio-group :value="payType" class="radio-group">
<div
class="bottom-radio"
color="#CAA97F"
@click="handleChangePayType(1)"
>
<div class="bottom-radio" color="#CAA97F" @click="handleChangePayType(1)">
<div class="radioLeft">
<div class="logoBox">
<image
class="logoIcon"
src="/static/images/home/alipayIcon.png"
/>
<image class="logoIcon" src="/static/images/home/alipayIcon.png" />
</div>
<text>支付宝支付</text>
</div>
<radio
value="支付宝支付"
color="#CAA97F"
:checked="payType === 1"
/>
<radio value="支付宝支付" color="#CAA97F" :checked="payType === 1" />
</div>
<div
class="bottom-radio"
color="#CAA97F"
@click="handleChangePayType(2)"
>
<div class="bottom-radio" color="#CAA97F" @click="handleChangePayType(2)">
<div class="radioLeft">
<div class="logoBox">
<image class="logoIcon" src="/static/images/home/wxPay.png" />
</div>
<text>微信支付</text>
</div>
<radio
value="微信支付"
color="#CAA97F"
:checked="payType === 2"
/>
<radio value="微信支付" color="#CAA97F" :checked="payType === 2" />
</div>
</radio-group>
</div>
@ -265,7 +227,7 @@ export default {
provinceCode: _this.user.PROVINCE_CODE || "530000",
serverpartShopId: "5634",
salebillDesc: "退款订单",
wechatOpenId: openId || "",
wechatOpenId: _this.user.WECHATAPP_OPENID || "",
wechatUnionId: _this.user.USER_UNIONID || "",
// addressId: this.addressInfo.MEMBERADDRESS_ID,
// orderPersonTel: this.addressInfo.MOBILEPHONE,
@ -278,7 +240,7 @@ export default {
const req = {
action_type: "UpdateOrderState",
action_data: _this.orderInfo.SALEBILL_ID,
saleBillChildId: _this.sellchildid,
saleBillChildId: _this.sellchildid || "",
SALEBILL_STATE: 8000,
// deliverDate: new Date()
};
@ -674,7 +636,7 @@ export default {
// })
}
},
complete(res) {},
complete(res) { },
});
} else {
uni.showToast({
@ -1064,7 +1026,7 @@ hr {
justify-content: space-between;
}
.order-info-type + .order-info-type {
.order-info-type+.order-info-type {
border-top: 1px solid #f5f5f5;
}

View File

@ -230,8 +230,8 @@
</div>
<div class="detail-image-box">
<block v-for="(img, i) in good.ContentImgList" :key="i" v-show="detailImgList[i]">
<image class="img" mode="aspectFill" lazy-load="true" :src="img.IMAGE_URL" @load="loadDetailImg($event, i)"
@click="handlePreviewDetailImg(img)"></image>
<image mode="widthFix" class="img" lazy-load="true" :src="img.IMAGE_URL" @load="loadDetailImg($event, i)"
@click="handlePreviewDetailImg(img, good.ContentImgList)"></image>
<!-- :style="
'width:' +
detailImgList[i].width +
@ -567,14 +567,19 @@ export default {
});
},
//
handlePreviewDetailImg(obj) {
handlePreviewDetailImg(obj, list) {
console.log("obj", obj);
let imgList = [];
if (list && list.length > 0) {
imgList = list
} else {
if (this.good.List && this.good.List.length > 0) {
this.good.List.forEach((item) => {
imgList.push(item.IMAGE_URL);
});
}
}
uni.previewImage({
current: obj.IMAGE_URL, // http
urls: imgList, // http

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
{
"usingComponents": {},
"component": true
"component": true,
"usingComponents": {}
}

View File

@ -1,4 +1,4 @@
{
"usingComponents": {},
"component": true
"component": true,
"usingComponents": {}
}

View File

@ -1,4 +1,4 @@
{
"usingComponents": {},
"component": true
"component": true,
"usingComponents": {}
}

View File

@ -1,4 +1,4 @@
{
"usingComponents": {},
"component": true
"component": true,
"usingComponents": {}
}

View File

@ -1,4 +1,4 @@
{
"usingComponents": {},
"component": true
"component": true,
"usingComponents": {}
}

View File

@ -202,7 +202,7 @@ var _default = {
this.searchType = query.type;
this.currentTab = Number(this.searchType) + 1;
}
var type = this.currentTab === 1 ? "" : this.currentTab === 2 ? "1005" : this.currentTab === 3 ? "1010" : this.currentTab === 4 ? "2000" : this.currentTab === 5 ? "" : "";
var type = this.currentTab === 1 ? "" : this.currentTab === 2 ? "1005" : this.currentTab === 3 ? "1010" : this.currentTab === 4 ? "2000" : this.currentTab === 5 ? "3000" : "";
// 获取订单数据
this.handleGetOrderList(type);
this.$utils.addUserBehaviorNew();
@ -211,7 +211,7 @@ var _default = {
// 滚动到底部 加载更多
handleScrollTolower: function handleScrollTolower() {
this.pageMsg.pageIndex = this.pageMsg.pageIndex + 1;
var type = this.currentTab === 1 ? "" : this.currentTab === 2 ? "1005" : this.currentTab === 3 ? "1010,2000" : this.currentTab === 4 ? "2010" : this.currentTab === 5 ? "" : "";
var type = this.currentTab === 1 ? "" : this.currentTab === 2 ? "1005" : this.currentTab === 3 ? "1010" : this.currentTab === 4 ? "2000" : this.currentTab === 5 ? "3000" : "";
this.handleGetOrderList(type);
},
// 下拉刷新的方法
@ -251,7 +251,7 @@ var _default = {
};
this.currentTab = val;
this.orderList = [];
var type = val === 1 ? "" : val === 2 ? "1005" : val === 3 ? "1010" : val === 4 ? "2000" : val === 5 ? "" : "";
var type = this.currentTab === 1 ? "" : this.currentTab === 2 ? "1005" : this.currentTab === 3 ? "1010" : this.currentTab === 4 ? "2000" : this.currentTab === 5 ? "3000" : "";
this.handleGetOrderList(type);
},
// 获取订单数据
@ -322,7 +322,7 @@ var _default = {
goEvaluate: function goEvaluate(item) {
console.log("item", item);
uni.navigateTo({
url: "/pages/order/orderFoodDetail/index?sellchildid=" + item.SALEBILL_CHILD_ID + "&orderInternal=" + item.SALEBILL_ID + "&orderStatus=" + item.SALEBILL_STATE + "&SUPPLIER_NAME=" + item.SUPPLIER_NAME
url: "/pages/order/orderFoodDetail/index?sellchildid=" + (item.SALEBILL_CHILD_ID || "") + "&orderInternal=" + (item.SALEBILL_ID || "") + "&orderStatus=" + (item.SALEBILL_STATE || "") + "&SUPPLIER_NAME=" + (item.SUPPLIER_NAME || "")
});
}
}

View File

@ -241,7 +241,7 @@ var _default = {
provinceCode: _this.user.PROVINCE_CODE || "530000",
serverpartShopId: "5634",
salebillDesc: "退款订单",
wechatOpenId: openId || "",
wechatOpenId: _this.user.WECHATAPP_OPENID || "",
wechatUnionId: _this.user.USER_UNIONID || "",
// addressId: this.addressInfo.MEMBERADDRESS_ID,
// orderPersonTel: this.addressInfo.MOBILEPHONE,
@ -260,7 +260,7 @@ var _default = {
req = {
action_type: "UpdateOrderState",
action_data: _this.orderInfo.SALEBILL_ID,
saleBillChildId: _this.sellchildid,
saleBillChildId: _this.sellchildid || "",
SALEBILL_STATE: 8000
// deliverDate: new Date()
};

File diff suppressed because one or more lines are too long

View File

@ -383,14 +383,18 @@ var _default = {
});
},
// 预览详情图片
handlePreviewDetailImg: function handlePreviewDetailImg(obj) {
handlePreviewDetailImg: function handlePreviewDetailImg(obj, list) {
console.log("obj", obj);
var imgList = [];
if (list && list.length > 0) {
imgList = list;
} else {
if (this.good.List && this.good.List.length > 0) {
this.good.List.forEach(function (item) {
imgList.push(item.IMAGE_URL);
});
}
}
uni.previewImage({
current: obj.IMAGE_URL,
// 当前显示图片的http链接

File diff suppressed because one or more lines are too long