success_logic.js 619 B

12345678910111213141516171819202122232425262728
  1. export default {
  2. data() {
  3. return {
  4. station: '',
  5. name: '',
  6. phone: ''
  7. }
  8. },
  9. onLoad(options) {
  10. if (options.station) {
  11. this.station = decodeURIComponent(options.station);
  12. }
  13. if (options.name) {
  14. this.name = decodeURIComponent(options.name);
  15. }
  16. if (options.phone) {
  17. this.phone = options.phone;
  18. }
  19. },
  20. methods: {
  21. goHome() {
  22. // 返回首页或登录页
  23. uni.reLaunch({
  24. url: '/pages/login/login'
  25. });
  26. }
  27. }
  28. }