Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6ce1a54b
authored
Aug 27, 2020
by
袁伟伦
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://120.77.182.185/yanl/mini-shimao
parents
8657eaab
dffa0bec
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
16 additions
and
16 deletions
pages/customerService/customerService.js
pages/customerService/customerService.wxml
pages/home/home.wxml
pages/hotelAccommodation/hotelAccommodation.js
pages/mine/mine.js
pages/myAppointment/myAppointment.js
pages/notice-detail/notice-detail.js
pages/notice-detail/notice-detail.wxml
pages/notice-detail/notice-detail.wxss
pages/notice/notice.js
pages/shop-detail/shop-detail.js
pages/shop-detail/shop-detail.wxss
pages/strategy/strategy.js
pages/customerService/customerService.js
View file @
6ce1a54b
...
@@ -17,7 +17,7 @@ Page({
...
@@ -17,7 +17,7 @@ Page({
{
title
:
'如何预订儿童营地门票?'
},
{
title
:
'如何预订儿童营地门票?'
},
],
],
mask
:
false
,
//控制客服微信的遮罩层显示
mask
:
false
,
//控制客服微信的遮罩层显示
phone
:
'13
685970580
'
,
phone
:
'13
316748039
'
,
hotline
:
false
,
//客服热线
hotline
:
false
,
//客服热线
bottom
:
0
,
bottom
:
0
,
focus
:
false
,
focus
:
false
,
...
...
pages/customerService/customerService.wxml
View file @
6ce1a54b
...
@@ -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>
...
...
pages/home/home.wxml
View file @
6ce1a54b
<!-- <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="
4
000" duration="500" bindchange="onSwiperChange">
<swiper autoplay circular class="banner-swiper" indicator-dots="{{false}}" interval="
5
000" 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>
...
...
pages/hotelAccommodation/hotelAccommodation.js
View file @
6ce1a54b
...
@@ -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
,
})
})
},
},
...
...
pages/mine/mine.js
View file @
6ce1a54b
...
@@ -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
,
...
...
pages/myAppointment/myAppointment.js
View file @
6ce1a54b
...
@@ -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
),
})
})
...
...
pages/notice-detail/notice-detail.js
View file @
6ce1a54b
...
@@ -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>'
);
...
...
pages/notice-detail/notice-detail.wxml
View file @
6ce1a54b
...
@@ -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>
...
...
pages/notice-detail/notice-detail.wxss
View file @
6ce1a54b
...
@@ -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;
...
...
pages/notice/notice.js
View file @
6ce1a54b
...
@@ -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>'
);
...
...
pages/shop-detail/shop-detail.js
View file @
6ce1a54b
...
@@ -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
:
[
...
...
pages/shop-detail/shop-detail.wxss
View file @
6ce1a54b
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
/* 详情样式 */
/* 详情样式 */
.detail {
.detail {
padding-bottom:
20
0rpx;
padding-bottom:
16
0rpx;
}
}
.detail-black {
.detail-black {
...
...
pages/strategy/strategy.js
View file @
6ce1a54b
...
@@ -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>'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment