|
|
@ -7,13 +7,26 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { mapState, mapMutations, mapActions } from "vuex"; |
|
|
|
import { |
|
|
|
|
|
|
|
mapState, |
|
|
|
|
|
|
|
mapMutations, |
|
|
|
|
|
|
|
mapActions |
|
|
|
|
|
|
|
} from "vuex"; |
|
|
|
// 组件 |
|
|
|
// 组件 |
|
|
|
// import request from "@//api/request"; |
|
|
|
// import request from "@//api/request"; |
|
|
|
import { wxappAuth, getUser } from "@/api/user"; |
|
|
|
import { |
|
|
|
|
|
|
|
wxappAuth, |
|
|
|
|
|
|
|
getUser |
|
|
|
|
|
|
|
} from "@/api/user"; |
|
|
|
import dayjs from "dayjs"; |
|
|
|
import dayjs from "dayjs"; |
|
|
|
import cookie from "@/utils/store/cookie"; |
|
|
|
import cookie from "@/utils/store/cookie"; |
|
|
|
import { parseQuery, login, handleQrCode ,getCurrentPageUrl,handleUrlParam} from "@/utils"; |
|
|
|
import { |
|
|
|
|
|
|
|
parseQuery, |
|
|
|
|
|
|
|
login, |
|
|
|
|
|
|
|
handleQrCode, |
|
|
|
|
|
|
|
getCurrentPageUrl, |
|
|
|
|
|
|
|
handleUrlParam |
|
|
|
|
|
|
|
} from "@/utils"; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: "Loading", |
|
|
|
name: "Loading", |
|
|
@ -39,26 +52,7 @@ export default { |
|
|
|
this.toLaunch(); |
|
|
|
this.toLaunch(); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
// cookie.get("spread"); |
|
|
|
|
|
|
|
// if (this.$deviceType == "weixin") { |
|
|
|
|
|
|
|
// let path = parseQuery().path |
|
|
|
|
|
|
|
// console.log(this) |
|
|
|
|
|
|
|
// if (path) { |
|
|
|
|
|
|
|
// this.$yrouter.push({ |
|
|
|
|
|
|
|
// path |
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
// } else { |
|
|
|
|
|
|
|
// this.$yrouter.switchTab({ |
|
|
|
|
|
|
|
// path: "/pages/home/index" |
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// return |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// this.toLaunch(); |
|
|
|
|
|
|
|
if (this.$deviceType == "app" || this.$deviceType == "h5") { |
|
|
|
if (this.$deviceType == "app" || this.$deviceType == "h5") { |
|
|
|
// this.toLaunch(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$yrouter.switchTab({ |
|
|
|
this.$yrouter.switchTab({ |
|
|
|
path: "/pages/home/index" |
|
|
|
path: "/pages/home/index" |
|
|
|
}); |
|
|
|
}); |
|
|
@ -69,6 +63,7 @@ export default { |
|
|
|
path: "/pages/home/index" |
|
|
|
path: "/pages/home/index" |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
...mapActions(["changeAuthorization", "setUserInfo"]), |
|
|
|
...mapActions(["changeAuthorization", "setUserInfo"]), |
|
|
|