修改首页内容
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user