You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.1 KiB
84 lines
1.1 KiB
1 year ago
|
<template>
|
||
|
<view class="container">
|
||
|
<view class="item" v-for="item in list">
|
||
|
<view class="item_l">
|
||
|
<view class="remark">{{item.remake}}</view>
|
||
|
<view class="rdate">{{item.created_at}}</view>
|
||
|
</view>
|
||
|
<view class="item_r" :class="item.integral>0?'g':'r'">{{item.integral}}</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import * as UserApi from '@/api/user'
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
list:[
|
||
|
],
|
||
|
}
|
||
|
},
|
||
|
onLoad(options)
|
||
|
{
|
||
|
UserApi.integralLog()
|
||
|
.then(result => {
|
||
|
this.list = result.data.list;
|
||
|
console.log(this.list);
|
||
|
})
|
||
|
|
||
|
|
||
|
},
|
||
|
methods: {
|
||
|
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
.container
|
||
|
{
|
||
|
padding:20rpx 0;
|
||
|
}
|
||
|
|
||
|
.item
|
||
|
{
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: space-between;
|
||
|
font-size:30rpx;;
|
||
|
color: black;
|
||
|
background-color: #fff;
|
||
|
border-bottom: 1px solid rgba(0,0,0,0.1);
|
||
|
padding:20rpx 30rpx;
|
||
|
}
|
||
|
|
||
|
.remark{
|
||
|
margin-bottom: 16rpx;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
|
||
|
.rdate
|
||
|
{
|
||
|
font-size: 24rpx;
|
||
|
}
|
||
|
|
||
|
.item_r
|
||
|
{
|
||
|
font-size: 28rpx;
|
||
|
}
|
||
|
|
||
|
.g
|
||
|
{
|
||
|
color: limegreen;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
.r
|
||
|
{
|
||
|
color:red
|
||
|
}
|
||
|
</style>
|