redir.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. </template>
  3. <script>
  4. export default {
  5. data() {
  6. return {
  7. phoneNo: 0,
  8. }
  9. },
  10. mounted() {
  11. this.queryPhone();
  12. },
  13. methods: {
  14. queryPhone() {
  15. this.$http({
  16. url: "/sysmgr/sys/login/queryListLoginMsg",
  17. method: "post",
  18. headers: {
  19. "Content-Type": "application/json",
  20. },
  21. data: {
  22. loginNoStr: JSON.parse(window.sessionStorage.userInfo).loginNoStr,
  23. },
  24. }).then((res) => {
  25. console.log('res====', typeof res.data[0])
  26. console.log(res.data[0].phoneNo)
  27. this.phoneNo = res.data[0].phoneNo;
  28. console.log("res.phoneNo", res.data[0].phoneNo)
  29. console.log("目标页面中获取",this.$route.query.pass)
  30. // 商户引入流程权限
  31. var url = 'http://10.149.15.69:8080/manageapi/admin/api/v3/loginFromWork?account='+res.data[0].phoneNo+'&pass='+this.$route.query.pass;
  32. window.open(url);
  33. self.location.href="#/leader"
  34. // window.location.href=url;
  35. });
  36. },
  37. },
  38. }
  39. </script>