diff --git a/components/DateSelector.vue b/components/DateSelector.vue
new file mode 100644
index 0000000..b41c292
--- /dev/null
+++ b/components/DateSelector.vue
@@ -0,0 +1,205 @@
+
+
+
+
+
+
+ {{ShowDateDay(new Date(item.date).getDay())}}
+ {{getDatePrefix(item)}}
+ {{item.money == 0? '免费' : '¥' + (item.money / 100)}}
+ 售罄
+
+
+ 更多
日期
+ >
+
+
+
+
+
+ {{item.start_time}}-{{item.end_time}}
+ {{item.stock_number == 0? '无票' : '有票'}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index 0434ed0..5d18d45 100644
--- a/manifest.json
+++ b/manifest.json
@@ -50,11 +50,19 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
- "appid" : "",
+ "appid" : "wxdaf3d5edd07dc7af",
"setting" : {
- "urlCheck" : false
+ "urlCheck" : false,
+ "postcss" : true,
+ "minified" : true,
+ "es6" : true
},
- "usingComponents" : true
+ "usingComponents" : true,
+ "permission" : {
+ "scope.userLocation" : {
+ "desc" : "获取用户距离商家距离"
+ }
+ }
},
"mp-alipay" : {
"usingComponents" : true
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..7cc770d
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,11 @@
+{
+ "requires": true,
+ "lockfileVersion": 1,
+ "dependencies": {
+ "moment": {
+ "version": "2.30.1",
+ "resolved": "https://registry.npmmirror.com/moment/-/moment-2.30.1.tgz",
+ "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how=="
+ }
+ }
+}
diff --git a/pages.json b/pages.json
index 6c918fa..adfe632 100644
--- a/pages.json
+++ b/pages.json
@@ -41,6 +41,24 @@
"navigationBarTitleText": "周边特惠活动"
}
},
+ {
+ "path": "venue/venueList",
+ "style": {
+ "navigationBarTitleText": "场馆预约"
+ }
+ },
+ {
+ "path": "venue/venueDetail",
+ "style": {
+ "navigationBarTitleText": "场馆详情"
+ }
+ },
+ {
+ "path": "venue/venueOrder",
+ "style": {
+ "navigationBarTitleText": "订单填写"
+ }
+ },
{
"path": "service/service",
"style": {
@@ -76,6 +94,25 @@
"style": {
"navigationBarTitleText": "优惠券"
}
+ },
+ {
+ "path": "order/trades",
+ "style": {
+ "navigationBarTitleText": "全部订单"
+ }
+ },
+ {
+ "path": "eventCalendar/eventCalendar",
+ "style": {
+ "navigationBarTitleText": "活动日历"
+ // "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "eventCalendar/detail",
+ "style": {
+ "navigationBarTitleText": "活动详情"
+ }
}
]
}],
diff --git a/pages/index/index.vue b/pages/index/index.vue
index b1fc912..0176ef0 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -149,7 +149,7 @@
{
title: '场馆预约',
img: 'https://static.ticket.sz-trip.com/changshu/images/index/cgyy.png',
- path: ''
+ path: '/subPackages/venue/venueList'
},
{
title: '一卡游玩',
@@ -159,7 +159,7 @@
{
title: '活动日历',
img: 'https://static.ticket.sz-trip.com/changshu/images/index/hdrl.png',
- path: ''
+ path: '/subPackages/eventCalendar/eventCalendar'
},
{
title: '特色线路',
diff --git a/pages/user/user.vue b/pages/user/user.vue
index 3dfca48..a4ad8d8 100644
--- a/pages/user/user.vue
+++ b/pages/user/user.vue
@@ -317,13 +317,13 @@
view{
box-sizing: border-box;
}
- /deep/.uni-countdown {
- font-size: 20px !important;
+ // /deep/.uni-countdown {
+ // font-size: 20px !important;
- /deep/.uni-countdown__splitor {
- font-size: 20px !important;
- }
- }
+ // /deep/.uni-countdown__splitor {
+ // font-size: 20px !important;
+ // }
+ // }
.bg {
min-height: 100vh;
diff --git a/static/js/CommonFunction.js b/static/js/CommonFunction.js
index 2b6d2cc..f82fcb7 100644
--- a/static/js/CommonFunction.js
+++ b/static/js/CommonFunction.js
@@ -90,7 +90,7 @@ Vue.prototype.showImg = img => {
if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) {
return img;
} else {
- return this.NEWAPIURL + img;
+ return Vue.prototype.NEWAPIURL + img;
}
}
@@ -229,6 +229,11 @@ Vue.prototype.getHeadImg = type => {
},
'/api/public_service/getKumgangHeadImgList'
).then(res => {
- return res.data[0].image
+ return Vue.prototype.NEWAPIURL + res.data[0].image
});
+}
+
+// 跳转君到苏州详情
+Vue.prototype.gotoDetailByType = item => {
+
}
\ No newline at end of file
diff --git a/static/js/request.js b/static/js/request.js
index bae4d5d..a68fafa 100644
--- a/static/js/request.js
+++ b/static/js/request.js
@@ -2,7 +2,7 @@ import Vue from 'vue';
import store from '@/store';
// 定义 API URL
-const CS_API_URL = 'https://api.cloud.sz-trip.com';
+const CS_API_URL = 'http://changshu.js-dyyj.com/';
const JDSZ_API_URL = 'https://api.cloud.sz-trip.com';
const NEWAPIURL = process.env.NODE_ENV === 'development' ? CS_API_URL : CS_API_URL;
@@ -16,7 +16,7 @@ const getToken = () => {
}
}
// return store.state.user.userInfo.token;
- return "9e78c382-3fe9-4d54-82b2-27f83e1d5f24"
+ return "ce870b90-d976-42b7-b4d8-d2957316886b"
};
// 定义错误处理函数
@@ -50,7 +50,7 @@ Vue.prototype.Post = (params = {}, apiurl) => {
});
uni.request({
method: params.method || 'GET',
- url: params && params.apiType === 'jdsz' ? JDSZ_API_URL + apiurl : Vue.prototype.NEWAPIURL + apiurl,
+ url: params && params.apiType === 'jdsz' ? JDSZ_API_URL + apiurl : CS_API_URL + apiurl,
data: params,
header: {
'content-type': 'application/json',
diff --git a/store/modules/user.js b/store/modules/user.js
index d15a45e..7a798c1 100644
--- a/store/modules/user.js
+++ b/store/modules/user.js
@@ -10,6 +10,7 @@ export default {
}, //保存用户登录信息,
toPath: "", //要跳转过去的页面,
products: "",//订单数据
+ orderInfo: "", //进入下单页数据
linkProducts: "",//用来支付的订单数据
coupon: "",//景点下单选择优惠券
eshoppingCart: [],//自提产品购物车下单数据
@@ -41,9 +42,9 @@ export default {
url: '/pages/login/login'
})
},
- //订单数据
+ // 进入下单页数据
changeOrderInfo(state, data) {
- state.products = data
+ state.orderInfo = data
},
//获取支付订单数据
changelinkProducts(state, data) {
diff --git a/subPackages/eventCalendar/detail.vue b/subPackages/eventCalendar/detail.vue
new file mode 100644
index 0000000..81d3870
--- /dev/null
+++ b/subPackages/eventCalendar/detail.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
diff --git a/subPackages/eventCalendar/eventCalendar.vue b/subPackages/eventCalendar/eventCalendar.vue
new file mode 100644
index 0000000..dcfe9ee
--- /dev/null
+++ b/subPackages/eventCalendar/eventCalendar.vue
@@ -0,0 +1,609 @@
+
+
+
+
+
+
+
+
+
+ {{ monthShow ? '上一月' : '上一周' }}
+
+ {{year}}年{{month}}月
+
+ {{ monthShow ? '下一月' : '下一周' }}
+
+
+
+
+
+ {{item}}
+
+
+
+
+ {{ nowDay== item.date ? '今日' : item.day }}
+
+
+
+
+
+
+ {{ nowDay == getNowTime(item) ? '今日' : getNowTime(item).slice(-2) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+
+ {{item.title}}
+
+ 地址:{{item.address}}
+ 时间:{{item.start_time}} - {{item.end_time}}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/subPackages/order/trades.vue b/subPackages/order/trades.vue
new file mode 100644
index 0000000..fd759a5
--- /dev/null
+++ b/subPackages/order/trades.vue
@@ -0,0 +1,657 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+ 暂无订单~
+
+
+ choseType(item)">
+
+ 订单号:{{ item.order_id }}
+ {{ item.status_text }}
+
+
+
+
+ {{ pro.goods_title + pro.specifications_name }}
+
+ ¥{{ pro.pay_money / 100 }}
+ x{{ pro.num }}
+
+
+
+
+ 合计¥
+ {{ item.pay_money / 100 }}
+
+
+ refund(item.order_id, key)" v-if="item.status == 'PAYMENT_SUCCESSFULLY'">申请退款
+ closeOrder(item.order_id, item)" v-if="item.status == 'WAIT_PAYMENT'">关闭订单
+ 确认收货
+ 立即支付
+
+
+
+
+
+
+
+
+
+
diff --git a/subPackages/peripheralActivity/peripheralActivity.vue b/subPackages/peripheralActivity/peripheralActivity.vue
index 56b25fb..25da716 100644
--- a/subPackages/peripheralActivity/peripheralActivity.vue
+++ b/subPackages/peripheralActivity/peripheralActivity.vue
@@ -1,6 +1,16 @@
-
+
+
+
+
+
+
+ {{item.name}}
+ 活动时间:{{ item.begin_date }}—{{ item.end_date }}
+
+
+
@@ -8,15 +18,17 @@
export default {
data() {
return {
- topImg: 'https://static.ticket.sz-trip.com/changshu/images/rim/topImgs.png',
+ topImg: '',
list: [],
pageNo: 1,
- limit: 10
+ limit: 10,
+ isLoading: false
}
},
onReady() {
this.pageNo = 1
this.getList()
+ this.getTopImg()
},
onReachBottom() {
setTimeout(() => {
@@ -24,6 +36,9 @@
}, 500);
},
methods: {
+ async getTopImg() {
+ this.topImg = await this.getHeadImg('peripheralActivity')
+ },
getList() {
this.Post({
apiType: 'jdsz',
@@ -46,11 +61,49 @@
width: 750rpx;
min-height: 100vh;
background: #F7F7F7;
- padding-bottom: 100rpx;
}
.topImg {
width: 100%;
height: 533.33rpx;
}
+
+ .box {
+ position: relative;
+ top: -217rpx;
+
+ .item {
+ width: 697rpx;
+ height: 417rpx;
+ background: rgba(255,255,255,0.6);
+ box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(89,166,160,0.32);
+ border-radius: 13rpx;
+ margin: 0 auto 30rpx;
+
+ .img {
+ width: 697rpx;
+ height: 300rpx;
+ border-radius: 13rpx 13rpx 0rpx 0rpx;
+ display: block;
+ }
+
+ .content {
+ height: 117rpx;
+ padding: 0 22rpx;
+ justify-content: space-around;
+
+ .title {
+ font-weight: bold;
+ font-size: 31rpx;
+ color: #111111;
+ }
+
+ .subtitle {
+ font-weight: 500;
+ font-size: 24rpx;
+ color: #111111;
+ }
+ }
+ }
+ }
\ No newline at end of file
diff --git a/subPackages/rim/rimList.vue b/subPackages/rim/rimList.vue
index 8c3fc3f..9aa4177 100644
--- a/subPackages/rim/rimList.vue
+++ b/subPackages/rim/rimList.vue
@@ -1,6 +1,6 @@
-
+
@@ -24,7 +24,7 @@
export default {
data() {
return {
- topImg: 'https://static.ticket.sz-trip.com/changshu/images/rim/topImg.png',
+ topImg: '',
typeList: [
{title: '景点', id: '616'},
{title: '线路', id: '617'},
@@ -32,11 +32,13 @@
],
typeIndex: 0,
list: [],
- limit: 10
+ limit: 10,
+ isLoading: false
}
},
onReady() {
this.getList()
+ this.getTopImg()
},
onReachBottom() {
setTimeout(() => {
@@ -44,6 +46,9 @@
}, 500);
},
methods: {
+ async getTopImg() {
+ this.topImg = await this.getHeadImg('rim')
+ },
changeType(index) {
this.typeIndex = index
this.list = []
diff --git a/subPackages/venue/venueDetail.vue b/subPackages/venue/venueDetail.vue
new file mode 100644
index 0000000..1f16a9d
--- /dev/null
+++ b/subPackages/venue/venueDetail.vue
@@ -0,0 +1,439 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ detail.title }}
+
+
+ {{ detail.address }}
+
+
+
+ {{ detail.tel }}
+
+
+
+ 场馆预约
+
+
+
+
+
+
+ 场馆介绍
+
+
+ 接待时间
+
+
+
+
+
+ 参观预约
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/subPackages/venue/venueList.vue b/subPackages/venue/venueList.vue
new file mode 100644
index 0000000..3202b0f
--- /dev/null
+++ b/subPackages/venue/venueList.vue
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+ {{item.subtitle}}
+ 立即预约 >
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/subPackages/venue/venueOrder.vue b/subPackages/venue/venueOrder.vue
new file mode 100644
index 0000000..c3622f1
--- /dev/null
+++ b/subPackages/venue/venueOrder.vue
@@ -0,0 +1,458 @@
+
+
+
+
+ {{ orderInfo.goodsInfo.title }}
+
+ {{dateList[dateIndex].date}} {{ShowDateDay(new Date(dateList[dateIndex].date).getDay())}}
+ {{ stockList[stockIndex].start_time }}-{{ stockList[stockIndex].end_time }} 入园
+
+
+ 修改 >
+
+
+
+
+ {{orderInfo.skuInfo.title}}
+ {{(stockList[stockIndex].money * buyNum) / 100 }}
+
+ -
+ {{buyNum}}
+ +
+
+
+
+
+ {{item}}|
+
+ 预订须知 >
+
+ 无需身份证
+
+
+
+ 出行人信息
+
+ 联系电话
+
+
+
+
+
+
+
+ 立即预约
+
+
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file