Commit 82e4a20f by 严立

Merge branch 'master' of http://120.77.182.185/yanl/mini-shimao

parents 0612bd7b 8bcdd38f
...@@ -17,7 +17,7 @@ Page({ ...@@ -17,7 +17,7 @@ Page({
{title:'如何预订儿童营地门票?'}, {title:'如何预订儿童营地门票?'},
], ],
mask:false,//控制客服微信的遮罩层显示 mask:false,//控制客服微信的遮罩层显示
phone:'13685970580', phone:'13316748039',
hotline:false,//客服热线 hotline:false,//客服热线
bottom:0, bottom:0,
focus:false, focus:false,
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</view> </view>
<view class="banner-notice row align-c"> <view class="banner-notice row align-c">
<view class="row align-c"> <view class="row align-c" bindtap="onNotice">
<image src="./image/inform.png"></image> <image src="./image/inform.png"></image>
<text>最新动态</text> <text>最新动态</text>
</view> </view>
......
...@@ -44,7 +44,7 @@ Page({ ...@@ -44,7 +44,7 @@ Page({
name: detail.name, name: detail.name,
mobile: detail.mobile, mobile: detail.mobile,
num: detail.num, num: detail.num,
time: detail.time.substring(5,11).replace('-','月').replace(' ','日') + ((detail.type == 0) ? ' 20:00-24:00' : ''), time: detail.time,
}) })
}, },
......
...@@ -199,7 +199,7 @@ Page({ ...@@ -199,7 +199,7 @@ Page({
let obj = { let obj = {
title:title, title:title,
type: type, type: type,
time: item.subscribeDate.substring(0,10) + ((type == 0) ? ' 20:00-24:00' : ''), time: item.subscribeDate.substring(5,11).replace('-','月').replace(' ','日') + ((type == 0) ? ' 20:00-24:00' : ''),
num: item.subscribeNum, num: item.subscribeNum,
url: url, url: url,
id: item.id, id: item.id,
......
...@@ -28,6 +28,7 @@ Page({ ...@@ -28,6 +28,7 @@ Page({
}, },
//预约凭证 //预约凭证
gohotelAccommodation(e){ gohotelAccommodation(e){
console.log(e)
wx.navigateTo({ wx.navigateTo({
url: '../hotelAccommodation/hotelAccommodation?detail='+JSON.stringify(e.currentTarget.dataset.item), url: '../hotelAccommodation/hotelAccommodation?detail='+JSON.stringify(e.currentTarget.dataset.item),
}) })
......
...@@ -28,7 +28,7 @@ Page({ ...@@ -28,7 +28,7 @@ Page({
url: '/api/v1/dynamic/getDetail', url: '/api/v1/dynamic/getDetail',
data: { id: that.data.id }, data: { id: that.data.id },
success: function (res) { success: function (res) {
var content = res.data.content.replace(/<img/gi, '<img style="max-width:100%;height:auto;display:block" ') var content = res.data.content.replace(/<img/gi, '<img style="width:100%;height:auto;display:block" ')
.replace(/<table/gi, '<table style="max-width:100%;height:auto;display:block" ') .replace(/<table/gi, '<table style="max-width:100%;height:auto;display:block" ')
.replace(/<section/g, '<div') .replace(/<section/g, '<div')
.replace(/\/section>/g, '\div>'); .replace(/\/section>/g, '\div>');
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
<view class="date row con-s"> <view class="date row con-s">
<text>{{notice.date}}</text> <text>{{notice.date}}</text>
</view> </view>
<view class="cover" wx:if="{{notice.cover !== ''}}"> <!-- <view class="cover" wx:if="{{notice.cover !== ''}}">
<image src="{{notice.cover}}" mode="widthFix"></image> <image src="{{notice.cover}}" mode="widthFix"></image>
</view> </view> -->
<view class="describe"> <view class="describe">
<parser html="{{notice.describe}}"/> <parser html="{{notice.describe}}"/>
</view> </view>
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
.describe { .describe {
width: 670rpx; width: 670rpx;
margin-top: 50rpx; margin-top: 50rpx;
margin-bottom: 50rpx;
font-size: 30rpx; font-size: 30rpx;
font-weight: 300; font-weight: 300;
color: #15191F; color: #15191F;
......
...@@ -41,7 +41,7 @@ Page({ ...@@ -41,7 +41,7 @@ Page({
let count = that.data.notice.length let count = that.data.notice.length
var tmpArr = []; var tmpArr = [];
res.data.list.forEach(item => { res.data.list.forEach(item => {
var content = item.summary.replace(/<img/gi, '<img style="max-width:100%;height:auto;display:block" ') var content = item.summary.replace(/<img/gi, '<img style="width:100%;height:auto;display:block" ')
.replace(/<table/gi, '<table style="max-width:100%;height:auto;display:block" ') .replace(/<table/gi, '<table style="max-width:100%;height:auto;display:block" ')
.replace(/<section/g, '<div') .replace(/<section/g, '<div')
.replace(/\/section>/g, '\div>'); .replace(/\/section>/g, '\div>');
......
...@@ -85,11 +85,11 @@ Page({ ...@@ -85,11 +85,11 @@ Page({
/** /**
* 此代码段处理目的为,匹配富文本代码中的 <img> 标签,并将其图片的宽度修改为适应屏幕 * 此代码段处理目的为,匹配富文本代码中的 <img> 标签,并将其图片的宽度修改为适应屏幕
* max-width:100% --- 图片宽度加以限制,避免超出屏幕 * width:100% --- 图片宽度加以限制,避免超出屏幕
* height:auto --- 高度自适应 * height:auto --- 高度自适应
* display:block --- 此代码,可以去掉图片之间的空白间隔,个人觉得好用 * display:block --- 此代码,可以去掉图片之间的空白间隔,个人觉得好用
*/ */
var content = res.data.content.replace(/<img/gi, '<img style="max-width:100%;height:auto;display:block" ') var content = res.data.content.replace(/<img/gi, '<img style="width:100%;height:auto;display:block" ')
.replace(/<table/gi, '<table style="max-width:100%;height:auto;display:block" ') .replace(/<table/gi, '<table style="max-width:100%;height:auto;display:block" ')
.replace(/<section/g, '<div') .replace(/<section/g, '<div')
.replace(/\/section>/g, '\div>'); .replace(/\/section>/g, '\div>');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment