From 4628d14aab3c31a36c00ee0501f557b650a7dc7a Mon Sep 17 00:00:00 2001 From: yuanteng0011 <1876787513@qq.com> Date: Sun, 23 Mar 2025 12:16:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/request.ts | 2 +- common/global.js | 54 +- pages.json | 501 ++++++------ .../clotherRentOrderList.vue | 721 ++++++++++-------- .../clothesRentOrderDetail.vue | 2 + pages/login/login.vue | 2 +- pages/workshop/index/index.vue | 46 +- 7 files changed, 713 insertions(+), 615 deletions(-) diff --git a/api/request.ts b/api/request.ts index e4616ea..07f68f1 100644 --- a/api/request.ts +++ b/api/request.ts @@ -6,4 +6,4 @@ export const domain = 'https://www.carboner.cn:8888/api' export const myIp = 'http://8.130.119.119:9092/api' export const nwct = 'https://winning-mouse-internally.ngrok-free.app/api' export const suiUrl = '' -export const baseUrl = domain +export const baseUrl = Url diff --git a/common/global.js b/common/global.js index 9939914..fa2ff05 100644 --- a/common/global.js +++ b/common/global.js @@ -1,4 +1,4 @@ -//订单状态数组 +//实体类订单状态数组 export const stateList = [ { state: '待支付', @@ -15,7 +15,7 @@ export const stateList = [ { state: '已退款', img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FlPnvgqCp-yituikuan.png', - msg: '订单已经退款', + msg: '订单已退款', tips: '希望下次能让君满意' }, { @@ -41,6 +41,8 @@ export const stateMap = new Map() stateList.forEach((item)=>{ stateMap.set(item.state,item) }) + +//服务类订单状态 export const serviceStateList = [ { state: '待支付', @@ -57,7 +59,7 @@ export const serviceStateList = [ { state: '已退款', img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FlPnvgqCp-yituikuan.png', - msg: '订单已经退款', + msg: '订单已退款', tips: '希望下次能让君满意' }, { @@ -73,6 +75,7 @@ export const serviceStateList = [ tips: '下次看好了之后再买哦' } ] + export const serviceStateMap = new Map() serviceStateList.forEach((item)=>{ serviceStateMap.set(item.state,item) @@ -82,3 +85,48 @@ export const weekDay = function(time) { let datelist = ['周日','周一','周二','周三','周四','周五','周六',] return datelist[new Date(time).getDay()]; } + +//服装租赁订单 +export const clothesRentOrder = [ + { + state: '待支付', + img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FFybMDtHR-dengdaifukuan.png', + msg: '等待买家付款', + tips: '请于15分钟内付款,超时订单将自动关闭' + }, + { + state: '待发货', + img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FEOzVqolp-fahuo.png', + msg: '等待您来取货', + tips: '等待您的光临体验~' + }, + { + state: '已退款', + img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FlPnvgqCp-yituikuan.png', + msg: '订单已退款', + tips: '希望下次能让君满意' + }, + { + state: '交易完成', + img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FaHDhacaI-dengdaifukuan.png', + msg: '租赁完成,感谢您的支持', + tips: '感谢您的支持' + }, + { + state: '交易关闭', + img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Fuser_avatar%2F0%2FLPwbfbRj-cancel.png', + msg: '您的订单已关闭', + tips: '下次看好了之后再买哦' + }, + { + state: '待收货', + img: 'https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Fuser_avatar%2F0%2FLPwbfbRj-cancel.png', + msg: '服装已被您取走', + tips: '请好好爱护服装' + } +] + +export const clothesRentOrderMap = new Map() +clothesRentOrder.forEach((item)=>{ + clothesRentOrderMap.set(item.state,item) +}) \ No newline at end of file diff --git a/pages.json b/pages.json index 3355ed9..65f7b8d 100644 --- a/pages.json +++ b/pages.json @@ -1,314 +1,272 @@ { "pages": [ - { - "path" : "pages/home/home", - "style" : { - "navigationBarTitleText" : "首页", - // "enablePullDownRefresh":true, //开启下拉刷新 - "navigationBarBackgroundColor": "#ede8e7" - } - }, - { - "path" : "pages/my-order/myGeneralOrderDetail/myGeneralOrderDetail", - "style" : + "path": "pages/clothesRent/clotherRentOrderList/clotherRentOrderList", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "", - "enablePullDownRefresh":true //开启下拉刷新 - } - }, - { - "path" : "pages/my-order/myServiceOrderDetail/myServiceOrderDetail", - "style" : + "path": "pages/home/home", + "style": { + "navigationBarTitleText": "首页", + // "enablePullDownRefresh":true, //开启下拉刷新 + "navigationBarBackgroundColor": "#ede8e7" + } + }, { - "navigationBarTitleText" : "", - "enablePullDownRefresh":true //开启下拉刷新 - } - }, - { - "path" : "pages/my-order/myOrderList/myOrderList", - "style" : + "path": "pages/my-order/myGeneralOrderDetail/myGeneralOrderDetail", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": true //开启下拉刷新 + } + }, { - "navigationBarTitleText" : "", - "enablePullDownRefresh":true //开启下拉刷新 - } - }, - { - "path" : "pages/my-order/researchOrder/researchOrder", - "style" : + "path": "pages/my-order/myServiceOrderDetail/myServiceOrderDetail", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": true //开启下拉刷新 + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/workshop/searchResult/searchResult", - "style" : + "path": "pages/my-order/myOrderList/myOrderList", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": true //开启下拉刷新 + } + }, { - "navigationBarTitleText" : "" - } - }, - - { - "path" : "pages/workshop/searchGood/searchGood", - "style" : + "path": "pages/my-order/researchOrder/researchOrder", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/book/photoProductsOrderDetail/photoProductsOrderDetail", - "style" : + "path": "pages/workshop/searchResult/searchResult", + "style": { + "navigationBarTitleText": "" + } + }, + { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/book/photoProductsOrder/photoProductsOrder", - "style" : + "path": "pages/workshop/searchGood/searchGood", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/book/photoProductDetail/photoProductDetail", - "style" : + "path": "pages/book/photoProductsOrderDetail/photoProductsOrderDetail", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/book/photoProducts/photoProducts", - "style" : + "path": "pages/book/photoProductsOrder/photoProductsOrder", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/order/component/contactsComponent", - "style" : + "path": "pages/book/photoProductDetail/photoProductDetail", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/coupon/CouponMall/CouponMall", - "style" : + "path": "pages/book/photoProducts/photoProducts", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/testPage/testPage", - "style" : + "path": "pages/order/component/contactsComponent", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/test/test", - "style" : + "path": "pages/coupon/CouponMall/CouponMall", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - - { - "path" : "pages/mine/main/main", - "style" : + "path": "pages/testPage/testPage", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "", - "enablePullDownRefresh":true //开启下拉刷新 - } - }, - { - "path" : "pages/store-home/ProductDetails/ProductDetails", - "style" : + "path": "pages/test/test", + "style": { + "navigationBarTitleText": "" + } + }, + { - "navigationBarTitleText" : "泠珑水月阁工作室" - } - }, - { - "path" : "pages/Shopping-cart/newaddress_Info/newaddress_Info", - "style" : + "path": "pages/mine/main/main", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": true //开启下拉刷新 + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/order/product-waitpay/product-waitpay", - "style" : + "path": "pages/store-home/ProductDetails/ProductDetails", + "style": { + "navigationBarTitleText": "泠珑水月阁工作室" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/login/login", - "style" : + "path": "pages/Shopping-cart/newaddress_Info/newaddress_Info", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/Shopping-cart/component/addProduct", - "style" : + "path": "pages/order/product-waitpay/product-waitpay", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/workshop/index/index", - "style" : + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "", - "enablePullDownRefresh":true //开启下拉刷新 - } - }, - { - "path" : "pages/workshop/productmain/productmain", - "style" : + "path": "pages/Shopping-cart/component/addProduct", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/store-home/main/testMain", - "style" : + "path": "pages/workshop/index/index", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": true //开启下拉刷新 + } + }, { - "navigationBarTitleText" : "", - "enablePullDownRefresh":true //开启下拉刷新 - } - }, - { - "path" : "pages/order/singleGoodOrder/singleGoodOrder", - "style" : + "path": "pages/workshop/productmain/productmain", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/Shopping-cart/productmain/testproductmain", - "style" : + "path": "pages/store-home/main/testMain", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": true //开启下拉刷新 + } + }, { - "navigationBarTitleText" : "", - "enablePullDownRefresh":true //开启下拉刷新 - } - }, - { - "path" : "pages/mine/addressList/addressList", - "style" : + "path": "pages/order/singleGoodOrder/singleGoodOrder", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/coupon/CouponTips/CouponTips", - "style" : + "path": "pages/Shopping-cart/productmain/testproductmain", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": true //开启下拉刷新 + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/coupon/MyCoupon/MyCoupon", - "style" : + "path": "pages/mine/addressList/addressList", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/order/serviceWaitPay/serviceWaitPay", - "style" : + "path": "pages/coupon/CouponTips/CouponTips", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/mine/Contact/testContact", - "style" : + "path": "pages/coupon/MyCoupon/MyCoupon", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/mine/component/contactPop", - "style" : + "path": "pages/order/serviceWaitPay/serviceWaitPay", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/coupon/OverDueCoupon/OverDueCoupon", - "style" : + "path": "pages/mine/Contact/testContact", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/order/singleServiceWait/singleServiceWait", - "style" : + "path": "pages/mine/component/contactPop", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/activity/activityHome/activityHome", - "style" : + "path": "pages/coupon/OverDueCoupon/OverDueCoupon", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/activity/activityMain/activityMain", - "style" : + "path": "pages/order/singleServiceWait/singleServiceWait", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/clothesRent/clotherRentOrderList/clotherRentOrderList", - "style" : + "path": "pages/activity/activityHome/activityHome", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/clothesRent/clothesRentSubmitOrder/clothesRentSubmitOrder", - "style" : + "path": "pages/activity/activityMain/activityMain", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/book/myPhotoProductsOrderDetail/myPhotoProductsOrderDetail", - "style" : + "path": "pages/clothesRent/clothesRentSubmitOrder/clothesRentSubmitOrder", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "", - "enablePullDownRefresh":true //开启下拉刷新 - } - }, - { - "path" : "pages/book/myPhotoProductDetail/myPhotoProductDetail", - "style" : + "path": "pages/book/myPhotoProductsOrderDetail/myPhotoProductsOrderDetail", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": true //开启下拉刷新 + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/book/myPhotoProducts/myPhotoProducts", - "style" : + "path": "pages/book/myPhotoProductDetail/myPhotoProductDetail", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" - } - }, - { - "path" : "pages/clothesRent/clothesRentOrderDetail/clothesRentOrderDetail", - "style" : + "path": "pages/book/myPhotoProducts/myPhotoProducts", + "style": { + "navigationBarTitleText": "" + } + }, { - "navigationBarTitleText" : "" + "path": "pages/clothesRent/clothesRentOrderDetail/clothesRentOrderDetail", + "style": { + "navigationBarTitleText": "" + } } - } ], - "plugins" : { - "logisticsPlugin" : { + "plugins": { + "logisticsPlugin": { "version": "2.3.0", "provider": "wx9ad912bf20548d92" } @@ -328,27 +286,26 @@ }, "tabBar": { "backgroundColor": "#FFFFFF", - "list": [ - { + "list": [{ "pagePath": "pages/home/home", "iconPath": "./static/home.png", - "text":"首页" + "text": "首页" }, { "pagePath": "pages/store-home/main/testMain", "iconPath": "./static/store.png", - "text":"商城" + "text": "商城" }, { "pagePath": "pages/Shopping-cart/productmain/testproductmain", "iconPath": "./static/shopcar.png", - "text":"购物车" + "text": "购物车" }, { "pagePath": "pages/mine/main/main", "iconPath": "./static/mine.png", - "text":"我的" + "text": "我的" } ] } -} +} \ No newline at end of file diff --git a/pages/clothesRent/clotherRentOrderList/clotherRentOrderList.vue b/pages/clothesRent/clotherRentOrderList/clotherRentOrderList.vue index 33ac745..0d11008 100644 --- a/pages/clothesRent/clotherRentOrderList/clotherRentOrderList.vue +++ b/pages/clothesRent/clotherRentOrderList/clotherRentOrderList.vue @@ -1,105 +1,123 @@ + .mt-15 { + margin-top: 28.13rpx; + } + + .ml-13 { + margin-left: 24.38rpx; + } + + .mt-59 { + margin-top: 110.63rpx; + } + + .mt-11 { + margin-top: 20.63rpx; + } + + .page { + background-color: #ffffff; + overflow: hidden; + background-size: 100% 100%; + background-repeat: no-repeat; + width: 100%; + overflow-y: auto; + overflow-x: hidden; + height: 100vh; + } + + .section_2 { + display: flex; + justify-content: space-between; + align-items: center; + padding: 20rpx 41.25rpx 0; + background-color: #ebe7e4; + } + + .pos { + position: fixed; + top: 0; + left: 0; + right: 0; + z-index: 9; + } + + .font { + font-size: 30rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 28.24rpx; + color: #323232; + } + + .font_2 { + font-size: 30rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 28.84rpx; + color: #323232; + } + + .text { + line-height: 27.43rpx; + } + + .pos_2 { + position: absolute; + left: 22.5rpx; + right: 24.38rpx; + top: 108.75rpx; + padding-bottom: 40rpx; + } + + .list-item { + padding: 18.75rpx 15rpx 0; + background-color: #ffffff; + border-radius: 18.75rpx; + } + + .list-item:first-child { + margin-top: 0; + } + + .group { + padding: 0 11.25rpx; + } + + .font_3 { + font-size: 30rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 28.01rpx; + color: #323232; + } + + .font_4 { + font-size: 26.25rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 18.79rpx; + color: #ffaaa5; + } + + .text_2 { + font-size: 28.13rpx; + } + + .font_5 { + font-size: 26.25rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 25.84rpx; + color: #ffaaa5; + } + + .text_3 { + line-height: 25.74rpx; + } + + .view { + margin-top: 18.75rpx; + } + + .font_6 { + font-size: 26.25rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 25.84rpx; + color: #818181; + } + + .font_7 { + font-size: 26.25rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 18.79rpx; + color: #818181; + } + + .text_4 { + line-height: 17.53rpx; + } + + .divider { + margin-top: 18.75rpx; + background-color: #dbdbdb; + height: 1.88rpx; + } + + .group_2 { + margin-top: 26.25rpx; + padding: 0 9.38rpx; + position: relative; + } + + .image { + border-radius: 9.38rpx; + width: 148.13rpx; + height: 165rpx; + } + + .group_3 { + margin-bottom: 3.75rpx; + } + + .font_8 { + font-size: 30rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 29.18rpx; + color: #323232; + } + + .font_10 { + font-size: 30rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 18.79rpx; + color: #323232; + } + + .text_6 { + margin-left: 7.5rpx; + line-height: 20.04rpx; + } + + .group_4 { + position: absolute; + top: 0; + right: 0rpx; + } + + .image_2 { + width: 46.88rpx; + height: 46.88rpx; + } + + .font_9 { + font-size: 26.25rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 25.84rpx; + color: #323232; + } + + .text_5 { + line-height: 25.22rpx; + } + + .view_2 { + margin-top: 22.5rpx; + } + + .text_7 { + font-size: 28.13rpx; + line-height: 27.02rpx; + } + + .font_11 { + font-size: 26.25rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 18.79rpx; + color: #323232; + } + + .text_8 { + font-size: 28.13rpx; + } + + .group_5 { + margin-top: 30rpx; + } + + .text_9 { + font-size: 28.13rpx; + line-height: 26.7rpx; + } + + .font_12 { + font-size: 33.75rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 22.54rpx; + color: #c35c5d; + } + + .group_6 { + margin-top: 30rpx; + padding: 26.25rpx 0rpx 26.25rpx 180rpx; + border-top: solid 1.88rpx #dbdbdb; + } + + .font_13 { + font-size: 26.25rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 25.84rpx; + color: #e79ea1; + } + + .text_10 { + line-height: 25.54rpx; + } + + .text-wrapper { + padding: 15rpx 0; + background-color: #ffffff; + border-radius: 75rpx; + width: 153.75rpx; + height: 56.25rpx; + border-left: solid 1.88rpx #e79ea1; + border-right: solid 1.88rpx #e79ea1; + border-top: solid 1.88rpx #e79ea1; + border-bottom: solid 1.88rpx #e79ea1; + } + + .text-wrapper_2 { + padding: 15rpx 0; + background-color: #e79ea1; + border-radius: 75rpx; + width: 153.75rpx; + height: 56.25rpx; + } + + .font_14 { + font-size: 26.25rpx; + font-family: FZSongKeBenXiuKaiS-R-GB; + line-height: 25.84rpx; + color: #ffffff; + } + + .text_11 { + line-height: 24rpx; + } + + @import url(../../../common/css/global.css); + \ No newline at end of file diff --git a/pages/clothesRent/clothesRentOrderDetail/clothesRentOrderDetail.vue b/pages/clothesRent/clothesRentOrderDetail/clothesRentOrderDetail.vue index d5f2992..bd33756 100644 --- a/pages/clothesRent/clothesRentOrderDetail/clothesRentOrderDetail.vue +++ b/pages/clothesRent/clothesRentOrderDetail/clothesRentOrderDetail.vue @@ -88,6 +88,8 @@ import {ref} from 'vue' import { clothesRentUrl } from '../../../common/globalImagesUrl'; const bkgUrl = ref(clothesRentUrl + '/clothesRentOrderDetail/bkg.png') + +