欢迎来到258分享网,纯净的网络源码分享基地!

258资源分享网

全部作品
全部作品
网站源码
微信源码
素材特效
源码插件
视频教程
建站学院
热门搜索: 织梦  农业种植  农业  安全设置  官方
258资源分享 > 建站学院 > 微信开发 > 微信小程序案例-快递查询

推荐下载

HTML5响应式自适应网咯设计

2020-05-12   浏览:740

高端HTML5响应式企业通用网

2020-05-06   浏览:521

html5响应式外贸网站英文版

2020-05-08   浏览:510

HTML5自适应律师工作室类网

2020-04-04   浏览:504

HTML5影视传媒文化公司类网

2020-05-12   浏览:502

微信小程序案例-快递查询

发布时间:2021-01-08  

wxmlview class="container" input placeholder="输入快递单号" placeholder-class="placeColor" bindinput="getText"/ !--显示查得的快递信息-- scroll-view scroll-y="true" clas ...

 

 

 

wxml

[html] view plain copy

 

<view class="container">  

    <input placeholder="输入快递单号" placeholder-class="placeColor" bindinput="getText"/>  

    <!--显示查得的快递信息-->  

    <scroll-view scroll-y="true" class="scroll">  

        <view class="info" wx:for="{{dataInfo}}">  

            <view class="time">{{item.time}}</view>  

            <view class="context">{{item.context}}</view>  

        </view>  

    </scroll-view>  

  

    <view class="btngroup">  

        <button type="primary" hover-class="none" bindtap="search">查询</button>  

        <button type="primary" hover-class="none" bindtap="onBtnTap">{{expressChinese}}</button>  

    </view>  

</view>  

 

wxss

[html] view plain copy

 

/* index/index.wxss */  

page{  

    background: #565656;  

}  

scroll-view{  

    border: 2rpx solid #f60;  

}  

  

.container{  

    display: flex;  

    flex-direction: column;  

    align-items: center;  

    padding: 80rpx 0;  

}  

  

input{  

    width: 550rpx;  

    padding: 10rpx 0;  

    text-align: center;  

    border: 2px solid #f60;  

    border-radius: 10rpx;  

    color: #fff;  

}  

.placeColor{  

    color: #fff;  

}  

  

.scroll{  

    height: 600rpx;  

    width: 100%;  

    margin-top: 20rpx;  

}  

  

.info{  

    padding: 30rpx;  

}  

.time{  

    color: #fff;  

    font-size: 14px;  

}  

  

.context{  

    color: #fff;  

    font-size: 16px;  

    margin-top: 10rpx;  

}  

  

.btngroup{  

    width: 100%;  

    margin-top: 100rpx;  

  

}  

.btngroup button{  

    width: 100%;  

    background: #f60;  

    color: #fff;  

    margin-top: 5rpx;  

}  

.btngroup .default{  

    background-color: #f60;  

}  

.btngroup .warn{  

    background-color: red;  

}  

js

[html] view plain copy

 

// index/index.js  

Page({  

  data:{  

      expressChinese:'快递公司选择'  

  },  

  onLoad:function(options){  

    // 页面初始化 options为页面跳转所带来的参数  

    var orderNum = this.data.orderNum;    

  },  

  

  search:function(){  

      this.getExpressInfo(this.data.expressEnglish,this.data.orderNum);  

  },  

  

  //传入快递公司、快递单号获取快递信息  

  getExpressInfo:function(param,orderNum){   

      console.log(param,orderNum);       

本文标签

: