Commit 3f315e6f by xuningning

完善页面需求

parent 4876fdc0
<template>
<view class="content">
<u-list @scrolltolower="scrolltolower">
<view class="myBalance">
<view class="myBalanceTopModel">
<view class="myBalanceNum">
{{userInfo.balance}}
</view>
<view class="myBalanceTitle">
总积分
</view>
<view class="myBalance">
<view class="myBalanceTopModel">
<view class="myBalanceNum">
{{userInfo.balance}}
</view>
<view class="myBalanceTopModel">
<view class="myBalanceNum">
{{userInfo.frozen_balance}}
</view>
<view class="myBalanceTitle">
冻结中
</view>
<view class="myBalanceTitle">
总积分
</view>
<view class="myBalanceTopModel">
<view class="myBalanceNum">
{{userInfo.thawing_balance}}
</view>
<view class="myBalanceTitle">
解冻中
</view>
</view>
<view class="myBalanceTopModel">
<view class="myBalanceNum">
{{userInfo.frozen_balance}}
</view>
<view class="myBalanceTitle">
冻结中
</view>
</view>
<!-- <view class="withdrawalBtn" @click="applyWithdrawal">
申请提现
</view> -->
<view class="pageList">
<!-- <view class="myBalanceTabList">
<view class="myBalanceTab" :class="[tabActive === 0 ? 'active' : '']"
@click="changemyBalanceTab(0)">
直推明细
</view>
<view class="myBalanceTab" :class="[tabActive === 1 ? 'active' : '']"
@click="changemyBalanceTab(1)">
间推明细
</view>
</view> -->
<u-list-item v-for="(item, index) in pageList" :key="index">
<view class="myBalanceInit">
<view class="myBalanceInitInfo">
<view class="myBalanceInitInfoTop">
<view class="myBalanceInitInfoTop-name">
{{item.source}}
</view>
<view class="myBalanceInitInfoTop-num">
{{item.change_type?"+":"-"}}{{item.point_amount}}
</view>
</view>
<view class="myBalanceInitInfoBottom">
{{item.created_at}}
</view>
<view class="myBalanceTopModel">
<view class="myBalanceNum">
{{userInfo.thawing_balance}}
</view>
<view class="myBalanceTitle">
解冻中
</view>
</view>
</view>
<view class="pageList">
<view class="myBalanceInit" v-for="(item, index) in pageList" :key="index">
<view class="myBalanceInitInfo">
<view class="myBalanceInitInfoTop">
<view class="myBalanceInitInfoTop-name">
{{item.source}}
</view>
<view class="myBalanceInitInfoTop-num">
{{item.change_type?"+":"-"}}{{item.point_amount}}
</view>
</view>
</u-list-item>
<u-empty :show="pageList.length == 0" mode="history"
icon="http://cdn.uviewui.com/uview/empty/history.png"></u-empty>
<u-toast ref="uToast"></u-toast>
<view class="myBalanceInitInfoBottom">
{{item.created_at}}
</view>
</view>
</view>
</u-list>
<u-empty :show="pageList.length == 0" mode="history"
icon="http://cdn.uviewui.com/uview/empty/history.png"></u-empty>
<u-toast ref="uToast"></u-toast>
</view>
</view>
</template>
......@@ -91,8 +73,7 @@
this.$request('/user-info', 'GET', {}).then(res => {
console.log('请求成功');
this.userInfo = res.data;
}).catch(err => {
})
}).catch(err => {})
},
scrolltolower() {
console.log('+10')
......
{
"component": true,
"usingComponents": {
"u-icon": "/node-modules/uview-ui/components/u-icon/u-icon"
}
},
"component": true
}
\ No newline at end of file
{
"component": true,
"usingComponents": {
"u-icon": "/node-modules/uview-ui/components/u-icon/u-icon",
"u-badge": "/node-modules/uview-ui/components/u-badge/u-badge"
}
},
"component": true
}
\ No newline at end of file
{
"component": true,
"usingComponents": {
"u-safe-bottom": "/node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom"
}
},
"component": true
}
\ No newline at end of file
......@@ -100,12 +100,6 @@ __webpack_require__.r(__webpack_exports__);
var components
try {
components = {
uList: function () {
return Promise.all(/*! import() | node-modules/uview-ui/components/u-list/u-list */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-list/u-list")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-list/u-list.vue */ 397))
},
uListItem: function () {
return Promise.all(/*! import() | node-modules/uview-ui/components/u-list-item/u-list-item */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-list-item/u-list-item")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-list-item/u-list-item.vue */ 429))
},
uEmpty: function () {
return Promise.all(/*! import() | node-modules/uview-ui/components/u-empty/u-empty */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-empty/u-empty")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-empty/u-empty.vue */ 493))
},
......@@ -236,24 +230,6 @@ var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = {
data: function data() {
return {
......
{
"navigationBarTitleText": "我的余额",
"usingComponents": {
"u-list": "/node-modules/uview-ui/components/u-list/u-list",
"u-list-item": "/node-modules/uview-ui/components/u-list-item/u-list-item",
"u-empty": "/node-modules/uview-ui/components/u-empty/u-empty",
"u-toast": "/node-modules/uview-ui/components/u-toast/u-toast"
}
......
<view class="content"><u-list bind:scrolltolower="__e" vue-id="c252a21c-1" data-event-opts="{{[['^scrolltolower',[['scrolltolower']]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="myBalance"><view class="myBalanceTopModel"><view class="myBalanceNum">{{''+userInfo.balance+''}}</view><view class="myBalanceTitle">总积分</view></view><view class="myBalanceTopModel"><view class="myBalanceNum">{{''+userInfo.frozen_balance+''}}</view><view class="myBalanceTitle">冻结中</view></view><view class="myBalanceTopModel"><view class="myBalanceNum">{{''+userInfo.thawing_balance+''}}</view><view class="myBalanceTitle">解冻中</view></view></view><view class="pageList"><block wx:for="{{pageList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><u-list-item vue-id="{{('c252a21c-2-'+index)+','+('c252a21c-1')}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="myBalanceInit"><view class="myBalanceInitInfo"><view class="myBalanceInitInfoTop"><view class="myBalanceInitInfoTop-name">{{''+item.source+''}}</view><view class="myBalanceInitInfoTop-num">{{''+(item.change_type?"+":"-")+item.point_amount+''}}</view></view><view class="myBalanceInitInfoBottom">{{''+item.created_at+''}}</view></view></view></u-list-item></block><u-empty vue-id="{{('c252a21c-3')+','+('c252a21c-1')}}" show="{{$root.g0==0}}" mode="history" icon="http://cdn.uviewui.com/uview/empty/history.png" bind:__l="__l"></u-empty><u-toast class="vue-ref" vue-id="{{('c252a21c-4')+','+('c252a21c-1')}}" data-ref="uToast" bind:__l="__l"></u-toast></view></u-list></view>
\ No newline at end of file
<view class="content"><view class="myBalance"><view class="myBalanceTopModel"><view class="myBalanceNum">{{''+userInfo.balance+''}}</view><view class="myBalanceTitle">总积分</view></view><view class="myBalanceTopModel"><view class="myBalanceNum">{{''+userInfo.frozen_balance+''}}</view><view class="myBalanceTitle">冻结中</view></view><view class="myBalanceTopModel"><view class="myBalanceNum">{{''+userInfo.thawing_balance+''}}</view><view class="myBalanceTitle">解冻中</view></view></view><view class="pageList"><block wx:for="{{pageList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="myBalanceInit"><view class="myBalanceInitInfo"><view class="myBalanceInitInfoTop"><view class="myBalanceInitInfoTop-name">{{''+item.source+''}}</view><view class="myBalanceInitInfoTop-num">{{''+(item.change_type?"+":"-")+item.point_amount+''}}</view></view><view class="myBalanceInitInfoBottom">{{''+item.created_at+''}}</view></view></view></block><u-empty vue-id="c252a21c-1" show="{{$root.g0==0}}" mode="history" icon="http://cdn.uviewui.com/uview/empty/history.png" bind:__l="__l"></u-empty><u-toast class="vue-ref" vue-id="c252a21c-2" data-ref="uToast" bind:__l="__l"></u-toast></view></view>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment