From a69313043b386caf497dbdda896e9639fd3bf4b7 Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Wed, 8 Jan 2025 19:16:08 +0800
Subject: [PATCH 1/5] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=9E=E5=90=8D?=
=?UTF-8?q?=E8=AE=A4=E8=AF=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
me/invite/cashDetail.vue | 63 ++++++++++----
me/invite/realName.vue | 177 +++++++++++++++++++++++++++++++++++++++
me/invite/zhifubao.vue | 21 +----
pages.json | 11 +++
4 files changed, 237 insertions(+), 35 deletions(-)
create mode 100644 me/invite/realName.vue
diff --git a/me/invite/cashDetail.vue b/me/invite/cashDetail.vue
index 8ddd715..62fdb9a 100644
--- a/me/invite/cashDetail.vue
+++ b/me/invite/cashDetail.vue
@@ -54,6 +54,9 @@
+
+ 实名认证
+
提现账号
@@ -132,7 +135,7 @@
用户在平台中对奖励提现的,适用以下规则:
- 1,用户的收益达到最低提现金额要求后,可以申请提现。每日发起前10笔提现为自动到账,超出则需第二个工作日后到账。
+ 1,用户的收益达到最低提现金额要求后,可以申请提现,每日只可以提现一笔。
2,用户需要通过支付宝提现,需按照要求绑定支付宝账号并填写提现金额或其他提现所需信息,请确保提供的信息准确无误,以免提现失败。
@@ -144,7 +147,7 @@
4,每日23:00至次日11:00为系统维护时间,活动的对应奖励可能延迟到账。提现通常会在72小时内到账,如遇双休日、节假日,提现到账时间可能会延长。活动高峰期间,由于网络拥堵,用户可能存在短时间内无法提现的情况。平台将尽最大努力及时恢复提现功能,但无需因此承担任何责任。
- `,
+ `,
money: '',
mayMoney: '0',
shouxufei: '',
@@ -385,6 +388,15 @@
});
},
+ /**
+ * 实名认证
+ */
+ realName() {
+ uni.navigateTo({
+ url: '/me/invite/realName'
+ });
+ },
+
/**
* 绑定支付宝
*/
@@ -460,36 +472,53 @@
// if (parseFloat(that.mayMoney).toFixed(1) >= parseFloat(that.money) + shouxufei * 1) {
if (parseFloat(that.money).toFixed(2) >= parseFloat(cashMoney)) {
if (that.shouxufei > 0) {
-
uni.showModal({
title: "提现申请提示",
- content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
- .money + '元\n\n收款人账号:' + that.zhifubao + '',
- // content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
- // .money + '元\n\n提现手续费:' + shouxufei +
- // '\n\n收款人账号:' + that.zhifubao + '',
+ content: '每日只可提现一次',
success: (e) => {
if (e.confirm) {
- // that.money = money
- that.getMoney();
- that.getMoneyDetail();
+ uni.showModal({
+ title: "提现申请提示",
+ content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
+ .money + '元\n\n收款人账号:' + that.zhifubao + '',
+ // content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
+ // .money + '元\n\n提现手续费:' + shouxufei +
+ // '\n\n收款人账号:' + that.zhifubao + '',
+ success: (e) => {
+ if (e.confirm) {
+ // that.money = money
+ that.getMoney();
+ that.getMoneyDetail();
+ }
+ }
+ });
}
}
});
+
} else {
uni.showModal({
title: "提现申请提示",
- content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
- .money + '元\n\n收款人账号:' + that.zhifubao +
- '',
+ content: '每日只可提现一次',
success: (e) => {
if (e.confirm) {
- // that.money = money
- that.getMoney();
- that.getMoneyDetail();
+ uni.showModal({
+ title: "提现申请提示",
+ content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
+ .money + '元\n\n收款人账号:' + that.zhifubao +
+ '',
+ success: (e) => {
+ if (e.confirm) {
+ // that.money = money
+ that.getMoney();
+ that.getMoneyDetail();
+ }
+ }
+ });
}
}
});
+
}
} else {
diff --git a/me/invite/realName.vue b/me/invite/realName.vue
new file mode 100644
index 0000000..d467c6b
--- /dev/null
+++ b/me/invite/realName.vue
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 请正确填写收款人的银行卡号和真实的收款人姓名
+ 银行卡号需与收款人姓名一致
+ 身份证信息仅可使用一次
+ 否则将无法正常收款,请须知
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/me/invite/zhifubao.vue b/me/invite/zhifubao.vue
index 5439ba7..37eae4b 100644
--- a/me/invite/zhifubao.vue
+++ b/me/invite/zhifubao.vue
@@ -4,14 +4,9 @@
-
-
-
-
请正确填写收款人的支付宝账户和真实的收款人姓名
- 身份证姓名需与支付宝姓名一致
- 身份证信息仅可使用一次
否则将无法正常收款,请须知
@@ -27,7 +22,6 @@
return {
zhiFuBao: '',
zhiFuBaoName: '',
- certNum: '',
logining: false
}
},
@@ -43,9 +37,7 @@
if (res.data.zhiFuBaoName) {
this.zhiFuBaoName = res.data.zhiFuBaoName;
}
- if (res.data.certNo) {
- this.certNum = res.data.certNo;
- }
+
}
})
}
@@ -63,7 +55,6 @@
toLogin() {
let zhiFuBao = this.zhiFuBao
let zhiFuBaoName = this.zhiFuBaoName
- let certNum = this.certNum
if (!zhiFuBao) {
uni.showToast({
@@ -75,21 +66,15 @@
title: '请设置收款人支付宝账号',
icon: 'none'
})
- } else if (!certNum) {
- uni.showToast({
- title: '请设置收款人身份证账号',
- icon: 'none'
- })
} else {
this.logining = true
- this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName + '&certNum=' + certNum).then(
+ this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName).then(
res => {
this.logining = false
console.log(res);
if(res.code===0){
uni.setStorageSync('zhiFuBao', zhiFuBao)
uni.setStorageSync('zhiFuBaoName', zhiFuBaoName)
- uni.setStorageSync('certNum', certNum)
uni.showToast({
title: '修改成功',
icon: 'none',
diff --git a/pages.json b/pages.json
index 22d8c3e..e758487 100644
--- a/pages.json
+++ b/pages.json
@@ -373,6 +373,17 @@
}
}
},
+ {
+ "path": "invite/realName",
+ "style": {
+ "navigationBarTitleText": "实名认证",
+ "h5": {
+ "titleNView": {
+ "backgroundColor": "#FFFFFF"
+ }
+ }
+ }
+ },
{
"path": "invite/zhifubao",
"style": {
From 54d2f057c2daa9dc1292de240bc76870c0aabe8a Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Wed, 8 Jan 2025 21:23:19 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
me/invite/cashDetail.vue | 144 ++++++++++++++++++++-------------------
me/invite/realName.vue | 6 +-
me/invite/zhifubao.vue | 2 +-
3 files changed, 79 insertions(+), 73 deletions(-)
diff --git a/me/invite/cashDetail.vue b/me/invite/cashDetail.vue
index 62fdb9a..1e330b8 100644
--- a/me/invite/cashDetail.vue
+++ b/me/invite/cashDetail.vue
@@ -431,7 +431,7 @@
that.getcashMoney()
}, 1500)
- } else if (res.code == 9991) {
+ } else if (res.code == 9999) {
uni.showToast({
title: res.msg,
icon: 'none'
@@ -442,6 +442,17 @@
});
}, 1500)
+ } else if (res.code == 9991) {
+ uni.showToast({
+ title: res.msg,
+ icon: 'none'
+ })
+ setTimeout(function() {
+ uni.navigateTo({
+ url: '/me/invite/realName'
+ });
+ }, 1500)
+
} else {
uni.showToast({
title: res.msg,
@@ -459,84 +470,79 @@
let cashMoney = that.cashMoney;
if (token) {
- if (that.zhifubao && that.zhifubaoName) {
- if (!/^\d+(\.\d{1,2})?$/.test(that.money)) {
- uni.showToast({
- icon: 'none',
- title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
- });
- return;
- }
- let shouxufei = parseFloat(that.money * that.shouxufei).toFixed(2);
- if (parseFloat(that.mayMoney).toFixed(2) >= parseFloat(that.money)) {
- // if (parseFloat(that.mayMoney).toFixed(1) >= parseFloat(that.money) + shouxufei * 1) {
- if (parseFloat(that.money).toFixed(2) >= parseFloat(cashMoney)) {
- if (that.shouxufei > 0) {
- uni.showModal({
- title: "提现申请提示",
- content: '每日只可提现一次',
- success: (e) => {
- if (e.confirm) {
- uni.showModal({
- title: "提现申请提示",
- content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
- .money + '元\n\n收款人账号:' + that.zhifubao + '',
- // content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
- // .money + '元\n\n提现手续费:' + shouxufei +
- // '\n\n收款人账号:' + that.zhifubao + '',
- success: (e) => {
- if (e.confirm) {
- // that.money = money
- that.getMoney();
- that.getMoneyDetail();
- }
+
+ if (!/^\d+(\.\d{1,2})?$/.test(that.money)) {
+ uni.showToast({
+ icon: 'none',
+ title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
+ });
+ return;
+ }
+ let shouxufei = parseFloat(that.money * that.shouxufei).toFixed(2);
+ if (parseFloat(that.mayMoney).toFixed(2) >= parseFloat(that.money)) {
+ // if (parseFloat(that.mayMoney).toFixed(1) >= parseFloat(that.money) + shouxufei * 1) {
+ if (parseFloat(that.money).toFixed(2) >= parseFloat(cashMoney)) {
+ if (that.shouxufei > 0) {
+ uni.showModal({
+ title: "提现申请提示",
+ content: '每日只可提现一次',
+ success: (e) => {
+ if (e.confirm) {
+ uni.showModal({
+ title: "提现申请提示",
+ content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
+ .money + '元\n\n收款人账号:' + that.zhifubao + '',
+ // content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
+ // .money + '元\n\n提现手续费:' + shouxufei +
+ // '\n\n收款人账号:' + that.zhifubao + '',
+ success: (e) => {
+ if (e.confirm) {
+ // that.money = money
+ that.getMoney();
+ that.getMoneyDetail();
}
- });
- }
+ }
+ });
}
- });
-
- } else {
- uni.showModal({
- title: "提现申请提示",
- content: '每日只可提现一次',
- success: (e) => {
- if (e.confirm) {
- uni.showModal({
- title: "提现申请提示",
- content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
- .money + '元\n\n收款人账号:' + that.zhifubao +
- '',
- success: (e) => {
- if (e.confirm) {
- // that.money = money
- that.getMoney();
- that.getMoneyDetail();
- }
- }
- });
- }
- }
- });
-
- }
-
- } else {
- uni.showToast({
- icon: 'none',
- title: "提现金额必须大于或等于" + cashMoney + "元才可提现"
+ }
});
+
+ } else {
+ uni.showModal({
+ title: "提现申请提示",
+ content: '每日只可提现一次',
+ success: (e) => {
+ if (e.confirm) {
+ uni.showModal({
+ title: "提现申请提示",
+ content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
+ .money + '元\n\n收款人账号:' + that.zhifubao +
+ '',
+ success: (e) => {
+ if (e.confirm) {
+ // that.money = money
+ that.getMoney();
+ that.getMoneyDetail();
+ }
+ }
+ });
+ }
+ }
+ });
+
}
+
} else {
uni.showToast({
icon: 'none',
- title: "您的余额不足"
+ title: "提现金额必须大于或等于" + cashMoney + "元才可提现"
});
}
} else {
- uni.navigateTo({
- url: "/me/invite/zhifubao"
- })
+ uni.showToast({
+ icon: 'none',
+ title: "您的余额不足"
+ });
}
} else {
uni.navigateTo({
diff --git a/me/invite/realName.vue b/me/invite/realName.vue
index d467c6b..e4801d5 100644
--- a/me/invite/realName.vue
+++ b/me/invite/realName.vue
@@ -2,17 +2,17 @@
-
-
+
请正确填写收款人的银行卡号和真实的收款人姓名
+ 手机号需是银行卡银行卡预留手机号
银行卡号需与收款人姓名一致
身份证信息仅可使用一次
否则将无法正常收款,请须知
@@ -92,7 +92,7 @@
})
} else {
this.logining = true
- this.$u.post('app/user/updateUser?certName=' + this.certName + '&mobile=' + this.mobile + '&certNum=' + this.certNum + '&accountNo=' + this.accountNo).then(
+ this.$u.post('app/user/realNameAuth?certName=' + this.certName + '&mobile=' + this.mobile + '&certNum=' + this.certNum + '&accountNo=' + this.accountNo.replace(/\s+/g, '')).then(
res => {
this.logining = false
console.log(res);
diff --git a/me/invite/zhifubao.vue b/me/invite/zhifubao.vue
index 37eae4b..6c0483c 100644
--- a/me/invite/zhifubao.vue
+++ b/me/invite/zhifubao.vue
@@ -68,7 +68,7 @@
})
} else {
this.logining = true
- this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName).then(
+ this.$u.post('app/user/bindAlipay?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName).then(
res => {
this.logining = false
console.log(res);
From 58d72504647ce847e081b17e180745ac3e30f18d Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Wed, 8 Jan 2025 22:24:32 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E5=AE=9E=E5=90=8D=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/config.js | 12 ++++++------
manifest.json | 4 ++--
me/detail/detail.nvue | 4 ++--
me/invite/cashDetail.vue | 4 ++--
me/invite/realName.vue | 12 ++++++------
5 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/common/config.js b/common/config.js
index 313c899..2874e7a 100644
--- a/common/config.js
+++ b/common/config.js
@@ -1,7 +1,7 @@
// APP
-// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; //
-// const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名
-// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
+const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; //
+const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名
+const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
// const ROOTPATH1 = "https://video.hnsiyao.cn/czg/"; //
// const ROOTPATH = "https://video.hnsiyao.cn/czg/"; //后台服务域名
@@ -12,9 +12,9 @@
// const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
-const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
-const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
-const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
+// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
+// const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
+// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
// const ROOTPATH1 = "http://192.168.1.41:8100/czg/"; //
// const ROOTPATH = "http://192.168.1.41:8100/czg/"; //后台服务域名
diff --git a/manifest.json b/manifest.json
index 83042e1..d605929 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "斯耀短剧",
"appid" : "__UNI__E0B05B1",
"description" : "",
- "versionName" : "1.1.8",
- "versionCode" : 118,
+ "versionName" : "1.1.9",
+ "versionCode" : 119,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/me/detail/detail.nvue b/me/detail/detail.nvue
index 2a9af73..19b6ff1 100644
--- a/me/detail/detail.nvue
+++ b/me/detail/detail.nvue
@@ -832,8 +832,8 @@
} else {
uni.hideLoading()
uni.showToast({
- icon: res.msg,
- title: '支付失败!'
+ icon: "none",
+ title: res.msg
});
}
diff --git a/me/invite/cashDetail.vue b/me/invite/cashDetail.vue
index 1e330b8..fce77d8 100644
--- a/me/invite/cashDetail.vue
+++ b/me/invite/cashDetail.vue
@@ -57,9 +57,9 @@
实名认证
-
+
红包明细
diff --git a/me/invite/realName.vue b/me/invite/realName.vue
index e4801d5..133e86a 100644
--- a/me/invite/realName.vue
+++ b/me/invite/realName.vue
@@ -9,10 +9,10 @@
-
请正确填写收款人的银行卡号和真实的收款人姓名
- 手机号需是银行卡银行卡预留手机号
+ 手机号需是银行卡预留手机号
银行卡号需与收款人姓名一致
身份证信息仅可使用一次
否则将无法正常收款,请须知
@@ -32,6 +32,7 @@
mobile: '',
certNum: '',
accountNo: '',
+ user: {},
logining: false
}
},
@@ -41,16 +42,15 @@
if (userId) {
this.$u.api.userinfo().then(res => {
if (res.code === 0) {
+ this.user = res.data
if (res.data.certName) {
this.certName = res.data.certName;
}
if (res.data.mobile) {
this.mobile = res.data.mobile;
}
- if (res.data.certNo) {
- this.certNum = res.data.certNo;
- }
if (res.data.accountNo) {
+ this.certNum = res.data.certNo;
this.accountNo = res.data.accountNo;
}
@@ -77,7 +77,7 @@
})
} else if (!this.mobile) {
uni.showToast({
- title: '请输入手机号号',
+ title: '请输入手机号',
icon: 'none'
})
} else if (!this.certNum) {
From 339ddfc4939195638cdc901782c57b481679db77 Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Thu, 9 Jan 2025 10:10:37 +0800
Subject: [PATCH 4/5] =?UTF-8?q?=E6=8F=90=E7=8E=B0=E4=BC=98=E5=8C=96?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/config.js | 12 +++---
me/invite/cashDetail.vue | 89 ++++++----------------------------------
2 files changed, 19 insertions(+), 82 deletions(-)
diff --git a/common/config.js b/common/config.js
index 2874e7a..5eb9aa2 100644
--- a/common/config.js
+++ b/common/config.js
@@ -1,16 +1,16 @@
// APP
-const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; //
-const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名
-const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
+// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; //
+// const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名
+// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
// const ROOTPATH1 = "https://video.hnsiyao.cn/czg/"; //
// const ROOTPATH = "https://video.hnsiyao.cn/czg/"; //后台服务域名
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
// h5
-// const ROOTPATH1 = "https://web.hnsiyao.cn/czg/"; //
-// const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名
-// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
+const ROOTPATH1 = "https://web.hnsiyao.cn/czg/"; //
+const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名
+const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
// const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
diff --git a/me/invite/cashDetail.vue b/me/invite/cashDetail.vue
index fce77d8..2b781b7 100644
--- a/me/invite/cashDetail.vue
+++ b/me/invite/cashDetail.vue
@@ -145,7 +145,7 @@
(2)高峰期提现人数多会导致网络拥堵,显示提现成功之后72小时内属于正常现象,请耐心等候。
- 4,每日23:00至次日11:00为系统维护时间,活动的对应奖励可能延迟到账。提现通常会在72小时内到账,如遇双休日、节假日,提现到账时间可能会延长。活动高峰期间,由于网络拥堵,用户可能存在短时间内无法提现的情况。平台将尽最大努力及时恢复提现功能,但无需因此承担任何责任。
+ 4,每日08:00至次日18:00为提现时间,活动的对应奖励可能延迟到账。提现通常会在72小时内到账,如遇双休日、节假日,提现到账时间可能会延长。活动高峰期间,由于网络拥堵,用户可能存在短时间内无法提现的情况。平台将尽最大努力及时恢复提现功能,但无需因此承担任何责任。
`,
money: '',
@@ -176,7 +176,6 @@
userId: '',
zhifubao: '',
zhifubaoName: '',
- certNum: '',
list: [],
page: 1,
limit: 10,
@@ -195,11 +194,18 @@
onShow() {
this.token = uni.getStorageSync('token')
this.userId = uni.getStorageSync('userId')
- this.zhifubao = uni.getStorageSync('zhiFuBao')
- this.zhifubaoName = uni.getStorageSync('zhiFuBaoName')
- this.certNum = uni.getStorageSync('certNum')
this.getcashMoney()
-
+ this.$u.api.userinfo().then(res => {
+ if (res.code === 0) {
+ if (res.data.certName) {
+ this.zhifubaoName = res.data.certName;
+ }
+ if (res.data.accountNo) {
+ this.zhifubao = res.data.accountNo;
+ }
+
+ }
+ })
},
onReachBottom: function() {
if (this.page * this.limit < this.totalCount) {
@@ -549,77 +555,8 @@
url: '/pages/login/login'
});
}
- },
- getOut1(money) {
- let that = this;
- let token = that.token
- let userId = that.userId
- if (token) {
- if (that.zhifubao && that.zhifubaoName) {
- if (parseFloat(this.mayMoney).toFixed(1) >= parseFloat(money)) {
- if (parseFloat(money).toFixed(1) >= 10) {
- if (this.shouxufei > 0) {
- let shouxufei = parseFloat(money * this.shouxufei).toFixed(2);
- uni.showModal({
- title: '提现申请提示',
- content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + money +
- '元\n\n收款人账号:' + that.zhifubao + '',
- // content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + money +
- // '元\n\n提现手续费:' + shouxufei +
- // '\n\n收款人账号:' + that.zhifubao + '',
- confirmColor: '#ff7581',
- success: e => {
- if (e.confirm) {
- this.money = money
- that.getMoney();
- // uni.showToast({
- // icon: 'none',
- // title: '提现成功'
- // })
- }
- }
- });
- } else {
- uni.showModal({
- title: '提现申请提示',
- content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + money +
- '元\n\n收款人账号:' + that.zhifubao +
- '',
- success: e => {
- if (e.confirm) {
- this.money = money
- that.getMoney();
- // uni.showToast({
- // icon: 'none',
- // title: '提现成功'
- // })
- }
- }
- });
- }
- } else {
- uni.showToast({
- icon: 'none',
- title: '提现金额必须大于或等于10元才可提现'
- });
- }
- } else {
- uni.showToast({
- icon: 'none',
- title: '您的余额不足'
- });
- }
- } else {
- uni.navigateTo({
- url: '/me/invite/zhifubao'
- });
- }
- } else {
- uni.navigateTo({
- url: '/pages/login/login'
- });
- }
}
+
}
};
From d4237d4365e792863f0322317df4f9a488f7aec8 Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Thu, 9 Jan 2025 10:50:42 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E6=8A=BD=E5=A5=96=E4=BC=98=E5=8C=96?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/pop-choujiang.vue | 34 +-----
components/pop-ling-qu - 副本.vue | 175 ------------------------------
components/pop-ling-qu.vue | 23 +---
me/choujiang/choujiang.vue | 6 +-
4 files changed, 10 insertions(+), 228 deletions(-)
delete mode 100644 components/pop-ling-qu - 副本.vue
diff --git a/components/pop-choujiang.vue b/components/pop-choujiang.vue
index b5a5aa1..e204f22 100644
--- a/components/pop-choujiang.vue
+++ b/components/pop-choujiang.vue
@@ -468,35 +468,13 @@
tipContent = `恭喜您,获得 ${name}${this.result.type==2?(this.result.number+'元'):''} !`
}
const _this = this;
- uni.showModal({
- content: tipContent,
- showCancel: false,
- success() {
- const {
- orderId,
- id
- } = _this.result
- _this.$Request.postJson('app/discSpinning/receive', _this.result).then(res => {
- _this.result = ''
- console.log(res)
- if (res.code == 0) {
- uni.showToast({
- title: '领取成功',
- icon: 'none'
- })
- _this.getRedPack()
- } else {
- uni.showToast({
- title: '领取失败',
- icon: 'none'
- })
- }
- })
- },
- complete: () => {
- this.prizeing = false
- }
+ uni.showToast({
+ title: tipContent,
+ icon: 'none'
})
+ _this.getRedPack()
+ this.prizeing = false
+
},
// 抽奖转盘绘制完成
handleDrawFinish(res) {
diff --git a/components/pop-ling-qu - 副本.vue b/components/pop-ling-qu - 副本.vue
deleted file mode 100644
index fe60cdb..0000000
--- a/components/pop-ling-qu - 副本.vue
+++ /dev/null
@@ -1,175 +0,0 @@
-
-
-
-
- 恭喜您获得
-
-
-
-
-
-
- 物品
-
-
-
-
- {{result.number}}
- 元
-
-
- 现金红包
-
-
-
-
-
- 立即领取
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/components/pop-ling-qu.vue b/components/pop-ling-qu.vue
index 7239156..b19f46b 100644
--- a/components/pop-ling-qu.vue
+++ b/components/pop-ling-qu.vue
@@ -49,28 +49,7 @@
close() {
console.log('抽奖弹窗关闭');
this.show = false
- if(!this.result){
- return
- }
- const {
- orderId,
- id
- } = this.result
- this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
- this.result = ''
- console.log(res)
- if (res.code == 0) {
- console.log('抽奖领取成功');
- const key=res.data==0?'isBindAliPay':undefined
- this.$emit('close',key)
- if(key&&key=='isBindAliPay'){
- uni.navigateTo({
- url:'/me/invite/zhifubao'
- })
- }
- } else {
- }
- })
+ this.$emit('close',key)
}
}
}
diff --git a/me/choujiang/choujiang.vue b/me/choujiang/choujiang.vue
index a6290e9..0e42d19 100644
--- a/me/choujiang/choujiang.vue
+++ b/me/choujiang/choujiang.vue
@@ -485,9 +485,9 @@
tipContent = `恭喜您,获得 ${name}${this.result.type==2?(this.result.number+'元'):''} !`
this.showLingPop({...this.result})
const cacheData={...this.result}
- setTimeout(()=>{
- this.$Request.postJson('app/discSpinning/receive',cacheData )
- },1000)
+ // setTimeout(()=>{
+ // this.$Request.postJson('app/discSpinning/receive',cacheData )
+ // },1000)
}
console.log(this.result);
this.result=''