|
|
|
|
@ -15,7 +15,10 @@
|
|
|
|
|
<image src="../../static/img/index_bg.jpg" class="index_bg"></image>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="box-body">
|
|
|
|
|
<view class="box-body">
|
|
|
|
|
<view class="box-notice">
|
|
|
|
|
<u-notice-bar @click="openInfo" :text="list" direction="column" color="#cf995a"></u-notice-bar>
|
|
|
|
|
</view>
|
|
|
|
|
<view>
|
|
|
|
|
<view class="box-row">
|
|
|
|
|
<view class="box-col" @click="handleBook(1)">
|
|
|
|
|
@ -178,6 +181,20 @@
|
|
|
|
|
</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
|
|
|
|
|
<u-popup :show="showInfo" mode="center" @close="closeInfo" :round="10" closeable :customStyle="{margin:'40rpx'}">
|
|
|
|
|
<view class="mpopup">
|
|
|
|
|
<view class="mpopup-title">
|
|
|
|
|
{{currentNotice.name}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="mpopup-content" style="padding: 40rpx;">
|
|
|
|
|
<view v-html="currentNotice.content" style="font-size:28rpx;line-height: 2.3;text-indent: 2em;">
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <rich-text :nodes="currentNotice.content"></rich-text> -->
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
@ -207,7 +224,11 @@
|
|
|
|
|
minDate: `${year}-${month}-${date + 1}`,
|
|
|
|
|
maxDate: `${year}-${month}-${date + 7}`,
|
|
|
|
|
showCalendar: false,
|
|
|
|
|
info: {},
|
|
|
|
|
info: {},
|
|
|
|
|
list: ["暂无通知通告"],
|
|
|
|
|
listNotice: [],
|
|
|
|
|
currentNotice: {},
|
|
|
|
|
showInfo: false,
|
|
|
|
|
listDatePrice: [],
|
|
|
|
|
currentDate: {},
|
|
|
|
|
currentTime: {},
|
|
|
|
|
@ -226,6 +247,7 @@
|
|
|
|
|
this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight'];
|
|
|
|
|
this.navBarBoxHeight = 80 + this.statusBarHeight*2
|
|
|
|
|
this.loadInfo();
|
|
|
|
|
this.loadNotice();
|
|
|
|
|
this.getExhibit()
|
|
|
|
|
},
|
|
|
|
|
onReady() {
|
|
|
|
|
@ -248,6 +270,35 @@
|
|
|
|
|
// 打开成功
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
openInfo(e) {
|
|
|
|
|
this.currentNotice = this.listNotice[e];
|
|
|
|
|
this.currentNotice.content = this.currentNotice.content.replace(/\<p/gi, "<p class='richp'");
|
|
|
|
|
this.showInfo = true;
|
|
|
|
|
},
|
|
|
|
|
closeInfo() {
|
|
|
|
|
this.showInfo = false;
|
|
|
|
|
},
|
|
|
|
|
loadNotice() {
|
|
|
|
|
var that = this;
|
|
|
|
|
this.util.request({
|
|
|
|
|
api: '/api/mobile/other/notice-index',
|
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
|
if(res.data.length>0){
|
|
|
|
|
let arr = [];
|
|
|
|
|
for (var m of res.data) {
|
|
|
|
|
arr.push(m.name)
|
|
|
|
|
}
|
|
|
|
|
that.listNotice = res.data;
|
|
|
|
|
that.list = arr;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
utilFail: function(res) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
closePhone() {
|
|
|
|
|
this.showAuthorization = false
|
|
|
|
|
@ -634,15 +685,19 @@
|
|
|
|
|
|
|
|
|
|
.u-notice-bar {
|
|
|
|
|
border-top-left-radius: 15rpx !important;
|
|
|
|
|
border-top-right-radius: 15rpx !important;
|
|
|
|
|
border-top-right-radius: 15rpx !important;
|
|
|
|
|
background-color: ##fbf3ea !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box-body {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 40rpx 0;
|
|
|
|
|
background-color: #f6f6f6;
|
|
|
|
|
background-color: #f6f6f6;
|
|
|
|
|
padding-top:0
|
|
|
|
|
}
|
|
|
|
|
.box-notice{
|
|
|
|
|
margin-bottom:40rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
padding: 0 50rpx;
|
|
|
|
|
|