26117ad8 by joe

部分修改备份

1 parent dac7f686
......@@ -400,6 +400,11 @@ textarea {
}
}
.flex-center {
display: flex;
justify-content: center
}
@media (max-width: 1200px) {
.page-index {
.video-js {
......
......@@ -58,8 +58,7 @@ module.exports = {
},
navList: [{
name: "Products",
path: "",
value: "gotoVHIS",
path: "/empty",
list: [{
name: "VHIS",
path: "",
......@@ -386,7 +385,7 @@ module.exports = {
contactTime: "Preferred Contact Date",
notice1: "The personal data collected in this form is processed in accordance with Ping An Life Insurance Company of China (HK), Ltd Personal Information Collection Statement and will only be used to contact you. However, the personal data collected will not be transferred to third-party organizations other than those specified in the \"Ping An Life Insurance Company of China (HK), Ltd Personal Data Collection Statement\" without your explicit authorization. You can choose not to provide us with the required personal information, but this may prevent us from contacting you. You can also access and correct your personal data in accordance with Ping An Life Insurance Company of China (HK), Ltd Personal Data Collection Statement。",
notice2: "I hereby confirm that I understand and agree that my personal data will be used for the above purposes in accordance with the Ping An Life Insurance Company of China (HK) Personal Data Collection Statement.",
contactTypes: [{ name: 'Mobile', value: 1 }, { name: 'Email', value: 2 }],
contactTypes: [{ name: 'Mobile', value: 1, show: "Mobile", icon: "mobile" }, { name: 'Email', value: 2, show: "Email", icon: "email" }],
errorTips: {
e1: "Please fill in this item",
e2: "Please fill in the correct contact information"
......@@ -519,7 +518,7 @@ module.exports = {
]
},
policyChangeGuide: {
notice: "If you need to modify please",
noticeLink: "contact customer service",
head1: "Item",
......@@ -769,10 +768,10 @@ module.exports = {
per: "page",
page: ""
},
newsDetail : {
back : "Back",
publishAt : "Publish time",
readers : "Number of reader",
per : ""
newsDetail: {
back: "Back",
publishAt: "Publish time",
readers: "Number of reader",
per: ""
}
}
......
......@@ -58,8 +58,7 @@ module.exports = {
},
navList: [{
name: "产品介绍",
path: "",
value: "gotoVHIS",
path: "/empty",
list: [{
name: "自愿医保基本计划",
path: "",
......@@ -259,7 +258,7 @@ module.exports = {
type1: {
title: "密码找回",
t1: "用户输入信息",
t1Placeholder: "手机号/证件号",
t1Placeholder: "手机号/一账通用户名/证件号",
submit: "确认",
error: "您的手机号或证件号输入错误,请核对后重新输入",
},
......@@ -385,7 +384,7 @@ module.exports = {
contactTime: "期望联络时间",
notice1: "本表格所收集的个人资料根据「平安人寿香港个人资料收集声明」处理及只会被用作于联络 阁下之用。然而所收集的个人资料未经您明确授权将不会转移至「平安人寿香港个人资料收集声明」列明以外之第三者机构。您可选择不向我们提供所需的个人资料,惟这样可能导致我们不能联络您。您亦可根据「平安人寿香港个人资料收集声明」之权利查阅及更正个人资料。",
notice2: "本人现确认明白并同意本人的个人资料根据中银人寿个人资料收集声明作以上述用途。",
contactTypes: [{ name: '电话', value: 1 }, { name: '电邮', value: 2 }],
contactTypes: [{ name: '电话', value: 1, show: "联络电话", icon: "mobile" }, { name: '电邮', value: 2,show: "电邮地址", icon: "email" }],
errorTips: {
e1: "请填写该项内容",
e2: "请填写正确的联系方式"
......@@ -698,8 +697,8 @@ module.exports = {
menu7: "投诉受理",
menu8: "常用表格",
insuranceQuery: {
modify : "修改",
modify: "修改",
InsurantNumber: "保单号码",
Insurant: "受保人",
InsurantName: "险种名称",
......@@ -753,6 +752,23 @@ module.exports = {
customService: "联系客服",
},
unauth: {
m1: {
tit: "如需查询保单请投保人",
or: "/",
tail: "平安一账通账户"
},
m2: {
tit: "如需变更保单请投保人",
or: "/",
tail: "平安一账通账户"
},
m3: {
tit: "如您有平安一账通账户,可帮助我们更好地为您提供服务,",
or: "/",
tail: ""
},
tips: "如您有平安一账通账户,可帮助我们更好地为您提供服务",
or: "或",
login: "登录",
......@@ -768,10 +784,10 @@ module.exports = {
per: "第",
page: "页"
},
newsDetail : {
back : "回到列表页",
publishAt : "发布时间",
readers : "阅读人数",
per : "人"
newsDetail: {
back: "回到列表页",
publishAt: "发布时间",
readers: "阅读人数",
per: "人"
}
}
......
......@@ -127,6 +127,9 @@ export default {
showLogoutTip() {
// 登出后的提示
// alert("登出成功");
},
updateTitle(name) {
this.sTitle = name || this.sTitle;
}
},
computed: {
......
......@@ -27,7 +27,7 @@
<div @click="toPage('empty')" class="n-item">{{$t('footer.joinUs')}}</div>
</div>
<div class="nav-v">
<div class="n-item">{{$t('footer.helpCenter')}}</div>
<div @click="toPage('empty')" class="n-item">{{$t('footer.helpCenter')}}</div>
<div @click="toPage('privacy')" class="n-item">{{$t('footer.privacy')}}</div>
<div @click="toPage('terms')" class="n-item">{{$t('footer.terms')}}</div>
<div @click="toPage('personalDataCollection')" class="n-item">{{$t('footer.protocol')}}</div>
......
......@@ -106,6 +106,7 @@ export default {
}
menuData.list = list;
this.$set(this, 'loginData', menuData);
// console.log(this.userInfo);
}
},
beforeDestroy() {
......
......@@ -13,7 +13,7 @@
<img @click="onShowDropdown('nav')" v-if="!dropdownMVisible" src="@/assets/images/home/mobile-nav.png" alt="">
<img @click="onShowDropdown('')" v-else src="@/assets/images/home/mobile-nav-close.png" alt="">
</div>
<m-dropdown class="lang" :type="'nav'" :visible="dropdownMVisible" :show-dropdown-m="onShowDropdown" :lang-list="langData.list"></m-dropdown>
<m-dropdown class="lang" :type="'nav'" :visible="dropdownMVisible" :show-dropdown-m="onShowDropdown" :lang-list="langData.list" ref="pcMenu"></m-dropdown>
<m-dropdown class="lang" :type="'login'" :visible="loginMVisible" :show-dropdown-m="onShowDropdown"></m-dropdown>
</div>
......@@ -26,7 +26,7 @@
<div class="nav-item search">
</div>
<div class="nav-item auth">
<v-dropdown class="lang" :type="'login'" :data-obj="loginData" :data-list="loginData.list"></v-dropdown>
<v-dropdown class="lang" :type="'login'" :data-obj="loginData" :data-list="loginData.list" ref="mobileMenu"></v-dropdown>
<v-dropdown class="lang" :type="'lang'" :data-obj="langData" :data-list="langData.list"></v-dropdown>
</div>
</div>
......
......@@ -9,6 +9,9 @@ import { contactMethodCheck } from '@utils/utils.js';
import Auth from '@components/auth/auth.vue';
import modalComp from '@/components/modal-comp/modal-comp.vue';
import DatePicker from '@/components/date-picker/date-picker.vue'
import Vue from 'vue';
import { Loading } from 'vant';
Vue.use(Loading);
export default {
data() {
......@@ -16,6 +19,7 @@ export default {
key: 'value',
isHkCus: true,
checked: false,
contactIconShow: "",
contactTypeShow: "",
data: {
name: "",
......@@ -69,7 +73,8 @@ export default {
},
initData() {
this.data.contactType = this.contactTypes[0].value;
this.contactTypeShow = this.contactTypes[0].name;
this.contactTypeShow = this.contactTypes[0].show;
this.contactIconShow = this.contactTypes[0].icon;
},
submitHandler() {
if (!this.checked || this.isSubmit) {
......@@ -170,6 +175,8 @@ export default {
'data.contactType': function (val) {
this.errorTips.contactTypeErr = "";
this.contactTypeShow = this.contactTypes[val - 1].name;
this.contactTypeShow = this.contactTypes[val - 1].show;
this.contactIconShow = this.contactTypes[val - 1].icon;
},
'data.contactMethod': function () {
this.errorTips.contactMethodErr = "";
......
......@@ -35,7 +35,10 @@
<div class="form-item flex1">
<div class="label">
<div class="icon"><img src="@/assets/images/complaint-acceptance/icon-ca-mail.png"></div>{{contactTypeShow}}
<div class="icon">
<img v-if="contactIconShow == 'email'" src="@/assets/images/complaint-acceptance/icon-ca-mail.png">
<img v-else src="@/assets/images/contact-us/icon-cs-call.png">
</div>{{contactTypeShow}}
</div>
<div class="ipt-wrap">
<input class="ipt mail-ipt" type="text" :class="{err : errorTips.contactMethodErr.length > 0}" v-model="data.contactMethod">
......@@ -108,8 +111,9 @@
</div>
<!-- 提交按钮 -->
<div class="submit-btn" @click="submitHandler" :class="{disabled:!checked}">
{{$t('reservation.submitBtn')}}
<div class="submit-btn flex-center" @click="submitHandler" :class="{disabled:!checked}">
<van-loading v-if="isSubmit" />
<span>{{$t('reservation.submitBtn')}}</span>
</div>
</div>
</div>
......
......@@ -57,7 +57,7 @@ export default {
return "港币";
}
},
toModifyPage(type) {
toModifyPage(type, toContact) {
// 1=受保人;2=投保人
if (!this.policy || !this.dataForm) {
return;
......@@ -65,9 +65,13 @@ export default {
let data = encodeURIComponent(JSON.stringify({ id: this.policy.policyId, code: this.policy.policyCode }));
sessionStorage.setItem("_hklife_policy", data);
if (type == 1) {
this.$router.push({ path: "/custom/service", query: { q: "m43", u: 1 } });
} else {
this.$router.push({ path: "/custom/service", query: { q: "m43", u: 2 } });
} else {
if (1 == toContact) {
this.$router.push({ path: "/custom/service", query: { q: "m42" } });
} else {
this.$router.push({ path: "/custom/service", query: { q: "m43", u: 1 } });
}
}
},
userLogout() {
......
......@@ -98,24 +98,24 @@
<div class="separator-h"></div>
<div class="data-line">
<div class="cell1">
<div class="label">{{$t('customService.insuranceQuery.t3n5')}}<span @click="toModifyPage(2)">{{$t('customService.insuranceQuery.modify')}}</span></div>
<div class="label">{{$t('customService.insuranceQuery.t3n5')}}<span @click="toModifyPage(2,1)">{{$t('customService.insuranceQuery.modify')}}</span></div>
<div class="label">{{dataForm.clientLivingAddress}}</div>
</div>
<div class="separator-v"></div>
<div class="cell1">
<div class="label">{{$t('customService.insuranceQuery.t3n6')}}<span @click="toModifyPage(2)">{{$t('customService.insuranceQuery.modify')}}</span></div>
<div class="label">{{$t('customService.insuranceQuery.t3n6')}}<span @click="toModifyPage(2,1)">{{$t('customService.insuranceQuery.modify')}}</span></div>
<div class="label">{{dataForm.clientContactAddress}}</div>
</div>
</div>
<div class="separator-h"></div>
<div class="data-line">
<div class="cell1">
<div class="label">{{$t('customService.insuranceQuery.t3n7')}}<span @click="toModifyPage(2)">{{$t('customService.insuranceQuery.modify')}}</span></div>
<div class="label">{{$t('customService.insuranceQuery.t3n7')}}<span @click="toModifyPage(2,1)">{{$t('customService.insuranceQuery.modify')}}</span></div>
<div class="label">{{dataForm.clientMobileNo}}</div>
</div>
<div class="separator-v"></div>
<div class="cell1">
<div class="label">{{$t('customService.insuranceQuery.t3n8')}}<span @click="toModifyPage(2)">{{$t('customService.insuranceQuery.modify')}}</span></div>
<div class="label">{{$t('customService.insuranceQuery.t3n8')}}<span @click="toModifyPage(2,1)">{{$t('customService.insuranceQuery.modify')}}</span></div>
<div class="label">{{dataForm.clientEmail}}</div>
</div>
</div>
......
......@@ -9,6 +9,9 @@ import { contactMethodCheck } from '@utils/utils.js';
import Auth from '@components/auth/auth.vue';
import modalComp from '@/components/modal-comp/modal-comp.vue';
import PolicyHeadList from "./policy-head-list.vue";
import Vue from 'vue';
import { Loading } from 'vant';
Vue.use(Loading);
export default {
data() {
......
......@@ -58,8 +58,9 @@
</div>
</div>
</div>
<div class="submit-btn" @click="updateContactsHandler" :class="{disabled: submitBtnDisabled}">
{{$t("policyChangeContact.submit")}}
<div class="submit-btn flex-center" @click="updateContactsHandler" :class="{disabled: submitBtnDisabled}">
<van-loading v-if="loading" />
<span>{{$t('policyChangeContact.submit')}}</span>
</div>
</div>
<!-- <div v-else style="height:400px"></div> -->
......
......@@ -9,6 +9,9 @@ import PolicyHeadList from "./policy-head-list.vue";
import DatePicker from '@/components/date-picker/date-picker.vue'
import modalComp from '@/components/modal-comp/modal-comp.vue';
import modalUploadCardComp from '@/components/modal-upload-card-comp/modal-upload-card-comp.vue';
import Vue from 'vue';
import { Loading } from 'vant';
Vue.use(Loading);
export default {
data() {
......
......@@ -145,8 +145,9 @@
</div>
<div class="submit-btn" @click="handleUpdatePolicy">
{{$t("policyChangeInformation.submit")}}
<div class="submit-btn flex-center" @click="handleUpdatePolicy">
<van-loading v-if="loading" />
<span>{{$t('policyChangeInformation.submit')}}</span>
</div>
</div>
</div>
......
......@@ -9,6 +9,9 @@ import { contactMethodCheck } from '@utils/utils.js';
import DatePicker from '@/components/date-picker/date-picker.vue';
import Auth from '@components/auth/auth.vue';
import modalComp from '@/components/modal-comp/modal-comp.vue';
import Vue from 'vue';
import { Loading } from 'vant';
Vue.use(Loading);
export default {
data() {
......
......@@ -111,8 +111,9 @@
</p>
</div>
<div class="submit-btn" :class="{disabled : !checked}" @click="submitHandler">
{{$t('reservation.submitBtn')}}
<div class="submit-btn flex-center" :class="{disabled : !checked}" @click="submitHandler">
<van-loading v-if="isSubmit" />
<span>{{$t('reservation.submitBtn')}}</span>
</div>
</div>
</div>
......
......@@ -10,6 +10,7 @@ import {
httpPost
} from '@/api/fetch-api.js'
import { contactMethodCheck } from '@utils/utils.js';
import modalComp from '@/components/modal-comp/modal-comp.vue';
......@@ -18,6 +19,10 @@ import modalUploadCardComp from '@/components/modal-upload-card-comp/modal-uploa
import {
passwordEncrypt
} from '@/utils/encrypt.js';
import Vue from 'vue';
import { Loading } from 'vant';
Vue.use(Loading);
export default {
......@@ -45,10 +50,10 @@ export default {
loginForm: {
// userId: "18334783910",
// password: "qweqwe123",
userId: "18145729463",
password: "ccc123!@#",
// userId: "",
// password: "",
// userId: "18145729463",
// password: "ccc123!@#",
userId: "",
password: "",
imageValue: "",
mobileNo: "",
......@@ -149,7 +154,13 @@ export default {
onLoginTypeHandler(val) {
this.type = val;
},
initData() { },
initData() {
if (this.userInfo && (this.userInfo.sid || this.userInfo.name)) {
this.$router.push({
path: "/"
});
}
},
handlerIsShowImageVcode() {
return new Promise((resolve, reject) => {
httpPost({
......@@ -541,6 +552,7 @@ export default {
},
},
mounted() {
this.initData();
// console.log("PK === ", this.PK)
// console.log("E === ", this.E)
},
......
......@@ -62,7 +62,10 @@
<img v-if="loginCheck.agreeProtocol" class="check" src="@/assets/images/login/check.png">{{$t('login.agree')}}
&nbsp;<span @click="onProtocolHandler()" class="protocol pointer">{{$t('login.protocol')}}</span>
</div>
<div @click="handlerLogin()" class="login-submit pointer" :class="{disabled: pwdLoginDisabled}">{{$t('login.login')}}</div>
<div @click="handlerLogin()" class="login-submit pointer flex-center" :class="{disabled: pwdLoginDisabled}">
<van-loading v-if="loading" />
<span>{{$t('login.login')}}</span>
</div>
<div class="login-func">
<div @click="toRegisterPage()" class="login-func-btn pointer">{{$t('login.register')}}</div>
<div @click="onForgetHandler()" class="login-func-btn pointer">{{$t('login.forget')}}</div>
......@@ -125,7 +128,10 @@
<img v-if="loginCheck.agreeProtocol" class="check" src="@/assets/images/login/check.png"> {{$t('login.agree')}}
&nbsp;<span @click="onProtocolHandler()" class="protocol pointer">{{$t('login.protocol')}}</span>
</div>
<div @click="handlerLogin()" class="login-submit pointer" :class="{disabled: otpLoginDisabled}">{{$t('login.login')}}</div>
<div @click="handlerLogin()" class="login-submit pointer flex-center" :class="{disabled: otpLoginDisabled}">
<van-loading v-if="loading" />
<span>{{$t('login.login')}}</span>
</div>
<div class="login-func">
<div @click="toRegisterPage()" class="login-func-btn pointer">{{$t('login.register')}}</div>
<div @click="onForgetHandler()" class="login-func-btn pointer">{{$t('login.forget')}}</div>
......@@ -163,7 +169,10 @@
</div>
</div>
</div>
<div @click="onRegisterHandler()" class="login-submit pointer">{{$t('register.sure')}}</div>
<div @click="onRegisterHandler()" class="login-submit pointer flex-center">
<van-loading v-if="loading" />
<span>{{$t('register.sure')}}</span>
</div>
</div>
</div>
</div>
......
import { mapState } from "vuex";
import api from '@/api/api'
import {
httpGet,
......@@ -5,6 +6,7 @@ import {
} from '@/api/fetch-api.js'
import { getDateYMD } from "@/utils/biz.js";
import { setTitle } from "@/utils/utils.js";
export default {
data() {
......@@ -33,7 +35,6 @@ export default {
this.$router.go(-1);
},
initData() {
console.log(this.$route);
let c = this.$route.query.c;
let l = this.$i18n.locale;
let params = {
......@@ -49,6 +50,10 @@ export default {
this.data.content = res.content;
this.data.dateFormat = getDateYMD(res.createAt);
this.data.pv = res.pv;
if (this.data.title) {
setTitle(this.data.title);
}
});
}
},
......
......@@ -7,6 +7,9 @@ import {
import modalComp from '@/components/modal-comp/modal-comp.vue';
import modalSimpleComp from '@/components/modal-simple-comp/modal-simple-comp.vue';
import { passwordEncrypt } from '@/utils/encrypt.js';
import Vue from 'vue';
import { Loading } from 'vant';
Vue.use(Loading);
export default {
data() {
......
......@@ -100,7 +100,10 @@
</div>
</div>
</div>
<div @click="resetPwd()" class="login-submit pointer" :class="{disabled: s4BtnDisabled}">{{$t('passwordReset.type4.submit')}}</div>
<div @click="resetPwd()" class="login-submit pointer flex-center" :class="{disabled: s4BtnDisabled}">
<van-loading v-if="loading" />
<span>{{$t('passwordReset.type4.submit')}}</span>
</div>
</div>
</div>
</div>
......
......@@ -11,10 +11,14 @@ import Auth from '@components/auth/auth.vue';
import modalComp from '@/components/modal-comp/modal-comp.vue';
import modalSimpleComp from '@/components/modal-simple-comp/modal-simple-comp.vue';
import { passwordEncrypt } from '@/utils/encrypt.js';
import Vue from 'vue';
import { Loading } from 'vant';
Vue.use(Loading);
export default {
data() {
return {
loading : false,
showForm: false,
key: 'value',
type: 1, // 1:输入用户信息 2:找回密码 3:核对信息 4.重置密码
......@@ -81,6 +85,11 @@ export default {
let newPwd = passwordEncrypt(this.values.pwd);
let oldPwd = passwordEncrypt(this.values.oldPwd);
if(this.loading){
return;
}
this.loading = true;
httpPost({
url: api.changePassword,
data: {
......@@ -89,6 +98,7 @@ export default {
},
sid: true
}).then(response => {
this.loading = false;
this.targetPath = "";
let message = this.i18n().passwordCheck.success;
switch (response.returnCode) {
......@@ -107,6 +117,7 @@ export default {
}
}).catch(err => {
this.loading = false;
let message = this.i18n().session.sidExpire;
this.targetPath = "/login?callback=/password/reset";
this.showModal(message, "info");
......@@ -168,7 +179,9 @@ export default {
return b1 || b2 || b3;
}
},
mounted() { },
mounted() {
// this.showModal("success", "succ");
},
created() { },
components: {
modalComp,
......
......@@ -49,7 +49,10 @@
</div>
</div>
</div>
<div @click="resetPwd()" class="login-submit pointer" :class="{disabled: submitBtnDisabled}">{{$t('passwordReset.type4.submit')}}</div>
<div @click="resetPwd()" class="login-submit pointer flex-center" :class="{disabled: submitBtnDisabled}">
<van-loading v-if="loading" />
<span>{{$t('passwordReset.type4.submit')}}</span>
</div>
</template>
</div>
</div>
......
......@@ -7,13 +7,22 @@ import {
export default {
data() {
return {
key: 'value'
key: 'value',
title: "",
content: "",
}
},
components: {},
methods: {
initData() {}
initData() {
httpGet({ url: api.companyOutline, data: { l: this.$i18n.locale } }).then(res => {
this.content = res.content;
this.title = res.title;
});
}
},
mounted() {
this.initData();
},
mounted() {},
created() {}
created() { }
}
......
......@@ -2,6 +2,14 @@
<template>
<div class="content">
<div>
<div class="top-space"></div>
<h2 class="tit">{{title}}</h2>
<div class="box desc" v-html="content">
</div>
</div>
<!--
<div v-if="$i18n.locale == 'zh'">
<div class="top-space"></div>
<h2 class="tit">公司简介</h2>
......@@ -34,7 +42,7 @@
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Ping an life regards charity culture as the corporate culture of the company, adheres to the concept of "benevolence and great cause", and regards "the most respected company" as its vision. One hundred years of good karma, responsibility first. Ping an life always nurtures the society with gratitude, takes corporate social responsibility as the driving force for the sustainable development of the company, focuses on "charity" culture, and promotes "great love and responsibility". We will focus on creating a better tomorrow by launching the "new life campaign" with "walking briskly" and "reading" as the main body, as well as public welfare undertakings such as education, poverty alleviation, environment and disaster relief.
</div>
</div>
-->
</div>
</template>
......
import { mapState } from "vuex";
import api from '@/api/api'
import {
httpGet,
......@@ -9,12 +11,16 @@ import { contactMethodCheck } from '@utils/utils.js';
import modalComp from '@/components/modal-comp/modal-comp.vue';
import modalSimpleComp from '@/components/modal-simple-comp/modal-simple-comp.vue';
import { passwordEncrypt } from '@/utils/encrypt.js';
import Vue from 'vue';
import { Loading } from 'vant';
Vue.use(Loading);
export default {
data() {
return {
loading: false,
key: 'value',
type: 2, // 1:手机验证 2:输入密码
type: 1, // 1:手机验证 2:输入密码
mobileNoType: "hk",// 选择的手机好类型
mobileTip: {},
mobileOptions: [],
......@@ -62,6 +68,9 @@ export default {
modalSimpleComp
},
computed: {
...mapState({
userInfo: state => state.userInfo
}),
locale() {
return this.$i18n.locale || 'tc';
},
......@@ -327,7 +336,7 @@ export default {
// this.showModal(msg, "info");
// let message = this.i18n.register.tips.e5;
this.errorTips.p2 = msg;
// alert(msg);
},
onRegisterHandler() {
......@@ -341,16 +350,20 @@ export default {
mobileNo: this.registerForm.mobileNo,
loginPwd: passwordEncrypt(this.values.password)
};
this.loading = true;
httpPost({
url: api.stdRegister,
data: data
}).then(response => {
this.loading = false;
if (response.returnCode != 0) {
this._showRegisterFailure(response);
this.type = 1;
} else {
this._showSuccessMessage();
}
}).catch(e => {
this.loading = false;
})
}
},
......@@ -450,6 +463,12 @@ export default {
},
initData() {
if (this.userInfo && (this.userInfo.sid || this.userInfo.name)) {
this.$router.push({
path: "/"
});
return;
}
let i18n = this.$i18n.messages[this.$i18n.locale] || {};
let mobileOptions = JSON.parse(JSON.stringify(i18n.register.mobileOptions));
this.mobileOptions = mobileOptions;
......
......@@ -107,7 +107,10 @@
</div>
</div>
</div>
<div @click="onRegisterHandler()" class="login-submit pointer" :class="{disabled: submitDisabled}">{{$t('register.sure')}}</div>
<div @click="onRegisterHandler()" class="login-submit pointer flex-center" :class="{disabled: submitDisabled}">
<van-loading v-if="loading" />
<span>{{$t('register.sure')}}</span>
</div>
</div>
</div>
</div>
......
......@@ -256,11 +256,13 @@ export function throttle(func, wait, type) {
*/
export function contactMethodCheck(type, value) {
if (type == 'hkmobile') {
return /^[5689]{1}\d{7}$/.test(value);
// return /^[5689]{1}\d{7}$/.test(value);
return /^\d{8}$/.test(value);
}
if (type == 'mobile') {
return /^((13[0-9])|(14[5,7,9])|(15([0-3]|[5-9]))|(166)|(17[0-9])|(18[0-9])|(19[0-9]))\d{8}$/.test(value);
// return /^((13[0-9])|(14[5,7,9])|(15([0-3]|[5-9]))|(166)|(17[0-9])|(18[0-9])|(19[0-9]))\d{8}$/.test(value);
return /^1\d{10}$/.test(value);
}
if (type == 'email') {
......