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