刘翔宇-旅管家 3 years ago
parent fb53c4c670
commit 4d4810122f

@ -1,6 +1,7 @@
<template>
<view>
<view class="listActivity">
<u-empty mode="list" text="暂无活动" marginTop="50" v-if="list.length==0&&!isloading"></u-empty>
<view class="activityBox" v-for="(item,index) in list" :key="index" @click="openInfo(item)">
<view class="activityBox-top">
<image :src='item.cover_upload.url' style="width: 100%;height: 333rpx;"></image>
@ -20,7 +21,7 @@
<view class="tag tag_green activityBox_btn">
<text>{{isUnde(item.target_name)}}</text>
</view>
<view class="tag" :class="{activityBox_btn:item.isCanBook}">
<view class="tag" :class="{activityBox_btn:item.isCanBook}">
<text>{{item.isCanBook?"立即报名":"不可报名"}}</text>
</view>
</view>
@ -67,6 +68,7 @@
list: [],
latitude: "",
longitude: "",
isloading: false
}
},
onLoad() {
@ -79,6 +81,9 @@
that.loadActivity()
}
})
},
onShareAppMessage() {
},
methods: {
tothere(item) {
@ -98,6 +103,7 @@
loadActivity() {
var that = this;
var nt = new Date();
that.isloading = true;
this.util.request({
api: '/api/mobile/activity/index',
data: {
@ -106,7 +112,7 @@
page_size: 100
},
utilSuccess: function(res) {
that.isloading = false;
for (var mod of res.data) {
mod.isCanBook = that.$moment(nt).isBefore(mod.end_plan);
}

@ -70,6 +70,9 @@
var that = this;
that.loadList(1, 1)
//that.loadList(1, 4)
},
onShareAppMessage() {
},
methods: {
showwhat(type) {

@ -176,6 +176,9 @@
showAuthorization: false,
openType: 1
}
},
onShareAppMessage() {
},
onLoad() {
this.loadInfo();

@ -15,6 +15,9 @@
},
onLoad() {
this.openlocation();
},
onShareAppMessage() {
},
methods: {
markertap() {

@ -3,7 +3,7 @@
<view class="formBox">
<image class="codePic" mode="widthFix" src="../../static/img/gh_83fed80a6144_258.jpg"></image>
<view class="codeInfo">
<view>扫描二维码即可预约体验</view>
<view>扫描二维码即可预约参观</view>
<view>您也可以点击右上角分享给好友</view>
</view>
</view>

@ -9,7 +9,7 @@
<u-form-item label="预约入场时间" labelPosition="top" borderBottom>
<view @click="handleSelectTime" style="color: #EF9525;font-size: 24rpx;">
{{(form.time?$u.timeFormat(new Date(form.time), 'yyyy年mm月dd日 hh:MM'):'请选择入场时间>')}}
{{(form.time?$u.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">
@ -19,7 +19,8 @@
<plate @listenPlateChange="plateChange" :defaultPlate="plateNumber" />
</u-form-item>
<u-form-item label="手机号" labelPosition="top" borderBottom ref="mobile">
<u--input readonly placeholder="请输入手机号" v-model="form.mobile" border="surround" clearable></u--input>
<u--input readonly placeholder="请输入手机号" v-model="form.mobile" border="surround" clearable>
</u--input>
</u-form-item>
</u--form>
@ -40,11 +41,12 @@
<view class="mpopup-title">
{{notice.name}}
</view>
<view class="mpopup-content" style="margin-top: 60rpx;">
<scroll-view scroll-y="true" style="line-height: 50rpx;font-size: 32rpx;text-indent: 2em;" :style="[{height:scrollheight}]">
<rich-text :nodes="notice.value"></rich-text>
<view class="mpopup-content" style="margin-top: 60rpx;">
<scroll-view scroll-y="true" style="line-height: 50rpx;font-size: 32rpx;text-indent: 2em;"
:style="[{height:scrollheight}]">
<rich-text :nodes="notice.value"></rich-text>
</scroll-view>
<view style="margin-top: 40rpx;"></view>
<u-button type="primary" @click="closeInfo"></u-button>
</view>
@ -93,17 +95,18 @@
<u-button type="primary" @click="handleConfirmOrder"></u-button>
</view>
</view>
</u-popup>
<u-popup :show="successshow" customStyle="width:600rpx;height:300rpx;text-align:center" :round="10" mode="center" width="600rpx" height="150rpx">
<view class="">
<view class="successBox">
<!-- <u-icon name="checkmark-circle" size="90" color="#EF9525"></u-icon> -->
<view class="h3">您已经预约成功</view>
<view class="p">即将跳转到车位预约 {{time}} s</view>
</view>
<view class="pinkBtn" @click="goHome"></view>
</view>
</u-popup>
<u-popup :show="successshow" customStyle="width:600rpx;height:300rpx;text-align:center" :round="10"
mode="center" width="600rpx" height="150rpx">
<view class="">
<view class="successBox">
<!-- <u-icon name="checkmark-circle" size="90" color="#EF9525"></u-icon> -->
<view class="h3">您已经预约成功</view>
<view class="p">即将跳转到车位预约 {{time}} s</view>
</view>
<view class="pinkBtn" @click="goHome"></view>
</view>
</u-popup>
</view>
</template>
@ -118,18 +121,18 @@
plate
},
data() {
return {
successshow: false,
time:3,
return {
successshow: false,
time: 3,
showInfo: false,
showSelectorder: false,
maxheight:"",
scrollheight:"",
showSelectorder: false,
maxheight: "",
scrollheight: "",
selectInfo: "--",
showSelecttime: false,
plateNumber: ['苏', 'E', '', '', '', '', ''],
t:null,
timer:null,
plateNumber: ['苏', 'E', '', '', '', '', ''],
t: null,
timer: null,
form: {
plate: "",
mobile: "",
@ -142,6 +145,7 @@
activity_order_id: "",
visit_order_id: ""
},
_formTime: new Date(),
listOrder: [],
listActivtyOrder: [],
orderType: 1,
@ -151,7 +155,7 @@
}
},
onLoad(options) {
let that = this;
let that = this;
that.showInfo = true;
if (!that.util.isNull(options.id)) {
this.form.car_park_id = parseInt(options.id);
@ -163,10 +167,10 @@
if (!that.util.isNull(options.bookinfo)) {
let bookinfo = JSON.parse(unescape(options.bookinfo));
this.bookinfo = bookinfo;
this.form.time = bookinfo.time;
this.form.time = bookinfo.time;
this._formTime = bookinfo.time;
this.orderType = bookinfo.orderType;
this.selectInfo = bookinfo.info;
console.log(bookinfo)
if (this.orderType == 2)
this.form.activity_order_id = bookinfo.orderid
else
@ -177,28 +181,28 @@
that.util.getUserInfo(function(r) {
that.form.mobile = r.mobile;
}, true);
that.maxheight = wx.getSystemInfoSync().windowHeight*0.6 + "px"
that.scrollheight = wx.getSystemInfoSync().windowHeight*0.6*0.7 + "px"
}, true);
that.maxheight = wx.getSystemInfoSync().windowHeight * 0.6 + "px"
that.scrollheight = wx.getSystemInfoSync().windowHeight * 0.6 * 0.7 + "px"
},
onShow() {
},
onHide() {
clearInterval(this.t)
clearTimeout(this.timer)
},
onUnload() {
clearInterval(this.t)
clearTimeout(this.timer)
},
methods: {
goHome(){
uni.switchTab({
url: "/pages/index/index"
})
onHide() {
clearInterval(this.t)
clearTimeout(this.timer)
},
onUnload() {
clearInterval(this.t)
clearTimeout(this.timer)
},
methods: {
goHome() {
uni.switchTab({
url: "/pages/index/index"
})
},
loadConfigInfo() {
var that = this;
@ -208,10 +212,10 @@
tag: "car_park_notice"
},
utilSuccess: function(res) {
that.notice = res;
that.notice.value = that.notice.value.replace(/\<p/gi,"<p class='richp'");
that.notice = res;
that.notice.value = that.notice.value.replace(/\<p/gi, "<p class='richp'");
},
utilFail: function(res) {
uni.showToast({
@ -353,18 +357,18 @@
api: '/api/mobile/carpark/order',
data: this.form,
method: "POST",
utilSuccess: function(res) {
that.successshow = true;
that.t = setInterval(function() {
if (that.time > 0)
that.time = that.time - 1;
}, 1000)
that.timer = setTimeout(function() {
uni.redirectTo({
url: '/pages/order/parkorder'
})
clearInterval(that.t);
clearTimeout(that.timer)
utilSuccess: function(res) {
that.successshow = true;
that.t = setInterval(function() {
if (that.time > 0)
that.time = that.time - 1;
}, 1000)
that.timer = setTimeout(function() {
uni.redirectTo({
url: '/pages/order/parkorder'
})
clearInterval(that.t);
clearTimeout(that.timer)
}, 3000)
// uni.showToast({
// icon: "none",
@ -436,42 +440,44 @@
padding: 15rpx 25rpx;
box-sizing: border-box;
z-index: 10;
}
.successBox {
.iconfont {
color: #00CCB9;
font-size: 180rpx;
}
.h3 {
font-size: 40rpx;
font-weight: 500;
color: #333333;
margin-top: 40rpx;
}
.p {
font-size: 28rpx;
font-weight: 400;
color: #333333;
margin-top: 24rpx;
}
}
.pinkBtn {
width: 50%;
background-image: linear-gradient(45deg, #EF9525 0%, #EF9525 100%);
border-radius: 44rpx;
font-size: 30rpx;
font-weight: 500;
color: #FFFFFF;
text-align: center;
line-height: 70rpx;
margin:30rpx auto;
}
.richp{
margin-bottom:10rpx
}
.successBox {
.iconfont {
color: #00CCB9;
font-size: 180rpx;
}
.h3 {
font-size: 40rpx;
font-weight: 500;
color: #333333;
margin-top: 40rpx;
}
.p {
font-size: 28rpx;
font-weight: 400;
color: #333333;
margin-top: 24rpx;
}
}
.pinkBtn {
width: 50%;
background-image: linear-gradient(45deg, #EF9525 0%, #EF9525 100%);
border-radius: 44rpx;
font-size: 30rpx;
font-weight: 500;
color: #FFFFFF;
text-align: center;
line-height: 70rpx;
margin: 30rpx auto;
}
.richp {
margin-bottom: 10rpx
}
</style>

Loading…
Cancel
Save