Commit 198ba9c5 by ArronYR

add redirect

parent 96b41bc3
......@@ -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
......@@ -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'>
......
......@@ -30,6 +30,7 @@ page {
position: relative;
border: 1px solid #eee;
padding-bottom: 10px;
box-sizing: border-box;
}
.col-item .image {
......
......@@ -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>
......
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 to comment