This commit is contained in:
2019-12-14 14:18:19 +08:00
26 changed files with 540 additions and 0 deletions

View 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 () {
}
})

View File

@@ -0,0 +1,6 @@
{
"usingComponents": {
"shuru": "/components/addaddress/shuru/shuru",
"addradd": "/components/chooseaddr/addradd/addradd"
}
}

View File

@@ -0,0 +1,8 @@
.addaddress {
background-color: white;
.btn1 {
position: fixed;
bottom: 102rpx;
left: 50rpx;
}
}

View 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>

View File

@@ -0,0 +1,9 @@
.addaddress {
background-color: white;
}
.addaddress .btn1 {
position: fixed;
bottom: 102rpx;
left: 50rpx;
}

View File

@@ -0,0 +1,66 @@
// pages/chooseaddr/chooseaddr.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -0,0 +1,6 @@
{
"usingComponents": {
"address": "/components/chooseaddr/address/address",
"addradd": "/components/chooseaddr/addradd/addradd"
}
}

View File

@@ -0,0 +1,10 @@
.chooseaddress {
.addr {
margin-left: 30rpx;
}
.btn1 {
position: fixed;
bottom: 149rpx;
left: 50rpx;
}
}

View File

@@ -0,0 +1,14 @@
<view class="chooseaddress">
<view class="addr">
<address></address>
</view>
<view class="addr">
<address></address>
</view>
<view class="addr">
<address></address>
</view>
<view class="btn1">
<addradd text="添加地址"></addradd>
</view>
</view>

View File

@@ -0,0 +1,9 @@
.chooseaddress .addr {
margin-left: 30rpx;
}
.chooseaddress .btn1 {
position: fixed;
bottom: 149rpx;
left: 50rpx;
}