fab542fb by simon

默认提交

1 parent fe6170b4
......@@ -164,6 +164,7 @@ module.exports = {
contactInformation: "Contact Method",
service: "Service Network",
qrcode: "Official Accounts",
qrcodeBot: "Official WeChat Account",
copyright: "版權所有 © 中國平安保險(集團)股份有限公司未經許可不得復制、轉載或摘編,違者必究!"
},
login: {
......
......@@ -166,6 +166,7 @@ module.exports = {
contactInformation: "聯絡方式",
service: "服務網絡",
qrcode: "社交媒體",
qrcodeBot: "官方公眾號",
copyright: "版權所有 © 中國平安保險(集團)股份有限公司未經許可不得復制、轉載或摘編,違者必究!"
},
login: {
......
......@@ -166,6 +166,7 @@ module.exports = {
contactInformation: "联系方式",
service: "服务网络",
qrcode: "社交媒体",
qrcodeBot: "官方公众号",
copyright: "版权所有 © 中国平安保险(集团)股份有限公司未经许可不得复制、转载或摘编,违者必究!"
},
login: {
......
......@@ -54,8 +54,12 @@ export default {
readonly: {
type: Boolean,
default: false
}
},
// 校验日期是否合法
check: {
type: Function,
default: null
},
},
data() {
return {
......@@ -353,6 +357,31 @@ export default {
}
this.dateValue = `${year}-${month}-${date}`;
},
/**
* 校验并返回日期
* {
* dateValue:yyyy-MM-dd,
* disable:boolean true:不可用 , false,当前日期可用
* }
*/
checkDateValue() {
if (this.check) {
let disable = false;
let dateValue = this.dateValue;
let fortmatMonthData = this.fortmatMonthData;
fortmatMonthData.forEach((element, idx) => {
let curDate = `${element.year}-${element.month}-${element.date}`;
if (curDate == dateValue && element.disable == true) {
disable = true;
}
});
let result = {
dateValue: this.dateValue,
disable: disable
}
this.check(result);
}
},
initData() {
// 设置今天日期
let isInit = false;
......@@ -396,7 +425,7 @@ export default {
}
this.formatDate();
},
judgeLastDateValidate(val){
judgeLastDateValidate(val) {
}
},
......@@ -409,8 +438,9 @@ export default {
this.dateValue = val;
this.initData();
},
dateValue(val,oldVal) {
this.$emit('input', val)
dateValue(val, oldVal) {
this.checkDateValue();
this.$emit('input', val);
}
}
}
......
......@@ -14,6 +14,12 @@ export default {
},
components: {},
methods: {
onOverHandler(event) {
this.qrcodeVisible = true;
},
onOutHandler(event) {
this.qrcodeVisible = false;
},
toPage(name) {
document.documentElement.scrollTop = 0;
document.body.scrollTop = 0;
......@@ -21,7 +27,7 @@ export default {
name: name
})
},
toPath(path){
toPath(path) {
document.documentElement.scrollTop = 0;
document.body.scrollTop = 0;
this.$router.push({
......
......@@ -76,13 +76,13 @@
.qrcode-wrap {
text-align: center;
// position: absolute;
// top: 2rem;
margin-top: 0.3rem;
.qrcode {
width: 8.416667rem;
height: 8.833333rem;
.qrcode {}
}
.c1 {
margin-top: 0.3rem;
......
......@@ -4,7 +4,7 @@
<div class="footer-containter ">
<div class="cont">
<div class="logo-wrap">
<img class="logo-img" src="@/assets/images/home/footer-logo.png" alt="中国平安人寿保险">
<img class="logo-img" src="@/assets/images/home/footer-logo.png">
</div>
<div class="line"></div>
<!-- 信息 -->
......@@ -51,15 +51,14 @@
<div class="public">
<div class="tit">{{$t('footer.qrcode')}}</div>
<div @click="qrcodeVisible = !qrcodeVisible" v-if="qrcodeVisible" class="qrcode-wrap">
<img src="@/assets/images/home/qrcode.png" alt="">
<div class="c1">官方公眾號</div>
<img @mouseout="onOutHandler($event)" src="@/assets/images/home/qrcode.png" alt="">
<div class="c1">{{$t('footer.qrcodeBot')}}</div>
</div>
<template v-else>
<img @click="qrcodeVisible = !qrcodeVisible" class="icon pointer" src="@/assets/images/home/footer-icon-1.png" alt="">
<img @click="qrcodeVisible = !qrcodeVisible" @mouseover="onOverHandler($event)" @mouseout="onOutHandler($event)" class="icon pointer" src="@/assets/images/home/footer-icon-1.png" alt="">
<img class="icon pointer" src="@/assets/images/home/footer-icon-2.png" alt="">
<img class="icon pointer" src="@/assets/images/home/footer-icon-3.png" alt="">
</template>
</div>
</div>
......
......@@ -74,6 +74,10 @@ export default {
}
},
methods: {
// 校验日期,日期变更后触发,包含点击和文本输入
checkDate(data){
console.log("checkDate data:", data);
},
showModal(content, icon) {
icon = !icon || typeof icon === "undefined" ? "succ" : icon;
this.modalIcon = icon;
......
......@@ -84,7 +84,7 @@
</div>
<div class="ipt-wrap">
<!-- <input class="ipt" type="date" v-model="data.contactDate" :class="{err : errorTips.e7.length > 0}"> -->
<date-picker v-model="data.contactDate"></date-picker>
<date-picker v-model="data.contactDate" :check="checkDate"></date-picker>
</div>
<div class="validator" v-if="errorTips.e7.length > 0">
<img src="@/assets/images/common/icon-notice.png" alt="">{{errorTips.e7}}
......@@ -110,8 +110,7 @@
<img v-else class="notice-item-icon" src="@/assets/images/reservation/check.png"> -->
<img v-if="!checked" class="notice-item-icon" src="@/assets/images/login/uncheck.png">
<img v-else class="notice-item-icon" src="@/assets/images/login/check.png">
&nbsp;&nbsp;&nbsp;&nbsp;{{$t('reservation.notice2')}}
<img v-else class="notice-item-icon" src="@/assets/images/login/check.png"> &nbsp;&nbsp;&nbsp;&nbsp;{{$t('reservation.notice2')}}
</p>
</div>
......@@ -123,7 +122,6 @@
<img src="@/assets/images/common/icon-notice.png" alt=""> &nbsp; {{errorTips.e8}}
</div>
</div>
</div>
</template>
......
......@@ -166,9 +166,10 @@ export default {
this.loading = false;
if (response.returnCode == "0") {
this.errorModel = 0;
this.userInfo.hadFullInfo = 1;
this.userInfo.name = this.information.lastName + this.information.firstName;
this.$store.commit("SET_USER_INFO", this.userInfo);
let userInfo = JSON.parse(JSON.stringify(this.userInfo));
userInfo.hadFullInfo = 1;
userInfo.name = this.information.lastName + this.information.firstName;
this.$store.commit("SET_USER_INFO", userInfo);
this.loading = false;
let path = this.$route.query.c || "/";
this.targetPath = path;
......