123456789101112131415161718192021222324252627 |
- let app = getApp()
- Page({
- data: {
- answerId:0,
- groupId:0,
- tableData: []
- },
- onLoad: function(options) {
- let groupId = +options.groupId||1;
- let answerId = +options.answerId||0;
- this.setData({ groupId, answerId });
- },
- onShow: function () {
- app.checkLogin( userInfo =>{
- this.setData({userInfo, from:0})
- this.indexLoad()
- })
- },
- indexLoad: function() {
- let param = {groupId: this.data.groupId}
- app.formPost('Exam.GetWxGroupPaperList', param ).then(res => {
- if( res.code == 200){
- this.setData({tableData: res.data})
- }
- })
- }
- })
|