|
|
|
@ -38,7 +38,6 @@ |
|
|
|
|
} from '@/jtools/api/question'; |
|
|
|
|
import Subject1 from "./components/Subject1"; |
|
|
|
|
import Subject2 from "./components/Subject2"; |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
queryActivityList, |
|
|
|
|
} from '@/jtools/api/activity'; |
|
|
|
@ -129,25 +128,25 @@ |
|
|
|
|
queryActivityList(){ |
|
|
|
|
// console.log(this.user) |
|
|
|
|
// console.log(useUserStore().userInfo) |
|
|
|
|
this.activityList = null; |
|
|
|
|
uni.request({ |
|
|
|
|
url: 'http://localhost:8089/applet/activity/list', |
|
|
|
|
method: 'post', |
|
|
|
|
data: {'schoolId': useUserStore().userInfo.schoolId} |
|
|
|
|
}).then(resp => { |
|
|
|
|
console.log(".....") |
|
|
|
|
console.log(resp) |
|
|
|
|
if(resp.data.code == 200) { |
|
|
|
|
this.activityList = resp.data.data |
|
|
|
|
console.log("*****") |
|
|
|
|
console.log(resp.data) |
|
|
|
|
console.log(resp.data.data) |
|
|
|
|
console.log(this.activityList) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
// queryActivityList({schoolId: this.user.schoolId}).then(resp => { |
|
|
|
|
// this.activityList = resp.data; |
|
|
|
|
// this.activityList = null; |
|
|
|
|
// uni.request({ |
|
|
|
|
// url: 'http://localhost:8089/applet/activity/list', |
|
|
|
|
// method: 'get', |
|
|
|
|
// data: {'schoolId': useUserStore().userInfo.schoolId} |
|
|
|
|
// }).then(resp => { |
|
|
|
|
// console.log(".....") |
|
|
|
|
// console.log(resp) |
|
|
|
|
// if(resp.data.code == 200) { |
|
|
|
|
// this.activityList = resp.data.data |
|
|
|
|
// console.log("*****") |
|
|
|
|
// console.log(resp.data) |
|
|
|
|
// console.log(resp.data.data) |
|
|
|
|
// console.log(this.activityList) |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
queryActivityList({schoolId: this.user.schoolId}).then(resp => { |
|
|
|
|
this.activityList = resp.data; |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 去活动 |
|
|
|
|
handleToActivity(index) { |
|
|
|
|