master
lion 3 years ago
parent 6e2af9eadb
commit 557453cbfb

@ -206,6 +206,18 @@
<u-button type="primary" @click="closeInfo"></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>
</view>
</template>
@ -213,7 +225,9 @@
<script>
export default {
data() {
return {
return {
successshow: false,
time:3,
showAdd: false,
isEdit: false,
isEditIndex: 0,
@ -238,7 +252,8 @@
},
type: "user",
rules: [],
t:null,
timer:null,
details_rule: {
name: [{
required: true,
@ -297,8 +312,22 @@
that.form.mobile = r.mobile;
}, true);
that.loadCommonUser()
},
onHide() {
clearInterval(this.t)
clearTimeout(this.timer)
},
onUnload() {
clearInterval(this.t)
clearTimeout(this.timer)
},
methods: {
goHome(){
uni.switchTab({
url: "/pages/index/index"
})
},
loadCommonUser(){
var that = this;
this.util.request({
@ -526,16 +555,29 @@
api: '/api/mobile/activity/order',
method: "POST",
data: this.form,
utilSuccess: function(res) {
uni.showToast({
icon: "none",
title: "下单成功",
complete() {
uni.redirectTo({
url: "/pages/success/success?from=activity&id=" + res.id
})
}
})
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/activityorder'
})
clearInterval(that.t);
clearTimeout(that.timer)
}, 3000)
// uni.showToast({
// icon: "none",
// title: "",
// complete() {
// uni.redirectTo({
// url: "/pages/success/success?from=activity&id=" + res.id
// })
// }
// })
},
utilFail: function(res) {
uni.showToast({
@ -550,7 +592,7 @@
}
</script>
<style>
<style lang="scss">
@import url("@/static/css/bookbox.css");
@import url("@/static/css/activitybox.css");
@ -661,5 +703,39 @@
text-align: center;
}
.box-card-content {}
.box-card-content {}
.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;
}
</style>

@ -2,26 +2,45 @@
<view class="content">
<view class="contentlist">
<view class="content_box">
<view class="content_title">
参观须知
<view class="content_title" @click="showwhat('shownotice')">
<view class="infoicon">
<u-icon size="16" color="#42b983" name="info-circle-fill"></u-icon>
<text>参观须知</text>
</view>
<u-icon v-if="!show.shownotice" size="16" name="arrow-down"></u-icon>
<u-icon v-if="show.shownotice" size="16" name="arrow-up"></u-icon>
</view>
<view class="content_info">
<view class="content_info" v-if="show.shownotice">
<rich-text :nodes="notice.content"></rich-text>
</view>
</view>
<view class="content_box">
<view class="content_title">
常见问题
<view class="content_title" @click="showwhat('showask')">
<view class="infoicon">
<u-icon size="16" color="#42b983" name="info-circle-fill"></u-icon>
<text>常见问题</text>
</view>
<u-icon v-if="!show.showask" size="16" name="arrow-down"></u-icon>
<u-icon v-if="show.showask" size="16" name="arrow-up"></u-icon>
</view>
<view class="content_info">
<view class="content_info" v-if="show.showask">
<rich-text :nodes="ask.content"></rich-text>
</view>
</view>
<view class="content_box">
<view class="content_title">
意见建议
<view class="content_title" @click="showwhat('showform')">
<view class="infoicon">
<u-icon size="16" color="#42b983" name="info-circle-fill"></u-icon>
<text>意见建议</text>
</view>
<u-icon v-if="!show.showform" size="16" name="arrow-down"></u-icon>
<u-icon v-if="show.showform" size="16" name="arrow-up"></u-icon>
</view>
<view class="content_info">
<view class="content_info" v-if="show.showform">
<u-form labelPosition="top" :model="form">
<u-form-item label="手机号" prop="mobile" labelWidth="60px" required>
<u-input v-model="form.mobile" placeholder="请输入手机号"></u-input>
@ -46,6 +65,11 @@
form: {
mobile: "",
content: ""
},
show:{
shownotice:false,
showask:false,
showform:false
},
urls: {
1: '/api/mobile/other/visit-notice-index',
@ -58,7 +82,14 @@
that.loadList(1, 1)
that.loadList(1, 4)
},
methods: {
methods: {
showwhat(type){
// for(var m in this.show){
// if(m==type){
this.show[type] = !this.show[type]
// }
// }
},
loadList(page, type) {
var that = this;
this.util.request({
@ -127,21 +158,28 @@
}
.content {
padding: 30rpx 24rpx;
padding:0 24rpx 60rpx 24rpx;
min-height: 100vh;
background: #fff;
}
.content_box {
background: #FFFFFF;
/* background: #FFFFFF;
border-radius: 16rpx;
padding: 30rpx 21rpx;
margin-bottom: 25rpx;
margin-bottom: 25rpx; */
}
.content_title {
padding-bottom: 26rpx;
border-bottom: #F7F6F4 1rpx solid;
padding: 26rpx 0;
border-bottom: #ddd 1rpx solid;
font-size: 32rpx;
color: #351C1B;
color: #351C1B;
display: flex;
justify-content: space-between;
}
.infoicon view{
display: inline-block!important;
margin-right:20rpx
}
.content_info {

@ -38,7 +38,7 @@
<view class="orderBoxFooter flex-row flex_end">
<view class="fbtn cancel" v-if="item.status==1" style="margin-right: 23rpx;"
@click.stop="tocancel(item.id)">取消</view>
<view class="fbtn" @click.stop="toinfo(item.id)">查看详情</view>
<view class="fbtn" :class="{'cancel':item.status!=1}" @click.stop="toinfo(item.id)">查看详情</view>
</view>
</view>
</block>

@ -114,21 +114,21 @@
detailsinfo:[],
showview:false,
optionid:"",
timers:""
timers:"",
isused:false,
}
},
onLoad(options) {
if (!this.util.isNull(options.id)) {
this.optionid = options.id
this.loadInfo(options.id);
this.loadInfo(options.id);
}
},
onShow() {
var that = this
this.timers = setInterval(function(){
that.loadInfo(that.optionid);
},15000)
this.timers = setInterval(function(){
that.loadInfo(that.optionid);
},1000)
},
onHide() {
@ -169,6 +169,9 @@
utilSuccess: function(res) {
that.info = res;
that.detailsinfo = res.details;
if(res.status!=1){
clearInterval(that.timers)
}
if(res.type==1){
that.qrFun(res.code+"-"+"0");
setTimeout(function(){

@ -37,7 +37,7 @@
<view class="orderBoxFooter flex-row flex_end">
<view class="fbtn cancel" v-if="item.status==1" style="margin-right: 23rpx;"
@click.stop="tocancel(item.id)">取消预约</view>
<view class="fbtn" @click.stop="toinfo(item.id)">查看详情</view>
<view class="fbtn" :class="{'cancel':item.status!=1}" @click.stop="toinfo(item.id)">查看详情</view>
</view>
</view>
</block>

@ -146,7 +146,7 @@
var that = this
this.timer = setInterval(function(){
that.loadInfo(that.optionid);
},15000)
},1000)
},
onHide() {
@ -204,6 +204,9 @@
utilSuccess: function(res) {
that.info = res;
that.detailsinfo = res.details;
if(res.status!=1){
clearInterval(that.timer)
}
if(res.type==1){
that.qrFun(res.code+"-"+"0");
setTimeout(function(){

@ -36,13 +36,16 @@
</view>
<u-popup :show="showInfo" mode="bottom" @close="closeInfo" :round="10" closeable>
<view class="mpopup">
<view class="mpopup" :style="[{height:maxheight}]">
<view class="mpopup-title">
{{notice.name}}
</view>
<view class="mpopup-content" style="margin-top: 60rpx;">
<rich-text :nodes="notice.value"></rich-text>
<view style="margin-top: 80px;"></view>
<view class="mpopup-content" style="margin-top: 60rpx;">
<scroll-view scroll-y="true" :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>
</view>
@ -90,6 +93,17 @@
<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>
</view>
</template>
@ -104,12 +118,18 @@
plate
},
data() {
return {
return {
successshow: false,
time:3,
showInfo: false,
showSelectorder: false,
showSelectorder: false,
maxheight:"",
scrollheight:"",
selectInfo: "--",
showSelecttime: false,
plateNumber: ['苏', 'E', '', '', '', '', ''],
plateNumber: ['苏', 'E', '', '', '', '', ''],
t:null,
timer:null,
form: {
plate: "",
mobile: "",
@ -157,12 +177,29 @@
that.util.getUserInfo(function(r) {
that.form.mobile = r.mobile;
}, true);
}, 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: {
methods: {
goHome(){
uni.switchTab({
url: "/pages/index/index"
})
},
loadConfigInfo() {
var that = this;
this.util.request({
@ -313,16 +350,28 @@
api: '/api/mobile/carpark/order',
data: this.form,
method: "POST",
utilSuccess: function(res) {
uni.showToast({
icon: "none",
title: "下单成功",
complete() {
uni.redirectTo({
url: "/pages/success/success?from=park&id=" + res.id
})
}
})
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",
// title: "",
// complete() {
// uni.redirectTo({
// url: "/pages/success/success?from=park&id=" + res.id
// })
// }
// })
},
utilFail: function(res) {
that.util.toast(res);
@ -334,7 +383,7 @@
}
</script>
<style>
<style lang="scss">
page {
background: #f7f6f4;
}
@ -384,5 +433,39 @@
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;
}
</style>

@ -249,16 +249,33 @@
<u-popup :show="showInfo" mode="bottom" @close="closeInfo" :round="10" closeable>
<view class="mpopup">
<view class="mpopup" :style="[{height:maxheight}]">
<view class="mpopup-title">
{{currentNotice.title}}
</view>
<view class="mpopup-content" style="margin-top: 60rpx;">
<rich-text :nodes="currentNotice.content"></rich-text>
<view style="margin-top: 80px;"></view>
</view>
<view class="mpopup-content" style="margin-top: 60rpx;">
<scroll-view scroll-y="true" :style="[{height:scrollheight}]">
<rich-text :nodes="currentNotice.content"></rich-text>
</scroll-view>
<view style="margin-top: 40rpx;"></view>
<u-button type="primary" @click="closeInfo"></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-calendar ref="calendar" :show-confirm="false" :show="showCalendar" :minDate="minDate" :maxDate="maxDate"
@ -276,9 +293,13 @@
let month = d.getMonth() + 1
month = month < 10 ? `0${month}` : month
const date = d.getDate()
return {
return {
successshow: false,
time:3,
showInfo: false,
currentNotice: {},
currentNotice: {},
maxheight:"",
scrollheight:"",
notice: [{
title: "预约须知",
content: "预约须知的内容"
@ -288,7 +309,9 @@
}],
specialtype:false,
specialid:0,
common_user:[],
common_user:[],
t:null,
timer:null,
form: {
date: "",
rule_id: "",
@ -387,11 +410,25 @@
that.form.mobile = r.mobile;
}, true);
that.loadCommonUser();
that.loadCommonUser();
that.maxheight = wx.getSystemInfoSync().windowHeight*0.6 + "px"
that.scrollheight = wx.getSystemInfoSync().windowHeight*0.6*0.7 + "px"
},
onHide() {
clearInterval(this.t)
clearTimeout(this.timer)
},
onUnload() {
clearInterval(this.t)
clearTimeout(this.timer)
},
methods: {
goHome(){
uni.switchTab({
url: "/pages/index/index"
})
},
radioChange(val){
console.log(val)
this.specialtype = !this.specialtype;
@ -558,16 +595,30 @@
method: "POST",
data: this.form,
utilSuccess: function(res) {
console.log(res)
uni.showToast({
icon: "none",
title: "下单成功",
complete() {
uni.redirectTo({
url: "/pages/success/success?from=visit&id=" + res.id
})
}
})
console.log(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/visitorder'
})
clearInterval(that.t);
clearTimeout(that.timer)
}, 3000)
// uni.showToast({
// icon: "none",
// title: "",
// complete() {
// uni.redirectTo({
// url: "/pages/success/success?from=visit&id=" + res.id
// })
// }
// })
},
utilFail: function(res) {
that.util.toast(res);
@ -907,7 +958,7 @@
}
</script>
<style>
<style lang="scss">
@import url("@/static/css/bookbox.css");
@ -1020,7 +1071,49 @@
.commonuser .book-box-row-timeitem{
width:160rpx;
text-align: center;
}
// .mpopup{
// max-height: 400rpx;
// // overflow-y: scroll;
// }
.mpopup-content {
font-size: 32rpx;
text-indent: 2rem;
}
.box-card-content {}
.box-card-content {}
.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;
}
</style>

Loading…
Cancel
Save