优化页面

This commit is contained in:
pengxiaolong
2025-06-17 22:04:18 +08:00
parent 8ec7365e7c
commit e464d99af5
86 changed files with 627 additions and 178 deletions

View File

@@ -26,9 +26,8 @@
lower-threshold="100"
@scrolltolower="onScrollToLower"
:refresher-triggered="triggered"
enable-flex="true"
>
<uni-card class="card" v-for="(item, index) in pointslist" :key="index">
<uni-card class="card" v-for="(item, index) in pointslist" :key="index" >
<view
class="card-content"
:style="{ 'background-color': item.status == 0 ? '#11ff002b' : '#ff000011' }"
@@ -37,7 +36,7 @@
{{ formatDate(item.time) }}
</view>
<view class="info">{{ item.info }}</view>
<view class="num">{{ item.num }}</view>
<view class="num">{{ item.number }}</view>
</view>
</uni-card>
</scroll-view>
@@ -54,8 +53,8 @@ export default {
title: "Hello",
userinfo: {},
page: 0,
triggered: false,
pointslist: [],
triggered:false,
pointslist:[],
};
},
onLoad() {
@@ -63,7 +62,7 @@ export default {
key: "userinfo",
success: (res) => {
this.userinfo = res.data;
this.getPointsDetail();
this.onRefresherRefresh();
},
});
},
@@ -83,7 +82,7 @@ export default {
},
//获取积分详情
getPointsDetail() {
const res = request({
request({
url: "user/pointsDetail",
method: "POST",
data: {
@@ -94,8 +93,10 @@ export default {
userInfo: true,
}).then((res) => {
if (res.code === 200) {
this.triggered = false;
console.log(res.data);
this.pointslist.push(...res.data);
console.log("```````````````````", this.pointslist);
this.triggered = false;
} else {
console.log(res.msg);
}