余菲 9 meses atrás
pai
commit
a62f1aee65
2 arquivos alterados com 20 adições e 1 exclusões
  1. +19
    -0
      pages/FirstPage/index.js
  2. +1
    -1
      pages/FirstPage/index.wxml

+ 19
- 0
pages/FirstPage/index.js Ver arquivo

@@ -49,6 +49,18 @@ Page({
path: '/package_first/pages/ProtectionSuggestion/index',
type: 'page'
},
{
title:'志愿者服务',
iconPath: '../../assets/first/volunteer.png',
path: '/package_A/pages/volunteer-page/index',
type: 'page'
},
{
title:'我要上报',
iconPath: '../../assets/first/report.png',
path: '/package_A/pages/report-page/index',
type: 'page'
}
],
liveNum: 0, // 在线人数
list: [], // 河道展示
@@ -201,5 +213,12 @@ Page({
wx.navigateTo({
url: '/package_A/pages/riverDetail/index?data='+ JSON.stringify(data),
})
},

/* 跳转至积分规则页面 */
showRules() {
wx.navigateTo({
url: '/package_first/pages/RulesPage/index',
})
}
})

+ 1
- 1
pages/FirstPage/index.wxml Ver arquivo

@@ -11,7 +11,7 @@
<view class="main_container">
<!-- 图片 -->
<view class="banner">
<image class="banner_image" mode="widthFix" src="../../assets/first/home_banner.png" bindtap="redirectToAd"></image>
<image class="banner_image" mode="widthFix" src="../../assets/first/home_banner.png" bindtap="redirectToAd" bindtap="showRules"></image>
</view>



Carregando…
Cancelar
Salvar