上传图标

master
许宏杰 3 years ago
parent b3de5d97bc
commit e62cdcbe67

@ -28,8 +28,8 @@
</view>
<view class="view-uploader" hover-class="none" hover-stop-propagation="false">
<van-uploader deletable="{{false}}" file-list="{{ fileList }}" />
<view class="view-uploader" >
<van-uploader deletable="{{false}}" file-list="{{ fileList }}" upload-icon="plus"/>
</view>
<view class="view-add-btn" bindtap="gohome">

@ -1,11 +1,5 @@
/* pages/add/index.wxss */
.van-icon {
width: 37rpx;
height: 37rpx;
background-image: url(http://www.jichuanglanhai.com/demo/js-yingdi/images/icon_add@2x.png);
background-repeat: no-repeat;
background-size: 100%;
}
.van-uploader__preview-image {
border-radius: 19rpx;
}
@ -14,10 +8,10 @@
border: 1rpx solid rgba(185, 189, 192, 0.5);
border-radius: 19rpx;
}
.van-icon-photograph::before {
content: "" !important;
.van-icon-plus{
font-weight: bold !important;
}
.view-local {
display: flex;
align-items: center;

@ -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>
Loading…
Cancel
Save