Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
6 years ago
Commit
145f51082ed7b1c9e86ccbd08b1f7dedbb8de648
1 parent
d7527339
fix header
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
3 deletions
apps/pages/single/components/layout/header-ufo.vue
apps/pages/single/mine/bank-card/card-add.vue
apps/pages/single/mine/bank-card/card-list.vue
apps/store/yoho/index.js
apps/pages/single/components/layout/header-ufo.vue
View file @
145f510
...
...
@@ -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);
}
}
}
};
...
...
apps/pages/single/mine/bank-card/card-add.vue
View file @
145f510
...
...
@@ -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);
...
...
apps/pages/single/mine/bank-card/card-list.vue
View file @
145f510
...
...
@@ -36,7 +36,13 @@ export default {
data() {
return {};
},
mounted() {
if (!this.bankCardList.length) {
this.fetchBankCard();
}
},
methods: {
...mapActions(['fetchBankCard'])
},
computed: {
...mapState(['bankCardList'])
...
...
apps/store/yoho/index.js
View file @
145f510
...
...
@@ -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
;
...
...
Please
register
or
login
to post a comment