You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
139 lines
2.5 KiB
139 lines
2.5 KiB
<template>
|
|
<view class="container">
|
|
<view class="add-box">
|
|
<view class="btn-add" @click="goDetail">
|
|
<image src="../../static/icon8.png"></image>
|
|
<view class="text">添加新地址</view>
|
|
</view>
|
|
</view>
|
|
<view class="list">
|
|
<view class="list-item">
|
|
<view class="list-item-left">
|
|
<text>王</text>
|
|
</view>
|
|
<view class="list-item-right">
|
|
<view>
|
|
<text>辰雷科技园</text>
|
|
</view>
|
|
<view>206</view>
|
|
<view>
|
|
<text>王</text>
|
|
<text>18914071203</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<div class="confirm-btn"> 确定 </div>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
methods: {
|
|
goDetail(){
|
|
uni.navigateTo({
|
|
url:'/pages/address/detail'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.container {
|
|
width: 100vw;
|
|
min-height: 100vh;
|
|
background: #f0f0f0;
|
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
|
|
.add-box {
|
|
background: #fff;
|
|
border-radius: 0 0 50rpx 50rpx;
|
|
padding: 30rpx 60rpx;
|
|
|
|
.btn-add {
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
border: 1px solid #d9d9d9;
|
|
border-radius: 60rpx;
|
|
padding: 20rpx 0;
|
|
font-weight: 400;
|
|
color: rgba(0, 0, 0, .9);
|
|
font-size: 32rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
image {
|
|
width: 56rpx;
|
|
height: 56rpx;
|
|
margin-right: 30rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
.confirm-btn {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
text-align: center;
|
|
background: #edc5c5;
|
|
color: #fff;
|
|
font-size: 32rpx;
|
|
font-weight: 500;
|
|
border-radius: 40rpx 40rpx 0 0;
|
|
padding: 20rpx;
|
|
padding-bottom: 60rpx;
|
|
}
|
|
|
|
.list {
|
|
margin: 10rpx 20rpx;
|
|
|
|
&-item {
|
|
background-color: #fff;
|
|
margin-bottom: 10rpx;
|
|
border-radius: 20rpx;
|
|
box-shadow: 4rpx 4rpx 10rpx 0 rgba(0, 0, 0, .1);
|
|
padding: 20rpx 30rpx;
|
|
padding-top: 30rpx;
|
|
display: flex;
|
|
font-size: 28rpx;
|
|
|
|
&-left {
|
|
|
|
width: 50rpx;
|
|
margin-right: 30rpx;
|
|
|
|
text {
|
|
display: inline-block;
|
|
width: 50rpx;
|
|
height: 50rpx;
|
|
text-align: center;
|
|
line-height: 50rpx;
|
|
border-radius: 50rpx;
|
|
background-color: #d90209;
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
&-right {
|
|
width: calc(100% - 80rpx);
|
|
|
|
&>view {
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
&>view:last-child {
|
|
color: rgba(0, 0, 0, 0.5);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style> |