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
8bcdd38f
authored
Aug 27, 2020
by
TengFengLian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整样式
parent
9f2c4ffd
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
12 additions
and
10 deletions
pages/customerService/customerService.js
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/strategy/strategy.js
pages/customerService/customerService.js
View file @
8bcdd38f
...
@@ -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/home/home.wxml
View file @
8bcdd38f
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,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 @
8bcdd38f
...
@@ -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 @
8bcdd38f
...
@@ -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 @
8bcdd38f
...
@@ -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 @
8bcdd38f
...
@@ -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 @
8bcdd38f
...
@@ -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 @
8bcdd38f
...
@@ -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 @
8bcdd38f
...
@@ -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/strategy/strategy.js
View file @
8bcdd38f
...
@@ -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