1、个人信息:隐藏用户名的展示;调整保存按钮的背景颜色和字重

2、地址详情的删除按钮的逻辑完善
3、地址列表的底部按钮字重和背景颜色调整
4、发票详情的按钮背景颜色调整
5、发票列表的按钮背景颜色调整
6、地址列表的默认所在的组件增加圆角
This commit is contained in:
wangzimeng 2025-08-05 11:46:04 +08:00
parent 5542dcdd15
commit fce0172f6e
6 changed files with 30 additions and 20 deletions

View File

@ -168,8 +168,8 @@
content: '确认删除此收货地址吗?', content: '确认删除此收货地址吗?',
success: async function (res) { success: async function (res) {
if (res.confirm) { if (res.confirm) {
const { code } = await sheep.$api.user.address.delete(state.model.id); const res = await sheep.$api.user.address.delete(state.model.id);
if (res.code === 1) { if (res.code == 1) {
sheep.$router.back(); sheep.$router.back();
} }
} }
@ -250,8 +250,10 @@
width: 710rpx; width: 710rpx;
height: 80rpx; height: 80rpx;
border-radius: 40rpx; border-radius: 40rpx;
background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient)); background: linear-gradient(to right, var(--ui-BG-Main-gradient), var(--ui-BG-Main));
color: $white; // color: $white;
font-weight: bold;
color: #333333;
} }
.cancel-btn { .cancel-btn {

View File

@ -18,13 +18,15 @@
v-if="['WechatMiniProgram', 'WechatOfficialAccount'].includes(sheep.$platform.name)" v-if="['WechatMiniProgram', 'WechatOfficialAccount'].includes(sheep.$platform.name)"
@tap="importWechatAddress" @tap="importWechatAddress"
class="border ss-reset-button sync-wxaddress ss-m-20 ss-flex ss-row-center ss-col-center" class="border ss-reset-button sync-wxaddress ss-m-20 ss-flex ss-row-center ss-col-center"
style="font-weight: bold;"
> >
<text class="cicon-weixin ss-p-r-10" style="color: #09bb07; font-size: 40rpx"></text> <text class="cicon-weixin ss-p-r-10" style="color: #09bb07; font-size: 40rpx;font-weight: bold;"></text>
导入微信地址 导入微信地址
</button> </button>
<button <button
class="add-btn ss-reset-button ui-Shadow-Main" class="add-btn ss-reset-button ui-Shadow-Main"
@tap="sheep.$router.go('/pages/user/address/edit')" @tap="sheep.$router.go('/pages/user/address/edit')"
style="font-weight: bold;"
> >
新增收货地址 新增收货地址
</button> </button>
@ -129,12 +131,13 @@
.footer-box { .footer-box {
.add-btn { .add-btn {
flex: 1; flex: 1;
background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient)); background: linear-gradient(to right, var(--ui-BG-Main-gradient), var(--ui-BG-Main));
border-radius: 80rpx; border-radius: 80rpx;
font-size: 30rpx; font-size: 30rpx;
font-weight: 500; font-weight: 500;
line-height: 80rpx; line-height: 80rpx;
color: $white; // color: $white;
color: #333333;
position: relative; position: relative;
z-index: 1; z-index: 1;
} }

View File

@ -36,7 +36,7 @@
</view> </view>
<view class="bg-white ss-p-x-30"> <view class="bg-white ss-p-x-30">
<uni-forms-item name="username" label="用户名" @tap="onChangeUsername" class="label-box"> <!-- <uni-forms-item name="username" label="用户名" @tap="onChangeUsername" class="label-box">
<uni-easyinput <uni-easyinput
v-model="userInfo.username" v-model="userInfo.username"
disabled disabled
@ -53,7 +53,7 @@
</button> </button>
</template> </template>
</uni-easyinput> </uni-easyinput>
</uni-forms-item> </uni-forms-item> -->
<uni-forms-item name="nickname" label="昵称"> <uni-forms-item name="nickname" label="昵称">
<uni-easyinput <uni-easyinput
@ -412,11 +412,11 @@ onBeforeMount(async () => {
.logout-btn { .logout-btn {
width: 710rpx; width: 710rpx;
height: 80rpx; height: 80rpx;
background: linear-gradient(90deg,#FCCA58, #FFBD25); background: linear-gradient(to right, #FCCA58, #FFBD25);
border-radius: 40rpx; border-radius: 40rpx;
font-size: 30rpx; font-size: 30rpx;
font-weight: 500; font-weight: bold;
color: $white; color: #333333;
} }
.exit-btn { .exit-btn {
@ -424,7 +424,7 @@ onBeforeMount(async () => {
height: 80rpx; height: 80rpx;
background: #ffffff; background: #ffffff;
border-radius: 40rpx; border-radius: 40rpx;
border: 2rpx solid #999999; border: 1rpx solid #999999;
font-size: 30rpx; font-size: 30rpx;
font-weight: 800; font-weight: 800;
color: #999999; color: #999999;

View File

@ -263,8 +263,9 @@
width: 710rpx; width: 710rpx;
height: 80rpx; height: 80rpx;
border-radius: 40rpx; border-radius: 40rpx;
background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient)); background: linear-gradient(to right, var(--ui-BG-Main-gradient), var(--ui-BG-Main));
color: $white; // color: $white;
color: #333333;
} }
.cancel-btn { .cancel-btn {

View File

@ -58,12 +58,12 @@
.footer-box { .footer-box {
.add-btn { .add-btn {
flex: 1; flex: 1;
background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient)); background: linear-gradient(to right, var(--ui-BG-Main-gradient), var(--ui-BG-Main));
border-radius: 80rpx; border-radius: 80rpx;
font-size: 30rpx; font-size: 30rpx;
font-weight: 500; font-weight: bold;
line-height: 80rpx; line-height: 80rpx;
color: $white; color: #333333;
position: relative; position: relative;
z-index: 1; z-index: 1;
} }

View File

@ -6,9 +6,9 @@
<view class="item-left" v-if="!isEmpty(props.item)"> <view class="item-left" v-if="!isEmpty(props.item)">
<view class="area-text ss-flex ss-col-center"> <view class="area-text ss-flex ss-col-center">
<uni-tag <uni-tag
class="ss-m-r-10" class="ss-m-r-10 defaultBox"
size="small" size="small"
custom-style="background-color: var(--ui-BG-Main); border-color: var(--ui-BG-Main); color: #fff;" custom-style="background-color: var(--ui-BG-Main); border-color: var(--ui-BG-Main); color: #fff;border-radius: 10rpx;"
v-if="props.item.is_default" v-if="props.item.is_default"
text="默认" text="默认"
></uni-tag> ></uni-tag>
@ -72,6 +72,10 @@
font-weight: 400; font-weight: 400;
color: $dark-9; color: $dark-9;
} }
.defaultBox {
border-radius: 10rpx;
}
.address-text { .address-text {
font-size: 32rpx; font-size: 32rpx;