Skip to content

Commit

Permalink
disable refer field
Browse files Browse the repository at this point in the history
  • Loading branch information
DARREN-ZHANG committed Sep 25, 2019
1 parent 883206a commit a013372
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
</v-text-field>

<v-text-field
:disabled="!refererDisabled"
id="refer"
v-model="referer"
:label="form_label.refer"
Expand Down Expand Up @@ -417,6 +418,7 @@
tutorial: 'https://bbb2019.zendesk.com/hc/zh-cn/articles/360033801811-BBB-%E6%95%99%E7%A8%8B',
downloadLink: 'https://app.cybex.io/MobileAPP/BBB_release.apk',
dialog: false,
refererDisabled: false,
// nameRules: [
// value => !!value || validation.account_required,
Expand Down Expand Up @@ -613,6 +615,9 @@
const url_string = window.location.href;
const url = new URL(url_string);
this.referer = url.searchParams.get("id");
if(this.referrer !== ""){
this.refererDisabled = true;
}
await this.refreshCaptcha();
}
}
Expand Down

0 comments on commit a013372

Please sign in to comment.