address.vue 1.4 KB
<template>
	<!-- 收获地址 -->
	<view class="addressBox flexJ">
		<view class="right">
			<image src="/static/shopCarIc/redAddress.png" mode=""></image>
			<view class="area">
				<text>{{!isOrder ? adress.diqu + adress.address : adress.sh_diqu + adress.sh_address}}</text>
				<view class="name">{{!isOrder ? adress.name : adress.sh_name}}  
				{{!isOrder ? adress.mobile.slice(0,3) + '****' +adress.mobile.slice(-4)
				: adress.sh_mobile.slice(0,3) + '****' + adress.sh_mobile.slice(-4)
				}}
				</view>
			</view>
		</view>
		<image src="/static/mineIc/gayRight.png" mode=""></image>
	</view>
</template>

<script setup>
	import { ref,reactive } from 'vue'
	import {onShow,onLoad} from '@dcloudio/uni-app'
	const props = defineProps({
		adress:{
			type:Object,
			default:{}
		},
		isOrder:{
			type:Boolean,
			default:false
		}
	})
</script>

<style lang="scss">
	.addressBox {
		margin-bottom: 20rpx;
		padding: 32rpx 20rpx 31rpx 32rpx;
		border-radius: 24rpx;
		background: #fff;
	
		.right {
			display: flex;
	
			image {
				width: 32rpx;
				height: 32rpx;
				margin-right: 8rpx;
				margin-top: 9rpx;
			}
	
			.area {
				text {
					color: #323233ff;
					font-size: 28rpx;
					font-weight: 700;
					line-height: 36rpx;
				}
	
				.name {
					color: #646566ff;
					font-size: 24rpx;
					margin-top: 9rpx;
				}
			}
		}
	
		image {
			width: 16rpx;
			height: 32rpx;
		}
	}
</style>