东风启辰小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 line
1.2KB

  1. // pages/scoutRule/scoutRule.js
  2. const app = getApp()
  3. Component({
  4. /**
  5. * 组件的属性列表
  6. */
  7. properties: {
  8. },
  9. /**
  10. * 组件的初始数据
  11. */
  12. data: {
  13. imgUrl: app.globalData.urlStatic,//图片路径
  14. },
  15. /**
  16. * 组件的方法列表
  17. */
  18. methods: {
  19. closeXieyi: function () {
  20. this.triggerEvent('scoutRule')
  21. },
  22. cutPage:function(){
  23. app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => {
  24. if (res.code == 200) {
  25. app.globalData.authenticationStatus = res.data;
  26. if (!app.globalData.certificationInfo) {
  27. app.globalData.certificationInfo = true;
  28. wx.setStorageSync("certificationInfo", true);
  29. }
  30. app.globalData.certificationState = res.data.certificationState;
  31. wx.navigateTo({
  32. url: '/pages/scout/scout'
  33. })
  34. } else if (res.code == -307) {
  35. wx.navigateTo({
  36. url: '/pages/mobileVerification/mobileVerification'
  37. })
  38. } else if (res.code == -308) {
  39. wx.navigateTo({
  40. url: '/pages/scout/register/register'
  41. })
  42. }
  43. }, this);
  44. }
  45. }
  46. })