sadjv3_user/pages/my/orderDetailsList.vue

697 lines
16 KiB
Vue
Raw Normal View History

2024-06-24 11:29:11 +08:00
<!-- 自定义下拉刷新与上拉加载演示(vue) -->
<template>
<view class="content-view">
<z-paging ref="paging" v-model="dataList" @query="queryList">
<template #top>
<view class="service-head-top">
<view class="service-head-top-left">
<image @click="backImg" src="../../static/fanhui.png" mode="widthFix"></image>
<span>{{previousPage.name}}</span>
</view>
2024-08-08 08:54:21 +08:00
<!-- <view>
<uni-search-bar @service="serviceTrue" @confirm="search" :cancelext="'取消'" v-model="searchValue"
@input="input" @clear="clear">
</uni-search-bar>
<view class="search-btn" @click="searchBtn">
搜索
</view>
</view> -->
<view>
<uni-search-bar @service="serviceTrue" @confirm="search" :cancelext="'取消'" v-model="searchValue"
@input="input" @clear="clear">
</uni-search-bar>
<view class="search-btn" @click="searchBtn">
2024-08-08 08:54:21 +08:00
<image style="width:30rpx; height:30rpx; margin-right: 10rpx;"
src="../../static/search.png"></image>
搜索
</view>
</view>
</view>
</template>
<template #loadingMoreNoMore>
<custom-nomore />
</template>
<view class="pay-margin bg ding-view" v-for="(item,index) in dataList" :key="index" @click="itemClick(item)"
style="border-radius: 20rpx;padding: 36rpx;">
<view class="flex justify-between">
<view class="flex align-center profile-img">
<image src="../../static/logo.png"
style="width: 55rpx;height: 55rpx;border: 1px solid#d7f2ee;border-radius: 50%;">
</image>
<view class="margin-left-xs ">{{item.artificerName}}</view>
</view>
<view v-if="item.status ==1"><span class="status-num">{{item.ordersNo}}</span><span
class="status-button-a">待支付</span></view>
<view v-if="item.status ==2"><span class="status-num">{{item.ordersNo}}</span><span
2025-02-08 16:35:24 +08:00
class="status-button-b">已接单</span></view>
<view v-if="item.status ==3"><span class="status-num">{{item.ordersNo}}</span><span
class="status-button-c">待评价</span></view>
<view v-if="item.status ==4"><span class="status-num">{{item.ordersNo}}</span><span
class="status-button-d">已取消</span></view>
<view v-if="item.status ==5"><span class="status-num">{{item.ordersNo}}</span><span
class="status-button-e">已完成</span></view>
<view v-if="item.status ==6"><span class="status-num">{{item.ordersNo}}</span><span
class="status-button-f">服务中</span></view>
<view v-if="item.status ==7"><span class="status-num">{{item.ordersNo}}</span><span
2025-02-08 16:35:24 +08:00
class="status-button-h">已出发</span></view>
<view v-if="item.status ==8"><span class="status-num">{{item.ordersNo}}</span><span
2025-02-08 16:35:24 +08:00
class="status-button-i">已到达</span></view>
<view v-if="item.status ==9"><span class="status-num">{{item.ordersNo}}</span><span
2025-02-08 16:35:24 +08:00
class="status-button-g">待接单</span></view>
<view v-if="item.status ==10"><span class="status-num">{{item.ordersNo}}</span><span
class="status-button-h">待补单</span></view>
</view>
<view class="margin-top-sm" style="width: 100%;height: 1rpx;background: #f7f7f7;"></view>
<view class="u-flex u-p-t-30" v-if="item.ordersMassageList[0].userPackageDetail==null">
<view class="u-m-r-10">
<image :src="item.ordersMassageList[0].massageType.massageImg" mode="square"
style="height: 155rpx;width: 155rpx;flex: 0 0 155rpx;"></image>
</view>
<view class="u-flex-1" style="margin-left: 20rpx;">
<view class="text-bold u-line-1">
<view class="text-lg"
style="font-size: 32rpx;margin-top: 0rpx;display: inline-block;width: 470rpx; overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
{{item.entryName}}
</view>
</view>
<view class="u-font-13 u-tips-color justify-between title-font" style="margin-top: 14rpx;">
<text class="title-font">预约时间</text><text class="value-font">{{item.serveTime}}</text>
</view>
<view class="flex-sub u-font-13">
<text class="title-font">实付金额</text><text class="text-xl text-bold"
style="color: #FF1200;">{{item.payMoneyTotal}}</text>
</view>
</view>
</view>
<view class="u-flex u-p-t-30" v-else>
<view class="u-m-r-10">
<image :src="item.ordersMassageList[0].userPackageDetail.massageImg" mode="square"
style="height: 155rpx;width: 155rpx;flex: 0 0 155rpx;"></image>
</view>
<view class="u-flex-1" style="margin-left: 20rpx;">
<view class="text-bold u-line-1">
<view class="text-lg"
style="font-size: 32rpx;margin-top: 0rpx;display: inline-block;width: 470rpx; overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
{{item.entryName}}
</view>
</view>
<view class="u-font-13 u-tips-color justify-between title-font" style="margin-top: 14rpx;">
<text class="title-font">预约时间</text><text class="value-font">{{item.serveTime}}</text>
</view>
<view class="flex-sub u-font-13">
<text class="title-font">实付金额</text><text class="text-xl text-bold"
style="color: #FF1200;">{{item.payMoneyTotal}}</text>
</view>
</view>
</view>
</view>
</z-paging>
2024-06-24 11:29:11 +08:00
</view>
</template>
<script>
export default {
data() {
return {
loadingType: 0,
2024-06-24 11:29:11 +08:00
myId: '',
// v-model绑定的这个变量不要在分页请求结束中自己赋值
dataList: [],
tabList: [],
typeData: '105',
2024-06-24 11:29:11 +08:00
tabIndex: 0,
searchValue: '',
serviceTrue: true,
page: 1,
limit: 10,
titleNmae: '',
classifyId: '',
previousPage: {}
2024-06-24 11:29:11 +08:00
}
},
onLoad(e) {
var that = this;
that.previousPage = e;
that.isVIP = this.$queue.getData('isVIP');
2024-06-24 11:29:11 +08:00
that.myId = uni.getStorageSync('userId');
2024-07-26 14:50:20 +08:00
// that.getData()
2024-06-24 11:29:11 +08:00
},
2024-07-26 14:50:20 +08:00
// onPullDownRefresh: function() {
// this.page = 1;
// this.getData();
// },
2024-06-24 11:29:11 +08:00
methods: {
// 加载更多
2024-07-26 14:50:20 +08:00
// loadMore: async function() {
// //loadingType: 0.数据未加载完 1.数据全部加载完了 2.数据加载中
// if(this.loadingType==0){
// this.loadingType=2
// //模拟数据请求
// setTimeout(()=>{
// this.page++;
// this.loadingType=0;
// this.getData()
// },1000)
// }
// },
input(res) { //搜索 输入框
this.searchValue = res;
2024-06-24 11:29:11 +08:00
},
searchBtn() { //搜索按钮
if (this.searchValue != "") {
2024-06-24 11:29:11 +08:00
this.getData()
}
},
getData() {
2024-07-26 14:50:20 +08:00
// this.$Request.get("/app/artificer/selectAppOrdersList", {
// page:this.page,
// limit:this.limit,
// title:this.searchValue,
// userPackageId:this.previousPage.id
// }).then(res => {
// if (res.code == 0) {
// if (res.data) {
// if (this.page == 1) this.dataList = []; //如果是第一页需手动制空列表
// this.dataList = [...this.dataList, ...res.data.list]; //追加新数据
// uni.stopPullDownRefresh()
// }
// }
// });
this.$refs.paging.reload(true);
2024-06-24 11:29:11 +08:00
},
queryList(pageNo, pageSize) {
const params = {
page: pageNo,
limit: pageSize,
userPackageId: this.previousPage.id,
title: this.searchValue
}
this.$Request.get('/app/artificer/selectAppOrdersList', params).then(res => {
this.$refs.paging.complete(res.data.list);
}).catch(res => {
this.$refs.paging.complete(false);
})
},
backImg() { //返回上一页
if (this.previousPage.name == '次卡') {
uni.reLaunch({
url: '/pages/my/cikarDrtail?id=' + this.previousPage.id + '&limit=' + 10 + '&page=' + 1 +
'&name=' + 'my'
})
}else if (this.previousPage.name == '疗程'){
2024-07-02 15:25:43 +08:00
uni.reLaunch({
url: '/pages/my/fuwuliaochengDetail?id=' + this.previousPage.id + '&limit=' + 10 +
'&page=' + 1 + '&name=' + 'my'
2024-07-02 15:25:43 +08:00
})
}else if (this.previousPage.name == '秒杀'){
2024-07-02 15:25:43 +08:00
uni.reLaunch({
url: '/pages/my/miaoShaOderDrtail?id=' + this.previousPage.id + '&limit=' + 10 +
'&page=' + 1 + '&name=' + 'my'
})
}else if (this.previousPage.name == '拼团'){
uni.reLaunch({
url: '/pages/my/pinTuanOderDrtail?id=' + this.previousPage.id + '&limit=' + 10 +
'&page=' + 1 + '&name=' + 'my'
2024-07-02 15:25:43 +08:00
})
2024-08-08 08:54:21 +08:00
}else if (this.previousPage.name == '企业预约'){
uni.reLaunch({
url: '/pages/shop/qiyeDatail?id=' + this.previousPage.id + '&limit=' + 10 +
'&page=' + 1 + '&name=' + 'my'
})
2024-07-02 15:25:43 +08:00
}
2024-07-26 14:50:20 +08:00
},
2024-06-24 11:29:11 +08:00
clear(res) {
this.getData()
},
itemClick(item) {
2024-07-05 23:39:28 +08:00
// uni.navigateTo({
// url:'/my/order/payCLDetail?ordersId='+item.ordersId
// })
2024-07-26 14:50:20 +08:00
2024-06-24 11:29:11 +08:00
}
}
}
</script>
2024-07-26 14:50:20 +08:00
<style lang="scss" scoped>
.pay-margin {
margin: 20rpx 20rpx;
}
.bg {
background-color: #FFFFFF;
}
.profile-img {
margin-top: -20rpx;
}
.st-title {
padding-top: 20rpx;
}
.dingdan-cont {
2024-07-05 23:39:28 +08:00
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
/deep/.justify-between {
height: 54rpx;
2024-07-02 15:25:43 +08:00
}
.ding-view {
2024-07-02 15:25:43 +08:00
position: relative;
}
.text-green span:nth-child(1) {
2024-07-26 14:50:20 +08:00
font-size: 30rpx;
color: #333333;
2024-07-02 15:25:43 +08:00
margin-right: 10px;
}
.text-green span:nth-child(2) {
2024-07-26 14:50:20 +08:00
font-size: 30rpx;
color: #333333;
2024-07-02 15:25:43 +08:00
margin-right: 10px;
}
.header-bottom-title-liao {
2024-06-24 11:29:11 +08:00
display: inline-block;
padding: 0 7px;
height: 16px;
line-height: 16px;
text-align: center;
background: linear-gradient(-90deg, #FF6F48, #FF9E69);
border-radius: 7px;
margin-left: 5px;
font-weight: bold;
font-size: 8px;
border-top-left-radius: 20px;
border-bottom-right-radius: 20px;
color: #fff;
}
/deep/.refresh-body .content {
2024-06-24 11:29:11 +08:00
background-color: #f7f7f7;
}
/deep/.refresh-body {
2024-06-24 11:29:11 +08:00
height: 100% !important;
border-top: 2px solid #f7f7f7;
}
.content-view {
2024-06-24 11:29:11 +08:00
width: 100%;
height: 100vh;
overflow: auto;
background-color: #f7f7f7;
}
.item-view-bottom-btn {
2024-06-24 11:29:11 +08:00
text-align: center;
width: 131rpx;
height: 50rpx;
line-height: 50rpx;
background: linear-gradient(90deg, #019C88, #0FA78B, #35C495);
border-radius: 10rpx;
font-weight: bold;
font-size: 24rpx;
color: #FFFFFF;
}
.item-view-bottom-qian span:nth-child(4) {
font-weight: bold;
font-size: 31rpx;
color: #848484;
text-decoration-line: line-through;
margin-left: 5px;
}
.item-view-bottom-qian span:nth-child(1) {
font-weight: 400;
font-size: 25rpx;
color: #F95900;
}
.item-view-bottom-qian span:nth-child(2) {
font-weight: bold;
font-size: 36.81rpx;
color: #F95900;
}
.item-view-bottom-qian span:nth-child(3) {
font-weight: 400;
font-size: 25rpx;
color: #F95900;
}
.item-view-bottom {
2024-06-24 11:29:11 +08:00
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.item-view-jianjie {
2024-06-24 11:29:11 +08:00
font-weight: 400;
font-size: 22rpx;
color: #848484;
margin: 5px 0px;
2024-06-24 11:29:11 +08:00
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
/* 显示的行数,可以根据需要修改 */
2024-06-24 11:29:11 +08:00
overflow: hidden;
text-overflow: ellipsis;
}
.item-view-biao {
2024-06-24 11:29:11 +08:00
padding: 1px 2px;
border-radius: 6rpx;
}
.tuina {
background-color: #d1f2df;
2024-06-24 11:29:11 +08:00
color: #17984d;
}
.xiaoer {
background-color: #f1f8d7;
2024-06-24 11:29:11 +08:00
color: #58b314;
}
.taishi {
background-color: #e5d5c6;
2024-06-24 11:29:11 +08:00
color: #805d39;
}
.kangfu {
background-color: #fcf3da;
2024-06-24 11:29:11 +08:00
color: #ff8600;
}
.item-view-xiangmu span:nth-child(2) {
2024-06-24 11:29:11 +08:00
font-weight: normal;
color: #666666;
margin-left: 5px;
}
.item-view-xiangmu {
2024-06-24 11:29:11 +08:00
width: 100%;
display: flex;
flex-direction: row;
font-weight: 400;
font-size: 21rpx;
margin-top: 5px;
}
.item-view-title-text {
2024-06-24 11:29:11 +08:00
display: inline-block;
width: 100px;
font-weight: bold;
font-size: 33rpx;
color: #333333;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.item-view-title {
2024-06-24 11:29:11 +08:00
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.item-view {
2024-06-24 11:29:11 +08:00
width: 55%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
.item-img {
2024-06-24 11:29:11 +08:00
width: 285rpx;
height: 120px;
border-radius: 14rpx;
position: relative;
}
.img-span {
2024-06-24 11:29:11 +08:00
padding: 2px 5px;
font-weight: 400;
font-size: 8px;
color: #FFFFFF;
background: linear-gradient(-90deg, #FF6F48, #FF9E69);
border-radius: 7px 0px 7px 0px;
position: absolute;
bottom: 0px;
right: 0;
margin-bottom: 5px;
margin-right: 5px;
}
.item-img image {
2024-06-24 11:29:11 +08:00
width: 100%;
height: 100%;
}
2024-06-24 11:29:11 +08:00
.item {
2024-07-02 15:25:43 +08:00
width: 95%;
2024-06-24 11:29:11 +08:00
display: flex;
2024-07-02 15:25:43 +08:00
flex-direction: column;
2024-07-26 14:50:20 +08:00
height: 200px;
2024-06-24 11:29:11 +08:00
background: #FFFFFF;
2024-07-26 14:50:20 +08:00
border-radius: 20rpx;
2024-07-23 22:16:38 +08:00
padding: 0px 12px;
margin: 20rpx auto 0px auto;
2024-06-24 11:29:11 +08:00
}
2024-07-26 14:50:20 +08:00
2024-06-24 11:29:11 +08:00
.item-detail {
padding: 5rpx 15rpx;
border-radius: 10rpx;
font-size: 28rpx;
color: white;
background-color: #007AFF;
}
2024-07-26 14:50:20 +08:00
2024-06-24 11:29:11 +08:00
.item-line {
position: absolute;
bottom: 0rpx;
left: 0rpx;
height: 1px;
width: 100%;
background-color: #eeeeee;
}
/deep/.zp-paging-container {
2024-06-24 11:29:11 +08:00
background-color: #f7f7f7;
width: 100%;
2024-06-24 11:29:11 +08:00
}
/deep/.zp-paging-container-content {
2024-07-26 14:50:20 +08:00
width: 100%;
2024-06-24 11:29:11 +08:00
margin: 0 auto;
}
.fenlei {
2024-06-24 11:29:11 +08:00
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.index-fenl-title {
2024-06-24 11:29:11 +08:00
width: 81rpx;
text-align: center;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
font-weight: bold;
font-size: 34rpx;
color: #019C88;
2024-06-24 11:29:11 +08:00
}
.index-fenl-title-bottom {
2024-06-24 11:29:11 +08:00
position: absolute;
bottom: 0;
margin-bottom: 0px;
width: 81rpx;
height: 14rpx;
border-radius: 7rpx;
background: linear-gradient(-48deg, rgba(1, 156, 136, 0.35), rgba(45, 196, 142, 0.35));
2024-06-24 11:29:11 +08:00
}
/deep/.uni-searchbar__cancel {
2024-06-24 11:29:11 +08:00
display: none;
}
.search-btn {
2024-06-24 11:29:11 +08:00
text-align: center;
2024-08-08 08:54:21 +08:00
color: #019c88;
font-weight: bold;
2024-06-24 11:29:11 +08:00
position: absolute;
2024-08-08 08:54:21 +08:00
right: 19px;
top: 0px;
margin-top: 12px;
font-size: 14px;
display: flex;
align-items: center;
2024-06-24 11:29:11 +08:00
}
/deep/.uni-searchbar__box-icon-search,
.search-btn {
2024-07-23 22:16:38 +08:00
width: 110rpx;
height: 50rpx;
2024-08-08 08:54:21 +08:00
// width: 110rpx;
// height: 50rpx;
// background: #18A689;
// border-radius: 31rpx;
2024-06-24 11:29:11 +08:00
}
/deep/.uni-searchbar__box {
2024-08-08 08:54:21 +08:00
height: 34px;
2024-07-23 22:16:38 +08:00
border-radius: 30px !important;
2024-06-24 11:29:11 +08:00
background-color: #fff !important;
2024-07-23 22:16:38 +08:00
border: 1px solid #09a28a;
2024-06-24 11:29:11 +08:00
display: flex;
flex-direction: row;
flex-flow: row-reverse;
position: relative;
}
/deep/.uni-searchbar {
2024-08-08 08:54:21 +08:00
width: 250px;
2024-06-24 11:29:11 +08:00
border-radius: 31rpx;
2024-08-08 08:54:21 +08:00
padding-right: 24rpx;
2024-06-24 11:29:11 +08:00
}
.service-head-top-left image {
2024-07-23 22:16:38 +08:00
width: 20px;
height: 20rpx;
margin-right: 5px;
2024-07-23 22:16:38 +08:00
margin-left: 10rpx;
2024-06-24 11:29:11 +08:00
}
.service-head-top-left span {
2024-07-23 22:16:38 +08:00
width: 180rpx;
height: 60rpx;
background: url('../../static/images/headline.png') 0rpx 26rpx;
2024-07-23 22:16:38 +08:00
background-repeat: no-repeat;
2024-06-24 11:29:11 +08:00
font-weight: bold;
2024-07-23 22:16:38 +08:00
font-size: 34rpx;
2024-06-24 11:29:11 +08:00
color: #171717;
2024-07-23 22:16:38 +08:00
margin-top: 16rpx;
2024-06-24 11:29:11 +08:00
}
.service-head-top-left {
2024-06-24 11:29:11 +08:00
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.service-head-top {
2024-06-24 11:29:11 +08:00
width: 100%;
height: 51px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
background: linear-gradient(60deg, rgba(115, 212, 183, 0.2), rgba(227, 251, 244, 0.1), rgba(193, 236, 223, 0.35));
border-bottom: 1rpx solid #c4ede1;
}
.head-title {
font-weight: bold;
font-size: 32rpx;
color: #333333;
}
.title-font {
font-size: 30rpx;
color: #666666;
}
.value-font {
font-size: 30rpx;
color: #333333;
}
.margin-left-xs {
font-size: 32rpx;
font-weight: bold;
color: #111111;
}
/deep/.margin-top-sm {
margin-top: 3px;
}
.status-button {
font-weight: bold;
color: #019c88;
font-size: 31rpx;
}
.status-button-a {
font-weight: bold;
color: #ff932a;
}
.status-button-b {
font-weight: bold;
color: #7446fc;
}
.status-button-d {
font-weight: bold;
color: #888888;
}
.status-button-e {
font-weight: bold;
color: #999999;
}
.status-button-f {
font-weight: bold;
color: #019c88;
}
.status-button-g {
font-weight: bold;
color: #e04f3c;
}
.status-button-h {
font-weight: bold;
color: #965fb9;
}
.status-button-i {
font-weight: bold;
color: #002ea4;
}
.status-button-g {
font-weight: bold;
color: #43b943;
}
.status-button-h {
font-weight: bold;
color: #1bcada;
}
.status-num {
margin-right: 15rpx;
}
</style>