This commit is contained in:
d_f_w123 2019-12-12 17:37:30 +08:00
parent f476fe2e42
commit 7e35a938b5
2 changed files with 12 additions and 3 deletions

View File

@ -51,7 +51,8 @@ Page({
src: "/images/6.png" src: "/images/6.png"
}, { }, {
name: "公告", name: "公告",
src: "/images/7.png" src: "/images/7.png",
href: "/pages/notice/index"
}] }]
}, },
@ -81,6 +82,11 @@ Page({
// } // }
// }); // });
}, },
onGotUserInfo: function (e) {
console.log(e.detail.errMsg)
console.log(e.detail.userInfo)
console.log(e.detail.rawData)
},
clearSelectedNumb: function () { clearSelectedNumb: function () {
this.setData({ this.setData({
characteristicSelected: [false], characteristicSelected: [false],

View File

@ -1,6 +1,5 @@
<import src="../common/sort_list.wxml" /> <import src="../common/sort_list.wxml" />
<scroll-view bindscrolltolower="lower" class="scroll-restaurants-list" scroll-y="true" style="height:100%"> <scroll-view bindscrolltolower="lower" class="scroll-restaurants-list" scroll-y="true" style="height:100%">
<view class="heard"> <view class="heard">
<navigator url="/pages/location/location"> <navigator url="/pages/location/location">
@ -17,10 +16,14 @@
<block wx:for="{{categoryList}}" wx:key=""> <block wx:for="{{categoryList}}" wx:key="">
<swiper-item> <swiper-item>
<block wx:for="{{item}}" wx:key=""> <block wx:for="{{item}}" wx:key="">
<!-- <navigator url="{{item.href}}"> -->
<view class="category-info"> <view class="category-info">
<navigator url="{{item.href}}">
<image src="{{item.src}}" class="category-image"></image> <image src="{{item.src}}" class="category-image"></image>
<view class="category-text">{{item.name}}</view> <view class="category-text">{{item.name}}</view>
</navigator>
</view> </view>
<!-- </navigator> -->
</block> </block>
</swiper-item> </swiper-item>
</block> </block>
@ -35,7 +38,7 @@
</swiper> </swiper>
<view class="header-title"> <view class="header-title">
<text class="new">最新动态</text> <text class="new"> 最新动态</text>
<text class="iconfont icongengduo1 gd"></text> <text class="iconfont icongengduo1 gd"></text>
</view> </view>
<view class="noticesList"> <view class="noticesList">