48 lines
662 B
Vue
48 lines
662 B
Vue
<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> |