添加地址
This commit is contained in:
66
pages/addaddress/addaddress.js
Normal file
66
pages/addaddress/addaddress.js
Normal file
@@ -0,0 +1,66 @@
|
||||
// pages/addaddress/addaddress.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
6
pages/addaddress/addaddress.json
Normal file
6
pages/addaddress/addaddress.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"shuru": "/components/addaddress/shuru/shuru",
|
||||
"addradd": "/components/chooseaddr/addradd/addradd"
|
||||
}
|
||||
}
|
||||
8
pages/addaddress/addaddress.scss
Normal file
8
pages/addaddress/addaddress.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
.addaddress {
|
||||
background-color: white;
|
||||
.btn1 {
|
||||
position: fixed;
|
||||
bottom: 102rpx;
|
||||
left: 50rpx;
|
||||
}
|
||||
}
|
||||
10
pages/addaddress/addaddress.wxml
Normal file
10
pages/addaddress/addaddress.wxml
Normal file
@@ -0,0 +1,10 @@
|
||||
<view class="addaddress">
|
||||
<shuru left="收件人" right="姓名需和身份证一致"></shuru>
|
||||
<shuru left="手机号" right="请填入常用的手机号码"></shuru>
|
||||
<shuru left="国家" right="CN中国大陆" ifarrow="{{true}}"></shuru>
|
||||
<shuru left="城市信息" right="北京市 北京市 东城区" ifarrow="{{true}}"></shuru>
|
||||
<shuru left="街道地址" right="街道地址"></shuru>
|
||||
<shuru left="邮政编码" right="邮政编码"></shuru>
|
||||
<shuru left="身份证号" right="可为空,部分商品需要"></shuru>
|
||||
<addradd text="保存地址" class="btn1"></addradd>
|
||||
</view>
|
||||
9
pages/addaddress/addaddress.wxss
Normal file
9
pages/addaddress/addaddress.wxss
Normal file
@@ -0,0 +1,9 @@
|
||||
.addaddress {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.addaddress .btn1 {
|
||||
position: fixed;
|
||||
bottom: 102rpx;
|
||||
left: 50rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user