提现增加lodin,提现记录,红包记录修改

This commit is contained in:
GaoHao
2024-12-09 15:07:36 +08:00
parent 2edc997c39
commit ca6baa5254
4 changed files with 29 additions and 30 deletions

View File

@@ -1,10 +1,10 @@
const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; // // const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; //
const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名 // const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名 // const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; // const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; //
// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名 const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名 const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
module.exports = { module.exports = {
APIHOST: ROOTPATH, APIHOST: ROOTPATH,

View File

@@ -178,6 +178,9 @@
let data = { let data = {
amount: that.money amount: that.money
} }
uni.showLoading({
title: '提现中'
});
this.$u.api.withdraw(data).then(res => { this.$u.api.withdraw(data).then(res => {
if (res.code == 0) { if (res.code == 0) {
uni.showToast({ uni.showToast({

View File

@@ -41,7 +41,8 @@
return { return {
list: [], list: [],
page: 1, page: 1,
limit: 10 limit: 10,
totalCount: 0,
} }
}, },
onLoad: function(e) { onLoad: function(e) {
@@ -56,30 +57,24 @@
if (token) { if (token) {
//可以提现金额查询预估收入查询 //可以提现金额查询预估收入查询
let data = { let data = {
page: that.page, page: this.page,
limit: that.limit limit: this.limit
} }
this.$Request.getT('app/cash/selectPayDetails', data).then(res => { this.$Request.getT('app/cash/selectPayDetails', data).then(res => {
if (that.page == 1) { this.totalCount = res.data.totalCount;
that.list = res.data.list if ( res.data.list.length > 0) {
uni.stopPullDownRefresh(); this.list = [...this.list,...res.data.list];
return
} }
that.list = res.data.list;
}) })
// this.$Request.getT("/cash/selectCashOutList/" + userId).then(res => {
// if (res.status === 0 && res.data) {
// that.list = res.data;
// }
// uni.hideLoading();
// });
} }
}, },
}, },
onReachBottom: function() { onReachBottom: function() {
if (this.page*this.limit < this.totalCount) {
this.page = this.page + 1; this.page = this.page + 1;
this.getMoney(); this.getMoney();
}
}, },
onPullDownRefresh: function() { onPullDownRefresh: function() {
this.page = 1; this.page = 1;

View File

@@ -34,7 +34,8 @@
return { return {
list: [], list: [],
page: 1, page: 1,
limit: 10 limit: 10,
totalCount: 0
} }
}, },
onLoad: function(e) { onLoad: function(e) {
@@ -53,12 +54,10 @@
} }
this.$Request.getT('app/moneyDetails/queryUserMoneyDetails', data).then(res => { this.$Request.getT('app/moneyDetails/queryUserMoneyDetails', data).then(res => {
if(that.page == 1) { this.totalCount = res.data.total;
that.list = res.data.records if ( res.data.records.length > 0) {
uni.stopPullDownRefresh(); this.list = [...this.list,...res.data.records];
return
} }
that.list = [...that.list, ...res.data.records]
}) })
} }
@@ -66,8 +65,10 @@
}, },
}, },
onReachBottom: function() { onReachBottom: function() {
if (this.page*this.limit < this.totalCount) {
this.page = this.page + 1; this.page = this.page + 1;
this.getMoney(); this.getMoney();
}
}, },
onPullDownRefresh: function() { onPullDownRefresh: function() {
this.page = 1; this.page = 1;