优化页面
This commit is contained in:
@@ -30,13 +30,13 @@
|
||||
<uni-card class="card" v-for="(item, index) in pointslist" :key="index" >
|
||||
<view
|
||||
class="card-content"
|
||||
:style="{ 'background-color': item.status == 0 ? '#11ff002b' : '#ff000011' }"
|
||||
:style="{ 'background-color': item.status == 0 ? '#ff000011' : '#11ff002b' }"
|
||||
>
|
||||
|
||||
<view class="info"><view>{{ item.info }}</view> <view class="num">{{item.status == 0? '-'+ item.number : '+' +item.number }}</view></view>
|
||||
<view class="time">
|
||||
{{ formatDate(item.time) }}
|
||||
</view>
|
||||
<view class="info">{{ item.info }}</view>
|
||||
<view class="num">{{ item.number }}</view>
|
||||
</view>
|
||||
</uni-card>
|
||||
</scroll-view>
|
||||
@@ -93,9 +93,7 @@ export default {
|
||||
userInfo: true,
|
||||
}).then((res) => {
|
||||
if (res.code === 200) {
|
||||
console.log(res.data);
|
||||
this.pointslist.push(...res.data);
|
||||
console.log("```````````````````", this.pointslist);
|
||||
this.triggered = false;
|
||||
} else {
|
||||
console.log(res.msg);
|
||||
@@ -173,6 +171,7 @@ export default {
|
||||
.info {
|
||||
font-size: 24rpx;
|
||||
color: #898989;
|
||||
display: flex;
|
||||
}
|
||||
.num {
|
||||
font-size: 24rpx;
|
||||
|
||||
Reference in New Issue
Block a user