细节优化

This commit is contained in:
kron
2025-06-19 01:55:40 +08:00
parent 554f891e31
commit 595a9802e2
16 changed files with 201 additions and 46 deletions

View File

@@ -15,11 +15,20 @@ const vips = [1, 3, 6, 12];
const chooseVip = (index) => {
vipChoosen.value = index;
};
const onPay = () => {
if (!user.value.id) {
return uni.showToast({
title: "请先登录",
icon: "none",
});
}
};
</script>
<template>
<Container title="会员说明">
<view class="header">
<view v-if="user.id" class="header">
<view>
<Avatar :src="user.avatar" :size="35" :border="true" />
<text>{{ user.nickName }}</text>
@@ -68,7 +77,7 @@ const chooseVip = (index) => {
</view>
</view>
</view>
<SButton>支付</SButton>
<SButton :onClick="onPay">支付</SButton>
</view>
</Container>
</template>