From adc8a8f024c183924cb154a2e20221a2e338c7e5 Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Mon, 16 May 2022 14:17:58 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E8=AE=A2=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 4 +-
pages/activity/book.vue | 327 +++++++++++++++---------------
pages/activity/index.vue | 30 ++-
pages/activity/info.vue | 53 +++--
pages/order/activityorder.vue | 132 +++++++++---
pages/order/activityorderinfo.vue | 325 +++++++++++++++++++++++++++--
6 files changed, 628 insertions(+), 243 deletions(-)
diff --git a/pages.json b/pages.json
index 3a2aeb6..de4a645 100644
--- a/pages.json
+++ b/pages.json
@@ -133,7 +133,7 @@
"path" : "pages/order/activityorder",
"style" :
{
- "navigationBarTitleText": "活动预约",
+ "navigationBarTitleText": "活动预约订单",
"enablePullDownRefresh": false
}
@@ -142,7 +142,7 @@
"path" : "pages/order/activityorderinfo",
"style" :
{
- "navigationBarTitleText": "活动预约",
+ "navigationBarTitleText": "活动预约订单详情",
"enablePullDownRefresh": false
}
diff --git a/pages/activity/book.vue b/pages/activity/book.vue
index fcf590a..ca6f802 100644
--- a/pages/activity/book.vue
+++ b/pages/activity/book.vue
@@ -5,39 +5,39 @@
预约的活动
-
-
- {{list.name}}
-
- {{list.target_name}}
-
-
-
-
-
- 活动时间:{{list.start_time}}-{{list.end_time.substring(11,list.end_time.length)}}
-
-
-
-
- 活动方式:{{list.area_name}}
-
-
-
-
- 活动地址:{{list.address}}
-
-
-
-
- 人数限制:{{list.total==0?'不限':list.total}}
-
-
-
- 距离:{{list.distance}}km
-
-
-
+
+
+ {{list.name}}
+
+ {{list.target_name}}
+
+
+
+
+
+ 活动时间:{{list.start_time}}-{{list.end_time}}
+
+
+
+
+ 活动方式:{{list.area_name}}
+
+
+
+
+ 活动地址:{{list.address}}
+
+
+
+
+ 人数限制:{{list.total==0?'不限':list.total}}
+
+
+
+ 距离:{{list.distance}}km
+
+
+
@@ -50,12 +50,12 @@
+ bgColor="#FCF6E3" :min="(type=='user'?1:list.team_min_count)" :max="(type=='user'?list.person_max_count:list.team_max_count)" class="plus">
- 每单限购5张,同一身份证当天限购1张
- 8人以上可团体预约,一个团体最多50人
+ 每单限购{{list.person_max_count}}张,同一身份证当天限购1张
+ {{list.team_min_count}}人以上可团体预约,一个团体最多{{list.team_max_count}}人
@@ -76,26 +76,26 @@
-
-
-
-
-
- 批量导入说明
-
+
+
+
+
+
+ 批量导入说明
+
@@ -161,19 +161,19 @@
确定
-
-
-
-
+
+
+
+
@@ -181,20 +181,20 @@
diff --git a/pages/order/activityorder.vue b/pages/order/activityorder.vue
index 719ce72..e56d5b9 100644
--- a/pages/order/activityorder.vue
+++ b/pages/order/activityorder.vue
@@ -4,36 +4,40 @@
-
+
+
-
+
- {{item.isteam?"团队预约":"个人预约"}}
- 待参观
+ {{item.type==1?"团队预约":"个人预约"}}
+ {{sta.name}}
+
- 订单信息:5月06日 09:00-10:00 丨 3位观众
+
+ 订单信息:{{$u.timeFormat(new Date(item.activity.start_time), 'mm月dd日')}} {{getHm(item.activity.start_time)}}-{{getHm(item.activity.end_time)}}丨{{item.total}} 位观众
- 联系人:王小华 丨 13355634563
+ 联系人:{{item.leader}}丨 {{item.mobile}}
-
+
- 单位名称:王小华 丨 13355634563
+ 单位名称:{{item.unit}}
- 下单时间:5月03日 09:30
+ 下单时间:{{item.created_at}}
@@ -44,37 +48,94 @@
-
-
From d74cdf02ee4e472c8124fb49956bc857d37fbb2e Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Mon, 16 May 2022 14:41:07 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E8=AE=A2=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/activity/index.vue | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/pages/activity/index.vue b/pages/activity/index.vue
index b157252..5fd69f2 100644
--- a/pages/activity/index.vue
+++ b/pages/activity/index.vue
@@ -46,7 +46,7 @@
- 距离:11.3km
+ 距离:{{isUnde(item.distance)}}km
@@ -63,22 +63,36 @@
data() {
return {
showInfo: true,
- list: [],
+ list: [],
+ latitude:"",
+ longitude:"",
}
},
onLoad() {
- this.loadActivity()
+ var that = this;
+ wx.getLocation({
+ success(res) {
+ console.log(res)
+ that.latitude=res.latitude;
+ that.longitude=res.longitude;
+ that.loadActivity()
+ }
+ })
},
methods: {
openInfo(obj) {
uni.navigateTo({
- url: "info?id="+obj.id+"&latitude="+obj.latitude+"&longitude="+obj.longitude
+ url: "info?id="+obj.id
})
},
loadActivity(){
var that = this;
this.util.request({
api: '/api/mobile/activity/index',
+ data:{
+ latitude:that.latitude,
+ longitude:that.longitude,
+ },
utilSuccess: function(res) {
that.list = res.data;
},