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); console.log(res);
// TODO // TODO
this.orderInfo = res.data this.orderInfo = res.data
this.goPay(this.orderInfo)
}) })
} }
} }

View File

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

View File

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