Browse Source

优化

master
zhaoyongnian 5 years ago
parent
commit
668017ff03
  1. 8
      subpages/home/pages/noticeNew/noticeNew.js
  2. 2
      subpages/integralCentre/pages/index/index.js
  3. 2
      subpages/understandJs/pages/delicious/delicious.wxml

8
subpages/home/pages/noticeNew/noticeNew.js

@ -8,7 +8,7 @@ Page({
data: { data: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
noticeCategory: '5',//模块编码(1-印象,2-味道,5-政策导航最新,6-政策导航最热) noticeCategory: 'notice_navigation_hot',//模块编码(1-印象,2-味道,5-政策导航最新,6-政策导航最热)
noticelist: [], noticelist: [],
selectTab: 'tab1', selectTab: 'tab1',
nodata: false, nodata: false,
@ -58,12 +58,12 @@ Page({
// tab 切换 // tab 切换
onTabChange(e) { onTabChange(e) {
if (e.currentTarget.dataset.tab == 'tab1') {//最新政策 if (e.currentTarget.dataset.tab == 'tab1') {//最新政策
this.setData({//模块编码(1-印象,2-味道,5-政策导航最新,6-政策导航最热 this.setData({//模块编码(政策导航-最热政策:notice_navigation_hot、了解锦水-印象:notice_impression、了解锦水-味道:notice_taste、政策导航-最新通知: notice_navigation_new、了解锦水-警示:notice_warning
noticeCategory: '5', noticeCategory: 'notice_navigation_hot',
}) })
} else {//最新通知 } else {//最新通知
this.setData({ this.setData({
noticeCategory: '6', noticeCategory: 'notice_navigation_new',
}) })
} }
this.setData({ this.setData({

2
subpages/integralCentre/pages/index/index.js

@ -24,7 +24,7 @@ Page({
selectTab: 'tab1', selectTab: 'tab1',
typeList: [{ //排名方式:0-周,1-月 typeList: [{ //排名方式:0-周,1-月
type: '0', type: '0',
name: '网排名', name: '网排名',
select: true select: true
}, },
{ {

2
subpages/understandJs/pages/delicious/delicious.wxml

@ -6,7 +6,7 @@
wx:for="{{noticelist}}" wx:for="{{noticelist}}"
bindtap="toDetail" bindtap="toDetail"
data-id="{{item.id}}"> data-id="{{item.id}}">
<image src="../../images/test.jpg"></image> <image src="{{item.imgUrl}}"></image>
<view class="name"> <view class="name">
{{item.noticeTitle}} {{item.noticeTitle}}
</view> </view>

Loading…
Cancel
Save