jiuyiUniapp/jiuyi2/components/public/jy-commodity-address/index.vue

53 lines
1.1 KiB
Vue

<template>
<view class="address df aic jcc">
<!-- 图标 -->
<view class="icon mr20">
<image class="wh45" src="/static/address.png" mode="aspectFill" />
</view>
<!-- 收获地址 姓名电话 -->
<view class="info f1">
<!-- 收获地址 -->
<view class="location f30">
<text class="c333">收货地址收货地址收货地址收货地址收货地址收货地址收货地址</text>
</view>
<!-- 姓名电话 -->
<view class="name">
<text class="c999 f26">张三 123456789</text>
</view>
</view>
<!-- 选择地址 -->
<view v-if="shopEdit" class="btn ti warmHollow plr20 ml20"
@click="util.checkLink('/pages/mine/delivery-address/index')">
<text class="cFF9B27">选择地址</text>
</view>
</view>
</template>
<script setup>
//
import util from '@/common/js/util.js'
const props = defineProps({
shopEdit: {
type: Boolean,
default: true
},
address: {
type: Object,
default: () => ({})
}
})
const goto = (url) => {
uni.navigateTo({
url
})
}
</script>
<style lang="scss" scoped>
.address {
.edit-address {
overflow: visible;
}
}
</style>