Browse Source

修改bug

cr 4 years ago
parent
commit
6b05507172

+ 3 - 0
releaselog.md

@@ -1,5 +1,8 @@
1 1
 
2 2
 
3
+# 0.5.3 (21.03.22 18:00) 
4
+### 添加平台  群设置修改bug
5
+
3 6
 # 0.5.2 (21.03.20 18:00) 
4 7
 ### 添加平台  群设置
5 8
 

+ 11 - 7
src/common/js/plugin.js

@@ -299,13 +299,17 @@ export default {
299 299
                                     curShop: {},
300 300
                                 });
301 301
 
302
-                                this.checkcode(
303
-                                    {
304
-                                        // code: "hht2120201",
305
-                                        platform: res.data.fromPlatform,
306
-                                    },
307
-                                    res
308
-                                );
302
+                                // this.checkcode(
303
+                                //     {
304
+                                //         // code: "hht2120201",
305
+                                //         platform: res.data.fromPlatform,
306
+                                //     },
307
+                                //     res
308
+                                // );
309
+                                router.push({
310
+                                    isTabBar: true,
311
+                                    path: "/pages/index/index",
312
+                                });
309 313
                             }
310 314
                         } else {
311 315
                             router.push({

+ 1 - 1
src/common/store/common.js

@@ -19,7 +19,7 @@ const module = {
19 19
         cashierRefundData:false, //manage/cashier/Refund 收银退货临时保存
20 20
         groupData:null, //assistant/setting/xxx 临时保存
21 21
         platformData:null,//assistant/setting2/xxx 临时保存
22
-        withdrawalData:null,//wallet/detail/ 临时保存
22
+        billData:null,//wallet/detail/ 临时保存
23 23
         welcomeData:null, // assistant/welcome-item 临时保存
24 24
         welcomeItemData:null,// assistant/welcome-item 临时保存
25 25
         tabList:[{

+ 1 - 1
src/pages/assistant/add-platform.vue

@@ -149,7 +149,7 @@ export default {
149 149
             this.api
150 150
                 .post("/Group/AddJDPlatform", sendData, { pass: true })
151 151
                 .then((res) => {
152
-                    if (!res.success) {
152
+                    if (res.success) {
153 153
                         this.fn.showModal({
154 154
                             title: "添加平台成功",
155 155
                             content: `你已成功添加${1},如果需要在群内关联平台,请在群详情下关联平台,获取点击“一键关联群”,现在一键关联`,

+ 3 - 3
src/pages/index/login.vue

@@ -22,9 +22,9 @@
22 22
             <div class="login-other">
23 23
                 <div class="register-box">
24 24
                     <a class="go-register" @click="jumpRegister">去注册</a>
25
-                    <a class="go-register register2" @click="jumpRegister2"
26
-                        >无团号注册</a
27
-                    >
25
+                    <!-- <a class="go-register register2" @click="jumpRegister2"
26
+                        >无团号注册</a
27
+                    > -->
28 28
                 </div>
29 29
                 <a
30 30
                     class="find-password"

+ 13 - 0
src/pages/index/register.vue

@@ -65,6 +65,7 @@
65 65
                 />
66 66
             </div>
67 67
             <button class="btn" @click="saveTeamNum">下一步</button>
68
+            <button class="btn skip-btn" @click="skip">跳过</button>
68 69
             <div class="team-num-des">
69 70
                 <h1 class="tit">在哪里看京东区区购团长号?</h1>
70 71
                 <p class="text">
@@ -438,6 +439,13 @@ export default {
438 439
                 });
439 440
         },
440 441
 
442
+        skip() {
443
+            this.router.push({
444
+                path: "/pages/assistant/index",
445
+                isTabBar: true,
446
+            });
447
+        },
448
+
441 449
         viewImg(url) {
442 450
             uni.previewImage({
443 451
                 urls: [url],
@@ -678,4 +686,9 @@ export default {
678 686
         }
679 687
     }
680 688
 }
689
+.skip-btn{
690
+    margin-top: px(40);
691
+    background-color: #f1f1f1;
692
+    color: #333;
693
+}
681 694
 </style>

+ 1 - 1
src/pages/manage/index.vue

@@ -76,7 +76,7 @@
76 76
 
77 77
         <!-- <button class="btn" @click="layout">退出登录</button> -->
78 78
 
79
-        <div class="ver">0.5.2</div>
79
+        <div class="ver">0.5.31</div>
80 80
         <wyg-bottom-tab
81 81
             ref="tabbar"
82 82
             :tabIndex="2"

+ 2 - 2
src/pages/manage/user/index.vue

@@ -29,7 +29,7 @@
29 29
                     src="/static/common/arrows_left.png"
30 30
                 ></my-image>
31 31
             </li>
32
-            <button open-type="share" class="item" id="2">
32
+            <!-- <button open-type="share" class="item" id="2">
33 33
                 <div class="name">邀请团长</div>
34 34
                 <my-image
35 35
                     class="arrow"
@@ -42,7 +42,7 @@
42 42
                     class="arrow"
43 43
                     src="/static/common/arrows_left.png"
44 44
                 ></my-image>
45
-            </button>
45
+            </button> -->
46 46
         </ul>
47 47
         <button class="btn" @click="layout">退出登录</button>
48 48
     </div>

+ 11 - 11
src/pages/wallet/bill.vue

@@ -3,7 +3,7 @@
3 3
         <ul class="list">
4 4
             <li class="item" v-for="item of list" :key="item.id" @click="goDetail(item)">
5 5
                 <div class="name">
6
-                    {{ item.applyTime | dateFormat("yyy/MM/dd") }}
6
+                    {{ item.createdTime | dateFormat("yyy/MM/dd") }}
7 7
                     <span class="status">{{ item.status | status }}</span>
8 8
                 </div>
9 9
                 <div class="right">
@@ -46,11 +46,8 @@ export default {
46 46
     filters: {
47 47
         status(v) {
48 48
             let obj = {
49
-                0: "审核中",
50
-                1: "待打款",
51
-                2: "已完成",
52
-                3: "未通过",
53
-                4: "打款失败",
49
+                0: "未结算",
50
+                1: "已结算",
54 51
             };
55 52
             let str = obj[v];
56 53
             return str || "";
@@ -62,30 +59,33 @@ export default {
62 59
     },
63 60
     async onShow() {},
64 61
     onPullDownRefresh() {
65
-        this.getList();
62
+        this.getList(true);
66 63
     },
67 64
     onReachBottom() {
68 65
         this.getMoreList();
69 66
     },
70 67
     // 函数
71 68
     methods: {
72
-        getList() {
69
+        getList(isPull) {
73 70
             this.pageIndex = 1;
74 71
             uni.showLoading({
75 72
                 title: "加载中...",
76 73
             });
77 74
             this.api
78
-                .get("/User/GetWithdrawalList", {
75
+                .get("/User/GetBillList", {
79 76
                     pageIndex: this.pageIndex++,
80 77
                 })
81 78
                 .then((res) => {
79
+                    if(isPull){
80
+                        uni.stopPullDownRefresh();
81
+                    }
82 82
                     uni.hideLoading();
83 83
                     this.list = res.data.data;
84 84
                 });
85 85
         },
86 86
         getMoreList() {
87 87
             this.api
88
-                .get("/User/GetWithdrawalList", {
88
+                .get("/User/GetBillList", {
89 89
                     pageIndex: this.pageIndex,
90 90
                 })
91 91
                 .then((res) => {
@@ -99,7 +99,7 @@ export default {
99 99
         goDetail(val){
100 100
             
101 101
             this.$store.commit("common/update", {
102
-                withdrawalData: val,
102
+                billData: val,
103 103
             });
104 104
             this.router.push('/pages/wallet/detail');
105 105
         }

+ 31 - 19
src/pages/wallet/detail.vue

@@ -4,28 +4,28 @@
4 4
             <!-- <uni-steps :options="data" direction="column" :active="2"></uni-steps> -->
5 5
             <ul class="list">
6 6
                 <li>
7
-                    <span class="key">提现金额:</span>
8
-                    <span class="value">{{withdrawalData.amount}}</span>
7
+                    <span class="key">账单类型:</span>
8
+                    <span class="value">{{billData.type | type}}</span>
9 9
                 </li>
10 10
                 <li>
11
-                    <span class="key">状态:</span>
12
-                    <span class="value">{{withdrawalData.status | status}}</span>
11
+                    <span class="key">账单金额:</span>
12
+                    <span class="value">{{billData.amount / 100}}</span>
13 13
                 </li>
14 14
                 <li>
15
-                    <span class="key">申请时间:</span>
16
-                    <span class="value">{{withdrawalData.applyTime || ''}}</span>
15
+                    <span class="key">创建时间:</span>
16
+                    <span class="value">{{billData.createdTime || ''}}</span>
17 17
                 </li>
18 18
                 <li>
19 19
                     <span class="key">备注:</span>
20
-                    <span class="value remark">{{withdrawalData.remark || ''}}</span>
20
+                    <span class="value remark">{{billData.remark || ''}}</span>
21 21
                 </li>
22 22
                 <li>
23
-                    <span class="key">处理时间:</span>
24
-                    <span class="value">{{withdrawalData.auditTime || ''}}</span>
23
+                    <span class="key">状态:</span>
24
+                    <span class="value">{{billData.status || ''}}</span>
25 25
                 </li>
26 26
                 <li>
27
-                    <span class="key">打款时间:</span>
28
-                    <span class="value">{{withdrawalData.payTime || ''}}</span>
27
+                    <span class="key">结算时间:</span>
28
+                    <span class="value">{{billData.settlementTime || ''}}</span>
29 29
                 </li>
30 30
             </ul>
31 31
         </div>
@@ -51,21 +51,33 @@ export default {
51 51
             let str = obj[v];
52 52
             return str || "";
53 53
         },
54
+        type(v) {
55
+            let obj = {
56
+                1: "充值",
57
+                2: "消费",
58
+                3: "退款",
59
+                4: "收益",
60
+                5: "收益返还",
61
+                6: "提现",
62
+            };
63
+            let str = obj[v];
64
+            return str || "";
65
+        },
54 66
     },
55 67
     // 数据
56 68
     data() {
57 69
         return {
58
-            withdrawalData: {},
59
-            data: [
60
-                { title: "发起提现", desc: "2018-11-11" },
61
-                { title: "审核通过", desc: "2018-11-12" },
62
-                { title: "打款完成", desc: "2018-11-13" },
63
-                { title: "提现完成", desc: "2018-11-14" },
64
-            ],
70
+            billData: {},
71
+            // data: [
72
+            //     { title: "发起提现", desc: "2018-11-11" },
73
+            //     { title: "审核通过", desc: "2018-11-12" },
74
+            //     { title: "打款完成", desc: "2018-11-13" },
75
+            //     { title: "提现完成", desc: "2018-11-14" },
76
+            // ],
65 77
         };
66 78
     },
67 79
     onLoad() {
68
-        this.withdrawalData = this.$store.state.common.withdrawalData || {};
80
+        this.billData = this.$store.state.common.billData || {};
69 81
     },
70 82
     async onShow() {},
71 83
 

+ 35 - 14
src/pages/wallet/index.vue

@@ -49,7 +49,7 @@
49 49
                 />
50 50
             </div>
51 51
             <p class="tip tip-color" v-if="showErr">
52
-                提现金额超出总金额,请重新填写
52
+                {{errStr}}
53 53
             </p>
54 54
             <button
55 55
                 v-if="!loading && account"
@@ -61,11 +61,11 @@
61 61
             </button>
62 62
         </div>
63 63
         <div class="card record">
64
-            <h1 class="tit">提现记录</h1>
64
+            <h1 class="tit">提现记录 共{{total}}条</h1>
65 65
             <ul class="table">
66 66
                 <li class="row">
67 67
                     <div class="item">申请时间</div>
68
-                    <div class="item">备注</div>
68
+                    <div class="item">结算方式</div>
69 69
                     <div class="item">金额</div>
70 70
                     <div class="item">状态</div>
71 71
                 </li>
@@ -74,7 +74,7 @@
74 74
                         {{ item.applyTime | dateFormat("yyyy/MM/dd") }}
75 75
                     </div>
76 76
                     <div class="item">
77
-                        {{ item.remark }}
77
+                        {{ item.method | method }}
78 78
                     </div>
79 79
                     <div class="item">
80 80
                         {{ item.amount / 100 }}
@@ -116,8 +116,10 @@ export default {
116 116
             withdrawalTotal: "",
117 117
             account: null,
118 118
             balance: 0,
119
+            total:0,
119 120
             loading: false,
120 121
             showErr: false,
122
+            errStr:''
121 123
         };
122 124
     },
123 125
     filters: {
@@ -132,6 +134,13 @@ export default {
132 134
             let str = obj[v];
133 135
             return str || "";
134 136
         },
137
+        method(v){
138
+            let obj = {
139
+                1:'微信',
140
+                2:'银行卡'
141
+            }
142
+            return obj[v] || '';
143
+        }
135 144
     },
136 145
     onLoad() {},
137 146
     async onShow() {
@@ -154,6 +163,7 @@ export default {
154 163
                 this.loading = false;
155 164
                 this.account = res.data.account;
156 165
                 this.balance = res.data.balance;
166
+                this.total = res.data.total;
157 167
                 this.withdrawalList = res.data.withdrawalList.data;
158 168
             });
159 169
         },
@@ -167,21 +177,20 @@ export default {
167 177
                     "提现金额不能大于" + this.balance / 100 + "元"
168 178
                 );
169 179
             }
170
-            this.$refs.popup.open({
171
-                type: "dialog",
172
-            });
173
-        },
174
-        popupConfirm(done, value) {
175
-            if (!value) {
176
-                return this.fn.showToast("请输入提现备注");
180
+            if (this.formVal * 100 < 200) {
181
+                return this.fn.showToast(
182
+                    "提现金额不能小于2元"
183
+                );
177 184
             }
178
-            console.log(this.formVal, value);
185
+            // this.$refs.popup.open({
186
+            //     type: "dialog",
187
+            // });
179 188
             uni.showLoading({
180 189
                 title: "提交中...",
181 190
             });
182 191
             let data = {
183 192
                 amount: this.formVal * 100,
184
-                remark: value,
193
+                // remark: value,
185 194
             };
186 195
             this.api
187 196
                 .post("/User/Withdrawal", data, { pass: true })
@@ -200,14 +209,26 @@ export default {
200 209
                         });
201 210
                     }
202 211
                 });
212
+        },
213
+        popupConfirm(done, value) {
214
+            if (!value) {
215
+                return this.fn.showToast("请输入提现备注");
216
+            }
217
+            console.log(this.formVal, value);
203 218
             done();
204 219
         },
205 220
 
206 221
         valChange() {
207 222
             if (this.formVal) {
208 223
                 let val = Number(this.formVal);
209
-                if (val > this.balance/100) {
224
+                if (val > this.balance / 100) {
225
+                    this.showErr = true;
226
+                    this.errStr = '提现金额超出总金额,请重新填写'
227
+                    return;
228
+                }
229
+                if(val<2){
210 230
                     this.showErr = true;
231
+                    this.errStr = '提现金额不能小于2元,请重新填写'
211 232
                     return;
212 233
                 }
213 234
             }