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
8ba5a876
Commit
8ba5a876
authored
May 13, 2020
by
郑秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分期合同签署bug 修改
parent
b481d6df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
signcontract.vue
pages/signcontract/signcontract.vue
+24
-1
No files found.
pages/signcontract/signcontract.vue
View file @
8ba5a876
...
@@ -105,6 +105,18 @@
...
@@ -105,6 +105,18 @@
},
},
// 缴纳定金提交
// 缴纳定金提交
handleSubmit
(){
handleSubmit
(){
const
data
=
this
.
getData
();
const
checkData
=
this
.
checkData
(
data
);
console
.
log
(
checkData
,
'checkData'
);
if
(
checkData
>
0
){
uni
.
showToast
({
title
:
'请填写签署合同信息'
,
duration
:
2000
,
icon
:
'none'
});
return
;
}
if
(
!
this
.
is_agree
){
if
(
!
this
.
is_agree
){
uni
.
showToast
({
uni
.
showToast
({
title
:
'请阅读并同意采购分期合同'
,
title
:
'请阅读并同意采购分期合同'
,
...
@@ -113,7 +125,6 @@
...
@@ -113,7 +125,6 @@
});
});
return
;
return
;
}
}
const
data
=
this
.
getData
();
// 临时存储合同信息
// 临时存储合同信息
// uni.setStorageSync('temporary', JSON.stringify(data));
// uni.setStorageSync('temporary', JSON.stringify(data));
const
install
=
uni
.
getStorageSync
(
'installment'
);
const
install
=
uni
.
getStorageSync
(
'installment'
);
...
@@ -203,6 +214,18 @@
...
@@ -203,6 +214,18 @@
data
[
key
]
=
this
.
list
[
i
].
value
;
data
[
key
]
=
this
.
list
[
i
].
value
;
}
}
return
data
;
return
data
;
},
// 判断合同字段是否都已填写
checkData
(
data
){
if
(
data
){
let
num
=
0
;
for
(
let
d
in
data
){
if
(
!
data
[
d
]){
num
++
;
}
}
return
num
;
}
}
}
}
}
}
}
...
...
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