|
|
|
@ -12,43 +12,43 @@
|
|
|
|
|
<view class="btn-text">{{maporList}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<!-- 帅选框 -->
|
|
|
|
|
<van-dropdown-menu active-color="#446C4C">
|
|
|
|
|
<van-dropdown-item id="item2" title="{{ cityactiveName }}">
|
|
|
|
|
<view class="yd-model-list">
|
|
|
|
|
<view class="model-title-text">
|
|
|
|
|
江苏省
|
|
|
|
|
</view>
|
|
|
|
|
<view class="citys-lists">
|
|
|
|
|
<view class="list-item-grid" wx:for="{{option1}}" wx:key="index" bindtap="cilckCity" data-item="{{item}}" data-index="{{index}}">
|
|
|
|
|
<view class="list-item-grid-item {{index==cityActive ? 'city-active' : ''}}">{{item.text}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="yd-model-list">
|
|
|
|
|
<view class="model-title-text">
|
|
|
|
|
江苏省
|
|
|
|
|
</view>
|
|
|
|
|
<view class="citys-lists">
|
|
|
|
|
<view class="list-item-grid" wx:for="{{option1}}" wx:key="index" bindtap="cilckCity" data-item="{{item}}" data-index="{{index}}">
|
|
|
|
|
<view class="list-item-grid-item {{index==cityActive ? 'city-active' : ''}}">{{item.text}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</van-dropdown-item>
|
|
|
|
|
<van-dropdown-item id="item" title="{{ yingdiName }}">
|
|
|
|
|
<view class="yd-model-list">
|
|
|
|
|
<view class="model-title-text">
|
|
|
|
|
营地类型
|
|
|
|
|
</view>
|
|
|
|
|
<view class="citys-lists">
|
|
|
|
|
<view class="list-item-grid" wx:for="{{option2}}" wx:key="index" bindtap="cilckyingdi" data-item="{{item}}" data-index="{{index}}">
|
|
|
|
|
<view class="list-item-grid-item {{index==yingdiactive ? 'city-active' : ''}}">{{item.text}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</van-dropdown-item>
|
|
|
|
|
<van-dropdown-item id="item" title="{{ yingdiName }}">
|
|
|
|
|
<view class="yd-model-list">
|
|
|
|
|
<view class="model-title-text">
|
|
|
|
|
营地类型
|
|
|
|
|
</view>
|
|
|
|
|
<view class="citys-lists">
|
|
|
|
|
<view class="list-item-grid" wx:for="{{option2}}" wx:key="index" bindtap="cilckyingdi" data-item="{{item}}" data-index="{{index}}">
|
|
|
|
|
<view class="list-item-grid-item {{index==yingdiactive ? 'city-active' : ''}}">{{item.text}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</van-dropdown-item>
|
|
|
|
|
</van-dropdown-menu>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</van-dropdown-item>
|
|
|
|
|
</van-dropdown-menu>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<view class="map">
|
|
|
|
|
<view style="height: 100%;" wx:if="{{xiehuan}}">
|
|
|
|
|
<map id="map" latitude="{{latitude}}" longitude="{{longitude}}" scale="{{scale}}" enable-poi="false" min-scale="{{7}}" show-location="true" markers="{{markers}}" bindmarkertap="clickMarkers" layer-style="2" subkey="TYBBZ-A2AKV-MLZPW-UFNQI-HKNVE-BEFZH"
|
|
|
|
|
></map>
|
|
|
|
|
<map id="map" latitude="{{latitude}}" longitude="{{longitude}}" scale="{{scale}}" enable-poi="false" min-scale="{{7}}" show-location="true" markers="{{markers}}" bindmarkertap="clickMarkers" layer-style="2" subkey="TYBBZ-A2AKV-MLZPW-UFNQI-HKNVE-BEFZH"></map>
|
|
|
|
|
<view class="get-loaction" bindtap="getLocation">
|
|
|
|
|
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/location.png" mode="aspectFit"></image>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="carousel-box">
|
|
|
|
|
<swiper current="{{swiperIndex}}" previous-margin="38rpx" bindchange="swiperChange">
|
|
|
|
|
<swiper-item wx:for="{{swiperList}}" wx:key="indx" bindtap="gotoInfo" data-index="{{index}}" data-item="{{item}}">
|
|
|
|
@ -67,7 +67,7 @@
|
|
|
|
|
21.km
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="swiper-state" >
|
|
|
|
|
<view class="swiper-state">
|
|
|
|
|
<view class="state-icon">
|
|
|
|
|
<image src="http://www.jichuanglanhai.com/demo/js-yingdi/images/vips.png" mode="scaleToFill"></image>
|
|
|
|
|
</view>
|
|
|
|
@ -81,17 +81,16 @@
|
|
|
|
|
</swiper>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<list-page id="listpage" wx:else="{{!xiehuan}}" list="{{swiperList}}" ></list-page>
|
|
|
|
|
<list-page id="listpage" wx:else="{{!xiehuan}}" list="{{swiperList}}"></list-page>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<!-- wxs过滤器 -->
|
|
|
|
|
<wxs module="filterImages">
|
|
|
|
|
var getUrl = function (url) {
|
|
|
|
|
var resUrl = 'http://www.jichuanglanhai.com/demo/js-yingdi/tupian1/'+url.substring(23,url.length);
|
|
|
|
|
return resUrl
|
|
|
|
|
}
|
|
|
|
|
module.exports.getUrl = getUrl;
|
|
|
|
|
var getUrl = function (url) {
|
|
|
|
|
var resUrl = 'http://www.jichuanglanhai.com/demo/js-yingdi/tupian1/' + url.substring(23, url.length);
|
|
|
|
|
return resUrl
|
|
|
|
|
}
|
|
|
|
|
module.exports.getUrl = getUrl;
|
|
|
|
|
</wxs>
|