index.js 538 B

12345678910111213141516171819202122232425262728293031323334
  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. record(){
  24. wx.navigateTo({
  25. url: '/pages/record/index'
  26. })
  27. },
  28. start() {
  29. wx.reLaunch({
  30. url: '/pages/answer/index'
  31. })
  32. }
  33. })