chore: remove recharge and switch to test mode
Remove all recharge-related pages, components, and API endpoints. Update developVersion flag to enable test environment with 400 free credits for all users. Revise PointInsufficientDialog to reflect closed recharge channel, update button text and actions. Remove recharge actions from all top bars and generate confirmation panels. Add new user agreement page for service terms, update related API calls. Restyle AigcConsentDialog to use sectioned content layout. Fix visibility timing logic in GiftPointsToast component.
This commit is contained in:
@@ -10,8 +10,7 @@
|
||||
</view>
|
||||
|
||||
<view v-if="showActions" class="aigc-topbar-actions">
|
||||
<view class="aigc-wallet-button" @tap="emit('recharge')">
|
||||
<text class="aigc-wallet-label">{{ rechargeLabel }}</text>
|
||||
<view class="aigc-points-display">
|
||||
<text class="aigc-wallet-points">
|
||||
<text class="aigc-wallet-number">{{ displayPoints }}</text>
|
||||
积分
|
||||
@@ -37,10 +36,6 @@ const props = defineProps({
|
||||
type: [Number, String],
|
||||
default: 0,
|
||||
},
|
||||
rechargeLabel: {
|
||||
type: String,
|
||||
default: "充值",
|
||||
},
|
||||
showActions: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
@@ -52,7 +47,7 @@ const props = defineProps({
|
||||
},
|
||||
});
|
||||
|
||||
const emit = defineEmits(["back", "history", "recharge"]);
|
||||
const emit = defineEmits(["back", "history"]);
|
||||
|
||||
const statusBarHeight = ref(0);
|
||||
const navHeight = ref(52);
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
}
|
||||
|
||||
.aigc-nav-row {
|
||||
position: relative;
|
||||
height: var(--aigc-nav-height);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -53,12 +54,15 @@
|
||||
}
|
||||
|
||||
.aigc-topbar-actions {
|
||||
flex: 1 1 auto;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
flex: 0 0 auto;
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
height: 36px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 36px;
|
||||
grid-template-columns: auto 36px;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
border-radius: 999px;
|
||||
@@ -68,7 +72,7 @@
|
||||
}
|
||||
|
||||
.aigc-history-button,
|
||||
.aigc-wallet-button {
|
||||
.aigc-points-display {
|
||||
height: 36px;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
@@ -94,29 +98,15 @@
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.aigc-wallet-button {
|
||||
justify-content: space-between;
|
||||
gap: 6px;
|
||||
padding: 0 8px;
|
||||
.aigc-points-display {
|
||||
min-width: 84px;
|
||||
max-width: 112px;
|
||||
justify-content: center;
|
||||
padding: 0 12px;
|
||||
background: #102942;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.aigc-wallet-label {
|
||||
height: 24px;
|
||||
flex: 0 0 auto;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0 8px;
|
||||
border-radius: 999px;
|
||||
background: rgba(32, 207, 117, 0.18);
|
||||
color: #50e093;
|
||||
font-size: 10px;
|
||||
line-height: 24px;
|
||||
font-weight: 900;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.aigc-wallet-points {
|
||||
min-width: 0;
|
||||
display: inline-flex;
|
||||
|
||||
Reference in New Issue
Block a user