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
19add907
Commit
19add907
authored
Aug 31, 2020
by
王建威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
8df32330
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
15 deletions
+27
-15
applypage1.vue
pages/apply/applypage1.vue
+13
-6
applypage2.vue
pages/apply/applypage2.vue
+5
-5
checkstand.vue
pages/checkstand/checkstand.vue
+2
-2
signcontract.vue
pages/signcontract/signcontract.vue
+7
-2
No files found.
pages/apply/applypage1.vue
View file @
19add907
...
@@ -123,14 +123,21 @@
...
@@ -123,14 +123,21 @@
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
if
(
res
.
data
.
code
===
0
)
{
if
(
res
.
data
.
code
===
0
)
{
const
d
=
res
.
data
.
data
;
const
d
=
res
.
data
.
data
;
Object
.
keys
(
this
.
params
).
forEach
((
item
,
index
)
=>
{
d
&&
Object
.
keys
(
this
.
params
).
forEach
((
item
,
index
)
=>
{
this
.
params
[
item
]
=
d
[
item
]
this
.
params
[
item
]
=
d
[
item
]
});
});
this
.
qualification_id
=
d
.
qualification_id
;
if
(
d
!==
null
)
{
this
.
data
=
{
this
.
qualification_id
=
d
.
qualification_id
;
equipment_id
:
d
.
equipment_id
,
this
.
data
=
{
property_id
:
d
.
property_id
equipment_id
:
d
.
equipment_id
||
option
.
property_id
,
}
property_id
:
d
.
property_id
||
option
.
equipment_id
}
}
else
{
this
.
data
=
{
equipment_id
:
option
.
property_id
,
property_id
:
option
.
equipment_id
}
}
}
else
{
}
else
{
uni
.
getStorage
({
uni
.
getStorage
({
key
:
'installment'
,
key
:
'installment'
,
...
...
pages/apply/applypage2.vue
View file @
19add907
...
@@ -98,15 +98,15 @@
...
@@ -98,15 +98,15 @@
url
:
`/uni/api/userqualification/GetUserQualification/
${
d
.
property_id
}
/
${
d
.
equipment_id
}
`
,
url
:
`/uni/api/userqualification/GetUserQualification/
${
d
.
property_id
}
/
${
d
.
equipment_id
}
`
,
method
:
'GET'
,
method
:
'GET'
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
const
d
=
res
.
data
.
data
;
const
s
=
res
.
data
.
data
;
Object
.
keys
(
this
.
params
).
forEach
((
item
,
index
)
=>
{
Object
.
keys
(
this
.
params
).
forEach
((
item
,
index
)
=>
{
this
.
params
[
item
]
=
d
[
item
]
this
.
params
[
item
]
=
s
[
item
]
});
});
this
.
data
=
{
this
.
data
=
{
equipment_id
:
d
.
equipment
_id
,
equipment_id
:
s
.
equipment_id
||
d
.
property
_id
,
property_id
:
d
.
property
_id
property_id
:
s
.
property_id
||
d
.
equipment
_id
}
}
this
.
qualification_id
=
d
.
qualification_id
;
this
.
qualification_id
=
s
.
qualification_id
;
}
}
});
});
},
},
...
...
pages/checkstand/checkstand.vue
View file @
19add907
...
@@ -22,11 +22,11 @@
...
@@ -22,11 +22,11 @@
<view
class=
"poupp_nper_detail"
>
<view
class=
"poupp_nper_detail"
>
<view>
<view>
<text>
第1期 支付
</text>
<text>
第1期 支付
</text>
<text>
¥
{{
Number
(
data
.
first_payment
)
+
(
Number
(
data
.
equipment_price
)
-
Number
(
data
.
advance_payment
))
*
Number
(
data
.
count
)
}}
</text>
<text>
¥
{{
(
Number
(
data
.
first_payment
)
+
(
Number
(
data
.
equipment_price
)
-
Number
(
data
.
advance_payment
))
*
Number
(
data
.
count
)).
toFixed
(
2
)
}}
</text>
</view>
</view>
<view>
<view>
<text>
剩余
{{
data
.
periods_num
-
1
}}
期 每期支付
</text>
<text>
剩余
{{
data
.
periods_num
-
1
}}
期 每期支付
</text>
<text>
¥
{{
Number
(
data
.
remaining_payment
)
+
(
Number
(
data
.
equipment_price
)
-
Number
(
data
.
advance_payment
))
*
Number
(
data
.
count
)
}}
</text>
<text>
¥
{{
(
Number
(
data
.
remaining_payment
)
+
(
Number
(
data
.
equipment_price
)
-
Number
(
data
.
advance_payment
))
*
Number
(
data
.
count
)).
toFixed
(
2
)
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"pay_btn"
@
click=
"open()"
>
确认支付
</view>
<view
class=
"pay_btn"
@
click=
"open()"
>
确认支付
</view>
...
...
pages/signcontract/signcontract.vue
View file @
19add907
...
@@ -114,6 +114,11 @@
...
@@ -114,6 +114,11 @@
let
key
=
this
.
list
[
i
].
key
;
let
key
=
this
.
list
[
i
].
key
;
this
.
list
[
i
].
value
=
this
.
data
[
key
]
||
''
;
this
.
list
[
i
].
value
=
this
.
data
[
key
]
||
''
;
}
}
}
else
{
uni
.
showToast
({
title
:
data
.
message
,
icon
:
'none'
})
}
}
}
}
})
})
...
@@ -160,7 +165,7 @@
...
@@ -160,7 +165,7 @@
},
},
dataType
:
'json'
,
dataType
:
'json'
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
const
{
data
,
message
}
=
res
;
const
{
data
}
=
res
;
if
(
data
.
code
==
0
){
if
(
data
.
code
==
0
){
uni
.
removeStorageSync
(
'sales'
);
uni
.
removeStorageSync
(
'sales'
);
if
(
this
.
advance_payment
===
0
)
{
if
(
this
.
advance_payment
===
0
)
{
...
@@ -201,7 +206,7 @@
...
@@ -201,7 +206,7 @@
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
icon
:
'none'
,
icon
:
'none'
,
title
:
message
title
:
data
.
message
})
})
}
}
}
}
...
...
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