|
@@ -27,7 +27,7 @@
|
|
|
<span style="margin: 0" v-else>{{ lang.KekeleboPlatform }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-if="steps == 2" style="cursor: pointer" @click="steps = 1">
|
|
|
+ <div v-if="steps == 2" style="cursor: pointer" @click="steps = 1,stuInfoCode = {}">
|
|
|
<i style="font-size: 30px" class="el-icon-back"></i>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -127,7 +127,7 @@
|
|
|
type="text"
|
|
|
:placeholder="lang.enterorgnumber"
|
|
|
v-model.trim="SuffixData"
|
|
|
- @input="getSuffix"
|
|
|
+ @input="getrandomcodeSuffix"
|
|
|
/>
|
|
|
</div>
|
|
|
<div
|
|
@@ -377,6 +377,7 @@ export default {
|
|
|
watch: {
|
|
|
loginType(newValue) {
|
|
|
if (newValue != "weChat") {
|
|
|
+ window.removeEventListener("message", this.messageHandler);
|
|
|
if (this.$refs.QRcode && this.$refs.QRcode.innerHTML) {
|
|
|
this.$refs.QRcode.innerHTML = "";
|
|
|
}
|
|
@@ -424,6 +425,26 @@ export default {
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
},
|
|
|
+ // 随机码获取组织后缀
|
|
|
+ async getrandomcodeSuffix() {
|
|
|
+ let params = [
|
|
|
+ {
|
|
|
+ functionName: API_CONFIG.ajax_getliyuanCode.functionName,
|
|
|
+ mode: this.SuffixData
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ const res = await this.$ajax.post(API_CONFIG.baseUrl, params);
|
|
|
+ let data = [...res.data[0], ...res.data[1]];
|
|
|
+ console.log('data', data);
|
|
|
+
|
|
|
+ if (data.length) {
|
|
|
+ this.orginfo = data;
|
|
|
+ this.org = this.orginfo[0].mail;
|
|
|
+ } else {
|
|
|
+ this.orginfo = [];
|
|
|
+ this.org = "";
|
|
|
+ }
|
|
|
+ },
|
|
|
// 获取组织后缀
|
|
|
async getSuffix() {
|
|
|
if (!this.SuffixData){
|