|
@@ -15,13 +15,21 @@
|
|
|
export default {
|
|
|
created: function () {
|
|
|
let otp = this.$route.query.o;
|
|
|
- // let otp = BasicFunction.utils_get_param("o");
|
|
|
+ if(otp == undefined) {
|
|
|
+ otp = BasicFunction.utils_get_param("o");
|
|
|
+ }
|
|
|
console.log('otp: ');
|
|
|
console.log(otp);
|
|
|
let userid = '';
|
|
|
if (localStorage.getItem('frontend-userid')) {
|
|
|
userid = localStorage.getItem('frontend-userid');
|
|
|
this.$router.push('index');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(otp == undefined){
|
|
|
+ // no-otp
|
|
|
+ Toast.fail("链接失效!请回到公众号重新获取链接");
|
|
|
+ return;
|
|
|
}
|
|
|
BasicFunction.get_data("ajaxotplogin?otp=" + otp.toString(), function (response) {
|
|
|
console.log("------ User Info --------");
|