1. 会员等级背景图去掉校验 2. 当查询不到会员等级是,按无会员等级展示 3. 删除商城首页冗余配置在index中的引用 4. 换绑推广人时,计算上一个推广人的推广人数 5. pc后台清除推广人时,更新推广人数量 6. 保证砍价金额最小为0.01 7. 修复商品删除时购物车关联删除 8. 删除商品问题修复 9. 运费模板——指定包邮,包邮数量类型修改 10. 签到错误修复 11. 修复我的优惠券只查询20条的问题 12. 文章列表修复 13. 拼团商品详情页数据统计显示问题修复 14. PC后台,账户详情,持有优惠券列表修复 15. 支付查询参数修复 16. 修复过期优惠券可以重复领取 17. 订单邮费切换地址重复计算修复 18. 判断是否在指定包邮区域内 必须满足件数 + 金额 才能包邮 19. 支付页面,切换tab,金额计算问题修复 20. 物流模板新增、编辑——修复 21. 去除线下邮费的影响 22. 订单运费计算重写 23. 下单页面到店自提合计金额不应该计算商品邮费 24. 新人券领取后,部分使用时间为空——修复
170 lines
4.1 KiB
Vue
170 lines
4.1 KiB
Vue
<template>
|
|
<view>
|
|
<view class='bill-details'>
|
|
<view class='nav acea-row'>
|
|
<view class='item' :class='type==="all" ? "on":""' @click='changeType("all")'>全部</view>
|
|
<view class='item' :class='type==="expenditure" ? "on":""' @click='changeType("expenditure")'>支出</view>
|
|
<view class='item' :class='type==="income" ? "on":""' @click='changeType("income")'>收入</view>
|
|
</view>
|
|
<view class='sign-record'>
|
|
<view class='list' v-for="(item,index) in userBillList" :key="index">
|
|
<view class='item'>
|
|
<view class='data'>{{item.date}}</view>
|
|
<view class='listn'>
|
|
<view class='itemn acea-row row-between-wrapper' v-for="(vo,indexn) in item.list" :key="indexn">
|
|
<view>
|
|
<view class='name line1'>{{vo.title}}</view>
|
|
<view>{{vo.add_time}}</view>
|
|
</view>
|
|
<view class='num' v-if="vo.pm">+{{vo.number}}</view>
|
|
<view class='num font-color' v-else>-{{vo.number}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class='loadingicon acea-row row-center-wrapper' v-if="userBillList.length>0">
|
|
<text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>{{loadTitle}}
|
|
</view>
|
|
<view v-if="userBillList.length == 0">
|
|
<emptyPage title="暂无账单的记录哦~"></emptyPage>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- #ifdef MP -->
|
|
<!-- <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
|
|
<!-- #endif -->
|
|
<home></home>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
getBillList
|
|
} from '@/api/user.js';
|
|
import {
|
|
toLogin
|
|
} from '@/libs/login.js';
|
|
import {
|
|
mapGetters
|
|
} from "vuex";
|
|
// #ifdef MP
|
|
import authorize from '@/components/Authorize';
|
|
// #endif
|
|
import emptyPage from '@/components/emptyPage.vue';
|
|
import home from '@/components/home';
|
|
export default {
|
|
components: {
|
|
// #ifdef MP
|
|
authorize,
|
|
// #endif
|
|
emptyPage,
|
|
home
|
|
},
|
|
data() {
|
|
return {
|
|
loadTitle: '加载更多',
|
|
loading: false,
|
|
loadend: false,
|
|
page: 1,
|
|
limit: 10,
|
|
type: 'all',
|
|
userBillList: [],
|
|
isAuto: false, //没有授权的不会自动授权
|
|
isShowAuth: false //是否隐藏授权
|
|
};
|
|
},
|
|
computed: mapGetters(['isLogin']),
|
|
onShow() {
|
|
if (this.isLogin) {
|
|
this.getUserBillList();
|
|
} else {
|
|
toLogin();
|
|
}
|
|
},
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad: function(options) {
|
|
this.type = options.type;
|
|
},
|
|
/**
|
|
* 页面上拉触底事件的处理函数
|
|
*/
|
|
onReachBottom: function() {
|
|
this.getUserBillList();
|
|
},
|
|
methods: {
|
|
/**
|
|
* 授权回调
|
|
*/
|
|
onLoadFun: function() {
|
|
this.getUserBillList();
|
|
},
|
|
// 授权关闭
|
|
authColse: function(e) {
|
|
this.isShowAuth = e
|
|
},
|
|
/**
|
|
* 获取账户明细
|
|
*/
|
|
getUserBillList: function() {
|
|
let that = this;
|
|
if (that.loadend) return;
|
|
|
|
if (that.loading) return;
|
|
that.loading = true;
|
|
that.loadTitle = "";
|
|
let data = {
|
|
page: that.page,
|
|
limit: that.limit,
|
|
type: that.type
|
|
}
|
|
getBillList(data).then(function(res) {
|
|
let list = res.data.list?res.data.list:[],
|
|
loadend = res.data.list < res.data.limit;
|
|
that.userBillList = that.$util.SplitArray(list, that.userBillList);
|
|
that.$set(that, 'userBillList', that.userBillList);
|
|
that.loadend = loadend;
|
|
that.loading = false;
|
|
that.loadTitle = loadend ? "哼😕~我也是有底线的~" : "加载更多";
|
|
that.page = that.page + 1;
|
|
}, function(res) {
|
|
that.loading = false;
|
|
that.loadTitle = '加载更多';
|
|
});
|
|
},
|
|
/**
|
|
* 切换导航
|
|
*/
|
|
changeType: function(type) {
|
|
this.type = type;
|
|
this.loadend = false;
|
|
this.page = 1;
|
|
this.$set(this, 'userBillList', []);
|
|
this.getUserBillList();
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang='scss'>
|
|
.bill-details .nav {
|
|
background-color: #fff;
|
|
height: 90rpx;
|
|
width: 100%;
|
|
line-height: 90rpx;
|
|
}
|
|
|
|
.bill-details .nav .item {
|
|
flex: 1;
|
|
text-align: center;
|
|
font-size: 30rpx;
|
|
color: #282828;
|
|
}
|
|
|
|
.bill-details .nav .item.on {
|
|
color: #e93323;
|
|
border-bottom: 3rpx solid #e93323;
|
|
}
|
|
</style>
|