Commit 6ce1a54b by 袁伟伦

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

parents 8657eaab dffa0bec
...@@ -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,
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</view> </view>
</view> </view>
<view class="footer-nav"> <view class="footer-nav">
<view class="nav-item" bindtap="showHotline"> <view class="nav-item" bindtap="call">
<image class="nav-icon" src="./images/Hotline@2x.png"></image> <image class="nav-icon" src="./images/Hotline@2x.png"></image>
<view class="nav-item-title">客服热线</view> <view class="nav-item-title">客服热线</view>
</view> </view>
......
<!-- <l-toast /> -->
<navigation class="navigation" background="{{'rgba(255, 255, 255, ' + navigationAnimationShow + ')'}}"></navigation> <navigation class="navigation" background="{{'rgba(255, 255, 255, ' + navigationAnimationShow + ')'}}"></navigation>
<view class="container"> <view class="container">
...@@ -7,7 +5,7 @@ ...@@ -7,7 +5,7 @@
<image class="logo" src="/image/logo-b.png" hidden="{{isNavigationLogoWhite}}" style="{{'top: ' + navigationLogoTop + 'px'}}"></image> <image class="logo" src="/image/logo-b.png" hidden="{{isNavigationLogoWhite}}" style="{{'top: ' + navigationLogoTop + 'px'}}"></image>
<view id="banner" class="banner"> <view id="banner" class="banner">
<swiper autoplay circular class="banner-swiper" indicator-dots="{{false}}" interval="4000" duration="500" bindchange="onSwiperChange"> <swiper autoplay circular class="banner-swiper" indicator-dots="{{false}}" interval="5000" duration="500" bindchange="onSwiperChange">
<block wx:for="{{banner}}" wx:for-index="index" wx:for-item="item" wx:key="index"> <block wx:for="{{banner}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<swiper-item class="banner-swiper-item" data-item="{{item}}" bindtap="bannerClick"> <swiper-item class="banner-swiper-item" data-item="{{item}}" bindtap="bannerClick">
<image class="banner-swiper-image" src="{{item.img}}"></image> <image class="banner-swiper-image" src="{{item.img}}"></image>
...@@ -24,7 +22,7 @@ ...@@ -24,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>');
......
...@@ -75,7 +75,7 @@ Page({ ...@@ -75,7 +75,7 @@ Page({
App.globalData.appResourcesBase + 'shop/banner/banner-2-1-2.png', App.globalData.appResourcesBase + 'shop/banner/banner-2-1-2.png',
App.globalData.appResourcesBase + 'shop/banner/banner-2-1-3.png', App.globalData.appResourcesBase + 'shop/banner/banner-2-1-3.png',
], ],
name: '元养水韵', name: '元养水韵SPA',
title: '元养水韵SPA', title: '元养水韵SPA',
date: '周一至周日 10:00 - 22:00', date: '周一至周日 10:00 - 22:00',
describe: [ describe: [
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
/* 详情样式 */ /* 详情样式 */
.detail { .detail {
padding-bottom: 200rpx; padding-bottom: 160rpx;
} }
.detail-black { .detail-black {
......
...@@ -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