|
@@ -1,6 +1,7 @@
|
|
|
import share from '~/mixins/share'
|
|
|
import {
|
|
|
getHotrecommendList,
|
|
|
+ getWorksNum
|
|
|
} from "~/api/works"
|
|
|
import event from '~/mixins/event'
|
|
|
import reachBottom from '~/mixins/reachBottom'
|
|
@@ -13,7 +14,8 @@ import {
|
|
|
Page({
|
|
|
behaviors: [reachBottom, share, event],
|
|
|
data: {
|
|
|
- isFixed: false
|
|
|
+ isFixed: false,
|
|
|
+ count:{}
|
|
|
},
|
|
|
onShow() {
|
|
|
if (typeof this.getTabBar === 'function') {
|
|
@@ -39,8 +41,13 @@ Page({
|
|
|
grade: this.data.userInfo.grade
|
|
|
})
|
|
|
},
|
|
|
- requestAgain() {
|
|
|
+ async requestAgain() {
|
|
|
this.resetData()
|
|
|
+ let count = await getWorksNum()
|
|
|
+ console.log(count);
|
|
|
+ this.setData({
|
|
|
+ count
|
|
|
+ })
|
|
|
},
|
|
|
async getLocUserInfo() {
|
|
|
this.storeBindings = createStoreBindings(this, {
|