Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
voucher-h5
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘琦
voucher-h5
Commits
5318f27c
Commit
5318f27c
authored
Sep 12, 2019
by
潘琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签约新增需求,cookie保存用户输入的签约信息;
parent
4aa3e4ae
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
134 additions
and
11 deletions
+134
-11
main.js
src/main.js
+3
-0
getters.js
src/store/getters.js
+2
-1
user.js
src/store/modules/user.js
+14
-0
index.vue
src/views/signing/index.vue
+115
-10
No files found.
src/main.js
View file @
5318f27c
...
@@ -28,6 +28,7 @@ import {
...
@@ -28,6 +28,7 @@ import {
}
from
'mint-ui'
}
from
'mint-ui'
import
'mint-ui/lib/style.css'
import
'mint-ui/lib/style.css'
import
vueSignature
from
'vue-signature'
import
vueSignature
from
'vue-signature'
import
VueCookies
from
'vue-cookies'
Vue
.
component
(
TabContainer
.
name
,
TabContainer
)
Vue
.
component
(
TabContainer
.
name
,
TabContainer
)
Vue
.
component
(
TabContainerItem
.
name
,
TabContainerItem
)
Vue
.
component
(
TabContainerItem
.
name
,
TabContainerItem
)
...
@@ -46,6 +47,8 @@ Vue.component(Radio.name, Radio)
...
@@ -46,6 +47,8 @@ Vue.component(Radio.name, Radio)
Vue
.
component
(
Checklist
.
name
,
Checklist
)
Vue
.
component
(
Checklist
.
name
,
Checklist
)
Vue
.
use
(
InfiniteScroll
)
Vue
.
use
(
InfiniteScroll
)
Vue
.
use
(
vueSignature
)
Vue
.
use
(
vueSignature
)
Vue
.
use
(
VueCookies
)
VueCookies
.
config
(
'7d'
)
Vue
.
prototype
.
$toast
=
Toast
Vue
.
prototype
.
$toast
=
Toast
Vue
.
prototype
.
$MessageBox
=
MessageBox
Vue
.
prototype
.
$MessageBox
=
MessageBox
...
...
src/store/getters.js
View file @
5318f27c
...
@@ -4,6 +4,7 @@ const getters = {
...
@@ -4,6 +4,7 @@ const getters = {
userInfo
:
state
=>
state
.
user
.
userInfo
,
userInfo
:
state
=>
state
.
user
.
userInfo
,
code
:
state
=>
state
.
user
.
code
,
code
:
state
=>
state
.
user
.
code
,
authId
:
state
=>
state
.
user
.
authId
,
authId
:
state
=>
state
.
user
.
authId
,
accountId
:
state
=>
state
.
user
.
accountId
accountId
:
state
=>
state
.
user
.
accountId
,
signInfo
:
state
=>
state
.
user
.
signInfo
}
}
export
default
getters
export
default
getters
src/store/modules/user.js
View file @
5318f27c
...
@@ -17,6 +17,9 @@ const user = {
...
@@ -17,6 +17,9 @@ const user = {
accountId
:
getStore
({
accountId
:
getStore
({
name
:
'account_id'
name
:
'account_id'
})
||
''
,
})
||
''
,
signInfo
:
getStore
({
name
:
'signInfo'
}),
userInfo
:
{}
userInfo
:
{}
},
},
actions
:
{
actions
:
{
...
@@ -34,6 +37,9 @@ const user = {
...
@@ -34,6 +37,9 @@ const user = {
},
},
setAccountId
({
commit
},
param
)
{
setAccountId
({
commit
},
param
)
{
commit
(
'SET_ACCOUNTID'
,
param
)
commit
(
'SET_ACCOUNTID'
,
param
)
},
setSignInfo
({
commit
},
param
)
{
commit
(
'SET_SIGNINFO'
,
param
)
}
}
},
},
mutations
:
{
mutations
:
{
...
@@ -80,6 +86,14 @@ const user = {
...
@@ -80,6 +86,14 @@ const user = {
},
},
SET_USERIFNO
:
(
state
,
userInfo
)
=>
{
SET_USERIFNO
:
(
state
,
userInfo
)
=>
{
state
.
userInfo
=
userInfo
state
.
userInfo
=
userInfo
},
SET_SIGNINFO
:
(
state
,
info
)
=>
{
state
.
signInfo
=
info
setStore
({
name
:
'signInfo'
,
content
:
state
.
signInfo
,
type
:
'session'
})
}
}
}
}
}
}
...
...
src/views/signing/index.vue
View file @
5318f27c
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment