Commit 5587bbed83e5809d2b30a3aabcae399320bb5072

Authored by WXD-SEASON\season
1 parent 051f672b

文件没用删除

pages/user/withdrawals/withdrawals.js deleted
1 -var a = getApp(), n = a.request, e = require("../../../utils/common.js");  
2 -  
3 -Page({  
4 - data: {  
5 - url: a.globalData.setting.url,  
6 - userMoney: 0,  
7 - capacheUrl: ""  
8 - },  
9 - onLoad: function(a) {  
10 - this.setData({  
11 - userMoney: a.money  
12 - }), this.getCapache();  
13 - },  
14 - submitWithdrawals: function(a) {  
15 - var e = a.detail.value;  
16 - if (!0 === this.checkFormData(e)) {  
17 - var t = this;  
18 - n.post("/api/user/withdrawals", {  
19 - data: {  
20 - account_bank: e.account_bank,  
21 - account_name: e.account_name,  
22 - bank_name: e.bank_name,  
23 - money: e.money,  
24 - verify_code: e.verify_code,  
25 - paypwd: e.paypwd  
26 - },  
27 - success: function() {  
28 - wx.showToast({  
29 - title: "已提交申请",  
30 - mask: !0,  
31 - complete: function() {  
32 - setTimeout(function() {  
33 - wx.navigateBack();  
34 - }, 1e3);  
35 - }  
36 - });  
37 - },  
38 - failStatus: function() {  
39 - t.getCapache();  
40 - }  
41 - });  
42 - }  
43 - },  
44 - checkFormData: function(n) {  
45 - console.log(n);  
46 - var e = parseFloat(n.money);  
47 - 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("请先输入验证码");  
48 - },  
49 - getCapache: function() {  
50 - this.setData({  
51 - capacheUrl: e.getCapache()  
52 - });  
53 - }  
54 -});  
55 \ No newline at end of file 0 \ No newline at end of file
pages/user/withdrawals/withdrawals.json deleted
1 -{  
2 - "navigationBarTitleText": "申请提现"  
3 -}  
4 \ No newline at end of file 0 \ No newline at end of file
pages/user/withdrawals/withdrawals.wxml deleted
1 -<view class="panel pd-bg-fff">  
2 - <form bindsubmit="submitWithdrawals">  
3 - <view class="apply-item">  
4 - <view class="title">提现金额 : </view>  
5 - <input name="money" placeholder="可提现金额 : {{userMoney}}元" type="digit"></input>  
6 - </view>  
7 - <view class="apply-item">  
8 - <view class="title">银行名称 : </view>  
9 - <input name="bank_name" placeholder="如 : 工商银行,支付宝,微信" type="text"></input>  
10 - </view>  
11 - <view class="apply-item">  
12 - <view class="title">收款账号 : </view>  
13 - <input name="account_bank" placeholder="收款账号" type="number"></input>  
14 - </view>  
15 - <view class="apply-item">  
16 - <view class="title">开户号 : </view>  
17 - <input name="account_name" placeholder="持卡人姓名" type="text"></input>  
18 - </view>  
19 - <view class="apply-item">  
20 - <view class="title">支付密码 : </view>  
21 - <input name="paypwd" placeholder="支付密码" type="password"></input>  
22 - </view>  
23 - <view class="apply-item">  
24 - <view class="title">验证码 : </view>  
25 - <input class="v-code-text" name="verify_code" placeholder="请输入验证码" type="text"></input>  
26 - <view bindtap="getCapache" class="v-code">  
27 - <image class="wh100" src="{{capacheUrl}}"></image>  
28 - </view>  
29 - </view>  
30 - <button class="apply-btn" formType="submit">提交申请</button>  
31 - </form>  
32 -</view>  
pages/user/withdrawals/withdrawals.wxss deleted
1 -.panel {  
2 - padding-bottom: 50rpx;  
3 -}  
4 -  
5 -.apply-item {  
6 - display: flex;  
7 - align-items: center;  
8 - font-size: 28rpx;  
9 - height: 88rpx;  
10 - border-bottom: 1px solid #ddd;  
11 -}  
12 -  
13 -.title {  
14 - color: #444;  
15 - margin-right: 20rpx;  
16 -}  
17 -  
18 -input {  
19 - color: #777;  
20 - width: 500rpx;  
21 -}  
22 -  
23 -.v-code-text {  
24 - width: 220rpx;  
25 -}  
26 -  
27 -.v-code {  
28 - width: 260rpx;  
29 - height: 60rpx;  
30 -}  
31 -  
32 -.apply-btn {  
33 - margin: 60rpx auto 0;  
34 - width: 580rpx;  
35 - height: 88rpx;  
36 - font-size: 28rpx;  
37 - line-height: 88rpx;  
38 - text-align: center;  
39 - color: #fff;  
40 - background-color: #e30000;  
41 - border-radius: 8rpx;  
42 -}  
43 \ No newline at end of file 0 \ No newline at end of file
pages/user/withdrawals_list/withdrawals_list.js deleted
1 -var t = function(t) {  
2 - return t && t.__esModule ? t : {  
3 - default: t  
4 - };  
5 -}(require("../../../utils/LoadMore.js")), a = getApp(), e = new t.default(), r = require("../../../utils/util.js");  
6 -  
7 -Page({  
8 - data: {  
9 - url: a.globalData.setting.url,  
10 - resourceUrl: a.globalData.setting.resourceUrl,  
11 - withdrawals: null,  
12 - currentPage: 1  
13 - },  
14 - onLoad: function() {  
15 - e.init(this, "", "withdrawals"), this.requestWithdrawalsList();  
16 - },  
17 - requestWithdrawalsList: function() {  
18 - var t = this, a = "/api/user/withdrawals_list/?p=" + t.data.currentPage;  
19 - e.request(a, function(a) {  
20 - t.data.currentPage++, a.data.result.forEach(function(t, a, e) {  
21 - t.createTimeFommat = r.format(t.create_time, "yyyy-MM-dd");  
22 - }), wx.stopPullDownRefresh();  
23 - });  
24 - },  
25 - onReachBottom: function() {  
26 - e.canloadMore() && this.requestWithdrawalsList();  
27 - },  
28 - onPullDownRefresh: function() {  
29 - this.data.withdrawals = null, this.data.currentPage = 1, e.resetConfig(), this.requestWithdrawalsList();  
30 - }  
31 -});  
32 \ No newline at end of file 0 \ No newline at end of file
pages/user/withdrawals_list/withdrawals_list.json deleted
1 -{  
2 - "navigationBarTitleText": "提现申请记录"  
3 -}  
4 \ No newline at end of file 0 \ No newline at end of file
pages/user/withdrawals_list/withdrawals_list.wxml deleted
1 -<view class="container">  
2 - <view class="withdrawal-box">  
3 - <view class="withdrawal-item pay title">编号</view>  
4 - <view class="withdrawal-item time title">申请日期</view>  
5 - <view class="withdrawal-item price title">金额</view>  
6 - <view class="withdrawal-item status title">状态</view>  
7 - </view>  
8 - <view class="withdrawal-box" wx:for="{{withdrawals}}" wx:key="{{index}}">  
9 - <view class="withdrawal-item pay">{{item.id}}</view>  
10 - <view class="withdrawal-item time">{{item.createTimeFommat}}</view>  
11 - <view class="withdrawal-item price">{{item.money}}</view>  
12 - <view class="withdrawal-item status">{{item.status==0?'申请中':''}}{{item.status==1?'申请成功':''}}{{item.status==2?'申请失败':''}}</view>  
13 - </view>  
14 -</view>  
pages/user/withdrawals_list/withdrawals_list.wxss deleted
1 -page {  
2 - background-color: white;  
3 -}  
4 -  
5 -.withdrawal-box {  
6 - font-size: 28rpx;  
7 - padding: 25rpx 30rpx;  
8 - border-bottom: 1rpx solid #f8f8f8;  
9 -}  
10 -  
11 -.withdrawal-item {  
12 - display: inline-block;  
13 - word-break: keep-all;  
14 - white-space: nowrap;  
15 - overflow: hidden;  
16 - text-overflow: ellipsis;  
17 - color: #666666;  
18 - box-sizing: border-box;  
19 - text-align: center;  
20 -}  
21 -  
22 -.withdrawal-box .pay {  
23 - width: 20%;  
24 -}  
25 -  
26 -.withdrawal-box .time {  
27 - width: 27%;  
28 -}  
29 -  
30 -.withdrawal-box .price {  
31 - width: 28%;  
32 -}  
33 -  
34 -.withdrawal-box .status {  
35 - width: 25%;  
36 - color: #e01222;  
37 -}  
38 -  
39 -.withdrawal-box .title {  
40 - color: #666666;  
41 - font-size: 32rpx;  
42 -}  
43 \ No newline at end of file 0 \ No newline at end of file