首页 > 小程序教程 > 微信小程序蓝色风格收件人地址信息列表页设计制作开发教程

微信小程序蓝色风格收件人地址信息列表页设计制作开发教程

上一篇 下一篇
本文给大家带来的是微信小程序蓝色风格收件人地址信息列表页设计制作开发教程,制作好以后效果图如下:
一、wxml页面代码如下:
<!--pages/addressIndexMember/addressIndexMember.wxml-->

<block wx:for="{{address}}">

<view class="address">
    <view class="namemobile">
      <text class="name">收件人: <text class="common">{{item.name}}</text> </text>
      <text class="mobile">电话:<text class="common">{{item.mobile}}</text></text>
    </view>
    <view class="country">
        <text class="topic">
          国家/省州/城市/邮编:
        </text>
        <text class="cou-detail">
          {{item.country}}
        </text>
        <view class="detail">
          <text class="topic">
            收货地址: 
          </text>
          <text class="de-detail">
            {{item.detail}}
          </text>
        </view>
      </view>
    <view class="hr"></view>
      <view class="bottom">
      <view class="wrap">
        <checkbox class="check" color="#f9364f" value="true" checked='{{item.default}}'/>
        <text class="topic">默认地址{{item.default}}</text>
      </view>
        <view class="button-group">
            <view class="edit">
                <image src="../../images/member/addressEdit.png" class="img"></image>
                <text class="action">编辑</text>
            </view>
            <view class="delete">
                <image src="../../images/member/addressDelete.png" class="img"></image>
                <text class="action">删除</text>
            </view>
        </view>
      </view>
</view>
</block>
<view class="add-button">
  <button class="btn" size="default" type="primary" style="background-color:#0398e7;">+添加新地址</button>
</view>
 
二、wxss样式文件代码如下:
/* pages/addressIndexMember/addressIndexMember.wxss */

.address{
background-color:#ffffff;
margin:15px 0;
padding:10px;

}
.namemobile{

margin-bottom:5px;

}
.name{
font-weight:bold;

}
.mobile{

font-weight:bold;
float: right;


}

.country{
display:inline-block;

}
.cou-detail{
display:inline-block;
color:rgba(0,0,0,0.7);

}
.detail{
display:inline-block;
margin-bottom:15px;

}
.de-detail{
  display: inline-block;
  color:rgba(0,0,0,0.7);


}
.common{
color:rgba(0,0,0,0.7);
margin-left: 5px;


}
.topic{
display:inline-block;
}
/*bottom  */
.bottom{
  justify-content:space-between;
align-items:center;
display:flex;



}
.button-group{
float:right;
  display: inline-block;
}
.edit{

display:inline-block;

}
.delete{
display:inline-block;
margin-left:10px;
}
.img{
height:15px;
width:15px;

}
.check{
display:inline-flex;
align-items:center;

}
.wrap{
 display: inline-flex;
 align-items: center;
}
.action{
  margin-left: 5px;
}
.add-button{

margin-top:40px;
padding:0 20px;


}
.btn{
border-radius:20px;

}
三、js页面代码如下:
// pages/addressIndexMember/addressIndexMember.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    address:[
      { 'name': "布兰奇MA", 'mobile': "18866880008", "country": "中国/广东省/东莞市/651156", "detail":"中国广东省东莞市解放库685号",'default':"true"},
      { 'name': "布兰奇MA", 'mobile': "18866880008", "country": "中国/广东省/东莞市/651156", "detail": "中国广东省东莞市解放库685号", 'default': "" },

    ]

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})

模板简介:该模板名称为【微信小程序蓝色风格收件人地址信息列表页设计制作开发教程】,大小是,文档格式为.,推荐使用打开,作品中的图片,文字等数据均可修改,图片请在作品中选中图片替换即可,文字修改直接点击文字修改即可,您也可以新增或修改作品中的内容,该模板来自用户分享,如有侵权行为请联系网站客服处理。欢迎来懒人模板【小程序教程】栏目查找您需要的精美模板。

相关搜索
  • 下载密码 lanrenmb
  • 下载次数 19,472次
  • 使用软件
  • 文件格式
  • 文件大小
  • 上传时间 08-09
  • 作者 网友投稿
  • 肖像权 人物画像及字体仅供参考
栏目分类 更多 >
热门推荐 更多 >
响应式 微信文章 微信公众平台 自适应 微信图片 微信模板 单页式简历模板 企业网站 微信素材 html5
您可能会喜欢的其他模板