1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <!--templates/position/position.wxml-->
- <template name='position'>
- <view class="position-list">
- <view class="position-li-title">
- <image class="position-li-title-icon" src="../../image/position_red.png"></image>
- <text>定位地址</text>
- </view>
- <view class="position-li" data-index="0" bindtap="hidePositionModel">
- <view class="position-li-row">
- <view class="position-li-name">{{list[0].league_name}}</view>
- <view class="position-li-text">距离{{list[0].juli}}km</view>
- </view>
- <view class="position-li-text">地址:{{list[0].league_address}}</view>
- </view>
- <view class="position-li-title">
- <image class="position-li-title-icon-two" src="../../image/address_red.png"></image>
- <text>附近地址</text>
- </view>
- <view class="position-li" wx:for="{{list}}" wx:key="{{index}}" data-index="{{index}}" bindtap="hidePositionModel">
- <view class="position-li-row">
- <view class="position-li-name">{{item.league_name}}</view>
- <view class="position-li-text">距离{{item.juli}}km</view>
- </view>
- <view class="position-li-text">地址:{{item.league_address}}</view>
- </view>
- </view>
- </template>
- <template name='position_school'>
- <view class="position-input-container">
- <view class="position-input-search">
- <image src="../../image/search.png"></image>
- <input type="text" placeholder="输入学校名称" placeholder-class="position-input-placeholder" value="{{schoolName}}" bindinput="inputCtl" bindblur="inputBlurCtl"></input>
- </view>
- <view class="position-input-button" bindtap="cancelInputCtl">取消</view>
- </view>
- <view class="position-list-nodata" wx:if="{{list.length == 0}}">
- <image src="../../image/nores.png"></image>
- <text>搜索无结果</text>
- </view>
- <view class="position-list">
- <view class="position-li-title">
- <image class="position-li-title-icon" src="../../image/position.png"></image>
- <text>定位地址</text>
- </view>
- <view class="position-li" data-index="0" bindtap="hideSchoolPositionModel">
- <view class="position-li-row">
- <view class="position-li-name">{{list[0].name}}</view>
- <view class="position-li-text">距离{{list[0].juli}}km</view>
- </view>
- <view class="position-li-text">地址:{{list[0].school_address}}</view>
- </view>
- <view class="position-li-title">
- <image class="position-li-title-icon-two" src="../../image/address.png"></image>
- <text>附近地址</text>
- </view>
- <view class="position-li" wx:for="{{list}}" wx:key="{{index}}" data-index="{{index}}" bindtap="hideSchoolPositionModel">
- <view class="position-li-row">
- <view class="position-li-name">{{item.name}}</view>
- <view class="position-li-text">距离{{item.juli}}km</view>
- </view>
- <view class="position-li-text">地址:{{item.school_address}}</view>
- </view>
- </view>
- </template>
|