接口
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user