update
This commit is contained in:
+15
-21
@@ -3,23 +3,13 @@
|
||||
v-card.elevation-0
|
||||
v-card-title 您好!
|
||||
v-card-text
|
||||
p 門票已提供旅平險
|
||||
p 請填入您所要綁定的以太錢包地址
|
||||
br
|
||||
| 免門票的6歲以下兒童(註)
|
||||
br
|
||||
| 由社團經費統一辦理旅平險
|
||||
br
|
||||
| 註:102/11/13後出生
|
||||
br
|
||||
| 兩人以上請按順序用逗號區隔(包含兩人)
|
||||
br
|
||||
| EX:袁太飽,袁二寶,袁三寶,韋小寶
|
||||
| Enter your Ethereum address below
|
||||
v-form(@submit.prevent="submit" v-model="isValid")
|
||||
v-text-field(v-model="form.NAMESAFE" label="姓名" :rules="[requireInput]")
|
||||
v-text-field(v-model="form.TWID" label="身分證字號" :rules="[requireInput]")
|
||||
p.grey--text 註1: (民國)出生年月日
|
||||
v-text-field(v-model="form.BIRTHDAY" label="(民國)出生年月日" :rules="[requireInput]")
|
||||
v-text-field(v-model="form.SAFERemarks" label="備註")
|
||||
v-text-field(v-model="form.WalletAddress" label="錢包地址" :rules="[requireInput]")
|
||||
p.grey--text 註1: 以太網錢包地址 Ethereum address
|
||||
v-text-field(v-model="form.VerifyRemarks" label="備註")
|
||||
v-btn.airplug(type="submit" dark block depressed large :disabled="!isValid") {{ isValid ? '填好送出完成報到' : '您還沒填好喔' }}
|
||||
</template>
|
||||
<script lang="ts">
|
||||
@@ -33,23 +23,27 @@ export default class Home extends Vue {
|
||||
isValid = true;
|
||||
|
||||
form = {
|
||||
NAMESAFE: "",
|
||||
TWID: "",
|
||||
BIRTHDAY: "",
|
||||
SAFERemarks: "",
|
||||
LINEUserID: ""
|
||||
WalletAddress: "",
|
||||
VerifyRemarks: "",
|
||||
LINEUserID: "",
|
||||
LINEdisplayName: "",
|
||||
LINEpictureUrl: "",
|
||||
LINEstatusMessage: ""
|
||||
};
|
||||
|
||||
liff: any;
|
||||
|
||||
async mounted() {
|
||||
const liffId = "1654797836-joLdA2Rl";
|
||||
const liffId = "1657251293-4DpLENpm";
|
||||
const liff = (this.liff = await initLIFF(liffId));
|
||||
if (!liff.isLoggedIn()) {
|
||||
liff.login();
|
||||
} else {
|
||||
const profile = await liff.getProfile();
|
||||
this.form.LINEUserID = profile.userId;
|
||||
this.form.LINEdisplayName = profile.displayName;
|
||||
this.form.LINEpictureUrl = profile.pictureUrl;
|
||||
this.form.LINEstatusMessage = profile.statusMessage;
|
||||
this.autofill(profile.userId);
|
||||
console.log(this.form);
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import querystring from 'querystring'
|
||||
import { IForm } from '~/models/submit'
|
||||
|
||||
const ENDPOINT = "https://json_2series.digitalent.tw/users"
|
||||
const ENDPOINT2 = "https://nodered.digitalent.tw/20201114safe"
|
||||
const ENDPOINT = "https://api.contree.io/profile"
|
||||
const ENDPOINT2 = "https://nodered.contree.io/contree_push"
|
||||
|
||||
export default {
|
||||
template: '<p>OK</p>',
|
||||
|
||||
Reference in New Issue
Block a user