Commit 1b2c9f8c authored by 石建新(贵阳日报)'s avatar 石建新(贵阳日报)
parents 90380938 00b23031
<template> <template>
<view class="container"> <view class="container">
<Header title="地址管理"></Header> <Search :showTitle="true" title="地址管理" backgroundBox="white"/>
<view class="content"> <view class="content">
<view class="empty_list" v-if="isAdressEmpty"> <view class="empty_list" v-if="isAdressEmpty">
<img src="@/static/address/address.png" /> <img src="@/static/address/address.png" />
...@@ -95,7 +94,7 @@ page { ...@@ -95,7 +94,7 @@ page {
margin: 0 auto; margin: 0 auto;
.content { .content {
padding-top: 88rpx; // padding-top: 88rpx;
.full_list { .full_list {
margin-top: 20rpx; margin-top: 20rpx;
......
<template> <template>
<view class="container"> <view class="container">
<Header title="订单详情"></Header> <!-- <Header title="订单详情"></Header> -->
<Search title="订单详情" backgroundBox="white" :showTitle="true"></Search>
<view class="content" v-if="orderDetail"> <view class="content" v-if="orderDetail">
<!-- 使用状态 --> <!-- 使用状态 -->
<view class="status"> <view class="status">
...@@ -405,7 +406,6 @@ page { ...@@ -405,7 +406,6 @@ page {
margin: 0 auto; margin: 0 auto;
.content { .content {
padding-top: 44px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 20rpx; gap: 20rpx;
......
<template> <template>
<view class="container"> <view class="container">
<!-- 顶部搜索框--> <!-- 顶部搜索框-->
<view class="top"> <Search backgroundBox="#f3f3f3">
<wd-icon
class="icon"
name="thin-arrow-left"
color="#000"
size="32rpx"
@click="handleBack"
></wd-icon>
<view class="searchBox"> <view class="searchBox">
<view class="search"> <view class="search">
<wd-icon name="search" size="30rpx" color="#999"></wd-icon> <wd-icon name="search" size="30rpx" color="#999"></wd-icon>
...@@ -31,7 +24,8 @@ ...@@ -31,7 +24,8 @@
@tap="handleClear" @tap="handleClear"
></wd-icon> ></wd-icon>
</view> </view>
</view> </Search>
<view class="tabs" v-if="orderDic"> <view class="tabs" v-if="orderDic">
<wd-tabs v-model="tab" animated :lineWidth="38" :lineHeight="3" @change="handleChange" sticky> <wd-tabs v-model="tab" animated :lineWidth="38" :lineHeight="3" @change="handleChange" sticky>
<block v-for="item in tabs" :key="item.value"> <block v-for="item in tabs" :key="item.value">
...@@ -549,14 +543,31 @@ function callShopPhone(phoneNumber) { ...@@ -549,14 +543,31 @@ function callShopPhone(phoneNumber) {
} }
/** /**
* 再来一单 * 再来一单 商品类型,0-普通商品,5-团购,6-套餐,7-预售,8-售券
*/ */
const anotherOrder = (item) => { const anotherOrder = (item) => {
// 清空查询待付款状态 // 清空查询待付款状态
pendingPaymentOrder.value = null; pendingPaymentOrder.value = null;
switch (item.prodType) {
case 5:
xma.navigateTo({ xma.navigateTo({
url: `/pages/shop/confirmOrder?prodId=${item.orderItems[0].prodId}&skuId=${item.orderItems[0].skuId}`, url: `/pages/packageDetails/packageDetails?prodId=${item.orderItems[0].prodId}`,
}); });
break;
case 7:
xma.redirectTo({
url: `/pages/assistingAgriculture/detail/detail?prodId=${item.orderItems[0].prodId}`,
});
break;
case 10:
xma.redirectTo({
url: `/pages/assistingAgriculture/RouteDetails/RouteDetails?prodId=${item.orderItems[0].prodId}&shopId=${item.shopId}`,
});
break;
default:
break;
}
}; };
/** /**
...@@ -566,7 +577,7 @@ const handleQrcode = (item) => { ...@@ -566,7 +577,7 @@ const handleQrcode = (item) => {
// 清空查询待付款状态 // 清空查询待付款状态
pendingPaymentOrder.value = null; pendingPaymentOrder.value = null;
xma.navigateTo({ xma.navigateTo({
url: `/pages/order/ticketCode?orderNumber=${item.orderNumber}`, url: `/pages/order/ticketCode?orderNumber=${item.orderNumber}&shopName=${item.shopName}`,
}); });
}; };
...@@ -579,6 +590,9 @@ const handleRemark = (item) => { ...@@ -579,6 +590,9 @@ const handleRemark = (item) => {
}); });
}; };
/**
* 售后详情
*/
const handleAfterSales = (item) => { const handleAfterSales = (item) => {
xma.navigateTo({ xma.navigateTo({
url: `/pages/order/afterSales?orderNumber=${item.orderNumber}`, url: `/pages/order/afterSales?orderNumber=${item.orderNumber}`,
...@@ -665,7 +679,7 @@ page { ...@@ -665,7 +679,7 @@ page {
margin: 0 auto; margin: 0 auto;
.tabs { .tabs {
padding-top: 108rpx; // padding-top: 20rpx;
&:deep(.wd-tabs) { &:deep(.wd-tabs) {
background-color: #f5f5f5; background-color: #f5f5f5;
...@@ -693,8 +707,8 @@ page { ...@@ -693,8 +707,8 @@ page {
align-items: center; align-items: center;
padding: 0 30rpx; padding: 0 30rpx;
gap: 14rpx; gap: 14rpx;
}
.searchBox { .searchBox {
width: 492rpx; width: 492rpx;
height: 66rpx; height: 66rpx;
background: #f3f3f3; background: #f3f3f3;
...@@ -703,6 +717,7 @@ page { ...@@ -703,6 +717,7 @@ page {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 0rpx 28rpx; padding: 0rpx 28rpx;
margin-left: 40rpx;
background-color: #fff; background-color: #fff;
...@@ -720,7 +735,6 @@ page { ...@@ -720,7 +735,6 @@ page {
font-size: 28rpx; font-size: 28rpx;
} }
} }
}
} }
.content { .content {
......
<template> <template>
<view class="container"> <view class="container">
<Header title="售后/退款"></Header> <!-- <Header title="售后/退款"></Header> -->
<Search title="售后/退款" backgroundBox="white" :type="2"></Search>
<view class="content" v-if="orderDetail"> <view class="content" v-if="orderDetail">
<view class="content-box"> <view class="content-box">
<view class="content-item"> <view class="content-item">
...@@ -243,7 +244,7 @@ page { ...@@ -243,7 +244,7 @@ page {
margin: 0 auto; margin: 0 auto;
.content { .content {
padding: 108rpx 10rpx 0; padding: 20rpx 10rpx 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 60rpx; gap: 60rpx;
......
<template> <template>
<view class="container"> <view class="container">
<Header title="评论"></Header> <Search :showTitle="true" title="评价" backgroundBox="white"></Search>
<view class="content"> <view class="content">
<wd-form ref="form" :model="formdata" :rules="rules" class="remake"> <wd-form ref="form" :model="formdata" :rules="rules" class="remake">
<wd-cell-group> <wd-cell-group>
...@@ -75,6 +76,7 @@ import Header from './components/Header/index.vue'; ...@@ -75,6 +76,7 @@ import Header from './components/Header/index.vue';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import { evaluation } from '@/api/order'; import { evaluation } from '@/api/order';
import { useToast } from 'wot-design-uni'; import { useToast } from 'wot-design-uni';
import Search from '@/components/index/Search.vue';
const uToast = useToast(); const uToast = useToast();
const form = ref(); const form = ref();
const token = getToken(); const token = getToken();
...@@ -282,7 +284,7 @@ const handleSubmit = async () => { ...@@ -282,7 +284,7 @@ const handleSubmit = async () => {
.content { .content {
margin: 25rpx 20rpx 0; margin: 25rpx 20rpx 0;
padding-top: 88rpx; // padding-top: 88rpx;
.remake { .remake {
width: auto; width: auto;
......
<template> <template>
<view class="container"> <view class="container">
<Header title="查看券码"></Header> <!-- <Header title="查看券码"></Header> -->
<Search title="查看券码" backgroundBox="white" :showTitle="true"></Search>
<view class="content" v-if="orderDetail"> <view class="content" v-if="orderDetail">
<!-- 使用状态 --> <!-- 使用状态 -->
<view class="status"> <view class="status">
<view class="status-text">{{ orderDetail.orderItems[0].prodName }}</view> <view class="status-text">{{ shopName }}</view>
<view class="detail">有效期:{{ orderDetail.orderStore.receiverTime }}</view> <view class="detail">有效期:{{ orderDetail.orderStore.writeOffEnd }}</view>
</view> </view>
<!-- 券码信息 --> <!-- 券码信息 -->
...@@ -32,8 +33,9 @@ import Header from './components/Header/index.vue'; ...@@ -32,8 +33,9 @@ import Header from './components/Header/index.vue';
import { getOrderDetail } from '@/api/order'; import { getOrderDetail } from '@/api/order';
import QRCode from 'qrcode'; import QRCode from 'qrcode';
const shopName = ref('商家名称');
onLoad((options) => { onLoad((options) => {
console.log(options); shopName.value = options.shopName;
getOrderDetailFn(options.orderNumber); getOrderDetailFn(options.orderNumber);
}); });
...@@ -76,7 +78,6 @@ page { ...@@ -76,7 +78,6 @@ page {
margin: 0 auto; margin: 0 auto;
.content { .content {
padding-top: 44px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 20rpx; gap: 20rpx;
......
<template> <template>
<view class="container"> <view class="container">
<Header :title="shopDetail.shopName"></Header> <!-- <Header :title="shopDetail.shopName"></Header> -->
<Search :title="shopDetail.shopName" backgroundBox="white" :showTitle="true"></Search>
<view class="content"> <view class="content">
<view class="shop"> <view class="shop">
<image :src="fileDomain + shopDetail.shopLogo" class="logo" mode="aspectFill"></image> <image :src="fileDomain + shopDetail.shopLogo" class="logo" mode="aspectFill"></image>
...@@ -342,7 +342,7 @@ page { ...@@ -342,7 +342,7 @@ page {
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 100rpx 26rpx 26rpx; padding: 20rpx 26rpx 26rpx;
gap: 26rpx; gap: 26rpx;
.shop { .shop {
......
<template> <template>
<view class="container"> <view class="container">
<Header title="我的券"></Header> <!-- <Header title="我的券"></Header> -->
<Search title="我的券" backgroundBox="white" :showTitle="true"></Search>
<view class="tab"> <view class="tab">
<view <view
:class="currentTab == index ? 'tab-select' : 'tab-item'" :class="currentTab == index ? 'tab-select' : 'tab-item'"
...@@ -308,7 +309,7 @@ page { ...@@ -308,7 +309,7 @@ page {
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 202rpx 26rpx 26rpx; padding: 100rpx 26rpx 26rpx;
gap: 36rpx; gap: 36rpx;
.card { .card {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment