更改功德箱未显示完

This commit is contained in:
2022-03-14 14:34:51 +08:00
parent 35134a9aa2
commit dd4c5f4dfd
5 changed files with 8 additions and 17 deletions
+3 -9
View File
@@ -7,7 +7,7 @@
</div>
</div>
<div class="body">
<div :options="swiperOptions">
<div>
<div v-for="slide in type_nav" :key="slide.id" class="1231">
<div v-if="type_id === slide.id" class="123">
<user-merit v-for="dynamic in slide.list" :key="dynamic.id" :data="dynamic" ></user-merit>
@@ -46,13 +46,7 @@ export default {
{ id: 2, title: "月榜", list: [] },
{ id: 3, title: "总榜", list: [] },
],
swiperOptions: {
// onSlideChangeEnd: ({realIndex}) => {
// this.type_id = this.type_nav[realIndex].id;
// this.getOrderCompare();
// }
}
page: 1,
}
},
mounted(){
@@ -66,7 +60,7 @@ export default {
async getOrderCompare(){
let res;
if(this.templeId){
res = await getOrderCompare(this.templeId || '1', this.type_id, this.goodsId, this.goodsType)
res = await getOrderCompare(this.templeId || '1', this.page, this.type_id, this.goodsId, this.goodsType)
} else {
res = await getOrderCompareByAgentId(this.agentId, this.type_id, this.goodsId, this.goodsType)
}
+1 -1
View File
@@ -7,7 +7,7 @@
<div class="profile">
<div>
<div class="name">
<span>{{data.nickname || data.user_info.nickname}}</span>
<span>{{data.merit_name || data.nickname || data.user_info.nickname}}</span>
<!-- <span>{{data.user_info.region}}</span>-->
</div>
<p class="goods_name">{{data.goods_name}}</p>