From 8f7d341dacda37955b0380f5d2ab96c085335966 Mon Sep 17 00:00:00 2001
From: huliyong <2783385703@qq.com>
Date: Tue, 8 Oct 2024 15:00:49 +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/tourGuide/locations.vue | 6 ++
config.js | 4 +-
pages_order/components/list/cardList.vue | 2 -
pages_order/components/product/cartAction.vue | 26 ++++--
pages_order/mine/cart.vue | 130 ++++++++++++++++++++++++--
pages_order/mine/subscribe.vue | 12 ++-
pages_order/order/order.vue | 7 +-
pages_order/product/productList.vue | 8 +-
9 files changed, 171 insertions(+), 25 deletions(-)
diff --git a/api/api.js b/api/api.js
index 61041a5..b682a12 100644
--- a/api/api.js
+++ b/api/api.js
@@ -272,7 +272,6 @@ const config = {
updateShopcar: {
url: '/user/updateShopcar',
method: 'POST',
- showLoading: true,
debounce : 500,
auth: true,
},
diff --git a/components/tourGuide/locations.vue b/components/tourGuide/locations.vue
index 3fa883b..6dac16b 100644
--- a/components/tourGuide/locations.vue
+++ b/components/tourGuide/locations.vue
@@ -69,6 +69,7 @@
v-if="show && spotGuide.length > 0">
diff --git a/config.js b/config.js
index ecafce2..312aac5 100644
--- a/config.js
+++ b/config.js
@@ -44,7 +44,7 @@ const defaultConfig = {
api : 'queryArticleById',
},
Inheritance : {//遗产概况
- title : '遗产概况',
+ title : '文化遗产',
api : 'queryArticleById',
},
tell : {//遗产讲述
@@ -54,13 +54,13 @@ const defaultConfig = {
payType : 1,
screen : true,
roleId : 0,
+ showRoleLevel : true,
},
travel : {//达人同游
title : '达人同游',
collectType : 1,
subTitle : '同游现场',
payType : 2,
- showRoleLevel : true,
roleId : 1,
},
path : {//遗产路径
diff --git a/pages_order/components/list/cardList.vue b/pages_order/components/list/cardList.vue
index d59b4a5..f00fcbd 100644
--- a/pages_order/components/list/cardList.vue
+++ b/pages_order/components/list/cardList.vue
@@ -83,8 +83,6 @@
roleId : this.dict.roleId,
}
- console.log(this.result);
-
this.result.forEach(n => {
queryParams[n.name] = n.value
})
diff --git a/pages_order/components/product/cartAction.vue b/pages_order/components/product/cartAction.vue
index e728e05..00494a2 100644
--- a/pages_order/components/product/cartAction.vue
+++ b/pages_order/components/product/cartAction.vue
@@ -3,22 +3,23 @@
- {{ cartCheckboxValue.length }}
+ {{ num || cartCheckboxValue.length }}
合计
- ¥{{ totalPrice }}
+ ¥{{ price || totalPrice }}
- 共{{ cartCheckboxValue.length }}件,已享受更低优惠
+ 共{{ num || cartCheckboxValue.length }}件,已享受更低优惠
-
- 去结算
+
+ {{ submitTitle }}
@@ -26,6 +27,17 @@
diff --git a/pages_order/mine/subscribe.vue b/pages_order/mine/subscribe.vue
index 5fff098..6068bf6 100644
--- a/pages_order/mine/subscribe.vue
+++ b/pages_order/mine/subscribe.vue
@@ -67,6 +67,10 @@
+
+ {{ statusTitle[item.orderStatus] }}
+
+
再次预约
@@ -84,6 +88,7 @@
mixins : [mixinsList],
data() {
return {
+ statusTitle : ['待支付', '待使用', '已完成'],
tabs: [
{
name: '路径定制'
@@ -160,7 +165,12 @@
}
.btns{
display: flex;
- justify-content: flex-end;
+ justify-content: space-between;
+ .btn-info{
+ padding: 10px 30rpx;
+ font-size: 24rpx;
+ color: $uni-color;
+ }
.btn{
padding: 10px 30rpx;
font-size: 24rpx;
diff --git a/pages_order/order/order.vue b/pages_order/order/order.vue
index 219e561..132e77b 100644
--- a/pages_order/order/order.vue
+++ b/pages_order/order/order.vue
@@ -36,7 +36,7 @@
- {{item.state_dictText}}
+ {{ statusTitle[item.travelWaresOrder.status] }}
@@ -98,6 +98,7 @@
},
data() {
return {
+ statusTitle : ['待支付', '待发货', '待收货', '已完成'],
tabs: [
{
name: '全部'
@@ -131,7 +132,7 @@
},
methods: {
//点击tab栏
- clickTabs(index) {
+ clickTabs({index}) {
if (index == 0) {
this.state = -1;
} else {
@@ -150,7 +151,7 @@
...this.queryParams,
}
if(this.state != -1){
- queryParams.state = this.state
+ queryParams.status = this.state
}
this.$api('queryWaresOrderList', queryParams, res => {
if(res.code == 200){
diff --git a/pages_order/product/productList.vue b/pages_order/product/productList.vue
index fc32f24..ebfa0a0 100644
--- a/pages_order/product/productList.vue
+++ b/pages_order/product/productList.vue
@@ -13,7 +13,9 @@
-
+
@@ -48,7 +50,9 @@
},
onShow() {
this.getData()
- this.$store.commit('getCartList')
+ if(uni.getStorageSync('token')){
+ this.$store.commit('getCartList')
+ }
},
onLoad() {
this.queryParams.state = 0