Initial commit: 积分兑换电商平台多商户版 MER-2.2

Made-with: Cursor
This commit is contained in:
apple
2026-03-08 20:07:52 +08:00
commit de02c8a3e1
4954 changed files with 703009 additions and 0 deletions

View File

@@ -0,0 +1,137 @@
<template>
<view>
<TopHeaderfixed></TopHeaderfixed>
<view class="borderPad relative">
<view v-if="info.status" class="header borderPad">
<view v-if="info.refundStatus == 3" class="state">已退款</view>
<!-- <!-- 次卡商品部分核销 -->
<view v-else-if="info.status == 3 && punchCardOrderInfo.productType == ProductTypeEnum.PunchCard &&
punchCardOrderInfo.verifyRemainingTimes!=punchCardOrderInfo.verifyTotalTimes" class="state">
部分使用
</view>
<view v-else class="state">{{ info.status | orderStatusFilter }}</view>
<view v-if="[1,2].includes(info.status)&&info.refundStatus != 3" class="data">用户已下单,请及时发货哦~</view>
<view v-if="info.refundStatus != 3&&info.status == 4" class="data">货物正在运输中,等待用户确认收货!</view>
<view v-if="info.refundStatus != 3&&info.status == 3" class="data">用户已下单,您可以联系用户使用!</view>
<view v-if="info.refundStatus != 3&&info.status == 5" class="data">用户已经确认收货啦,您可以联系用户索要好评呦!</view>
<view v-if="info.refundStatus != 3&&info.status == 6" class="data">订单已经完成,您可以申请货款提现啦~</view>
<view v-if="info.refundStatus == 3" class="data">此订单退款已原路返回!</view>
</view>
<view v-if="info.serviceStatus" class="header">
<view class="state">
{{ info.serviceType | serviceTypeFilter }} · {{ info.serviceStatus | serviceStatusFilter }}
<text v-show="info.refundStatus > 0" class="ml-4"> - 已退款</text>
</view>
<view class="data">
预约时间:{{ info.reservationDate }}
<span class="ml20">{{ info.reservationTimeSlot }}</span>
</view>
</view>
<view class="remarks acea-row row-middle" @click="$emit('changeRemark')">
<text class="iconfont icon-ic_notes"></text>
<view class="mark-box ml-8 w-600 color-ccc" :class="remark ? 'color-333' : 'color-ccc'" style="text-align: left;">
{{remark ? remark : `${title}未备注,点击添加备注信息`}}
</view>
</view>
</view>
</view>
</template>
<script>
import TopHeaderfixed from "../../../../components/TopHeaderfixed";
import {
ProductTypeEnum,
ProductMarketingTypeEnum
} from "@/enums/productEnums";
export default {
name: "orderHeader",
props: {
// 备注
remark: {
type: String,
default: ''
},
//订单对象
info: {
type: Object,
default: function() {
return {};
}
},
title: {
type: String,
default: '订单'
}
},
components: {
TopHeaderfixed
},
data() {
return {
getHeight: this.$util.getWXStatusHeight(),
change: false,
status: '',
ProductTypeEnum,
}
},
computed: {
// 次卡商品信息
punchCardOrderInfo() {
if (this.info.orderDetailList)
return this.info.orderDetailList[0]
}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.header {
padding: 40rpx 0 30rpx 12rpx;
.state {
font-weight: 500;
font-size: 32rpx;
line-height: 50rpx;
color: #FFFFFF;
}
.data {
margin-top: 8rpx;
font-size: 28rpx;
line-height: 36rpx;
color: #FFFFFF;
}
}
.remarks {
width: 100%;
background: #FFFFFF;
display: flex;
padding: 32rpx 0 32rpx 32rpx;
border-radius: 24rpx;
background: #FFFFFF;
.iconfont {
font-size: 32rpx;
color: #000000;
}
input {
flex: 1;
height: 100rpx;
padding-left: 20rpx;
font-size: 28rpx;
}
input::placeholder {
color: #CCCCCC;
}
}
.color-ccc {
color: #ccc;
}
.color-333 {
color: #333;
}
</style>

View File

@@ -0,0 +1,144 @@
<template>
<view class="order-detail-table" :class="{ 'has-style': hasStyle }">
<view class="order-detail-title" v-if="title">{{ title }}</view>
<view class="order-table-item" v-for="(item, pindex) in list" :key="pindex" :class="{ 'mini-gap': miniGap }">
<view v-show="!item.isShow" class="order-label">{{ item.label }}</view>
<view class="order-value image-list" v-if="item.isImage && !item.isShow" @click="handlePreviewImage">
<image :src="img" mode="aspectFill" v-for="(img, index) in item.value" :key="index"
class="image-item" :data-index="index" :data-pindex="pindex" />
</view>
<view class="order-value acea-row row-middle row-right" :class="[item.overflow ? 'overflow-text' : '', item.isPhone ? 'phone-value' : '', item.isDate ? 'is-date' : '', item.value && item.value.length > 2 ? 'not-empty' : '']"
v-if="!item.isImage && !item.isShow">
{{ item.value | filterEmpty }}
<text @click="handleMakeCallPhone(item.value)" class="iconfont icon-ic_phone" v-if="item.isPhone" />
<view v-if="item.copy" class="copy-btn-box" @click="handleSetClipboard(item.value)">
<text>复制</text>
</view>
<!-- <button v-if="item.copy" class="copy-btn ml-16 f-s-28" @click="handleSetClipboard(item.value)">复制</button> -->
</view>
</view>
</view>
</template>
<script>
import {handleMakeCallPhone, handleSetClipboard} from "../../../../libs/order";
export default {
name: "OrderDetailTable",
props: {
hasStyle: {
type: Boolean,
default: true
},
title: {
type: String,
default: ""
},
miniGap: {
type: Boolean,
default: false
},
list: {
type: Array,
default: () => []
}
},
data() {
return {
};
},
methods: {
handleMakeCallPhone,
handleSetClipboard,
handlePreviewImage(e) {
const { index, pindex } = e.target.dataset;
if (index === undefined || pindex === undefined) return;
uni.previewImage({
current: +index,
urls: this.list[pindex].value
});
}
}
}
</script>
<style scoped lang="scss">
.copy-btn{
color: #2291F8FF;
}
.order-detail-table {
font-size: 28rpx;
color: #333333FF;
&.has-style {
margin-top: 20rpx;
background-color: #fff;
border-radius: 24rpx;
padding: 32rpx 24rpx;
}
}
.order-detail-title {
font-weight: 500;
font-size: 30rpx;
}
.order-table-item {
display: flex;
margin-top: 32rpx;
align-items: center;
&.mini-gap {
// margin-top: 32rpx;
}
}
.order-label {
min-width: 134rpx;
// width: 170rpx;
flex-shrink: 0;
}
.order-value {
&.is-date {
min-width: 290rpx;
&.not-empty {
text-align: initial;
}
}
margin-left: auto;
text-align: right;
&.phone-value {
display: flex;
align-items: center;
.iconfont {
margin-left: 12rpx;
color: #2A7EFB;
}
}
&.image-list {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 12rpx;
.image-item {
width: 106rpx;
height: 106rpx;
border-radius: 12rpx;
}
}
.copy-btn-box {
background: #F5F5F5;
border-radius: 200rpx 200rpx 200rpx 200rpx;
padding: 0 12rpx;
margin-left: 8rpx;
font-size: 22rpx;
}
}
</style>