Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wxapp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
wxapp
Commits
198ba9c5
Commit
198ba9c5
authored
Sep 27, 2018
by
ArronYR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add redirect
parent
96b41bc3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
pages/index/index.js
+8
-1
pages/index/index.wxml
+6
-6
pages/index/index.wxss
+1
-0
pages/me/profile/index.wxml
+1
-1
No files found.
pages/index/index.js
View file @
198ba9c5
...
...
@@ -114,6 +114,12 @@ Page({
wx
.
navigateTo
({
url
:
'/pages/search/list/list?catalog='
+
_catalog
+
'&ptitle='
+
_ptitle
,
})
}
}
,
handleProjectDetail
:
function
(
event
)
{
const
id
=
event
.
currentTarget
.
dataset
.
id
wx
.
navigateTo
({
url
:
'/pages/detail/index?id='
+
id
,
})
}
})
\ No newline at end of file
pages/index/index.wxml
View file @
198ba9c5
...
...
@@ -4,12 +4,12 @@
<navs />
<i-cell-group i-class="section-wrapper">
<i-cell title="最新活动" is-link
url="/pages/dashboard/index"
>
<i-cell title="最新活动" is-link>
<text slot="footer" class='text-gray text-small' catchtap='gotoMoreProjects' data-type='1' data-name='最新活动'>更多</text>
</i-cell>
<i-row i-class="col-wrapper">
<i-col span="8" i-class="col-class" wx:for="{{news}}" wx:for-index="idx" wx:for-item="n" wx:key="n.id" wx:if="{{idx < 3}}">
<view class='col-item'>
<view class='col-item'
catchtap='handleProjectDetail' data-id='{{n.id}}'
>
<image class='image' src="{{n.poster}}" mode='aspectFill'></image>
<view class='title'>{{n.title}}</view>
<view class='info'>
...
...
@@ -22,12 +22,12 @@
</i-cell-group>
<i-cell-group i-class="section-wrapper">
<i-cell title="爆款专区" is-link
url="/pages/dashboard/index"
>
<i-cell title="爆款专区" is-link>
<text slot="footer" class='text-gray text-small' catchtap='gotoMoreProjects' data-type='2' data-name='爆款专区'>更多</text>
</i-cell>
<i-row i-class="col-wrapper">
<i-col span="8" i-class="col-class" wx:for="{{heats}}" wx:for-index="idx" wx:for-item="n" wx:key="n.id" wx:if="{{idx < 3}}">
<view class='col-item'>
<view class='col-item'
catchtap='handleProjectDetail' data-id='{{n.id}}'
>
<image class='image' src="{{n.poster}}" mode='aspectFill'></image>
<view class='title'>{{n.title}}</view>
<view class='info'>
...
...
@@ -40,12 +40,12 @@
</i-cell-group>
<i-cell-group i-class="section-wrapper">
<i-cell title="酒店预订" is-link
url="/pages/dashboard/index"
>
<i-cell title="酒店预订" is-link>
<text slot="footer" class='text-gray text-small' catchtap='gotoSearchProjects' data-catalog='5' data-name='酒店预订'>更多</text>
</i-cell>
<i-row i-class="col-wrapper">
<i-col span="12" i-class="col-class" wx:for="{{businesses}}" wx:for-index="idx" wx:for-item="n" wx:key="n.id">
<view class='col-item'>
<view class='col-item'
catchtap='handleProjectDetail' data-id='{{n.id}}'
>
<image class='image' src="{{n.poster}}" mode='aspectFill'></image>
<view class='title'>{{n.title}}</view>
<view class='info'>
...
...
pages/index/index.wxss
View file @
198ba9c5
...
...
@@ -30,6 +30,7 @@ page {
position: relative;
border: 1px solid #eee;
padding-bottom: 10px;
box-sizing: border-box;
}
.col-item .image {
...
...
pages/me/profile/index.wxml
View file @
198ba9c5
...
...
@@ -26,7 +26,7 @@
</i-cell-group>
<view class='btn-save-wrapper'>
<i-button type="
primary
" bind:click="handleSubmit" shape="circle">保存</i-button>
<i-button type="
info
" bind:click="handleSubmit" shape="circle">保存</i-button>
</view>
</view>
...
...
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