功德银行
This commit is contained in:
@@ -40,13 +40,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="ranking-list" v-if="list && list.length">
|
||||
<div v-if="list.length > 2">
|
||||
<div class="item" v-for="(item, index) in list" :key="index" v-if="index > 2">
|
||||
<span class="item-num">{{ index + 4 }}</span>
|
||||
<img :src="item.avatar_url" alt="" class="user-img mar-b4" v-if="item.avatar_url">
|
||||
<span class="item-name">{{ item.name }}</span>
|
||||
<span class="item-point">{{ item.integral }}</span>
|
||||
</div>
|
||||
<div class="item" v-for="(item, index) in list" :key="index" v-if="index > 2">
|
||||
<span class="item-num">{{ index + 4 }}</span>
|
||||
<img :src="item.avatar_url" alt="" class="user-img mar-b4" v-if="item.avatar_url">
|
||||
<span class="item-name">{{ item.name }}</span>
|
||||
<span class="item-point">{{ item.integral }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -86,13 +84,12 @@ export default {
|
||||
},
|
||||
getList() {// 积分排行
|
||||
this.list = {}
|
||||
var url = `/app/appintegraluser/integralSortFD?type=${this.tabIndex}` //积分排行
|
||||
var url = `/app/appintegraluser/integralSortFD?type=${this.tabIndex}&areaId=${this.user.areaId}` //积分排行
|
||||
this.$instance.post(url).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.list = res.data.map(e=> ({...e, index: e.index}))
|
||||
this.userInfo = res.data.filter(e => e.open_id === this.user.openId)
|
||||
this.inx = res.data.findIndex(e=> e.open_id == this.user.openId)
|
||||
console.log(this.inx);
|
||||
this.pageShow = true
|
||||
}
|
||||
})
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
name: 'integralTask',
|
||||
appName: '积分任务',
|
||||
@@ -49,12 +50,16 @@ export default {
|
||||
files: [],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user', 'token'])
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$instance.post('/app/appintegraltask/list',null,{
|
||||
params: {
|
||||
current: this.current,
|
||||
status: 1,
|
||||
areaId: this.user.areaId
|
||||
}
|
||||
}).then(res=> {
|
||||
if(res?.data) {
|
||||
|
||||
Reference in New Issue
Block a user