|
@@ -5,11 +5,11 @@
|
|
|
<span>{{ state.inviteCount }} People Get Money</span>
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
- <div class="error" v-if="state.invited_list.length == 0">
|
|
|
+ <div class="error" v-if="state.receive.list.length == 0 && state.receive.end">
|
|
|
Invite people to hunt treasure with you!
|
|
|
</div>
|
|
|
<div class="list" v-else @scroll="handleScroll($event)">
|
|
|
- <div class="item" v-for="item in state.invited_list" :key="item.userInfo.uid">
|
|
|
+ <div class="item" v-for="item in state.receive.list" :key="item.userInfo.uid">
|
|
|
<div class="left">
|
|
|
<img :src="item.userInfo.avatarUrl" alt="" @click="clickItem(item)" />
|
|
|
</div>
|
|
@@ -32,7 +32,10 @@ import { getBeforeTimeFormat } from "@/uilts/help"
|
|
|
import Report from "@/log-center/log"
|
|
|
|
|
|
let state = inject('state')
|
|
|
-state.invited_list = []
|
|
|
+state.receive = {
|
|
|
+ end: false,
|
|
|
+ list: []
|
|
|
+}
|
|
|
let page_num = 1
|
|
|
let page_size = 10
|
|
|
let list_end = false
|
|
@@ -74,6 +77,7 @@ const list = () => {
|
|
|
}).then((res) => {
|
|
|
if (res.code == 0) {
|
|
|
handleCommon(res.data)
|
|
|
+ state.receive.end = true
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -121,16 +125,15 @@ let inviteListScroll = () => {
|
|
|
if (res.code == 0) {
|
|
|
|
|
|
handleCommon(res.data)
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.invite-list {
|
|
|
width: 375px;
|
|
|
- height: 500px;
|
|
|
+ height: 580px;
|
|
|
|
|
|
.head {
|
|
|
width: 100%;
|