Authored by yyq

fix header

... ... @@ -15,6 +15,8 @@
</template>
<script>
import {mapState} from 'vuex';
export default {
name: 'HeaderUfo',
props: {
... ... @@ -24,9 +26,16 @@ export default {
default: 1
}
},
computed: {
...mapState(['yoho'])
},
methods: {
onBack() {
this.$yoho.finishPage({});
if (this.yoho.homePage) {
this.$yoho.finishPage({});
} else {
this.$router.go(-1);
}
}
}
};
... ...
... ... @@ -45,7 +45,7 @@ export default {
placeholder: '请输入持卡人姓名',
type: 'name',
errorTip: '您输入的姓名不符合规范,请重新输入',
regx: /^[u4e00-u9fa5a-zA-Z]{2,}$/
regx: /^([\u4e00-\u9fa5]|[A-Za-z]){2,}$/
},
{
title: '身份证号',
... ... @@ -107,7 +107,7 @@ export default {
methods: {
...mapActions(['fetchBankList', 'checkBankCard', 'bindBankCard']),
isReadonly(item) {
return !!item.tapGo;
return !!item.select;
},
inputChange(index, e) {
this.changeFormValue(index, e.target.value);
... ...
... ... @@ -36,7 +36,13 @@ export default {
data() {
return {};
},
mounted() {
if (!this.bankCardList.length) {
this.fetchBankCard();
}
},
methods: {
...mapActions(['fetchBankCard'])
},
computed: {
...mapState(['bankCardList'])
... ...
... ... @@ -22,6 +22,7 @@ export default function() {
visible: true,
pageVisible: false,
direction: 'forword',
homePage: true
},
mutations: {
[Types.SET_ENV](state, {context}) {
... ... @@ -52,6 +53,8 @@ export default function() {
});
state.direction = 'forword';
}
state.homePage = state.historys.length <= 1;
},
[Types.NEED_LOGIN](state, {needLogin}) {
state.context.needLogin = needLogin;
... ...