找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索本站精品资源

首页 教程频道 小程序开发 查看内容

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

作者:模板之家 2017-12-1 15:28 3483人关注

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

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

 
 
 

wxml

 

[html] view plain copy
 
  1. <view class="container">  
  2.     <input placeholder="输入快递单号" placeholder-class="placeColor" bindinput="getText"/>  
  3.     <!--显示查得的快递信息-->  
  4.     <scroll-view scroll-y="true" class="scroll">  
  5.         <view class="info" wx:for="{{dataInfo}}">  
  6.             <view class="time">{{item.time}}</view>  
  7.             <view class="context">{{item.context}}</view>  
  8.         </view>  
  9.     </scroll-view>  
  10.   
  11.     <view class="btngroup">  
  12.         <button type="primary" hover-class="none" bindtap="search">查询</button>  
  13.         <button type="primary" hover-class="none" bindtap="onBtnTap">{{expressChinese}}</button>  
  14.     </view>  
  15. </view>  

 

 

wxss

 

 

[html] view plain copy
 
  1. /* index/index.wxss */  
  2. page{  
  3.     background: #565656;  
  4. }  
  5. scroll-view{  
  6.     border: 2rpx solid #f60;  
  7. }  
  8.   
  9. .container{  
  10.     display: flex;  
  11.     flex-direction: column;  
  12.     align-items: center;  
  13.     padding: 80rpx 0;  
  14. }  
  15.   
  16. input{  
  17.     width: 550rpx;  
  18.     padding: 10rpx 0;  
  19.     text-align: center;  
  20.     border: 2px solid #f60;  
  21.     border-radius: 10rpx;  
  22.     color: #fff;  
  23. }  
  24. .placeColor{  
  25.     color: #fff;  
  26. }  
  27.   
  28. .scroll{  
  29.     height: 600rpx;  
  30.     width: 100%;  
  31.     margin-top: 20rpx;  
  32. }  
  33.   
  34. .info{  
  35.     padding: 30rpx;  
  36. }  
  37. .time{  
  38.     color: #fff;  
  39.     font-size: 14px;  
  40. }  
  41.   
  42. .context{  
  43.     color: #fff;  
  44.     font-size: 16px;  
  45.     margin-top: 10rpx;  
  46. }  
  47.   
  48. .btngroup{  
  49.     width: 100%;  
  50.     margin-top: 100rpx;  
  51.   
  52. }  
  53. .btngroup button{  
  54.     width: 100%;  
  55.     background: #f60;  
  56.     color: #fff;  
  57.     margin-top: 5rpx;  
  58. }  
  59. .btngroup .default{  
  60.     background-color: #f60;  
  61. }  
  62. .btngroup .warn{  
  63.     background-color: red;  
  64. }  

 

 

js

 


路过

雷人

握手

鲜花

鸡蛋
原作者: 模板之家 来自: 网络收集

全部回复(0)