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.
 
 
 
 
 
 

87 lines
1.8 KiB

<template>
<view>
<uni-nav-bar left-icon="left" right-icon="info"title="Points Details" color="#fff" backgroundColor="#000000" @clickRight="goto()" @clickLeft="back" :border="false" :statusBar="true" />
<view class="points">
<view class="points_item" v-for="(item,index) in list" :key="item.log_id">
<view class="points_item_title">
<text>{{ item.change_desc }}</text>
<text class="item_title_price">+US${{ item.user_money }}</text>
</view>
<text>{{ item.change_time }}</text>
</view>
</view>
</view>
</template>
<script>
import {defaultRequest} from '../../api/index.js'
export default {
data() {
return {
query:{
_action:'getpagedata',pagecode:'006-PERSONALCENTERPAGE'
},
list:[]
}
},
methods:{
back(){
uni.navigateBack()
},
getUserinfo(){
let data ={
_action:'getuseraccountlog',page_index:1,page_size:20
}
defaultRequest(data).then( res =>{
console.log( res)
if(res.error == 0){
this.list = res.data.accountlog_list
}
})
},
goto(){
uni.navigateTo({
url:'../specialTitle/index?id='+'POINTSRULE'
})
}
},
onLoad() {
this.getUserinfo()
defaultRequest(this.query).then( res => {
console.log(res,'p')
})
}
}
</script>
<style lang="scss" scoped>
.uni-navbar{
font-size: 32rpx;
font-weight: bold;
// border-bottom: 14.67rpx #F6F5FA solid;
}
.points{
padding: 0 25.33rpx;
.points_item{
padding: 37.33rpx 0;
color: #999999;
font-size: 24rpx;
font-weight: 400;
// border-bottom: 1px solid #E2E2E2;
.points_item_title{
font-size: 28rpx;
display: flex;
justify-content: space-between;
margin-bottom: 18rpx;
color: black;
.item_title_price{
color: #B22234;
}
}
}
}
</style>