// components/wrongModal/wrongModal.jsComponent({/*** 组件的属性列表*/properties: {// 是否显示modalShow: {type: Boolean,value: false},// 题库questionList: {type: Array,value: []},// 错题题数-乱序wrongList: {type: Array,value: []},// 选择的答案chooseValue: {type: Array,value: []},trueValue: {type: Array,value: []}},/*** 组件的初始数据*/data: {index: 0},/*** 组件所在页面的生命周期*/pageLifetimes: {show: function () {// 页面被展示console.log('show')console.log(this.data.questionList)console.log(this.data.wrongList)},hide: function () {// 页面被隐藏},resize: function (size) {// 页面尺寸变化}},/*** 组件的方法列表*/methods: {// 下一题next: function(){if (this.data.index < this.data.wrongList.length - 1){// 渲染下一题this.setData({index: this.data.index + 1})}},// 关闭弹窗closeModal: function(){this.setData({modalShow: false})},// 再来一次again: function(){wx.reLaunch({url: '../test/test'})},// 返回首页toIndex: function () {wx.reLaunch({url: '../home/home'})},}})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。