index.wxml 4.4 KB

1
  1. <view class="content"><view class="carousel-section"><swiper class="carousel" autoplay="{{true}}" interval="{{3000}}" duration="{{1000}}"><block wx:for="{{carouselList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="id"><swiper-item><image src="{{item.pic}}"></image></swiper-item></block></swiper></view><view class="cate-section"><view data-event-opts="{{[['tap',[['tocontribution',['$event']]]]]}}" class="cate-item" bindtap="__e"><image style="width:77rpx;height:68rpx;" src="../../static/icon/icon1.png"></image><text>器官捐献</text></view><view data-event-opts="{{[['tap',[['toapplic',['$event']]]]]}}" class="cate-item" bindtap="__e"><view class="cate-item"><image style="width:83rpx;height:64rpx;" src="../../static/icon/icon2.png"></image><text>造血干细胞捐献</text></view></view><view data-event-opts="{{[['tap',[['toOrgan',['$event']]]]]}}" class="cate-item" bindtap="__e"><image style="width:87rpx;height:64rpx;" src="../../static/icon/icon3.png"></image><text>普及培训报名</text></view><view><view data-event-opts="{{[['tap',[['tohelpActi',['$event']]]]]}}" class="cate-item" bindtap="__e"><image style="width:84rpx;height:67rpx;" src="../../static/icon/icon4.png"></image><text>志愿者登记</text></view></view></view><view class="science-section"><view class="science-title"><image src="../../static/img/wings-left.png" mode></image><view class="title">红会科普</view><image src="../../static/img/wings-right.png" mode></image></view><scroll-view class="science-box" scroll-x="{{true}}"><view class="science-content"><block wx:for="{{science}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['Jump',['$0'],[[['science','',index]]]]]]]}}" class="science-item" bindtap="__e"><image src="{{item.image_input[0]}}" mode></image><view class="article-title word1_ellipsis">{{item.title}}</view><view class="article-content">{{item.synopsis}}</view></view></block></view></scroll-view><navigator class="science-more" url="/pages/applic/science">查看更多<image src="../../static/icon/moreRight.png" mode></image><image src="../../static/icon/moreRight.png" mode></image></navigator></view><view class="system"><view class="system-title"><view class="img"><image src="../../static/img/wings-left.png"></image></view><view data-event-opts="{{[['tap',[['tolocation',['$event']]]]]}}" class="title" bindtap="__e">救在身边</view><view class="img"><image src="../../static/img/wings-right.png"></image></view></view><view class="system-map"><view data-event-opts="{{[['tap',[['tolocation',['$event']]]]]}}" class="map-box" bindtap="__e"><image src="../../static/img/map.jpg" mode></image></view></view></view><view class="list-box"><view class="system-title"><view class="img"><image src="../../static/img/wings-left.png"></image></view><view data-event-opts="{{[['tap',[['tolocation',['$event']]]]]}}" class="title" bindtap="__e">救护站</view><view class="img"><image src="../../static/img/wings-right.png"></image></view></view><view id="container"><map class="map-box vue-ref" style="height:450rpx;" id="map" show-location="{{true}}" markers="{{marker}}" scale="{{scale}}" latitude="{{latitude4}}" longitude="{{longitude4}}" data-ref="map" data-event-opts="{{[['markertap',[['markertap',['$event']]]]]}}" bindmarkertap="__e"></map></view><view><block wx:for="{{AEDList}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view data-event-opts="{{[['tap',[['openAddress',['$0'],[[['AEDList','id',item.id]]]]]]]}}" class="list-tpl flex" bindtap="__e"><view class="list-left"><view class="number">{{index+1}}</view><view class="info"><view class="title">{{item.introduction}}</view><view class="addr">{{"地址:"+item.address}}</view></view></view><view class="image"><image src="../../static/img/img10.png"></image><view class="tip">导航</view></view></view></block></view></view><uni-popup class="vue-ref" vue-id="8dd740cc-1" type="bottom" data-ref="popup" data-event-opts="{{[['^click',[['close']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup_row"><view class="rows"><view data-event-opts="{{[['tap',[['toGaodeMap',['$event']]]]]}}" class="rows-item" bindtap="__e">高德地图</view><view data-event-opts="{{[['tap',[['tobaiDuMap',['$event']]]]]}}" class="rows-item" bindtap="__e">百度地图</view><view data-event-opts="{{[['tap',[['totengxunMap',['$event']]]]]}}" class="rows-item" bindtap="__e">腾讯地图</view></view></view></uni-popup></view>