添加地址
This commit is contained in:
25
components/addaddress/shuru/shuru.js
Normal file
25
components/addaddress/shuru/shuru.js
Normal file
@@ -0,0 +1,25 @@
|
||||
// components/addaddress/shuru/shuru.js
|
||||
Component({
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
left: String,
|
||||
right: String,
|
||||
ifarrow: Boolean
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
||||
4
components/addaddress/shuru/shuru.json
Normal file
4
components/addaddress/shuru/shuru.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
32
components/addaddress/shuru/shuru.scss
Normal file
32
components/addaddress/shuru/shuru.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
components/addaddress/shuru/shuru.wxml
Normal file
11
components/addaddress/shuru/shuru.wxml
Normal 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>
|
||||
37
components/addaddress/shuru/shuru.wxss
Normal file
37
components/addaddress/shuru/shuru.wxss
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user