fix: 🐛 address 模块样式调整为flex
This commit is contained in:
parent
7009df90c7
commit
f2ebf64622
@ -5,22 +5,24 @@
|
|||||||
<view v-if="addressList.length > 0" class="address">
|
<view v-if="addressList.length > 0" class="address">
|
||||||
<!-- 收货地址项 -->
|
<!-- 收货地址项 -->
|
||||||
<uni-swipe-action class="item" v-for="item in addressList" :key="item.id">
|
<uni-swipe-action class="item" v-for="item in addressList" :key="item.id">
|
||||||
<uni-swipe-action-item class="item-content" :text="item.receiver">
|
<uni-swipe-action-item :text="item.receiver">
|
||||||
<view class="left">
|
<view class="item-content">
|
||||||
<view class="user">
|
<view class="left">
|
||||||
{{ item.receiver }}
|
<view class="user">
|
||||||
<text class="contact">{{ item.contact }}</text>
|
{{ item.receiver }}
|
||||||
<text v-if="item.isDefault === 1" class="badge">默认</text>
|
<text class="contact">{{ item.contact }}</text>
|
||||||
|
<text v-if="item.isDefault === 1" class="badge">默认</text>
|
||||||
|
</view>
|
||||||
|
<view class="locate">{{ item.fullLocation }} {{ item.address }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="locate">{{ item.fullLocation }} {{ item.address }}</view>
|
<navigator
|
||||||
|
class="edit right"
|
||||||
|
hover-class="none"
|
||||||
|
:url="`/pagesMember/address/address-form?id=${item.id}`"
|
||||||
|
>
|
||||||
|
修改
|
||||||
|
</navigator>
|
||||||
</view>
|
</view>
|
||||||
<navigator
|
|
||||||
class="edit right"
|
|
||||||
hover-class="none"
|
|
||||||
:url="`/pagesMember/address/address-form?id=${item.id}`"
|
|
||||||
>
|
|
||||||
修改
|
|
||||||
</navigator>
|
|
||||||
<!-- 删除按钮 -->
|
<!-- 删除按钮 -->
|
||||||
<template #right>
|
<template #right>
|
||||||
<button class="delete-button" @tap="handleDelete(item.id)">删除</button>
|
<button class="delete-button" @tap="handleDelete(item.id)">删除</button>
|
||||||
@ -113,7 +115,6 @@ page {
|
|||||||
|
|
||||||
.item-content {
|
.item-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
padding: 40rpx 10rpx 38rpx;
|
padding: 40rpx 10rpx 38rpx;
|
||||||
@ -121,6 +122,7 @@ page {
|
|||||||
|
|
||||||
.left {
|
.left {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
margin-right: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user