Browse Source

绑定手机号

cr 3 years ago
parent
commit
8319563a8f
2 changed files with 31 additions and 2 deletions
  1. 1 1
      src/pages/manage/index.vue
  2. 30 1
      src/pages/wallet/index.vue

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

@@ -92,7 +92,7 @@
92 92
 
93 93
         <!-- <button class="btn" @click="layout">退出登录</button> -->
94 94
 
95
-        <div class="ver">0.5.62</div>
95
+        <div class="ver">0.5.63</div>
96 96
         <wyg-bottom-tab
97 97
             ref="tabbar"
98 98
             :tabIndex="2"

+ 30 - 1
src/pages/wallet/index.vue

@@ -68,6 +68,17 @@
68 68
             >
69 69
                 申请提现
70 70
             </button>
71
+            <p class="tip orange" v-if="!loading && !bindShopWechat">
72
+                请在独立版商城绑定本账号登录手机号
73
+            </p>
74
+            <button
75
+                v-if="!loading && !bindShopWechat"
76
+                type="button"
77
+                class="btn"
78
+                @click="bindShopUser"
79
+            >
80
+                绑定商城用户
81
+            </button>
71 82
         </div>
72 83
         <div class="card record">
73 84
             <h1 class="tit">
@@ -87,7 +98,7 @@
87 98
                     <div class="item">金额</div>
88 99
                     <div class="item">状态</div>
89 100
                 </li>
90
-                <li class="row" v-for="item of withdrawalList" :key="item.id" >
101
+                <li class="row" v-for="item of withdrawalList" :key="item.id">
91 102
                     <div class="item">
92 103
                         {{ item.applyTime | dateFormat("yyyy/MM/dd") }}
93 104
                     </div>
@@ -137,6 +148,7 @@ export default {
137 148
             total: 0,
138 149
             loading: false,
139 150
             showErr: false,
151
+            bindShopWechat: false,
140 152
             errStr: "",
141 153
             deviceName: "",
142 154
             deviceInfo: "",
@@ -191,6 +203,7 @@ export default {
191 203
                 this.loading = false;
192 204
                 this.account = res.data.account;
193 205
                 this.balance = res.data.balance;
206
+                this.bindShopWechat = res.data.bindShopWechat;
194 207
                 this.total = res.data.total;
195 208
                 this.withdrawalList = res.data.withdrawalList.data;
196 209
             });
@@ -262,6 +275,17 @@ export default {
262 275
             }
263 276
             this.showErr = false;
264 277
         },
278
+
279
+        bindShopUser() {
280
+            wx.navigateToMiniProgram({
281
+                appId: "wx7d16ba51271496b8",
282
+                path: "pages/user/setting?source=helper",
283
+                envVersion: "trial",
284
+                success(res) {
285
+                    // 打开成功
286
+                },
287
+            });
288
+        },
265 289
     },
266 290
 
267 291
     // 数据计算
@@ -363,6 +387,7 @@ export default {
363 387
         background-color: rgb(0, 188, 38);
364 388
         color: #fff;
365 389
         border: none;
390
+        font-size: px(46);
366 391
     }
367 392
 }
368 393
 .record {
@@ -414,4 +439,8 @@ export default {
414 439
         color: rgb(0, 188, 38);
415 440
     }
416 441
 }
442
+.orange {
443
+    color: orange !important;
444
+    font-size: px(42) !important;
445
+}
417 446
 </style>