Browse Source

签约页面

ccf 4 years ago
parent
commit
0b1e89c630

+ 1 - 0
components/sign/education.vue

@@ -264,6 +264,7 @@ export default {
       this.editingModel = null;
     },
     handleConfirm(idx, item) {
+      this.cnzz("签约","签约页面+教育经历保存","");
       // const item = this.education.slice(idx, idx + 1)[0];
       if (!item.date) {
         this.$message.error("请设置开始时间/结束时间!");

+ 2 - 1
components/sign/experience.vue

@@ -160,7 +160,7 @@ export default {
           item.is_main = 0;
         }
       })
-      
+
       this.onSubmit();
       this.rankDialog = false;
     },
@@ -204,6 +204,7 @@ export default {
       }
     },
     handleConfirm(item, idx) {
+      this.cnzz("签约","签约页面+工作经历保存","");
       const origin = this.originExperience.slice(idx, idx + 1)[0];
       // 编辑 item 时,item 对象中的 key 顺序均相同,可直接使用 JSON.stringify 做比较
       let itemCopy = JSON.parse(JSON.stringify(item))

+ 1 - 0
components/sign/info.vue

@@ -389,6 +389,7 @@ export default {
   },
   methods: {
     async onSubmit() {
+      this.cnzz("签约","签约页面+基本信息保存","");
       //console.log("submit!");
       this.$refs["form"].validate(async valid => {
         if (!valid) {

+ 1 - 0
components/sign/profile.vue

@@ -55,6 +55,7 @@ export default {
       this.content = val;
     },
     async onSubmit() {
+      this.cnzz("签约","签约页面+个人介绍保存","");
       if (!this.content) {
         this.$message.error("请输入个人介绍");
         return false;

+ 1 - 0
components/sign/skills.vue

@@ -89,6 +89,7 @@
         this.skills = res.data || [];
       },
       async onSubmit(item, idx) {
+        this.cnzz("签约","签约页面+技能保存","");
         console.log("submit!", item);
         if (!item.skill_name) {
           this.$message.error("请填写技能名称!");

+ 1 - 0
components/sign/social.vue

@@ -135,6 +135,7 @@
     methods: {
       // github, zhihu, stackoverflow, dribbble
       async onSubmit(type) {
+        this.cnzz("签约","签约页面+社区影响力保存","");
         console.log("submit!", this.social);
         const value = this.social[type];
         if (!value) {

+ 1 - 1
components/sign/verify.vue

@@ -5,7 +5,7 @@
       <span v-if="this.userInfo.realname_verify_status === '2'" class="status success">已认证</span>
       <span v-else-if="this.userInfo.realname_verify_status === '1'" class="status info">审核中</span>
       <span v-else class="status warning">
-        <a href="/setting/user" target="_blank">去认证</a>
+        <a href="/setting/user" @click="cnzz('签约','签约页面+去认证','')" target="_blank">去认证</a>
       </span>
     </h5>
   </div>

+ 2 - 1
pages/credit/detail/_id.vue

@@ -197,8 +197,9 @@
       this.orderId = this.$route.params && this.$route.params.id
     },
     mounted() {
+      this.cnzz("签约","签约页面+页面访问","");
       this.needLogin();
-      this.getDetail()
+      this.getDetail();
     },
     methods: {
       getDetail() {

+ 2 - 0
pages/sign/new.vue

@@ -82,6 +82,7 @@
     },
     methods: {
       async signNow() {
+        this.cnzz("签约","签约页面+申请签约点击","");
         let res = await this.$axios.$post(`/api/user/sign`);
         if (res.status === 1) {
           this.$message.success(res.info);
@@ -121,6 +122,7 @@
         }
       },
       jumpToCredit() {
+        this.cnzz("签约","签约页面+申请签约","确认");
         location.href = "/credit/pages"
       },
       onToastClose() {