|
|
@@ -20,10 +20,10 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="right adfac">
|
|
|
- <image src="https://oss.familydaf.cn/sxsnfile/20251218/cdb8e97d40e44618ac38ad0e96f25cc0.png" v-if="item.capitalFlow==2"></image>
|
|
|
+ <image src="https://oss.familydaf.cn/sxsnfile/20251218/cdb8e97d40e44618ac38ad0e96f25cc0.png" v-if="item.type==2"></image>
|
|
|
<image src="https://oss.familydaf.cn/sxsnfile/20251218/b349d32d69ab4b0eb70d6731d37197f8.png" v-else></image>
|
|
|
- <text :class="{'black':item.capitalFlow==2,'red':item.capitalFlow==1}">{{item.capitalFlow==2?'':'+'}}</text>
|
|
|
- <text :class="{'black':item.capitalFlow==2,'red':item.capitalFlow==1}">{{item.loveQuantity??0}}</text>
|
|
|
+ <text :class="{'black':item.type==2,'red':item.type==1}">{{item.type==2?'':'+'}}</text>
|
|
|
+ <text :class="{'black':item.type==2,'red':item.type==1}">{{item.loveQuantity||0}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -65,6 +65,9 @@
|
|
|
proxy.$api.get('/core/love/value/record/loveValueList',queryParams.value).then(({data:res})=>{
|
|
|
if(res.code!==0) return proxy.$showToast(res.msg)
|
|
|
list.value= [...list.value,...res.data.list];
|
|
|
+ list.value.forEach(l=>{
|
|
|
+ l.type = l.loveQuantity>=0?1:2 //1增加 2减少
|
|
|
+ })
|
|
|
queryParams.value.page++
|
|
|
if(res.data.list.length===0) isOver.value = true;
|
|
|
})
|