浏览代码

feat: skill_cert 技术等级认证 mobile支付回调

flater 4 年之前
父节点
当前提交
7327f2ac7e
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      pages/frontend/skill_cert/profile.vue

+ 9 - 0
pages/frontend/skill_cert/profile.vue

@@ -189,6 +189,9 @@
       ]
     },
     methods: {
+      showPaySuccess() {
+        this.$router.push(`frontend/skill_cert/resume_improve`);
+      },
       toLevelsDesc() {
         window.open(`https://jishuin.proginn.com/p/763bfbd71939`)
       },
@@ -339,11 +342,17 @@
         }
       },
     },
+    bindCallback() {
+      if (this.mobile) {
+        window.showPaySuccess = this.showPaySuccess
+      }
+    },
     async mounted() {
       await this.getOccupation();
       await this.getDetail();
       await this.getLevels();
       await this.getSkills();
+      this.bindCallback();
     }
   }
 </script>