余菲 hace 11 meses
padre
commit
a62f1aee65
Se han modificado 2 ficheros con 20 adiciones y 1 borrados
  1. +19
    -0
      pages/FirstPage/index.js
  2. +1
    -1
      pages/FirstPage/index.wxml

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

@@ -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 fichero

@@ -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>



Cargando…
Cancelar
Guardar