From 5587bbed83e5809d2b30a3aabcae399320bb5072 Mon Sep 17 00:00:00 2001 From: WXD-SEASON\season Date: Fri, 4 Mar 2022 10:14:52 +0800 Subject: [PATCH] 文件没用删除 --- pages/user/withdrawals/withdrawals.js | 54 ------------------------------------------------------ pages/user/withdrawals/withdrawals.json | 3 --- pages/user/withdrawals/withdrawals.wxml | 32 -------------------------------- pages/user/withdrawals/withdrawals.wxss | 42 ------------------------------------------ pages/user/withdrawals_list/withdrawals_list.js | 31 ------------------------------- pages/user/withdrawals_list/withdrawals_list.json | 3 --- pages/user/withdrawals_list/withdrawals_list.wxml | 14 -------------- pages/user/withdrawals_list/withdrawals_list.wxss | 42 ------------------------------------------ 8 files changed, 0 insertions(+), 221 deletions(-) delete mode 100644 pages/user/withdrawals/withdrawals.js delete mode 100644 pages/user/withdrawals/withdrawals.json delete mode 100644 pages/user/withdrawals/withdrawals.wxml delete mode 100644 pages/user/withdrawals/withdrawals.wxss delete mode 100644 pages/user/withdrawals_list/withdrawals_list.js delete mode 100644 pages/user/withdrawals_list/withdrawals_list.json delete mode 100644 pages/user/withdrawals_list/withdrawals_list.wxml delete mode 100644 pages/user/withdrawals_list/withdrawals_list.wxss diff --git a/pages/user/withdrawals/withdrawals.js b/pages/user/withdrawals/withdrawals.js deleted file mode 100644 index 532d51f..0000000 --- a/pages/user/withdrawals/withdrawals.js +++ /dev/null @@ -1,54 +0,0 @@ -var a = getApp(), n = a.request, e = require("../../../utils/common.js"); - -Page({ - data: { - url: a.globalData.setting.url, - userMoney: 0, - capacheUrl: "" - }, - onLoad: function(a) { - this.setData({ - userMoney: a.money - }), this.getCapache(); - }, - submitWithdrawals: function(a) { - var e = a.detail.value; - if (!0 === this.checkFormData(e)) { - var t = this; - n.post("/api/user/withdrawals", { - data: { - account_bank: e.account_bank, - account_name: e.account_name, - bank_name: e.bank_name, - money: e.money, - verify_code: e.verify_code, - paypwd: e.paypwd - }, - success: function() { - wx.showToast({ - title: "已提交申请", - mask: !0, - complete: function() { - setTimeout(function() { - wx.navigateBack(); - }, 1e3); - } - }); - }, - failStatus: function() { - t.getCapache(); - } - }); - } - }, - checkFormData: function(n) { - console.log(n); - var e = parseFloat(n.money); - return isNaN(e) ? a.showWarning("请填写合法的提现金额") : e < .01 ? a.showWarning("请填写大于等于1分的提现金额") : e > this.data.userMoney ? a.showWarning("可提现最大金额是 " + this.data.userMoney + " 元") : n.bank_name.length < 2 ? a.showWarning("请填写正确的银行名称") : isNaN(parseInt(n.account_bank)) || "" == n.account_bank ? a.showWarning("请填写正确的收款账号") : "" == n.account_name ? a.showWarning("请填写正确的开户号") : "" == n.paypwd.length ? a.showWarning("支付密码不能为空") : "" != n.verify_code || a.showWarning("请先输入验证码"); - }, - getCapache: function() { - this.setData({ - capacheUrl: e.getCapache() - }); - } -}); \ No newline at end of file diff --git a/pages/user/withdrawals/withdrawals.json b/pages/user/withdrawals/withdrawals.json deleted file mode 100644 index 7032d9c..0000000 --- a/pages/user/withdrawals/withdrawals.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "navigationBarTitleText": "申请提现" -} \ No newline at end of file diff --git a/pages/user/withdrawals/withdrawals.wxml b/pages/user/withdrawals/withdrawals.wxml deleted file mode 100644 index 72776d6..0000000 --- a/pages/user/withdrawals/withdrawals.wxml +++ /dev/null @@ -1,32 +0,0 @@ - -
- - 提现金额 : - - - - 银行名称 : - - - - 收款账号 : - - - - 开户号 : - - - - 支付密码 : - - - - 验证码 : - - - - - - -
-
diff --git a/pages/user/withdrawals/withdrawals.wxss b/pages/user/withdrawals/withdrawals.wxss deleted file mode 100644 index b8978e8..0000000 --- a/pages/user/withdrawals/withdrawals.wxss +++ /dev/null @@ -1,42 +0,0 @@ -.panel { - padding-bottom: 50rpx; -} - -.apply-item { - display: flex; - align-items: center; - font-size: 28rpx; - height: 88rpx; - border-bottom: 1px solid #ddd; -} - -.title { - color: #444; - margin-right: 20rpx; -} - -input { - color: #777; - width: 500rpx; -} - -.v-code-text { - width: 220rpx; -} - -.v-code { - width: 260rpx; - height: 60rpx; -} - -.apply-btn { - margin: 60rpx auto 0; - width: 580rpx; - height: 88rpx; - font-size: 28rpx; - line-height: 88rpx; - text-align: center; - color: #fff; - background-color: #e30000; - border-radius: 8rpx; -} \ No newline at end of file diff --git a/pages/user/withdrawals_list/withdrawals_list.js b/pages/user/withdrawals_list/withdrawals_list.js deleted file mode 100644 index 940598d..0000000 --- a/pages/user/withdrawals_list/withdrawals_list.js +++ /dev/null @@ -1,31 +0,0 @@ -var t = function(t) { - return t && t.__esModule ? t : { - default: t - }; -}(require("../../../utils/LoadMore.js")), a = getApp(), e = new t.default(), r = require("../../../utils/util.js"); - -Page({ - data: { - url: a.globalData.setting.url, - resourceUrl: a.globalData.setting.resourceUrl, - withdrawals: null, - currentPage: 1 - }, - onLoad: function() { - e.init(this, "", "withdrawals"), this.requestWithdrawalsList(); - }, - requestWithdrawalsList: function() { - var t = this, a = "/api/user/withdrawals_list/?p=" + t.data.currentPage; - e.request(a, function(a) { - t.data.currentPage++, a.data.result.forEach(function(t, a, e) { - t.createTimeFommat = r.format(t.create_time, "yyyy-MM-dd"); - }), wx.stopPullDownRefresh(); - }); - }, - onReachBottom: function() { - e.canloadMore() && this.requestWithdrawalsList(); - }, - onPullDownRefresh: function() { - this.data.withdrawals = null, this.data.currentPage = 1, e.resetConfig(), this.requestWithdrawalsList(); - } -}); \ No newline at end of file diff --git a/pages/user/withdrawals_list/withdrawals_list.json b/pages/user/withdrawals_list/withdrawals_list.json deleted file mode 100644 index bece1ed..0000000 --- a/pages/user/withdrawals_list/withdrawals_list.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "navigationBarTitleText": "提现申请记录" -} \ No newline at end of file diff --git a/pages/user/withdrawals_list/withdrawals_list.wxml b/pages/user/withdrawals_list/withdrawals_list.wxml deleted file mode 100644 index 805d0ec..0000000 --- a/pages/user/withdrawals_list/withdrawals_list.wxml +++ /dev/null @@ -1,14 +0,0 @@ - - - 编号 - 申请日期 - 金额 - 状态 - - - {{item.id}} - {{item.createTimeFommat}} - {{item.money}} - {{item.status==0?'申请中':''}}{{item.status==1?'申请成功':''}}{{item.status==2?'申请失败':''}} - - diff --git a/pages/user/withdrawals_list/withdrawals_list.wxss b/pages/user/withdrawals_list/withdrawals_list.wxss deleted file mode 100644 index 652c284..0000000 --- a/pages/user/withdrawals_list/withdrawals_list.wxss +++ /dev/null @@ -1,42 +0,0 @@ -page { - background-color: white; -} - -.withdrawal-box { - font-size: 28rpx; - padding: 25rpx 30rpx; - border-bottom: 1rpx solid #f8f8f8; -} - -.withdrawal-item { - display: inline-block; - word-break: keep-all; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: #666666; - box-sizing: border-box; - text-align: center; -} - -.withdrawal-box .pay { - width: 20%; -} - -.withdrawal-box .time { - width: 27%; -} - -.withdrawal-box .price { - width: 28%; -} - -.withdrawal-box .status { - width: 25%; - color: #e01222; -} - -.withdrawal-box .title { - color: #666666; - font-size: 32rpx; -} \ No newline at end of file -- libgit2 0.21.4