This commit is contained in:
ChuShiZ 2024-09-28 00:43:23 +08:00
parent c23969ee2f
commit 8c7965638e
3 changed files with 15 additions and 19 deletions

View File

@ -246,6 +246,7 @@ export default {
console.log(res);
// TODO
this.orderInfo = res.data
this.goPay(this.orderInfo)
})
}
}

View File

@ -3,12 +3,12 @@
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
},
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
// // {
// // "path": "pages/index/index",
// // "style": {
// // "navigationBarTitleText": "uni-app"
// // }
// // },
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "uni-app"
}
},
{
"path": "pages/login/login",
"style": {

View File

@ -5,25 +5,20 @@
</template>
<script>
import {getToken} from "@/utils/auth";
import {
getToken
} from "@/utils/auth";
export default {
export default {
data() {
return {
}
},
onLoad() {
if (getToken()) {
uni.reLaunch({
url: '/pages-home/home/home'
})
} else {
uni.reLaunch({
url: '/pages/login/login'
})
}
uni.reLaunch({
url: '/pages-home/home/home'
})
},
methods: {
@ -33,4 +28,4 @@
<style>
</style>
</style>