|
|
@@ -14,6 +14,16 @@
|
|
|
@click="signNow"
|
|
|
class="sign-btn"
|
|
|
>申请签约开发者</el-button>
|
|
|
+
|
|
|
+ <showToast
|
|
|
+ :isShowToast="isShowToast"
|
|
|
+ title="完善技术信用"
|
|
|
+ desc="你已成功提交签约申请,客栈将在2-3个工作日内完成签约审核,完善个人技术信用,可以提高签约成功率和接单率。"
|
|
|
+ submitBtnDesc="立即了解"
|
|
|
+ cancleBtnDesc="好的,知道了"
|
|
|
+ @close="onToastClose"
|
|
|
+ @submit="jumpToCredit"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -28,6 +38,7 @@ import education from "@/components/sign/education";
|
|
|
import skills from "@/components/sign/skills";
|
|
|
import works from "@/components/sign/works";
|
|
|
import social from "@/components/sign/social";
|
|
|
+import showToast from "@/components/common/showToast";
|
|
|
import qs from "qs";
|
|
|
|
|
|
export default {
|
|
|
@@ -47,12 +58,14 @@ export default {
|
|
|
education,
|
|
|
skills,
|
|
|
works,
|
|
|
- social
|
|
|
+ social,
|
|
|
+ showToast
|
|
|
},
|
|
|
// mixins: [getDeviceType],
|
|
|
data() {
|
|
|
return {
|
|
|
sign: null,
|
|
|
+ isShowToast: false,
|
|
|
userInfo: {}
|
|
|
};
|
|
|
},
|
|
|
@@ -67,12 +80,19 @@ export default {
|
|
|
let res = await this.$axios.$post(`/api/user/sign`);
|
|
|
if (res.status === 1) {
|
|
|
this.$message.success(res.info);
|
|
|
- window.location.reload();
|
|
|
+ this.isShowToast = true
|
|
|
} else if (res.status === -11) {
|
|
|
// this.$message.error("请设置主要展示工作经历");
|
|
|
} else if (res.status === -10) {
|
|
|
// this.$message.error("其他错误");
|
|
|
}
|
|
|
+ },
|
|
|
+ jumpToCredit() {
|
|
|
+ location.href = "/credit/pages"
|
|
|
+ },
|
|
|
+ onToastClose() {
|
|
|
+ this.isShowToast=false
|
|
|
+ window.location.reload();
|
|
|
}
|
|
|
}
|
|
|
};
|