Compare commits
No commits in common. "48b26483c04e5c00a5e9f47c7916c91e609b89a7" and "82b4ba8b0772681943b3d2ac2665c00cee0f9ca0" have entirely different histories.
48b26483c0
...
82b4ba8b07
@ -1,217 +0,0 @@
|
|||||||
page {
|
|
||||||
background-color: #f0f2f5;
|
|
||||||
min-height: 100vh;
|
|
||||||
overflow-y: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container {
|
|
||||||
padding: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 商品图片区域 */
|
|
||||||
.goods-scroll {
|
|
||||||
width: 96%;
|
|
||||||
white-space: nowrap;
|
|
||||||
margin-bottom: 30rpx;
|
|
||||||
padding: 20rpx 15rpx;
|
|
||||||
background-color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.goods-list {
|
|
||||||
display: inline-flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.goods-item {
|
|
||||||
width: 120rpx;
|
|
||||||
height: 120rpx;
|
|
||||||
margin-right: 16rpx;
|
|
||||||
border-radius: 8rpx;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.goods-img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 订单编号 */
|
|
||||||
.order-info {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
padding: 20rpx 0;
|
|
||||||
border-bottom: 1rpx solid #EEEEEE;
|
|
||||||
margin-bottom: 30rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.order-label {
|
|
||||||
font-size: 26rpx;
|
|
||||||
color: #9a9a9a;
|
|
||||||
}
|
|
||||||
|
|
||||||
.order-value {
|
|
||||||
font-size: 26rpx;
|
|
||||||
color: #333333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.goods{
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: flex-start;
|
|
||||||
gap: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 货品图 */
|
|
||||||
.goodsImg{
|
|
||||||
display: flex;
|
|
||||||
width: 100rpx;
|
|
||||||
height: 100rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 评分区域 */
|
|
||||||
.rating{
|
|
||||||
width: 460rpx;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
margin: 0 0 0rpx 55rpx;
|
|
||||||
color: #a6a6a6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rating-section {
|
|
||||||
background-color: #FFFFFF;
|
|
||||||
border-radius: 16rpx;
|
|
||||||
padding: 20rpx;
|
|
||||||
margin-bottom: 30rpx;
|
|
||||||
height: 80vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rating-item {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 30rpx;
|
|
||||||
margin-top: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rating-item:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rating-label {
|
|
||||||
width: 160rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #333333;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 评价输入 */
|
|
||||||
.comment-section {
|
|
||||||
padding: 20rpx;
|
|
||||||
margin-bottom: 30rpx;
|
|
||||||
border-top: 1rpx solid #f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-input {
|
|
||||||
width: 100%;
|
|
||||||
min-height: 100rpx;
|
|
||||||
font-size: 26rpx;
|
|
||||||
color: #333333;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 图片上传 */
|
|
||||||
.upload-section {
|
|
||||||
/* background-color: #FFFFFF; */
|
|
||||||
border-radius: 16rpx;
|
|
||||||
padding: 20rpx;
|
|
||||||
margin-bottom: 40rpx;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.upload-btn {
|
|
||||||
display: flex;
|
|
||||||
width: 150rpx;
|
|
||||||
height: 150rpx;
|
|
||||||
padding: 15rpx;
|
|
||||||
background-color: #f6f6f6;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 20rpx;
|
|
||||||
border-radius: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.upload-icon {
|
|
||||||
width: 60rpx;
|
|
||||||
height: 50rpx;
|
|
||||||
margin-right: 10rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.upload-text {
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #333333;
|
|
||||||
margin: 10rpx 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.upload-count {
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #999999;
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-list {
|
|
||||||
display: flex;
|
|
||||||
/* flex-wrap: wrap; */
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-item {
|
|
||||||
width: 170rpx;
|
|
||||||
height: 170rpx;
|
|
||||||
margin-right: 20rpx;
|
|
||||||
margin-bottom: 20rpx;
|
|
||||||
position: relative;
|
|
||||||
border-radius: 20rpx;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.uploaded-img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
}
|
|
||||||
|
|
||||||
.delete-btn {
|
|
||||||
position: absolute;
|
|
||||||
top: -10rpx;
|
|
||||||
right: -10rpx;
|
|
||||||
width: 36rpx;
|
|
||||||
height: 36rpx;
|
|
||||||
background-color: rgba(0, 0, 0, 0.5);
|
|
||||||
border-radius: 50%;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.delete-icon {
|
|
||||||
color: #FFFFFF;
|
|
||||||
font-size: 24rpx;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 提交按钮 */
|
|
||||||
.submit-btn {
|
|
||||||
width: 90%;
|
|
||||||
height: 98rpx;
|
|
||||||
background-color: #ff4117;
|
|
||||||
border-radius: 49rpx;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
margin-top: 20rpx;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-text {
|
|
||||||
font-size: 32rpx;
|
|
||||||
color: #FFFFFF;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
@ -1,182 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view class="container">
|
|
||||||
|
|
||||||
<!-- 评分区域 -->
|
|
||||||
<view class="rating-section">
|
|
||||||
<!-- 订单编号 -->
|
|
||||||
<view class="order-info">
|
|
||||||
<text class="order-label">订单编号</text>
|
|
||||||
<text class="order-value">38757328485</text>
|
|
||||||
</view>
|
|
||||||
<view class="goods">
|
|
||||||
<view>
|
|
||||||
<image src="http://localhost:8080/test.png" class="goodsImg"></image>
|
|
||||||
</view>
|
|
||||||
<view class="rating">
|
|
||||||
<view>很差</view>
|
|
||||||
<view>差</view>
|
|
||||||
<view>一般</view>
|
|
||||||
<view>不错</view>
|
|
||||||
<view>满意</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<!-- 商品品质 -->
|
|
||||||
<view class="rating-item">
|
|
||||||
<text class="rating-label">商品品质</text>
|
|
||||||
<u-rate
|
|
||||||
v-model="qualityRating"
|
|
||||||
size="40"
|
|
||||||
active-color="#FFB400"
|
|
||||||
inactive-color="#EEEEEE"
|
|
||||||
gutter="60"
|
|
||||||
></u-rate>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<!-- 配送速度 -->
|
|
||||||
<view class="rating-item">
|
|
||||||
<text class="rating-label">配送速度</text>
|
|
||||||
<u-rate
|
|
||||||
v-model="speedRating"
|
|
||||||
size="40"
|
|
||||||
active-color="#FFB400"
|
|
||||||
inactive-color="#EEEEEE"
|
|
||||||
gutter="60"
|
|
||||||
></u-rate>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<!-- 快递员服务 -->
|
|
||||||
<view class="rating-item">
|
|
||||||
<text class="rating-label">快递员服务</text>
|
|
||||||
<u-rate
|
|
||||||
v-model="serviceRating"
|
|
||||||
size="40"
|
|
||||||
active-color="#FFB400"
|
|
||||||
inactive-color="#EEEEEE"
|
|
||||||
gutter="60"
|
|
||||||
></u-rate>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<!-- 评价输入 -->
|
|
||||||
<view class="comment-section">
|
|
||||||
<textarea
|
|
||||||
class="comment-input"
|
|
||||||
placeholder="展开说说对商品的想法吧…"
|
|
||||||
v-model="comment"
|
|
||||||
></textarea>
|
|
||||||
</view>
|
|
||||||
<!-- 图片上传 -->
|
|
||||||
<view class="upload-section">
|
|
||||||
<view class="image-list">
|
|
||||||
<view
|
|
||||||
class="image-item"
|
|
||||||
v-for="(img, index) in imageList"
|
|
||||||
:key="index"
|
|
||||||
>
|
|
||||||
<image :src="img" class="uploaded-img"></image>
|
|
||||||
<view class="delete-btn" @click="deleteImage(index)">
|
|
||||||
<text class="delete-icon">×</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view
|
|
||||||
class="upload-btn"
|
|
||||||
@click="chooseImage"
|
|
||||||
v-if="imageList.length < 3"
|
|
||||||
>
|
|
||||||
<image
|
|
||||||
src="http://localhost:8080/upload.png"
|
|
||||||
class="upload-icon"
|
|
||||||
></image>
|
|
||||||
<view class="upload-text">上传图片</view>
|
|
||||||
<view class="upload-count">({{ imageList.length }}/3)</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<!-- 提交按钮 -->
|
|
||||||
<view class="submit-btn" @click="submitEvaluate">
|
|
||||||
<text class="btn-text">提交</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import uImage from "../../../uni_modules/uview-ui/components/u--image/u--image.vue";
|
|
||||||
export default {
|
|
||||||
components: { uImage },
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
// 商品列表
|
|
||||||
goods: [
|
|
||||||
{ image: "http://localhost:8080/order_index1.png" },
|
|
||||||
{ image: "http://localhost:8080/order_index2.png" },
|
|
||||||
{ image: "http://localhost:8080/order_index3.png" },
|
|
||||||
{ image: "http://localhost:8080/order_index4.png" },
|
|
||||||
{ image: "http://localhost:8080/order_index5.png" },
|
|
||||||
{ image: "http://localhost:8080/order_index1.png" },
|
|
||||||
{ image: "http://localhost:8080/order_index2.png" },
|
|
||||||
{ image: "http://localhost:8080/order_index3.png" },
|
|
||||||
{ image: "http://localhost:8080/order_index4.png" },
|
|
||||||
{ image: "http://localhost:8080/order_index5.png" },
|
|
||||||
],
|
|
||||||
// 评分数据
|
|
||||||
qualityRating: 5,
|
|
||||||
speedRating: 0,
|
|
||||||
serviceRating: 0,
|
|
||||||
// 评价内容
|
|
||||||
comment: "",
|
|
||||||
// 图片列表
|
|
||||||
imageList: [],
|
|
||||||
};
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// 选择图片
|
|
||||||
chooseImage() {
|
|
||||||
if (this.imageList.length >= 3) {
|
|
||||||
uni.showToast({
|
|
||||||
title: "最多上传3张图片",
|
|
||||||
icon: "none",
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
uni.chooseImage({
|
|
||||||
count: 3 - this.imageList.length,
|
|
||||||
sizeType: ["original", "compressed"],
|
|
||||||
sourceType: ["album", "camera"],
|
|
||||||
success: (res) => {
|
|
||||||
this.imageList = this.imageList.concat(res.tempFilePaths);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 删除图片
|
|
||||||
deleteImage(index) {
|
|
||||||
this.imageList.splice(index, 1);
|
|
||||||
},
|
|
||||||
// 提交评价
|
|
||||||
submitEvaluate() {
|
|
||||||
if (!this.comment.trim() && this.imageList.length === 0) {
|
|
||||||
uni.showToast({
|
|
||||||
title: "请至少填写评价内容或上传图片",
|
|
||||||
icon: "none",
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// 这里添加提交评价的API调用逻辑
|
|
||||||
uni.showToast({
|
|
||||||
title: "评价提交成功",
|
|
||||||
icon: "success",
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
|
||||||
uni.navigateBack();
|
|
||||||
}, 1500);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
onLoad(options) {
|
|
||||||
console.log("🚀 ~ onLoad ~ options:", options);
|
|
||||||
const itemObj = JSON.parse(decodeURIComponent(options.item));
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
@import url("./index.css");
|
|
||||||
</style>
|
|
||||||
@ -1,100 +0,0 @@
|
|||||||
.order-list {
|
|
||||||
padding: 15px;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.order-item {
|
|
||||||
background-color: white;
|
|
||||||
border-radius: 10px;
|
|
||||||
padding: 15px;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.order-header {
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.order-number {
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-list {
|
|
||||||
border-top: 1px solid #eee;
|
|
||||||
padding-top: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-item {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
padding: 10px 0;
|
|
||||||
border-bottom: 1px solid #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-item:last-child {
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-info {
|
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-img {
|
|
||||||
position: relative;
|
|
||||||
width: 80px;
|
|
||||||
height: 80px;
|
|
||||||
margin-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-img image {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
background-color: #ff7d00;
|
|
||||||
color: white;
|
|
||||||
font-size: 12px;
|
|
||||||
padding: 2px 5px;
|
|
||||||
border-radius: 3px 0 3px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-details {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-name {
|
|
||||||
font-size: 14px;
|
|
||||||
color: #333;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-spec,
|
|
||||||
.product-unit {
|
|
||||||
font-size: 12px;
|
|
||||||
color: #666;
|
|
||||||
margin-bottom: 3px;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.evaluate-btn {
|
|
||||||
background-color: #ff7d00;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
border-radius: 10px;
|
|
||||||
/* padding: 8px 15px; */
|
|
||||||
font-size: 14px;
|
|
||||||
min-width: 80px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.evaluate-btn::after {
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
@ -1,93 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view class="order-list">
|
|
||||||
<view class="order-item" v-for="(item, index) in orderList" :key="index">
|
|
||||||
<view class="order-header">
|
|
||||||
<text class="order-number">{{ item.orderNumber }}</text>
|
|
||||||
</view>
|
|
||||||
<view class="product-list">
|
|
||||||
<view class="product-item" v-for="(product, pIndex) in item.products" :key="pIndex">
|
|
||||||
<view class="product-info">
|
|
||||||
<view class="product-img">
|
|
||||||
<image :src="product.imageUrl" mode="aspectFit"></image>
|
|
||||||
<view class="tag" v-if="product.tag">{{ product.tag }}</view>
|
|
||||||
</view>
|
|
||||||
<view class="product-details">
|
|
||||||
<text class="product-name">{{ product.name }}</text>
|
|
||||||
<text class="product-spec">{{ product.spec }}</text>
|
|
||||||
<text class="product-unit">{{ product.unit }}</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<button class="evaluate-btn" @click="evaluateOrder(product)">评价</button>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { request, NavgateTo } from '../../../utils';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
orderList: [
|
|
||||||
{
|
|
||||||
orderNumber: '4534534255',
|
|
||||||
products: [
|
|
||||||
{
|
|
||||||
imageUrl: 'http://localhost:8080/product.png',
|
|
||||||
tag: '当日达',
|
|
||||||
name: '货品名称',
|
|
||||||
spec: '货品规格',
|
|
||||||
unit: '货品单位'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
imageUrl: 'http://localhost:8080/product.png',
|
|
||||||
tag: '当日达',
|
|
||||||
name: '货品名称',
|
|
||||||
spec: '货品规格',
|
|
||||||
unit: '货品单位'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
orderNumber: '54352342331',
|
|
||||||
products: [
|
|
||||||
{
|
|
||||||
imageUrl: 'http://localhost:8080/product.png',
|
|
||||||
tag: '',
|
|
||||||
name: '货品名称',
|
|
||||||
spec: '货品规格',
|
|
||||||
unit: '货品单位'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
imageUrl: 'http://localhost:8080/product.png',
|
|
||||||
tag: '',
|
|
||||||
name: '货品名称',
|
|
||||||
spec: '货品规格',
|
|
||||||
unit: '货品单位'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
imageUrl: 'http://localhost:8080/product.png',
|
|
||||||
tag: '',
|
|
||||||
name: '货品名称',
|
|
||||||
spec: '货品规格',
|
|
||||||
unit: '货品单位'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
evaluateOrder(item) {
|
|
||||||
console.log("🚀 ~ evaluateOrder ~ orderNumber:", item)
|
|
||||||
NavgateTo(`../evaluate/index?item=${JSON.stringify(item)}`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
@import url("./awaitRated.css");
|
|
||||||
</style>
|
|
||||||
@ -11,9 +11,6 @@ page {
|
|||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
padding: 0 20rpx;
|
padding: 0 20rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
|
||||||
overflow-x: auto;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabItem {
|
.tabItem {
|
||||||
|
|||||||
@ -12,13 +12,8 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view v-if="selectedTab === 5">
|
<view v-for="(category, catIndex) in categoryList" :key="catIndex">
|
||||||
<awaitRated />
|
<view v-if="selectedTab === catIndex">
|
||||||
</view>
|
|
||||||
<view v-if="selectedTab === 6">
|
|
||||||
<rated />
|
|
||||||
</view>
|
|
||||||
<view v-else>
|
|
||||||
<view v-for="(item, index) in orderData" :key="index">
|
<view v-for="(item, index) in orderData" :key="index">
|
||||||
<view class="contentList">
|
<view class="contentList">
|
||||||
<!-- 订单头部信息 -->
|
<!-- 订单头部信息 -->
|
||||||
@ -71,24 +66,33 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="btn-group" v-if="item.order_status === 6">
|
<view class="btn-group" v-if="item.order_status === 6">
|
||||||
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
<button class="pay-btn" @click="cancelOrder">再来一单</button>
|
<button class="pay-btn" @click="cancelOrder">
|
||||||
|
再来一单
|
||||||
|
</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-group" v-if="item.order_status === 4">
|
<view class="btn-group" v-if="item.order_status === 4">
|
||||||
<button class="cancel-btn" @click="checkLogistics">
|
<button class="cancel-btn" @click="checkLogistics">
|
||||||
查看物流
|
查看物流
|
||||||
</button>
|
</button>
|
||||||
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
<button class="pay-btn" @click="cancelOrder">再来一单</button>
|
<button class="pay-btn" @click="cancelOrder">
|
||||||
|
再来一单
|
||||||
|
</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-group" v-if="item.order_status === 5">
|
<view class="btn-group" v-if="item.order_status === 5">
|
||||||
<button class="cancel-btn" @click="orderEvaluate">
|
<button class="cancel-btn" @click="orderEvaluate">
|
||||||
服务评价
|
服务评价
|
||||||
</button>
|
</button>
|
||||||
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
<button class="pay-btn" @click="cancelOrder">再来一单</button>
|
<button class="pay-btn" @click="cancelOrder">
|
||||||
|
再来一单
|
||||||
|
</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-group" v-if="item.order_status === 7">
|
<view class="btn-group" v-if="item.order_status === 7">
|
||||||
<button class="pay-btn" @click="cancelOrder">再来一单</button>
|
<button class="pay-btn" @click="cancelOrder">
|
||||||
|
再来一单
|
||||||
|
</button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -100,15 +104,9 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { picUrl, NavgateTo, request } from "../../../utils";
|
import { picUrl, NavgateTo, request } from "../../../utils";
|
||||||
import { apiArr } from "../../../api/order";
|
import { apiArr } from "../../../api/order"
|
||||||
import Rated from "./rated.vue";
|
|
||||||
import AwaitRated from "./awaitRated.vue";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
|
||||||
Rated,
|
|
||||||
AwaitRated,
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
categoryList: [
|
categoryList: [
|
||||||
@ -117,8 +115,6 @@ export default {
|
|||||||
{ category_name: "待发货" },
|
{ category_name: "待发货" },
|
||||||
{ category_name: "配送中" },
|
{ category_name: "配送中" },
|
||||||
{ category_name: "已完成" },
|
{ category_name: "已完成" },
|
||||||
{ category_name: "待评价" },
|
|
||||||
{ category_name: "已评价" },
|
|
||||||
],
|
],
|
||||||
selectedTab: 0,
|
selectedTab: 0,
|
||||||
orderData:[],
|
orderData:[],
|
||||||
@ -127,9 +123,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
selectTab(index, item) {
|
selectTab(index, item) {
|
||||||
this.selectedTab = index;
|
this.selectedTab = index;
|
||||||
if (index !== 6) {
|
this.getOrderList()
|
||||||
this.getOrderList();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
cancelOrder() {
|
cancelOrder() {
|
||||||
// 取消订单逻辑
|
// 取消订单逻辑
|
||||||
@ -147,9 +141,7 @@ export default {
|
|||||||
console.log("🚀 ~ goToPay ~ goToPay:", "去支付...");
|
console.log("🚀 ~ goToPay ~ goToPay:", "去支付...");
|
||||||
},
|
},
|
||||||
toDetails(order_status) {
|
toDetails(order_status) {
|
||||||
NavgateTo(
|
NavgateTo(`/packages/myOrders/orderDetails/index?order_status=${order_status}`);
|
||||||
`/packages/myOrders/orderDetails/index?order_status=${order_status}`
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
checkLogistics() {
|
checkLogistics() {
|
||||||
@ -163,28 +155,28 @@ export default {
|
|||||||
getOrderStatus(order_status){
|
getOrderStatus(order_status){
|
||||||
switch(order_status){
|
switch(order_status){
|
||||||
case 1:
|
case 1:
|
||||||
return "待付款";
|
return '待付款'
|
||||||
case 2:
|
case 2:
|
||||||
return "支付中";
|
return '支付中'
|
||||||
case 3:
|
case 3:
|
||||||
return "待发货";
|
return '待发货'
|
||||||
case 4:
|
case 4:
|
||||||
return "配送中";
|
return '配送中'
|
||||||
case 5:
|
case 5:
|
||||||
return "已完成";
|
return '已完成'
|
||||||
case 6:
|
case 6:
|
||||||
return "已取消";
|
return '已取消'
|
||||||
case 7:
|
case 7:
|
||||||
return "退款中";
|
return '退款中'
|
||||||
case 8:
|
case 8:
|
||||||
return "已退款";
|
return '已退款'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getOrderList(){
|
getOrderList(){
|
||||||
request(apiArr.orderList, "POST", {
|
request(apiArr.orderList, "POST", {
|
||||||
user_id: uni.getStorageSync("userId"),
|
user_id: uni.getStorageSync('userId')
|
||||||
}).then((res) => {
|
}).then(res => {
|
||||||
const orderList = res.order_list || [];
|
const orderList = res.order_list || [];
|
||||||
let filteredData = orderList;
|
let filteredData = orderList;
|
||||||
|
|
||||||
@ -193,18 +185,16 @@ export default {
|
|||||||
1: 1, // 待付款
|
1: 1, // 待付款
|
||||||
2: 3, // 待发货
|
2: 3, // 待发货
|
||||||
3: 4, // 配送中
|
3: 4, // 配送中
|
||||||
4: 5, // 已完成
|
4: 5 // 已完成
|
||||||
};
|
};
|
||||||
const targetStatus = statusMap[this.selectedTab];
|
const targetStatus = statusMap[this.selectedTab];
|
||||||
if (targetStatus) {
|
if (targetStatus) {
|
||||||
filteredData = orderList.filter(
|
filteredData = orderList.filter(item => item.order_status === targetStatus);
|
||||||
(item) => item.order_status === targetStatus
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.orderData = filteredData;
|
this.orderData = filteredData;
|
||||||
});
|
})
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
|||||||
@ -1,113 +0,0 @@
|
|||||||
.evaluation-container {
|
|
||||||
padding: 20rpx;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
min-height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.order-header {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
padding: 15rpx 0;
|
|
||||||
border-bottom: 1rpx solid #eee;
|
|
||||||
margin-bottom: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.order-number {
|
|
||||||
font-size: 32rpx;
|
|
||||||
font-weight: 600;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.order-date {
|
|
||||||
font-size: 26rpx;
|
|
||||||
color: #999;
|
|
||||||
}
|
|
||||||
|
|
||||||
.evaluation-content {
|
|
||||||
background: #fff;
|
|
||||||
border-radius: 10rpx;
|
|
||||||
padding: 20rpx;
|
|
||||||
margin-bottom: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.evaluation-text {
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #333;
|
|
||||||
line-height: 40rpx;
|
|
||||||
margin-bottom: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-list {
|
|
||||||
display: flex;
|
|
||||||
gap: 15rpx;
|
|
||||||
padding: 10rpx 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-item {
|
|
||||||
width: 140rpx;
|
|
||||||
height: 140rpx;
|
|
||||||
border: 1rpx dashed #ddd;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-item image {
|
|
||||||
width: 80rpx;
|
|
||||||
height: 80rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-text {
|
|
||||||
font-size: 24rpx;
|
|
||||||
color: #999;
|
|
||||||
margin-top: 10rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-info {
|
|
||||||
background: #fff;
|
|
||||||
border-radius: 10rpx;
|
|
||||||
padding: 20rpx;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-img {
|
|
||||||
position: relative;
|
|
||||||
margin-right: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-img image {
|
|
||||||
width: 120rpx;
|
|
||||||
height: 120rpx;
|
|
||||||
border-radius: 8rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
background: #ff7a00;
|
|
||||||
color: #fff;
|
|
||||||
font-size: 20rpx;
|
|
||||||
padding: 2rpx 8rpx;
|
|
||||||
margin-right: 5rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-details {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-name {
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #333;
|
|
||||||
margin-bottom: 10rpx;
|
|
||||||
line-height: 40rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-specs {
|
|
||||||
display: flex;
|
|
||||||
gap: 20rpx;
|
|
||||||
font-size: 26rpx;
|
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
@ -1,69 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view class="evaluation-container">
|
|
||||||
<!-- 订单头部信息 -->
|
|
||||||
<view class="order-header">
|
|
||||||
<text class="order-number">{{ orderInfo.orderNumber }}</text>
|
|
||||||
<text class="order-date">{{ orderInfo.date }}</text>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<!-- 评价内容区域 -->
|
|
||||||
<view class="evaluation-content">
|
|
||||||
<text class="evaluation-text">{{ evaluationInfo.content }}</text>
|
|
||||||
|
|
||||||
<!-- 评价图片区域 -->
|
|
||||||
<view class="image-list">
|
|
||||||
<view class="image-item" v-for="(img, index) in evaluationInfo.images" :key="index">
|
|
||||||
<image :src="img.url" mode="aspectFill"></image>
|
|
||||||
<text class="image-text">{{ img.text }}</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<!-- 商品信息区域 -->
|
|
||||||
<view class="product-info">
|
|
||||||
<view class="product-img">
|
|
||||||
<image :src="productInfo.imageUrl" mode="aspectFit"></image>
|
|
||||||
<view class="tag" v-for="(tag, index) in productInfo.tags" :key="index">{{ tag }}</view>
|
|
||||||
</view>
|
|
||||||
<view class="product-details">
|
|
||||||
<text class="product-name">{{ productInfo.name }}</text>
|
|
||||||
<view class="product-specs">
|
|
||||||
<text class="spec-item">{{ productInfo.spec }}</text>
|
|
||||||
<text class="spec-item">{{ productInfo.unit }}</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
orderInfo: {
|
|
||||||
orderNumber: '4534534255',
|
|
||||||
date: '2025-07-21'
|
|
||||||
},
|
|
||||||
evaluationInfo: {
|
|
||||||
content: '评价文字内容',
|
|
||||||
images: [
|
|
||||||
{ url: 'http://localhost:8080/eval1.png', text: '评价图片' },
|
|
||||||
{ url: 'http://localhost:8080/eval2.png', text: '评价图片' },
|
|
||||||
{ url: 'http://localhost:8080/eval3.png', text: '评价图片' }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
productInfo: {
|
|
||||||
imageUrl: 'http://localhost:8080/product.png',
|
|
||||||
tags: ['当日达', '当日达'],
|
|
||||||
name: '货品名称',
|
|
||||||
spec: '货品规格',
|
|
||||||
unit: '货品单位'
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
@import url("./rated.css");
|
|
||||||
</style>
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
page {
|
page {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding-bottom: 20rpx;
|
padding-bottom: 0;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28,6 +28,9 @@ image {
|
|||||||
padding-left: 20rpx;
|
padding-left: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.swiper {
|
.swiper {
|
||||||
height: 750rpx;
|
height: 750rpx;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
@ -104,45 +107,6 @@ image {
|
|||||||
margin-right: 40rpx;
|
margin-right: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 促销信息样式 */
|
|
||||||
.promotions-container {
|
|
||||||
padding: 15rpx;
|
|
||||||
background-color: #FFF;
|
|
||||||
border-radius: 10rpx;
|
|
||||||
margin: 15rpx 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.promotion-item {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.promotion-tag {
|
|
||||||
width: 80rpx;
|
|
||||||
text-align: center;
|
|
||||||
background-color: #ffe8e5;
|
|
||||||
color: #ff5029;
|
|
||||||
padding: 5rpx 15rpx;
|
|
||||||
border-radius: 10rpx;
|
|
||||||
font-size: 26rpx;
|
|
||||||
margin-right: 30rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.promotion-content {
|
|
||||||
font-size: 26rpx;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.promotion-content1 {
|
|
||||||
width: auto;
|
|
||||||
padding: 5rpx 10rpx;
|
|
||||||
text-align: center;
|
|
||||||
background-color: #ff6749;
|
|
||||||
color: white;
|
|
||||||
border-radius: 10rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.GG_Item {
|
.GG_Item {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
@ -169,7 +133,7 @@ image {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.GoodsMsg {
|
.GoodsMsg {
|
||||||
/* font-size: 30rpx; */
|
font-size: 33rpx;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
margin: 0 20rpx;
|
margin: 0 20rpx;
|
||||||
margin-top: 55rpx;
|
margin-top: 55rpx;
|
||||||
@ -187,14 +151,14 @@ image {
|
|||||||
.Msg_ItemTit {
|
.Msg_ItemTit {
|
||||||
width: 120rpx;
|
width: 120rpx;
|
||||||
margin-right: 100rpx;
|
margin-right: 100rpx;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
margin: 0 20rpx;
|
margin: 0 20rpx;
|
||||||
padding: 30rpx 0;
|
padding: 30rpx 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Msg_ItemCon {
|
.Msg_ItemCon {
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -309,7 +273,7 @@ image {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-size: 26rpx;
|
font-size: 28rpx;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -405,120 +369,3 @@ image {
|
|||||||
background: #FF370B;
|
background: #FF370B;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.priceInfo {
|
|
||||||
height: 450rpx;
|
|
||||||
padding: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.priceInfo-title {
|
|
||||||
/* font-size: 30rpx; */
|
|
||||||
font-weight: bolder;
|
|
||||||
margin: 15rpx 0 20rpx 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.priceInfo-content {
|
|
||||||
font-size: 26rpx;
|
|
||||||
color: #9c9c9c;
|
|
||||||
line-height: 1.7;
|
|
||||||
}
|
|
||||||
|
|
||||||
.priceInfo-content-title {
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fenge {
|
|
||||||
width: 100%;
|
|
||||||
height: 15rpx;
|
|
||||||
background-color: #f5f7fb;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 评价部分样式 */
|
|
||||||
.reviews-section {
|
|
||||||
padding: 20rpx;
|
|
||||||
background-color: #fff;
|
|
||||||
margin-bottom: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reviews-header {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reviews-header h3 {
|
|
||||||
/* font-size: 32rpx; */
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.view-all {
|
|
||||||
color: #999;
|
|
||||||
font-size: 26rpx;
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reviews-list {
|
|
||||||
margin-top: 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.review-item {
|
|
||||||
padding: 20rpx 0;
|
|
||||||
border-bottom: 1rpx solid #f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.review-user {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 15rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-avatar {
|
|
||||||
width: 60rpx;
|
|
||||||
height: 60rpx;
|
|
||||||
border-radius: 50%;
|
|
||||||
margin-right: 15rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-info {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-name {
|
|
||||||
font-size: 28rpx;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-purchase {
|
|
||||||
font-size: 24rpx;
|
|
||||||
color: #999;
|
|
||||||
margin: 10rpx 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.review-content {
|
|
||||||
font-size: 27rpx;
|
|
||||||
line-height: 1.5;
|
|
||||||
margin-bottom: 15rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.review-images {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 10rpx;
|
|
||||||
margin-bottom: 15rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.review-img {
|
|
||||||
width: 140rpx;
|
|
||||||
height: 140rpx;
|
|
||||||
border-radius: 8rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.review-time {
|
|
||||||
font-size: 24rpx;
|
|
||||||
color: #999;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
@ -63,88 +63,7 @@
|
|||||||
|
|
||||||
<div class="Tit">{{ currentGG.goods_name }}</div>
|
<div class="Tit">{{ currentGG.goods_name }}</div>
|
||||||
<div class="Msg">{{ currentGG.commodity_brief }}</div>
|
<div class="Msg">{{ currentGG.commodity_brief }}</div>
|
||||||
|
<div class="GoodsMsg">商品详情</div>
|
||||||
<div class="fenge"></div>
|
|
||||||
|
|
||||||
<!-- 促销信息区域 -->
|
|
||||||
<div class="promotions-container">
|
|
||||||
<div class="promotion-item">
|
|
||||||
<div class="promotion-tag">优惠</div>
|
|
||||||
<div class="promotion-content promotion-content1">满100减10</div>
|
|
||||||
</div>
|
|
||||||
<div class="promotion-item">
|
|
||||||
<div class="promotion-tag">限购</div>
|
|
||||||
<div class="promotion-content">限购5件</div>
|
|
||||||
</div>
|
|
||||||
<div class="promotion-item">
|
|
||||||
<div class="promotion-tag">阶梯价</div>
|
|
||||||
<div class="promotion-content">1~9件 9.5元/件;>10件 8.0元/件</div>
|
|
||||||
</div>
|
|
||||||
<div class="promotion-item">
|
|
||||||
<div class="promotion-tag">满赠</div>
|
|
||||||
<div class="promotion-content">满5赠1,满10赠3</div>
|
|
||||||
</div>
|
|
||||||
<div class="promotion-item">
|
|
||||||
<div class="promotion-tag">满减</div>
|
|
||||||
<div class="promotion-content">满100减5,满200减20</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="fenge"></div>
|
|
||||||
|
|
||||||
<div class="Msg_Item">
|
|
||||||
<div class="Msg_ItemTit">质检</div>
|
|
||||||
<div class="Msg_ItemCon">质检报告</div>
|
|
||||||
</div>
|
|
||||||
<div class="Msg_Item">
|
|
||||||
<div class="Msg_ItemTit">押金</div>
|
|
||||||
<div class="Msg_ItemCon">需另付押金:¥30.00(30天可退)</div>
|
|
||||||
</div>
|
|
||||||
<div class="Msg_Item">
|
|
||||||
<div class="Msg_ItemTit">配送</div>
|
|
||||||
<text class="Msg_ItemCon">
|
|
||||||
12:00前下单,预计8月21日送达;
|
|
||||||
12:00前下单,预计8月21日送达;
|
|
||||||
</text>
|
|
||||||
</div>
|
|
||||||
<div class="fenge"></div>
|
|
||||||
|
|
||||||
<!-- 评价部分 -->
|
|
||||||
<div class="reviews-section">
|
|
||||||
<div class="reviews-header">
|
|
||||||
<h3>评价({{ comments.length }})</h3>
|
|
||||||
<view class="view-all" @click="showPopup">查看全部 ></view>
|
|
||||||
</div>
|
|
||||||
<div class="reviews-list" v-if="comments.length > 0">
|
|
||||||
<div
|
|
||||||
class="review-item"
|
|
||||||
v-for="(comment, index) in comments"
|
|
||||||
:key="index"
|
|
||||||
>
|
|
||||||
<div class="review-user">
|
|
||||||
<image :src="comment.avatar" class="user-avatar"></image>
|
|
||||||
<div class="user-info">
|
|
||||||
<div class="user-name">{{ comment.username }}</div>
|
|
||||||
</div>
|
|
||||||
<div class="review-time">{{ comment.time }}</div>
|
|
||||||
</div>
|
|
||||||
<div class="user-purchase">已购 {{ comment.product }}</div>
|
|
||||||
<div class="review-content">{{ comment.content }}</div>
|
|
||||||
<div class="review-images" v-if="comment.images.length > 0">
|
|
||||||
<image
|
|
||||||
:src="img"
|
|
||||||
class="review-img"
|
|
||||||
v-for="(img, idx) in comment.images"
|
|
||||||
:key="idx"
|
|
||||||
></image>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="fenge"></div>
|
|
||||||
|
|
||||||
<h3 class="GoodsMsg">商品详情</h3>
|
|
||||||
|
|
||||||
<div class="Msg_Item">
|
<div class="Msg_Item">
|
||||||
<div class="Msg_ItemTit">商品编号</div>
|
<div class="Msg_ItemTit">商品编号</div>
|
||||||
@ -172,20 +91,6 @@
|
|||||||
></image>
|
></image>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="priceInfo">
|
|
||||||
<h3 class="priceInfo-title">价格说明</h3>
|
|
||||||
<div class="priceInfo-content">
|
|
||||||
<view>
|
|
||||||
<text class="priceInfo-content-title">划线价格:</text>
|
|
||||||
指商品的厂商指导价、正品零售价、市面常见价或该商品曾经展示过的销售价等,并非原价。仅供参考。
|
|
||||||
</view>
|
|
||||||
<view>
|
|
||||||
<text class="priceInfo-content-title">未划线价格:</text>
|
|
||||||
指商品的实时价格,不因表述的差异改变性质,具体成交价格根据商品参加活动,或使用优惠券等发生变化最终以订单结算价格为准。
|
|
||||||
</view>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 底部购物车 -->
|
<!-- 底部购物车 -->
|
||||||
<div class="Car">
|
<div class="Car">
|
||||||
<div class="car_left">
|
<div class="car_left">
|
||||||
@ -300,46 +205,6 @@
|
|||||||
<div class="shadowBox_btn" @click.stop="saveImg">保存海报</div>
|
<div class="shadowBox_btn" @click.stop="saveImg">保存海报</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 评价 查看详情 -->
|
|
||||||
<u-popup
|
|
||||||
:show="show"
|
|
||||||
round="20rpx"
|
|
||||||
mode="bottom"
|
|
||||||
@close="close"
|
|
||||||
@open="open"
|
|
||||||
>
|
|
||||||
<div class="reviews-section">
|
|
||||||
<div class="reviews-header">
|
|
||||||
<h3>评价</h3>
|
|
||||||
</div>
|
|
||||||
<div class="reviews-list" v-if="comments.length > 0">
|
|
||||||
<div
|
|
||||||
class="review-item"
|
|
||||||
v-for="(comment, index) in comments"
|
|
||||||
:key="index"
|
|
||||||
>
|
|
||||||
<div class="review-user">
|
|
||||||
<image :src="comment.avatar" class="user-avatar"></image>
|
|
||||||
<div class="user-info">
|
|
||||||
<div class="user-name">{{ comment.username }}</div>
|
|
||||||
</div>
|
|
||||||
<div class="review-time">{{ comment.time }}</div>
|
|
||||||
</div>
|
|
||||||
<div class="user-purchase">已购 {{ comment.product }}</div>
|
|
||||||
<div class="review-content">{{ comment.content }}</div>
|
|
||||||
<div class="review-images" v-if="comment.images.length > 0">
|
|
||||||
<image
|
|
||||||
:src="img"
|
|
||||||
class="review-img"
|
|
||||||
v-for="(img, idx) in comment.images"
|
|
||||||
:key="idx"
|
|
||||||
></image>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</u-popup>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -366,33 +231,6 @@ export default {
|
|||||||
currentGGIndex: "", //当前规格index
|
currentGGIndex: "", //当前规格index
|
||||||
|
|
||||||
carOrderList: [],
|
carOrderList: [],
|
||||||
// 新增评论数据
|
|
||||||
showReviewPopup: false,
|
|
||||||
comments: [
|
|
||||||
{
|
|
||||||
avatar: "http://localhost:8080/test.png",
|
|
||||||
username: "TP",
|
|
||||||
product: "库尔勒香梨 10kg/箱",
|
|
||||||
content:
|
|
||||||
"踏入这家位于街角的餐厅,木质门框与暖黄灯光交织出温馨氛围,墙面上手绘的食材插画画透着文艺气息,开放式厨房的设计让食客能看见厨师处理食材的全过程,第一印象便给人以干净与安心。",
|
|
||||||
images: ["http://localhost:8080/test.png"],
|
|
||||||
time: "2025-03-01 11:24:20",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
avatar: "http://localhost:8080/test.png",
|
|
||||||
username: "TP",
|
|
||||||
product: "库尔勒香梨 10kg/箱",
|
|
||||||
content:
|
|
||||||
"踏入这家位于街角的餐厅,木质门框与暖黄灯光交织出温馨氛围,墙面上手绘的食材插_draw着文艺气息,开放式厨房的设计让食客能看见厨师处理食材的全过程,第一印象便给人以干净与安心。",
|
|
||||||
images: [
|
|
||||||
"http://localhost:8080/test.png",
|
|
||||||
"http://localhost:8080/test.png",
|
|
||||||
"http://localhost:8080/test.png",
|
|
||||||
],
|
|
||||||
time: "2025-03-01 11:24:20",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
show: false,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -592,8 +430,7 @@ export default {
|
|||||||
user_id: uni.getStorageSync("userId"),
|
user_id: uni.getStorageSync("userId"),
|
||||||
goods_id_and_count: [
|
goods_id_and_count: [
|
||||||
{
|
{
|
||||||
goods_id:
|
goods_id: this.info.commodity_goods_info_list[this.currentGGIndex].id,
|
||||||
this.info.commodity_goods_info_list[this.currentGGIndex].id,
|
|
||||||
count: newValue.value,
|
count: newValue.value,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -607,14 +444,6 @@ export default {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
showPopup() {
|
|
||||||
console.log("🚀 ~ showPopup ~ showPopup:");
|
|
||||||
this.show = true;
|
|
||||||
},
|
|
||||||
close() {
|
|
||||||
this.show = false;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
const itemObj = JSON.parse(decodeURIComponent(options.item));
|
const itemObj = JSON.parse(decodeURIComponent(options.item));
|
||||||
@ -643,8 +472,6 @@ export default {
|
|||||||
|
|
||||||
request(apiArr.updateCar, "POST", {
|
request(apiArr.updateCar, "POST", {
|
||||||
goods_id_and_count,
|
goods_id_and_count,
|
||||||
}).then((res) => {
|
|
||||||
console.log("Cart updated on hide");
|
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
|
|||||||
@ -782,12 +782,6 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "选择自提点"
|
"navigationBarTitleText": "选择自提点"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "evaluate/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "评价"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user