|
@@ -40,7 +40,7 @@
|
|
|
<el-dialog :visible.sync="wxDialog" title="绑定微信" width="30%" center :destroy-on-close="true">
|
|
|
<el-row type="flex" justify="center">
|
|
|
<el-col :span="24" style="text-align:center">
|
|
|
- <qrcode exchange="qrcode.bind" :uri="qrUri" :config="config" :qrcode="qrcode" @toReturn="toReturn"></qrcode>
|
|
|
+ <qrcode exchange="qrcode.bind" v-if="qrUri" :uri="qrUri" :config="config" :qrcode="qrcode" @toReturn="toReturn"></qrcode>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-dialog>
|
|
@@ -124,6 +124,7 @@ export default {
|
|
|
user_id = localuser.id;
|
|
|
}
|
|
|
}
|
|
|
+ console.log(user_id);
|
|
|
let uri = `/api/train/auth?redirect_uri=${Vue.config.weixin.target}/confirm?uid=${user_id}&type=1&qrcode=${res}`;
|
|
|
this.$set(this, `qrUri`, uri);
|
|
|
this.wxDialog = true;
|