fix: 修复样式问题
This commit is contained in:
parent
374d909667
commit
cf13707c3c
|
|
@ -78,5 +78,5 @@
|
||||||
|
|
||||||
.loading-container .btn-secondary {
|
.loading-container .btn-secondary {
|
||||||
background: rgba(255, 255, 255, 0.2);
|
background: rgba(255, 255, 255, 0.2);
|
||||||
color: white;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
@ -45,13 +45,6 @@ export default function Generate() {
|
||||||
if (result.status === 'completed') {
|
if (result.status === 'completed') {
|
||||||
setStatus('success')
|
setStatus('success')
|
||||||
setResult({ success: true, imageUrl: result.outputUrl })
|
setResult({ success: true, imageUrl: result.outputUrl })
|
||||||
|
|
||||||
// 成功后跳转到result页面
|
|
||||||
setTimeout(() => {
|
|
||||||
navigateTo({
|
|
||||||
url: `/pages/result/index?images=${encodeURIComponent(JSON.stringify([result.outputUrl]))}`
|
|
||||||
})
|
|
||||||
}, 1000)
|
|
||||||
} else if (result.status === 'failed') {
|
} else if (result.status === 'failed') {
|
||||||
setStatus('error')
|
setStatus('error')
|
||||||
setResult({ success: false, error: result.error || '处理失败' })
|
setResult({ success: false, error: result.error || '处理失败' })
|
||||||
|
|
@ -109,9 +102,9 @@ export default function Generate() {
|
||||||
<View className='generate-success'>
|
<View className='generate-success'>
|
||||||
<View className='result-container'>
|
<View className='result-container'>
|
||||||
<Text className='success-text'>处理完成!</Text>
|
<Text className='success-text'>处理完成!</Text>
|
||||||
{result?.imageUrl && (
|
{result?.outputUrl && (
|
||||||
<View className='result-image'>
|
<View className='result-image'>
|
||||||
<Image src={result.imageUrl} mode='aspectFit' />
|
<Image src={result.outputUrl} mode='aspectFit' />
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue