Commit 3f315e6f by xuningning

完善页面需求

parent 4876fdc0
<template> <template>
<view class="content"> <view class="content">
<u-list @scrolltolower="scrolltolower"> <view class="myBalance">
<view class="myBalance"> <view class="myBalanceTopModel">
<view class="myBalanceTopModel"> <view class="myBalanceNum">
<view class="myBalanceNum"> {{userInfo.balance}}
{{userInfo.balance}}
</view>
<view class="myBalanceTitle">
总积分
</view>
</view> </view>
<view class="myBalanceTopModel"> <view class="myBalanceTitle">
<view class="myBalanceNum"> 总积分
{{userInfo.frozen_balance}}
</view>
<view class="myBalanceTitle">
冻结中
</view>
</view> </view>
<view class="myBalanceTopModel"> </view>
<view class="myBalanceNum"> <view class="myBalanceTopModel">
{{userInfo.thawing_balance}} <view class="myBalanceNum">
</view> {{userInfo.frozen_balance}}
<view class="myBalanceTitle"> </view>
解冻中 <view class="myBalanceTitle">
</view> 冻结中
</view> </view>
</view> </view>
<!-- <view class="withdrawalBtn" @click="applyWithdrawal"> <view class="myBalanceTopModel">
申请提现 <view class="myBalanceNum">
</view> --> {{userInfo.thawing_balance}}
<view class="pageList"> </view>
<!-- <view class="myBalanceTabList"> <view class="myBalanceTitle">
<view class="myBalanceTab" :class="[tabActive === 0 ? 'active' : '']" 解冻中
@click="changemyBalanceTab(0)"> </view>
直推明细 </view>
</view> </view>
<view class="myBalanceTab" :class="[tabActive === 1 ? 'active' : '']" <view class="pageList">
@click="changemyBalanceTab(1)"> <view class="myBalanceInit" v-for="(item, index) in pageList" :key="index">
间推明细 <view class="myBalanceInitInfo">
</view> <view class="myBalanceInitInfoTop">
</view> --> <view class="myBalanceInitInfoTop-name">
{{item.source}}
<u-list-item v-for="(item, index) in pageList" :key="index"> </view>
<view class="myBalanceInit"> <view class="myBalanceInitInfoTop-num">
<view class="myBalanceInitInfo"> {{item.change_type?"+":"-"}}{{item.point_amount}}
<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>
</view> </view>
</u-list-item> <view class="myBalanceInitInfoBottom">
<u-empty :show="pageList.length == 0" mode="history" {{item.created_at}}
icon="http://cdn.uviewui.com/uview/empty/history.png"></u-empty> </view>
</view>
<u-toast ref="uToast"></u-toast>
</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> </view>
</template> </template>
...@@ -91,8 +73,7 @@ ...@@ -91,8 +73,7 @@
this.$request('/user-info', 'GET', {}).then(res => { this.$request('/user-info', 'GET', {}).then(res => {
console.log('请求成功'); console.log('请求成功');
this.userInfo = res.data; this.userInfo = res.data;
}).catch(err => { }).catch(err => {})
})
}, },
scrolltolower() { scrolltolower() {
console.log('+10') console.log('+10')
......
{ {
"component": true,
"usingComponents": { "usingComponents": {
"u-icon": "/node-modules/uview-ui/components/u-icon/u-icon" "u-icon": "/node-modules/uview-ui/components/u-icon/u-icon"
} },
"component": true
} }
\ No newline at end of file
{ {
"component": true,
"usingComponents": { "usingComponents": {
"u-icon": "/node-modules/uview-ui/components/u-icon/u-icon", "u-icon": "/node-modules/uview-ui/components/u-icon/u-icon",
"u-badge": "/node-modules/uview-ui/components/u-badge/u-badge" "u-badge": "/node-modules/uview-ui/components/u-badge/u-badge"
} },
"component": true
} }
\ No newline at end of file
{ {
"component": true,
"usingComponents": { "usingComponents": {
"u-safe-bottom": "/node-modules/uview-ui/components/u-safe-bottom/u-safe-bottom" "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__); ...@@ -100,12 +100,6 @@ __webpack_require__.r(__webpack_exports__);
var components var components
try { try {
components = { 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 () { 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)) 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/ ...@@ -236,24 +230,6 @@ var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/
// //
// //
// //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = { var _default = {
data: function data() { data: function data() {
return { return {
......
{ {
"navigationBarTitleText": "我的余额", "navigationBarTitleText": "我的余额",
"usingComponents": { "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-empty": "/node-modules/uview-ui/components/u-empty/u-empty",
"u-toast": "/node-modules/uview-ui/components/u-toast/u-toast" "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> <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 \ 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