This commit is contained in:
2020-06-02 11:42:13 +08:00
parent 963dc86404
commit 04855a770c
11 changed files with 262 additions and 61 deletions

View File

@@ -0,0 +1,73 @@
<template>
<view class="address">
<radio-group>
<view v-for="(item, index) in addressList" :key="index" class="address-item">
<view class="item-top">
<view class="user-info">
<view class="user-name">王先生</view>
<view class="user-pnone">174****7492</view>
</view>
<view class="user-address">山东省临沂市兰山区金雀山街道巴啦啦小区三号楼101室</view>
</view>
<view class="item-bottom">
<view class="item-default">
<radio :value="item.value" :checked="index === current" />
<view :class="[item.value ? 'radio-default' : 'radio-others']">
{{ item.value ? '已设为默认' : '设为默认' }}
</view>
</view>
<view class="address-operate">
<view>
<!-- <img src="../static/mine/24.png" /> -->
<view>编辑</view>
</view>
<view>
<!-- <img src="../static/mine/25.png" /> -->
<view>删除</view>
</view>
</view>
</view>
</view>
</radio-group>
<view class="address-btn">添加地址</view>
</view>
</template>
<script>
export default {
name: 'address',
data() {
return {
current: 0,
default: 0
}
},
props: {
addressList: Array
},
onLoad() {
console.log(22)
}
}
</script>
<style lang="scss" scoped>
.address {
background-color: #ffffff;
.address-item {
margin-bottom: 20rpx;
.item-top {
}
}
.address-btn {
margin: 322rpx auto 40rpx;
width: 690rpx;
height: 98rpx;
background: rgba(255,119,15,1);
border-radius: 49rpx;
font-size: 36rpx;
color: rgba(255,255,255,1);
line-height: 40rpx;
text-align: center;
}
}
</style>