index.js 461 B

1234567891011121314151617181920212223242526272829
  1. // pages/answerInfo/index.js
  2. const app = getApp();
  3. Page({
  4. /**
  5. * 页面的初始数据
  6. */
  7. data: {
  8. question: {}
  9. },
  10. onLoad(e) {
  11. wx.setNavigationBarTitle({
  12. title: app.globalData.selectQuestion.name
  13. })
  14. this.setData({
  15. question: {
  16. list: [],
  17. duration: 0,
  18. name: "",
  19. ...app.globalData.selectQuestion
  20. }
  21. })
  22. },
  23. start() {
  24. wx.reLaunch({
  25. url: '/pages/answer/index'
  26. })
  27. }
  28. })