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:
duanshuwen
2026-07-20 14:50:14 +08:00
parent 2407a9d941
commit bfebed44b0
28 changed files with 260 additions and 963 deletions

View File

@@ -26,13 +26,6 @@
>
开始生成
</view>
<view
class="generate-action is-secondary"
hover-class="is-pressed"
@tap="emit('recharge')"
>
充值积分
</view>
</view>
</view>
</template>
@@ -49,7 +42,7 @@ defineProps({
},
});
const emit = defineEmits(["generate", "recharge"]);
const emit = defineEmits(["generate"]);
</script>
<style scoped lang="scss">

View File

@@ -86,9 +86,7 @@
.generate-confirm-actions {
height: 48px;
display: grid;
grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
gap: 10px;
display: block;
margin-top: 18px;
}
@@ -114,11 +112,6 @@
box-shadow: 0 12px 24px rgba(32, 207, 117, 0.25);
}
.generate-action.is-secondary {
background: rgba(255, 255, 255, 0.82);
color: #3d5066;
}
.generate-action.is-pressed {
opacity: 0.86;
}

View File

@@ -7,11 +7,12 @@
:safe-area="false"
:is-mask-click="false"
>
<view class="point-dialog point-recharge-dialog">
<text class="point-dialog-badge">充值提醒</text>
<view class="point-dialog point-insufficient-dialog">
<text class="point-dialog-badge">积分提醒</text>
<text class="point-dialog-title">当前积分不足</text>
<text class="point-dialog-desc">
次生成需要先冻结对应积分充值后可继续当前素材生成
平台当前为每位用户赠送 400 积分支持生成 1 张高清旅行图片及 1 5
秒内动效视频充值通道暂未开放如需更多额度敬请关注后续版本
</text>
<view class="point-dialog-summary">
@@ -24,25 +25,18 @@
<text class="point-summary-value">{{ normalizedCost }}</text>
</view>
<view class="point-summary-item is-shortage">
<text class="point-summary-label">需补</text>
<text class="point-summary-label">积分不</text>
<text class="point-summary-value">{{ shortage }}</text>
</view>
</view>
<view class="point-dialog-actions">
<view
class="point-dialog-button is-cancel"
class="point-dialog-button is-primary"
hover-class="is-pressed"
@tap="emit('cancel')"
>
稍后再说
</view>
<view
class="point-dialog-button is-primary"
hover-class="is-pressed"
@tap="emit('recharge')"
>
去充值
我知道了
</view>
</view>
</view>
@@ -63,7 +57,7 @@ const props = defineProps({
},
});
const emit = defineEmits(["cancel", "recharge"]);
const emit = defineEmits(["cancel"]);
const popupRef = ref(null);
const normalizedCost = computed(() => Math.max(0, Number(props.cost) || 0));

View File

@@ -8,7 +8,7 @@
box-sizing: border-box;
}
.point-recharge-dialog {
.point-insufficient-dialog {
padding-top: 24px;
}
@@ -92,9 +92,7 @@
}
.point-dialog-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
display: block;
margin-top: 28px;
}
@@ -114,12 +112,6 @@
box-sizing: border-box;
}
.point-dialog-button.is-cancel {
border: 1px solid #e2e6ea;
background: #ffffff;
color: #172033;
}
.point-dialog-button.is-primary {
background: #061e34;
color: #ffffff;

View File

@@ -1,14 +1,13 @@
<template>
<view class="aigc-use-template-page">
<AigcTopBar :points="pointBalance" recharge-label="充值" @back="handleBack" @history="handleHistory"
@recharge="handleRecharge" />
<AigcTopBar :points="pointBalance" @back="handleBack" @history="handleHistory" />
<view class="aigc-use-template-body">
<view class="aigc-use-template-content">
<TemplateVersionHero :template="currentTemplate" />
<GenerateConfirmPanel v-if="currentStep === 'generateConfirm'" :cost="currentCost"
:balance="pointBalance" @generate="handleGenerate" @recharge="handleRecharge" />
:balance="pointBalance" @generate="handleGenerate" />
<template v-else>
<VersionOptionList :options="templateItems" :selected-value="selectedTemplateItemId"
@@ -34,7 +33,7 @@
@confirm="handleConfirmPhoto" />
</view>
<PointInsufficientDialog v-if="pointDialogVisible" :cost="currentCost" :balance="pointBalance"
@cancel="handleClosePointDialog" @recharge="handlePointRecharge" />
@cancel="handleClosePointDialog" />
<Privacy :visible="privacyVisible" :contract-name="privacyContractName" @agree="handlePrivacyAgree"
@disagree="handlePrivacyDisagree" />
</view>
@@ -165,13 +164,6 @@ const handleHistory = () => {
});
};
const handleRecharge = () => {
uni.navigateTo({
url: "/pages-aigc/recharge/recharge",
fail: () => showPlaceholderToast("积分充值"),
});
};
const handleSelectTemplateItem = (option) => {
if (!option?.templateItemId) return;
@@ -385,10 +377,6 @@ const handleClosePointDialog = () => {
pointDialogVisible.value = false;
};
const handlePointRecharge = () => {
pointDialogVisible.value = false;
handleRecharge();
};
</script>
<style scoped lang="scss">