index.wxml 5.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 flex"><view data-event-opts="{{[['tap',[['tocontribution',['$event']]]]]}}" class="cate-item flex" bindtap="__e"><view class="img-wrapper flex"><image class="img1" src="../../static/icon/icon1.png" mode></image></view><view class="item-title">器官捐献</view></view><view data-event-opts="{{[['tap',[['toapplic',['$event']]]]]}}" class="cate-item flex" bindtap="__e"><view class="img-wrapper flex"><image class="img2" src="../../static/icon/icon2.png" mode></image></view><view class="item-title">造血干细胞捐献</view></view><view data-event-opts="{{[['tap',[['toOrgan',['$event']]]]]}}" class="cate-item flex" bindtap="__e"><view class="img-wrapper flex"><image class="img3" src="../../static/icon/icon3.png" mode></image></view><view class="item-title">培训报名</view></view><view data-event-opts="{{[['tap',[['tohelpActi',['$event']]]]]}}" class="cate-item flex" bindtap="__e"><view class="img-wrapper flex"><image class="img4" src="../../static/icon/icon4.png" mode></image></view><view class="item-title">志愿者登记</view></view></view><view class="red-box"><top-title vue-id="8dd740cc-1" title="爱心红会" bind:__l="__l"></top-title><view class="red-nav flex"><view data-event-opts="{{[['tap',[['navTo',['/pages/donate/donate']]]]]}}" class="left-nav" bindtap="__e"></view><view class="right-nav flex"><view data-event-opts="{{[['tap',[['navTo',['/pages/donate/idonate?type=1']]]]]}}" class="right-top-nav" bindtap="__e"></view><view class="right-bottom-nav flex"><view data-event-opts="{{[['tap',[['navTo',['/pages/applic/love']]]]]}}" class="left-item" bindtap="__e"></view><view data-event-opts="{{[['tap',[['navTo',['/pages/applic/science']]]]]}}" class="right-item" bindtap="__e"></view></view></view></view></view><view data-event-opts="{{[['tap',[['tolocation',['$event']]]]]}}" class="system" bindtap="__e"><top-title vue-id="8dd740cc-2" title="救在身边" data-event-opts="{{[['^click',[['tolocation']]]]}}" bind:click="__e" bind:__l="__l"></top-title><view class="system-map"><map class="map-box vue-ref" 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><view class="list-box"><view class="system-title"><top-title vue-id="8dd740cc-3" title="救护站" data-event-opts="{{[['^click',[['tolocation']]]]}}" bind:click="__e" bind:__l="__l"></top-title></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="{{Mechanism}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view data-event-opts="{{[['tap',[['openAddress',['$0'],[[['Mechanism','id',item.id]]]]]]]}}" class="list-tpl flex" bindtap="__e"><view class="list-left"><view class="info"><view class="title">{{item.name}}</view><view class="addr">{{"地址:"+item.detailed_address}}</view></view></view><view class="image"><image src="../../static/img/img10.png"></image><block wx:if="{{item.space>999}}"><view class="tip">>999m</view></block><block wx:else><view class="tip">{{item.space+"m"}}</view></block></view></view></block></view></view><view class="list-box" style="margin-top:20rpx;"><view class="system-title"><top-title vue-id="8dd740cc-4" title="智能AED" data-event-opts="{{[['^click',[['tolocation']]]]}}" bind:click="__e" bind:__l="__l"></top-title></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="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><block wx:if="{{item.space>999}}"><view class="tip">>999m</view></block><block wx:else><view class="tip">{{item.space+"m"}}</view></block></view></view></block></view></view><uni-popup class="vue-ref" vue-id="8dd740cc-5" 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>