From 5a912325c57d7391a3cc5a7413a4d096e67050f8 Mon Sep 17 00:00:00 2001
From: huliyong <2783385703@qq.com>
Date: Thu, 17 Oct 2024 17:14:33 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/api.js | 1 -
components/config/PrivacyAgreementPoup.vue | 4 +-
components/user/cartSubmitSelect.vue | 2 +-
config.js | 2 +-
mixins/lease.js | 23 ++
pages/index/order.vue | 6 +-
pages_order/auth/wxLogin.vue | 2 +-
pages_order/components/product/addLease.vue | 65 +++++
pages_order/components/product/addLeaseForm.vue | 168 +++++++++++++
.../components/product/submitUnitSelect.vue | 263 +++++++++++++--------
pages_order/mine/lease.vue | 169 +------------
pages_order/order/createWash.vue | 27 ++-
pages_order/order/orderDetail.vue | 4 +
pages_order/product/productDetail.vue | 20 +-
14 files changed, 473 insertions(+), 283 deletions(-)
create mode 100644 mixins/lease.js
create mode 100644 pages_order/components/product/addLease.vue
create mode 100644 pages_order/components/product/addLeaseForm.vue
diff --git a/api/api.js b/api/api.js
index cd89b66..4ecb05b 100644
--- a/api/api.js
+++ b/api/api.js
@@ -324,7 +324,6 @@ const config = {
confCoupon: {
url: '/conf/coupon',
method: 'GET',
- auth: true,
},
}
diff --git a/components/config/PrivacyAgreementPoup.vue b/components/config/PrivacyAgreementPoup.vue
index 4106a1e..7e47a4e 100644
--- a/components/config/PrivacyAgreementPoup.vue
+++ b/components/config/PrivacyAgreementPoup.vue
@@ -10,7 +10,7 @@
- 欢迎来到布周到!我们根据最新的法律法规、监管政策要求,更新了《用户协议》和《隐私政策》,请您认真阅读。
+ 欢迎来到布周道!我们根据最新的法律法规、监管政策要求,更新了《用户协议》和《隐私政策》,请您认真阅读。
@@ -18,7 +18,7 @@
- 同意《布周到隐私政策》
+ 同意《布周道隐私政策》
以及《用户协议》
diff --git a/components/user/cartSubmitSelect.vue b/components/user/cartSubmitSelect.vue
index b61c7b9..444a475 100644
--- a/components/user/cartSubmitSelect.vue
+++ b/components/user/cartSubmitSelect.vue
@@ -108,7 +108,7 @@
},
props: {
submiitTitle: {
- default: '立即租赁',
+ default: '立即下单',
type: String,
},
price : {//总金额
diff --git a/config.js b/config.js
index d26ae7a..5c66fe2 100644
--- a/config.js
+++ b/config.js
@@ -7,7 +7,7 @@ import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI);
// 当前环境
-const type = 'dev'
+const type = 'prod'
// 环境配置
diff --git a/mixins/lease.js b/mixins/lease.js
new file mode 100644
index 0000000..3176169
--- /dev/null
+++ b/mixins/lease.js
@@ -0,0 +1,23 @@
+
+
+
+
+export default {
+ methods: {
+ isLeaseStatus(item){
+ if(!item.startTime
+ && item.leaseFlag
+ && item.status == 0){
+ return '待收货'
+ }
+
+ if(item.status != 0){
+ return ['正常', '换货中', '退货中'][item.status]
+ }
+
+ if(item.isWash){
+ return '水洗中'
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/pages/index/order.vue b/pages/index/order.vue
index 68589ea..edc9fbc 100644
--- a/pages/index/order.vue
+++ b/pages/index/order.vue
@@ -165,7 +165,7 @@
@click.stop="payOrder(item.orderLogId,
item.id, item.status == 10)" class="b2"
v-if="[0, 3, 10].includes(item.status)">
- {{ item.status == 10 ? '支付平台损失' : '立即付款' }}
+ {{ item.status == 10 ? '支付费用' : '立即付款' }}
@@ -271,6 +271,10 @@
},
onShow() {
this.getData()
+ if(this.userShop){
+ this.tabs[1].name = '租赁订单'
+ this.$forceUpdate()
+ }
},
onPullDownRefresh() {
this.getData()
diff --git a/pages_order/auth/wxLogin.vue b/pages_order/auth/wxLogin.vue
index 374ecf5..73533b6 100644
--- a/pages_order/auth/wxLogin.vue
+++ b/pages_order/auth/wxLogin.vue
@@ -4,7 +4,7 @@
- 欢迎使用布周到
+ 欢迎使用布周道
diff --git a/pages_order/components/product/addLease.vue b/pages_order/components/product/addLease.vue
new file mode 100644
index 0000000..233fe1a
--- /dev/null
+++ b/pages_order/components/product/addLease.vue
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/components/product/addLeaseForm.vue b/pages_order/components/product/addLeaseForm.vue
new file mode 100644
index 0000000..77ba590
--- /dev/null
+++ b/pages_order/components/product/addLeaseForm.vue
@@ -0,0 +1,168 @@
+
+
+
+ 物品分类
+
+
+ {{ item.name }}
+
+
+
+
+ 物品照片
+
+
+
+
+
+
+
+ 物品名称
+
+
+
+
+
+ 物品长度CM
+
+
+
+
+
+ 物品宽度CM
+
+
+
+
+
+ 物品数量
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_order/components/product/submitUnitSelect.vue b/pages_order/components/product/submitUnitSelect.vue
index b2736d5..1a70286 100644
--- a/pages_order/components/product/submitUnitSelect.vue
+++ b/pages_order/components/product/submitUnitSelect.vue
@@ -17,98 +17,118 @@
-
-
-
-
- 桌布租赁
-
-
-
-
-
-
- ¥{{ detail.depositPrice }}元
-
-
- 请选择规格
-
-
-
-
-
-
-
-
-
-
+
+
- 规格选择
+ 您有桌布吗?
-
- {{ item.title }}
+
+ {{ item }}
-
-
-
-
-
-
-
-
- 费用明细
-
-
-
- 应付款:¥{{ price }}
+
+
+
+
+ 桌布租赁
-
- 押金:¥{{ price }}
+
+
+
+
+
+ ¥{{ detail.depositPrice }}元
+
+
+ 请选择规格
+
+
+
+
+
-
- 优惠:-¥{{ coupon.couponPrice }}
+
+
+
+
+
+ 规格选择
-
- 实付款:¥{{ (price - coupon.couponPrice).toFixed(2) }}
+
+
+ {{ item.title }}
+
-
-
-
- 满{{ coupon.couponCondition }}立减{{ coupon.couponPrice }}
+
+
+
+
+
+
+
+
+
+ 费用明细
+
+
+
+ 应付款:¥{{ price }}
+
+
+ 押金:¥{{ price }}
+
+
+ 优惠:-¥{{ coupon.couponPrice }}
+
+
+ 实付款:¥{{ (price - coupon.couponPrice).toFixed(2) }}
-
-
+
+
+
+
+ 满{{ coupon.couponCondition }}立减{{ coupon.couponPrice }}
+
+
+
+
+
+
+
-
-
- 加入租赁车
-
-
- {{ submiitTitle }}
+
+
+
+ 加入租赁车
+
+
+ {{ submiitTitle }}
+
@@ -131,14 +151,16 @@
@@ -202,55 +94,6 @@
font-size: 30rpx;
}
}
- .list {
- display: flex;
- flex-wrap: wrap;
- font-size: 22rpx;
-
- .act {
- color: $uni-color;
- border: 1px solid $uni-color;
- background-color: #F9E7DE;
- }
- view {
- border-radius: 15rpx;
- background-color: #F3F3F3;
- border: 1px solid #F3F3F3;
- margin: 10rpx;
- display: flex;
- justify-content: center;
- padding: 10rpx 20rpx;
- }
- }
- .form{
- padding: 20rpx 0;
- .shopName {
- display: flex;
- align-items: center;
- background-color: #FFF;
- margin: 10rpx 0 0 0;
- padding: 10rpx 20rpx;
-
- >view:nth-of-type(1) {
- width: 30%;
- // font-weight: 700;
- }
-
- >view:nth-of-type(2) {
- width: 70%;
- // padding: 0 20rpx 0 0;
- border-radius: 10rpx;
- overflow: hidden;
-
- input {
- background-color: #f5f5f5;
- // color: #a4a4a4;
- font-size: 28rpx;
- padding: 8rpx 8rpx 8rpx 15rpx;
- }
- }
- }
- }
}
diff --git a/pages_order/order/createWash.vue b/pages_order/order/createWash.vue
index 929bbb5..f4ee9d4 100644
--- a/pages_order/order/createWash.vue
+++ b/pages_order/order/createWash.vue
@@ -14,17 +14,23 @@
>
- -->
+
-
@@ -39,7 +45,7 @@
规格:{{ item.sku }}
-
@@ -50,6 +56,9 @@
水洗中
+ -->
+
+ {{ item.statusInfo }}
@@ -107,8 +116,9 @@