master
lion 1 year ago
parent 126176eefa
commit e83130c258

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

@ -113,7 +113,7 @@
</view>
</view>
</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">
<u-button type="primary" @click="tobook('team')"></u-button>
</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 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>
</view>
<view style="margin-left: 14rpx;flex: 1;">
<!-- <view style="margin-left: 14rpx;flex: 1;">
<u-button type="primary" @click="tobook('user')"></u-button>
</view>
</view> -->
</view>
</view>
</u-popup>

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

@ -87,10 +87,10 @@
</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">
<text>选择信息{{selectInfo.info||"暂未选择"}}</text>
</view>
</view> -->
</view>
</view>
@ -180,21 +180,24 @@
},
onLoad() {
var that = this;
this.loadInfo();
wx.getLocation({
success(res) {
that.userlatitude = res.latitude;
that.userlongitude = res.longitude;
that.loadOrder(function(res) {
that.loadactivityOrder(function(r) {
if (res.length + r.length == 0) {
that.util.toast("您需要预约参观或者预约活动才可以停车");
that.btnDisabled = true;
} else {
that.btnDisabled = false;
that.showSelectorder = true;
}
})
});
// that.showSelectorder = true;
// that.loadOrder(function(res) {
// that.loadactivityOrder(function(r) {
// if (res.length + r.length == 0) {
// that.util.toast("");
// that.btnDisabled = true;
// } else {
// that.btnDisabled = false;
// that.showSelectorder = true;
// }
// })
// });
}
})
@ -330,10 +333,11 @@
uni.$u.throttle(this.tobook, 500)
},
tobook() {
if (this.selectInfo.orderid === 0) {
this.util.toast("请选择预约的活动或者预约的参观");
return false;
} else if (this.currentPark === 0) {
// if (this.selectInfo.orderid === 0) {
// this.util.toast("");
// return false;
// } else
if (this.currentPark === 0) {
this.util.toast("请选择停车位");
return false;
} 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