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
5b3836a8
authored
Aug 25, 2020
by
TengFengLian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
文中提及跳转
parent
ef3bc1f1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
20 deletions
pages/activity-entry/activity-entry.js
pages/activity/activity.js
pages/home/home.wxss
pages/strategy/strategy.js
pages/strategy/strategy.wxml
pages/activity-entry/activity-entry.js
View file @
5b3836a8
...
...
@@ -101,7 +101,7 @@ Page({
formInto
:
funcFormInto
})
this
.
inspectForm
()
//
this.inspectForm()
},
...
...
@@ -197,20 +197,6 @@ Page({
inspectForm
:
function
()
{
let
activityTime
=
this
.
data
.
activityTimes
[
this
.
data
.
activityIndex
]
if
(
activityTime
.
residue
*
1
==
0
)
{
this
.
setData
({
isSubmit
:
false
,
errorSession
:
''
,
})
return
false
}
else
{
this
.
setData
({
errorSession
:
''
,
})
}
let
formInto
=
this
.
data
.
formInto
if
(
formInto
.
name
===
''
)
{
this
.
setData
({
...
...
@@ -242,6 +228,19 @@ Page({
})
}
let
activityTime
=
this
.
data
.
activityTimes
[
this
.
data
.
activityIndex
]
if
(
activityTime
.
residue
*
1
==
0
)
{
this
.
setData
({
isSubmit
:
false
,
errorSession
:
''
,
})
return
false
}
else
{
this
.
setData
({
errorSession
:
''
,
})
}
if
(
formInto
.
quantity
===
0
)
{
this
.
setData
({
isSubmit
:
false
,
...
...
pages/activity/activity.js
View file @
5b3836a8
...
...
@@ -90,7 +90,7 @@ Page({
url
:
'/api/v1/activity/getList'
,
data
:
{
listType
:
type
,
pageSize
:
2
0
,
pageSize
:
100
0
,
pageNo
:
1
,
},
success
:
function
(
res
)
{
...
...
pages/home/home.wxss
View file @
5b3836a8
...
...
@@ -267,7 +267,7 @@
}
.notice-bar {
width:
33
0rpx !important;
width:
40
0rpx !important;
line-height: 72rpx;
font-size: 28rpx;
color: #333 !important;
...
...
@@ -287,6 +287,6 @@
}
.banner-image {
width:
54
rpx;
height:
32
rpx;
width:
40
rpx;
height:
40
rpx;
}
\ No newline at end of file
pages/strategy/strategy.js
View file @
5b3836a8
...
...
@@ -155,6 +155,41 @@ Page({
})
},
shopDetail
(
e
)
{
let
datasetId
=
e
.
currentTarget
.
dataset
.
id
let
id
=
''
if
(
datasetId
==
'21a0cbbd39604380bc46fba38ac5fb63'
)
{
// 海错图展馆
id
=
1
}
else
if
(
datasetId
==
'b8f04379bf164b7f8bca69be14146a17'
)
{
// 拾光花坊
id
=
2
}
else
if
(
datasetId
==
'd8922a8f759245d4949b62693099edb5'
)
{
// 元养水韵SPA馆
id
=
3
}
else
if
(
datasetId
==
'd0e5ff414f794e15bc33c4e11f5356a8'
)
{
// 原味舒食
id
=
4
}
else
if
(
datasetId
==
'81078c007c034d46b7dfe59935d84f7a'
)
{
// 原野MOJITO
id
=
5
}
else
if
(
datasetId
==
'29e79743f0f94e5eb726e0ebdfe64248'
)
{
// 星空影院
id
=
6
}
else
if
(
datasetId
==
'559d980e9eaf4459883fb3a556d24347'
)
{
// 儿童营地信息
}
else
if
(
datasetId
==
'c0a2d795a7a54dcd9459dd1b969c1771'
)
{
// 住宿信息
}
if
(
id
!=
''
)
{
wx
.
navigateTo
({
url
:
'/pages/shop-detail/shop-detail?id='
+
id
})
}
},
// 攻略详情文中提及
getParksByParkIds
(
parkIds
)
{
if
(
!
parkIds
)
{
...
...
pages/strategy/strategy.wxml
View file @
5b3836a8
...
...
@@ -31,7 +31,7 @@
<text>文中提及</text>
</view>
<block wx:for="{{relation}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<view class="relation-item row con-b">
<view class="relation-item row con-b"
data-id="{{item.id}}" bindtap="shopDetail"
>
<image mode="widthFix" src="{{item.cover}}"></image>
<view class="relation-item-info col">
<text>{{item.title}}</text>
...
...
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