|
@@ -2,7 +2,20 @@ const app = getApp()
|
|
|
import {
|
|
|
getActivities
|
|
|
} from '~/api/global'
|
|
|
+import {
|
|
|
+ storeBindingsBehavior
|
|
|
+} from 'mobx-miniprogram-bindings'
|
|
|
+import {
|
|
|
+ store
|
|
|
+} from '~/store/index'
|
|
|
Component({
|
|
|
+ behaviors: [storeBindingsBehavior],
|
|
|
+ storeBindings: {
|
|
|
+ store,
|
|
|
+ fields: {
|
|
|
+ userInfo: 'userInfo'
|
|
|
+ },
|
|
|
+ },
|
|
|
properties: {
|
|
|
classify: {
|
|
|
type: Number,
|
|
@@ -38,10 +51,11 @@ Component({
|
|
|
clearInterval(item)
|
|
|
})
|
|
|
let activityList = await getActivities({
|
|
|
- classify: this.properties.classify
|
|
|
+ classify: this.properties.classify,
|
|
|
+ grade: this.data.userInfo.grade
|
|
|
})
|
|
|
this.setData({
|
|
|
- activityList
|
|
|
+ activityList,
|
|
|
})
|
|
|
activityList.forEach((item, index) => {
|
|
|
if (item.bannerType == 4 && item.voucherType) {
|