submitLegal.js 473 B

1234567891011121314151617181920212223242526
  1. // pages/legal/submitLegal/submitLegal.js
  2. import router from "../../../utils/router";
  3. Page({
  4. data: {
  5. visable: false,
  6. },
  7. goTo(e) {
  8. console.log(e);
  9. router(e.currentTarget.dataset.path);
  10. },
  11. submit() {
  12. wx.showModal({
  13. title: "提示",
  14. content: "确认提交?",
  15. complete: (res) => {
  16. if (res.confirm) {
  17. this.setData({
  18. visable: true,
  19. });
  20. }
  21. },
  22. });
  23. },
  24. onLoad(options) {},
  25. });