|
|
@@ -73,11 +73,12 @@
|
|
|
},
|
|
|
computed: {},
|
|
|
async mounted() {
|
|
|
+ console.log('sign new mounted')
|
|
|
+ this.setFrom()
|
|
|
+
|
|
|
this.needLogin();
|
|
|
// realname_re, 1是待审核,2已签约,3是拒绝
|
|
|
this.userInfo = await this.getUserInfo();
|
|
|
-
|
|
|
- this.setFrom()
|
|
|
},
|
|
|
methods: {
|
|
|
async signNow() {
|
|
|
@@ -93,7 +94,8 @@
|
|
|
},
|
|
|
setFrom() {
|
|
|
let doc = "";
|
|
|
- const from = this.$route.query.from;
|
|
|
+ let from = this.$route.query.from || this.$route.params.from;
|
|
|
+ console.log("run setFrom: ", from);
|
|
|
switch (from) {
|
|
|
case "wo_intro":
|
|
|
doc = document.getElementById("profile");
|
|
|
@@ -107,9 +109,16 @@
|
|
|
case "wo_skill":
|
|
|
doc = document.getElementById("skill");
|
|
|
break;
|
|
|
+ case "works":
|
|
|
+ doc = document.getElementById("works");
|
|
|
+ break;
|
|
|
}
|
|
|
- if (doc) doc.scrollIntoView();
|
|
|
console.log("执行!!!!");
|
|
|
+ if (doc) {
|
|
|
+ setTimeout(() => {
|
|
|
+ doc.scrollIntoView();
|
|
|
+ }, 600);
|
|
|
+ }
|
|
|
},
|
|
|
jumpToCredit() {
|
|
|
location.href = "/credit/pages"
|