Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
Project
Project
Details
Activity
Releases
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
郑秀明
shop_mobile_uni
Commits
c008c62b
Commit
c008c62b
authored
Apr 17, 2020
by
王建威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
17f26879
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
28 deletions
+78
-28
applypage1.vue
pages/apply/applypage1.vue
+15
-7
applypage2.vue
pages/apply/applypage2.vue
+20
-10
applypage3.vue
pages/apply/applypage3.vue
+43
-11
No files found.
pages/apply/applypage1.vue
View file @
c008c62b
...
...
@@ -128,17 +128,24 @@
this
.
params
[
item
]
=
d
[
item
]
});
this
.
qualification_id
=
d
.
qualification_id
;
this
.
data
=
{
contract_no
:
d
.
contract_no
,
equipment_id
:
d
.
equipment_id
,
property_id
:
d
.
property_id
}
}
}
});
}
}
else
{
uni
.
getStorage
({
key
:
'installment'
,
success
:
(
res
)
=>
{
this
.
data
=
res
.
data
;
}
});
}
},
mounted
()
{
// #ifdef H5
...
...
@@ -270,7 +277,8 @@
const
url
=
this
.
qualification_id
?
'/uni/api/userqualification/EditUserQualification/first'
:
'/uni/api/userqualification/AddUserQualification'
;
uni
.
showToast
({
title
:
'提交中'
,
icon
:
'none'
icon
:
'none'
,
duration
:
90000
})
uni
.
request
({
url
:
url
,
...
...
pages/apply/applypage2.vue
View file @
c008c62b
...
...
@@ -87,7 +87,8 @@
compressName
:
''
,
data
:
null
,
submitFlag
:
true
,
contract_no
:
''
contract_no
:
''
,
qualification_id
:
''
}
},
onLoad
(
option
)
{
...
...
@@ -101,15 +102,22 @@
Object
.
keys
(
this
.
params
).
forEach
((
item
,
index
)
=>
{
this
.
params
[
item
]
=
d
[
item
]
});
this
.
data
=
{
contract_no
:
d
.
contract_no
,
equipment_id
:
d
.
equipment_id
,
property_id
:
d
.
property_id
}
})
;
this
.
qualification_id
=
d
.
qualification_id
;
}
});
}
else
{
uni
.
getStorage
({
key
:
'installment'
,
success
:
(
res
)
=>
{
this
.
data
=
res
.
data
;
}
});
}
},
mounted
()
{
// #ifdef H5
...
...
@@ -230,20 +238,22 @@
this
.
submitFlag
=
false
;
uni
.
showToast
({
title
:
'提交中'
,
icon
:
'none'
icon
:
'none'
,
duration
:
90000
})
uni
.
request
({
url
:
'/uni/api/userqualification/EditUserQualification/second'
,
method
:
'PUT'
,
data
:
{
...
this
.
params
,
...
this
.
data
...
this
.
data
,
qualification_id
:
this
.
qualification_id
},
success
:
(
res
)
=>
{
this
.
submitFlag
=
true
;
if
(
res
.
data
.
code
===
0
)
{
uni
.
navigateTo
({
url
:
'/pages/apply/applypage3'
url
:
`/pages/apply/applypage3?contract_no=
${
this
.
contract_no
}
`
});
}
else
{
uni
.
hideToast
();
...
...
pages/apply/applypage3.vue
View file @
c008c62b
...
...
@@ -75,16 +75,46 @@
vehicle_license
:
''
,
//机动车
},
submitFlag
:
true
,
data
:
null
data
:
null
,
qualification_id
:
''
}
},
onLoad
()
{
onLoad
(
option
)
{
if
(
option
.
contract_no
)
{
this
.
contract_no
=
option
.
contract_no
;
uni
.
request
({
url
:
`/uni/api/userqualification/GetUserQualification/
${
option
.
contract_no
}
`
,
method
:
'GET'
,
success
:
(
res
)
=>
{
const
d
=
res
.
data
.
data
;
Object
.
keys
(
this
.
params
).
forEach
((
item
,
index
)
=>
{
this
.
params
[
item
]
=
d
[
item
]
});
this
.
data
=
{
contract_no
:
d
.
contract_no
,
equipment_id
:
d
.
equipment_id
,
property_id
:
d
.
property_id
},
this
.
qualification_id
=
d
.
qualification_id
uni
.
setStorage
({
key
:
'installment'
,
data
:
{
contract_no
:
d
.
contract_no
,
equipment_id
:
d
.
equipment_id
,
property_id
:
d
.
property_id
}
});
}
});
}
else
{
uni
.
getStorage
({
key
:
'installment'
,
success
:
(
res
)
=>
{
this
.
data
=
res
.
data
;
}
});
}
},
methods
:
{
uploadImage
(
key
)
{
...
...
@@ -120,14 +150,16 @@
this
.
submitFlag
=
false
;
uni
.
showToast
({
title
:
'提交中'
,
icon
:
'none'
icon
:
'none'
,
duration
:
90000
})
uni
.
request
({
url
:
'/uni/api/userqualification/EditUserQualification/
secon
d'
,
url
:
'/uni/api/userqualification/EditUserQualification/
thir
d'
,
method
:
'PUT'
,
data
:
{
...
this
.
params
,
...
this
.
data
...
this
.
data
,
qualification_id
:
this
.
qualification_id
},
success
:
(
res
)
=>
{
this
.
submitFlag
=
true
;
...
...
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