master
lion 1 year ago
parent 126176eefa
commit e83130c258

@ -208,17 +208,17 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} },
,{ // {
"path" : "pages/vr/vrpagegm", // "path" : "pages/vr/vrpagegm",
"style" : // "style" :
{ // {
"navigationBarTitleText": "", // "navigationBarTitleText": "",
"enablePullDownRefresh": false // "enablePullDownRefresh": false
} // }
} // }
,{ {
"path" : "pages/guide/feedbackinfo", "path" : "pages/guide/feedbackinfo",
"style" : "style" :
{ {

@ -113,7 +113,7 @@
</view> </view>
</view> </view>
</u-popup> </u-popup>
<view class="flex-row" v-if="list.status==1"> <view class="flex-row" v-if="list.status==1&&isCanBook">
<view style="margin-right: 14rpx;flex: 1;" v-if="list.join_type==1||list.join_type==0"> <view style="margin-right: 14rpx;flex: 1;" v-if="list.join_type==1||list.join_type==0">
<u-button type="primary" @click="tobook('team')"></u-button> <u-button type="primary" @click="tobook('team')"></u-button>
</view> </view>

@ -1,140 +0,0 @@
<template>
<view>
<view>
<view style="padding: 4%" v-if="list.length>0">
<u-swiper :list="list" keyName="img" @click="clickInfo"></u-swiper>
</view>
<view class="listbox flex-row">
<view class="boxitem" @click="tolist(1)">
<text class="iconfont icon-xuzhixianxiao"></text>
<text>参观须知</text>
</view>
<view class="boxitem" @click="tolist(2)">
<text class="iconfont icon-bus-alt"></text>
<text>公共交通</text>
</view>
<view class="boxitem" @click="tolist(3)">
<text class="iconfont icon-tousujianyi"></text>
<text>投诉建议</text>
</view>
<view class="boxitem" @click="tolist(4)">
<text class="iconfont icon-changjianwenti"></text>
<text>常见问题</text>
</view>
<view class="boxitem" @click="tolist(5)">
<text class="iconfont icon-lianxiwomen"></text>
<text>联系我们</text>
</view>
</view>
</view>
<view class="box-footer"
style="position: fixed;bottom: -60rpx;left: 0;text-align: center;width: 100%;z-index: -1;">
<image src="../../static/img/footer_logo.png" class="footer-img"></image>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list: []
}
},
onLoad() {
var that = this;
wx.getLocation({
success(res) {
that.latitude = res.latitude;
that.longitude = res.longitude;
that.loadActivity()
}
})
},
methods: {
tolist(type) {
if (type == 5) {
uni.navigateTo({
url: "contact"
})
} else if (type == 3) {
uni.navigateTo({
url: "feedback"
})
} else
uni.navigateTo({
url: "list?type=" + type
})
},
loadActivity() {
var that = this;
this.util.request({
api: '/api/mobile/activity/index',
data: {
latitude: that.latitude,
longitude: that.longitude,
time_type: 2
},
utilSuccess: function(res) {
for (var m of res.data) {
m.img = m.cover_upload.url;
}
that.list = res.data;
},
utilFail: function(res) {
}
})
},
clickInfo(e) {
var obj = this.list[e];
uni.navigateTo({
url: "../activity/info?id=" + obj.id + "&latitude=" + obj.latitude + "&longitude=" + obj
.longitude
})
}
}
}
</script>
<style>
page {
background: #f7f6f4;
}
.iconfont {
font-size: 48rpx;
color: #dec096;
margin-bottom: 15rpx;
}
.footer-img {
width: 421rpx;
height: 364rpx;
}
.listbox {
flex-wrap: wrap;
padding: 2%;
}
.boxitem {
background: url("@/static/img/nav_bg.png") no-repeat;
background-size: 100% 100%;
width: 50%;
width: 46%;
height: 100px;
margin-bottom: 20rpx;
margin-bottom: 20rpx;
margin-right: 2%;
margin-left: 2%;
font-size: 32rpx;
font-family: PingFang SC;
font-weight: 400;
color: #351C1B;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
</style>

@ -119,12 +119,12 @@
</view> </view>
</view> </view>
<view class="mpopup-footer"> <view class="mpopup-footer">
<view style="margin-right: 14rpx;flex: 1;"> <view style="margin-right: 0rpx;flex: 1;">
<u-button type="primary" @click="tobook('team')"></u-button> <u-button type="primary" @click="tobook('team')"></u-button>
</view> </view>
<view style="margin-left: 14rpx;flex: 1;"> <!-- <view style="margin-left: 14rpx;flex: 1;">
<u-button type="primary" @click="tobook('user')"></u-button> <u-button type="primary" @click="tobook('user')"></u-button>
</view> </view> -->
</view> </view>
</view> </view>
</u-popup> </u-popup>

@ -2,15 +2,15 @@
<view> <view>
<view class="box-content"> <view class="box-content">
<view class="box-card"> <view class="box-card">
<view class="box-tip justify-between"> <!-- <view class="box-tip justify-between">
<text class="box-tiptxt">已选{{selectInfo}}</text> <text class="box-tiptxt">已选{{selectInfo}}</text>
</view> </view> -->
<u--form labelPosition="top" labelWidth="120px" :model="form" ref="form"> <u--form labelPosition="top" labelWidth="120px" :model="form" ref="form">
<u-form-item label="预约入场时间" labelPosition="top" borderBottom> <u-form-item label="预约入场时间" labelPosition="top" borderBottom>
<view style="color: #EF9525;font-size: 24rpx;"> <view style="color: #EF9525;font-size: 24rpx;" @click="showSelecttime=true">
{{selectInfo}} <!-- {{selectInfo}} -->
<!--{{(form.time?timeFormat(_formTime, 'yyyy年MM月DD日 HH:mm'):'请选择入场时间>')}}--> {{(form.time?timeFormat(formTime, 'yyyy年MM月DD日 HH:mm'):'请选择入场时间>')}}
</view> </view>
<u-datetime-picker :show="showSelecttime" closeOnClickOverlay @close="cancelTime" <u-datetime-picker :show="showSelecttime" closeOnClickOverlay @close="cancelTime"
@cancel="cancelTime" @confirm="confirmTime" v-model="form.time" mode="datetime"> @cancel="cancelTime" @confirm="confirmTime" v-model="form.time" mode="datetime">
@ -137,7 +137,7 @@
form: { form: {
plate: "", plate: "",
mobile: "", mobile: "",
time: new Date(), time: Number(new Date()),
car_park_id: "", car_park_id: "",
checkUser: false, checkUser: false,
car_type: 1, car_type: 1,
@ -146,7 +146,7 @@
activity_order_id: "", activity_order_id: "",
visit_order_id: "" visit_order_id: ""
}, },
_formTime: new Date(), formTime: Number(new Date()),
listOrder: [], listOrder: [],
listActivtyOrder: [], listActivtyOrder: [],
orderType: 1, orderType: 1,
@ -156,7 +156,8 @@
} }
}, },
onLoad(options) { onLoad(options) {
let that = this; let that = this;
that.showInfo = true; that.showInfo = true;
if (!that.util.isNull(options.id)) { if (!that.util.isNull(options.id)) {
this.form.car_park_id = parseInt(options.id); this.form.car_park_id = parseInt(options.id);
@ -169,7 +170,7 @@
let bookinfo = JSON.parse(unescape(options.bookinfo)); let bookinfo = JSON.parse(unescape(options.bookinfo));
this.bookinfo = bookinfo; this.bookinfo = bookinfo;
this.form.time = bookinfo.time; this.form.time = bookinfo.time;
this._formTime = bookinfo.time; this.formTime = bookinfo.time;
this.orderType = bookinfo.orderType; this.orderType = bookinfo.orderType;
this.selectInfo = bookinfo.info; this.selectInfo = bookinfo.info;
if (this.orderType == 2) if (this.orderType == 2)
@ -177,7 +178,9 @@
else else
this.form.visit_order_id = bookinfo.orderid this.form.visit_order_id = bookinfo.orderid
this.orderid = bookinfo.orderid this.orderid = bookinfo.orderid
} }
that.form.time = new Date()
console.log(that.form.time)
that.loadConfigInfo(); that.loadConfigInfo();
that.util.getUserInfo(function(r) { that.util.getUserInfo(function(r) {
@ -329,10 +332,10 @@
this.showSelecttime = true; this.showSelecttime = true;
}, },
submitOrder() { submitOrder() {
if (this.util.isNull(this.orderid)) { // if (this.util.isNull(this.orderid)) {
this.util.toast("请选择参观预约或者活动预约"); // this.util.toast("");
return false; // return false;
} // }
if (this.form.plate.length != 7 && this.form.plate.length != 8) { if (this.form.plate.length != 7 && this.form.plate.length != 8) {
this.util.toast("请正确填写车牌号"); this.util.toast("请正确填写车牌号");
return false; return false;

@ -87,10 +87,10 @@
</view> </view>
</view> </view>
<view class="activityBox-row" style="margin-top: 20rpx;color: #EF9525;" <!-- <view class="activityBox-row" style="margin-top: 20rpx;color: #EF9525;"
@click="showSelectorder=true"> @click="showSelectorder=true">
<text>选择信息{{selectInfo.info||"暂未选择"}}</text> <text>选择信息{{selectInfo.info||"暂未选择"}}</text>
</view> </view> -->
</view> </view>
</view> </view>
@ -179,22 +179,25 @@
} }
}, },
onLoad() { onLoad() {
var that = this; var that = this;
this.loadInfo();
wx.getLocation({ wx.getLocation({
success(res) { success(res) {
that.userlatitude = res.latitude; that.userlatitude = res.latitude;
that.userlongitude = res.longitude; that.userlongitude = res.longitude;
that.loadOrder(function(res) { that.btnDisabled = false;
that.loadactivityOrder(function(r) { // that.showSelectorder = true;
if (res.length + r.length == 0) { // that.loadOrder(function(res) {
that.util.toast("您需要预约参观或者预约活动才可以停车"); // that.loadactivityOrder(function(r) {
that.btnDisabled = true; // if (res.length + r.length == 0) {
} else { // that.util.toast("");
that.btnDisabled = false; // that.btnDisabled = true;
that.showSelectorder = true; // } else {
} // that.btnDisabled = false;
}) // that.showSelectorder = true;
}); // }
// })
// });
} }
}) })
@ -330,10 +333,11 @@
uni.$u.throttle(this.tobook, 500) uni.$u.throttle(this.tobook, 500)
}, },
tobook() { tobook() {
if (this.selectInfo.orderid === 0) { // if (this.selectInfo.orderid === 0) {
this.util.toast("请选择预约的活动或者预约的参观"); // this.util.toast("");
return false; // return false;
} else if (this.currentPark === 0) { // } else
if (this.currentPark === 0) {
this.util.toast("请选择停车位"); this.util.toast("请选择停车位");
return false; return false;
} else { } else {

@ -1,9 +0,0 @@
<template>
<web-view src="https://suzhoushijian.szgmbwg.org.cn?v=1.0"></web-view>
</template>
<script>
</script>
<style>
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Loading…
Cancel
Save