修改首页内容

This commit is contained in:
zhouyanli
2026-11-13 09:37:34 +08:00
parent 5c9aca27e8
commit 0180cba283
13 changed files with 472 additions and 133 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="page">
<credit-header title="信用免押金" :show-badge="true"></credit-header>
<credit-header title="信用免押金"></credit-header>
<view class="result">
<view class="success-icon">
@@ -12,7 +12,7 @@
</view>
<view class="bottom-bar">
<button class="btn-primary" @tap="goAddDevice">前往添加设备</button>
<button class="btn-primary" @tap="handleDone">知道了</button>
</view>
</view>
</template>
@@ -21,7 +21,6 @@
import { ref } from 'vue'
import { onLoad, onUnload } from '@dcloudio/uni-app'
import { getOrder } from '@/api/order'
import { openPetApp } from '@/utils/pet-app'
const orderId = ref('')
const confirmed = ref(false)
@@ -57,9 +56,9 @@
}
}
// 添加设备在宠物 App 内完成,小程序只做交接
function goAddDevice() {
openPetApp()
// 免押流程到此结束,回到首页
function handleDone() {
uni.reLaunch({ url: '/pages/index/index' })
}
</script>