欢迎来到懒人模板!咱们专心移动互联网,一切模板永久免费下载!
  • 首 页
  • 当时方位:主页 > 小程序教程 >

    微信小程序查找定位城市页面功用制造规划教程

    2018-05-18 09:40 来历/作者:懒人模板 分类:小程序教程  « »
    今日给咱们带来微信小程序查找定位城市页面功用制造规划教程,首要合适城市查找页面,区域定位,城市挑选等页面,制造好今后作用图如下:


    一、wxml页面代码如下:
    <view class="container">
        <view class="nav" bindtap="handleTapEvent">
            <view class="home {{currentIndex==0?'active':''}}" data-index="0">国内</view>
            <view class="abroad {{currentIndex==1?'active':''}}" data-index="1">世界/区域</view>
        </view>
        <view class="toolBar">
            <scroll-view scroll-y="true">
                <view wx:for="{{word}}" wx:for-index="idx" wx:key="id" bindtap="tap" id="{{item.id}}">{{item.message}}</view>
            </scroll-view>
        </view>
        <view class="wrapCity">
            <swiper current="{{currentIndex}}" duration="100" bindchange="handleChangeEvent">
                <swiper-item>
                    <scroll-view scroll-y="true" >
                        <view class="wrap">
                            <view class="now">
                                <view>当时城市</view><image class="line" src="../../images/line.png"></image>
                            </view>
                            <view class="cities">
                                <button class="city" wx:for="{{array}}" wx:key="id">
                                    {{item.message}}
                                </button>
                            </view>
                            <view class="hot">
                                <view>抢手城市</view><image class="line" src="../../images/line.png"></image>
                            </view>
                            <view class="cities">
                                 <button class="city" wx:for="{{arrayHot}}" wx:key="id">
                                    {{item.message}}
                                 </button>
                            </view>
                        </view>
                        <view class="cityList">
                            <view class="letterList" >A</view>
                            <view wx:for="{{aList}}" wx:key="id">{{item.message}}</view>
                            <view class="letterList">B</view>
                            <view wx:for="{{bList}}" wx:key="id">{{item.message}}</view>
                            <view class="letterList">C</view>
                            <view wx:for="{{bList}}" wx:key="id">{{item.message}}</view>
                            <view class="letterList">D</view>
                            <view wx:for="{{bList}}" wx:key="id">{{item.message}}</view>
                            <view class="letterList">E</view>
                            <view wx:for="{{bList}}" wx:key="id">{{item.message}}</view>
                        </view>
                    </scroll-view>
                </swiper-item>
                <swiper-item>
                333
                </swiper-item>
            </swiper>
        </view>
    </view>
    

    标签:
    * 懒人模板许诺:本站一切资源免费下载,无病毒,无弹窗,无搅扰链接! 提点主张