This commit is contained in:
2025-01-16 10:43:34 +08:00
parent 90a57bcfdb
commit 8ed3fdcde2
182 changed files with 19251 additions and 26623 deletions
+48
View File
@@ -0,0 +1,48 @@
<template>
<view>
</view>
</template>
<script>
import {
wxLogin,
} from '../../../util/index'
import {
queryHasOrder
} from '@/config/user.js'
export default {
data() {
return {
}
},
async onLoad(option) {
if (!uni.getStorageSync('token')) {
const res = await wxLogin();
console.log(333, res);
}
const reuslt = await queryHasOrder(111)
if (reuslt.data.length != 0) {
uni.reLaunch({
url: `/pages/device/return?deviceNo=${option.deviceNo}`
})
} else {
uni.reLaunch({
url: `/pages/device/detail?deviceNo=${option.deviceNo}`
})
}
},
methods: {
}
}
</script>
<style>
</style>