添加地址

This commit is contained in:
asd
2019-12-14 11:53:14 +08:00
parent 64e6934168
commit 2a5b7596d3
16 changed files with 234 additions and 21 deletions

View File

@@ -0,0 +1,25 @@
// components/addaddress/shuru/shuru.js
Component({
/**
* 组件的属性列表
*/
properties: {
left: String,
right: String,
ifarrow: Boolean
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1,32 @@
.shuru {
width: 670rpx;
height: 100rpx;
border-bottom: 2rpx solid #E8E8E8;
margin: 0 auto;
display: flex;
justify-content: space-between;
line-height: 100rpx;
font-size: 28rpx;
.left {
color: #333333;
}
.right {
margin: auto 0;
display: flex;
.shuru1 {
width: 280rpx;
text-align: right;
}
.shurupla {
color: #999999;
font-size: 28rpx;
}
.arrow {
width: 14rpx;
height: 25rpx;
background-color: #999999;
margin: auto 0;
margin-left: 27rpx;
}
}
}

View File

@@ -0,0 +1,11 @@
<view class="shuru">
<view class="left">{{left}}</view>
<view class="right"wx:if="{{ifarrow}}">
<text class="shurupla">{{right}}</text>
<view class="arrow"></view>
</view>
<view class="right" wx:else>
<input type="text" placeholder-class="shurupla" class="shuru1" placeholder="{{right}}" value=""/>
</view>
</view>

View File

@@ -0,0 +1,37 @@
.shuru {
width: 670rpx;
height: 100rpx;
border-bottom: 2rpx solid #E8E8E8;
margin: 0 auto;
display: flex;
justify-content: space-between;
line-height: 100rpx;
font-size: 28rpx;
}
.shuru .left {
color: #333333;
}
.shuru .right {
margin: auto 0;
display: flex;
}
.shuru .right .shuru1 {
width: 280rpx;
text-align: right;
}
.shuru .right .shurupla {
color: #999999;
font-size: 28rpx;
}
.shuru .right .arrow {
width: 14rpx;
height: 25rpx;
background-color: #999999;
margin: auto 0;
margin-left: 27rpx;
}

View File

@@ -1,23 +1,23 @@
// components/chooseaddr/addradd/addradd.js
Component({
/**
* 组件的属性列表
*/
properties: {
/**
* 组件的属性列表
*/
properties: {
text: String
},
},
/**
* 组件的初始数据
*/
data: {
/**
* 组件的初始数据
*/
data: {
},
},
/**
* 组件的方法列表
*/
methods: {
/**
* 组件的方法列表
*/
methods: {
}
})
}
})

View File

@@ -1 +1 @@
<view class="btn">添加地址</view>
<view class="btn" >{{text}}</view>

View File

@@ -1,8 +1,8 @@
.btn {
width: 650rpx;
height: 98rpx;
background: rgba(69, 199, 120, 1);
border-radius: 49rpx;
background: #09BB07;
border-radius: 10rpx;
margin: 0 auto;
font-size: 36rpx;
color: white;