|
|
|
@ -4,6 +4,13 @@
|
|
|
|
<view class="page-section page-section-gap">
|
|
|
|
<view class="page-section page-section-gap">
|
|
|
|
<map id='map' ref='map' style="width: 100%; height: 100vh;position: relative;" :latitude="latitude"
|
|
|
|
<map id='map' ref='map' style="width: 100%; height: 100vh;position: relative;" :latitude="latitude"
|
|
|
|
:longitude="longitude" :markers="covers">
|
|
|
|
:longitude="longitude" :markers="covers">
|
|
|
|
|
|
|
|
<!-- <cover-view slot='callout' style='position: relative;'>
|
|
|
|
|
|
|
|
<cover-view style='height:200px'>
|
|
|
|
|
|
|
|
<cover-image style="position: absolute;width:70px;height:70px" :src='covers[0].iconPath' :animation='animationData'>
|
|
|
|
|
|
|
|
</cover-image>
|
|
|
|
|
|
|
|
</cover-view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</cover-view> -->
|
|
|
|
<view class="book-box">
|
|
|
|
<view class="book-box">
|
|
|
|
<view class="activityBox-content flex-col">
|
|
|
|
<view class="activityBox-content flex-col">
|
|
|
|
<view class="activityBox-row" style="margin-bottom: 56rpx;">
|
|
|
|
<view class="activityBox-row" style="margin-bottom: 56rpx;">
|
|
|
|
@ -162,8 +169,8 @@
|
|
|
|
covers: [{
|
|
|
|
covers: [{
|
|
|
|
latitude: 31.297241,
|
|
|
|
latitude: 31.297241,
|
|
|
|
longitude: 120.580792,
|
|
|
|
longitude: 120.580792,
|
|
|
|
width: 50,
|
|
|
|
width: 30,
|
|
|
|
height: 50,
|
|
|
|
height: 30,
|
|
|
|
iconPath: '/static/img/location.png',
|
|
|
|
iconPath: '/static/img/location.png',
|
|
|
|
id: 1
|
|
|
|
id: 1
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
@ -182,9 +189,26 @@
|
|
|
|
remain_big_park: 0,
|
|
|
|
remain_big_park: 0,
|
|
|
|
remain_small_park: 0,
|
|
|
|
remain_small_park: 0,
|
|
|
|
remain_special_park: 0,
|
|
|
|
remain_special_park: 0,
|
|
|
|
remain_big_park2: 0
|
|
|
|
remain_big_park2: 0,
|
|
|
|
|
|
|
|
animationData:null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
onshow(){
|
|
|
|
|
|
|
|
var animation = uni.createAnimation({
|
|
|
|
|
|
|
|
duration:200,
|
|
|
|
|
|
|
|
timingFunction:'linear'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
var next = true
|
|
|
|
|
|
|
|
setInterval(()=>{
|
|
|
|
|
|
|
|
if(next){
|
|
|
|
|
|
|
|
animation.translateY(-2).step()
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
animation.translateY(0).step()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
next = !next
|
|
|
|
|
|
|
|
this.animationData = animation.export()
|
|
|
|
|
|
|
|
},800)
|
|
|
|
|
|
|
|
},
|
|
|
|
onLoad() {
|
|
|
|
onLoad() {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
|
|
@ -199,7 +223,7 @@
|
|
|
|
that.loadOrder(function(res) {
|
|
|
|
that.loadOrder(function(res) {
|
|
|
|
that.loadactivityOrder(function(r) {
|
|
|
|
that.loadactivityOrder(function(r) {
|
|
|
|
if (res.length + r.length == 0) {
|
|
|
|
if (res.length + r.length == 0) {
|
|
|
|
that.util.toast("您需要预约参观或者预约活动才可以停车");
|
|
|
|
that.util.toast("您需要“参观预约”或“活动预约”成功后才能进行停车位预约。");
|
|
|
|
that.btnDisabled = true;
|
|
|
|
that.btnDisabled = true;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
that.btnDisabled = false;
|
|
|
|
that.btnDisabled = false;
|
|
|
|
@ -328,8 +352,8 @@
|
|
|
|
var mod = {
|
|
|
|
var mod = {
|
|
|
|
latitude: that.info.latitude,
|
|
|
|
latitude: that.info.latitude,
|
|
|
|
longitude: that.info.longitude,
|
|
|
|
longitude: that.info.longitude,
|
|
|
|
width: 50,
|
|
|
|
width: 30,
|
|
|
|
height: 50,
|
|
|
|
height: 30,
|
|
|
|
iconPath: '/static/img/location.png',
|
|
|
|
iconPath: '/static/img/location.png',
|
|
|
|
id: 1
|
|
|
|
id: 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|