|
@@ -24,7 +24,7 @@
|
|
|
<el-step title="提现申请成功"></el-step>
|
|
|
</el-steps>
|
|
|
<div class="step-code-box" v-if="active == 1">
|
|
|
- <vue-qr text="modelData.cardCode.name" :size="200"></vue-qr>
|
|
|
+ <vue-qr :text="wxCodeUrl" :size="200"></vue-qr>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -39,6 +39,7 @@
|
|
|
|
|
|
<script>
|
|
|
import vueQr from "vue-qr";
|
|
|
+import { getWxCodeUrl } from "@/api/salesman/commission";
|
|
|
import { checkBindGzh, withdrawal } from "@/api/salesman/user";
|
|
|
export default {
|
|
|
props: {
|
|
@@ -91,6 +92,7 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
active: 2,
|
|
|
+ wxCodeUrl: "",
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -126,6 +128,9 @@ export default {
|
|
|
checkBindGzh() {
|
|
|
return checkBindGzh().then((res) => {
|
|
|
this.active = res.data ? 2 : 1;
|
|
|
+ if (this.active == 1) {
|
|
|
+ this.getWxCodeUrl();
|
|
|
+ }
|
|
|
return Promise.resolve();
|
|
|
});
|
|
|
},
|
|
@@ -143,6 +148,11 @@ export default {
|
|
|
temp = temp.replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3"); //只能输入两个小数
|
|
|
this.form[key] = temp;
|
|
|
},
|
|
|
+ getWxCodeUrl() {
|
|
|
+ getWxCodeUrl().then((res) => {
|
|
|
+ this.wxCodeUrl = res.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
isShow: {
|