You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
735 B

import { toast } from '../../utils/extendApi';
import { getStorage, setStorage } from '../../utils/storage';
import { ComponentWithStore } from 'mobx-miniprogram-bindings';
import { userStore } from '../../stores/userstore';
ComponentWithStore({
storeBindings: {
store: userStore,
fields: ['id', 'identify'],
actions: ['setId', 'setIdentify']
},
data: {
list: []
},
methods: {
onShow() {
wx.request({
url: 'http://172.20.10.2:8600/student-api/student/scorerank',
method: 'GET',
header: {
'content-type': 'application/json'
},
success: ({ data }) => {
this.setData({
list:data.data
})
}
})
}
}
});