Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
90f0a096
Commit
90f0a096
authored
Mar 08, 2021
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
duration_unit取消年
parent
818cd38a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
24 deletions
+13
-24
src/pages/service_shop/services_shop.vue
src/pages/service_shop/services_shop.vue
+4
-1
src/pages/service_shop/shop_car_apply.vue
src/pages/service_shop/shop_car_apply.vue
+9
-23
No files found.
src/pages/service_shop/services_shop.vue
View file @
90f0a096
...
...
@@ -126,7 +126,10 @@ export default {
getBenner
()
{
this
.
$api
.
serviceShop
.
getBenner
().
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
banners
=
response
.
data
.
data
;
let
arr
=
response
.
data
.
data
;
if
(
arr
&&
arr
.
length
!=
0
)
{
this
.
banners
=
response
.
data
.
data
;
}
}
});
},
...
...
src/pages/service_shop/shop_car_apply.vue
View file @
90f0a096
...
...
@@ -173,8 +173,7 @@ export default {
this
.
service_arr
[
0
][
"
auth
"
]
=
data
.
org_name
;
this
.
service_arr
[
0
][
"
size
"
]
=
"
应用镜像部署权限:
"
+
data
.
price
+
"
金币/月
"
;
this
.
service_arr
[
0
][
"
applytype
"
]
=
"
申请方式:
"
+
(
app_data
.
duration_unit
==
1
?
"
月
"
:
"
年
"
);
this
.
service_arr
[
0
][
"
applytype
"
]
=
"
申请方式:
"
+
"
月
"
;
this
.
service_arr
[
0
][
"
num
"
]
=
`
${
app_data
.
duration
}
个月`
;
this
.
service_arr
[
0
][
"
count
"
]
=
app_data
.
duration
*
parseFloat
(
data
.
price
)
+
"
金币
"
;
...
...
@@ -226,12 +225,8 @@ export default {
objs
.
num
=
"
不限时长
"
;
count
=
el
.
money
;
}
else
{
size
=
`
${
el
.
money
}
金币/
${
el
.
duration_unit
==
1
?
"
月
"
:
"
年
"
}
`
;
objs
.
num
=
service_data
.
duration
+
(
el
.
duration_unit
==
1
?
"
个月
"
:
"
年
"
);
size
=
`
${
el
.
money
}
金币/月`
;
objs
.
num
=
service_data
.
duration
+
"
个月
"
;
count
=
service_data
.
duration
*
el
.
money
;
}
objs
.
size
=
size
;
...
...
@@ -239,8 +234,7 @@ export default {
this
.
all_cost
=
count
;
}
});
objs
.
applytype
=
"
申请方式:
"
+
(
service_data
.
duration_unit
==
1
?
"
月
"
:
"
年
"
);
objs
.
applytype
=
"
申请方式:
"
+
"
月
"
;
objs
.
isMg
=
data
.
openness
==
3
;
if
(
data
.
data_service_type1
!=
36
)
{
objs
.
data
=
JSON
.
parse
(
data
.
res_fields
);
...
...
@@ -400,11 +394,8 @@ export default {
this
.
service_arr
[
l
][
"
auth
"
]
=
e
.
application
.
org_name
;
this
.
service_arr
[
l
][
"
size
"
]
=
"
应用镜像部署权限:
"
+
e
.
application
.
price
+
"
金币/月
"
;
this
.
service_arr
[
l
][
"
applytype
"
]
=
"
申请方式:
"
+
(
e
.
duration_method
==
1
?
"
月
"
:
"
年
"
);
this
.
service_arr
[
l
][
"
num
"
]
=
`
${
e
.
duration
}${
e
.
duration_unit
==
1
?
"
个月
"
:
"
年
"
}
`
;
this
.
service_arr
[
l
][
"
applytype
"
]
=
"
申请方式:月
"
;
this
.
service_arr
[
l
][
"
num
"
]
=
`
${
e
.
duration
}
个月`
;
this
.
service_arr
[
l
][
"
count
"
]
=
e
.
duration
*
parseFloat
(
e
.
application
.
price
)
+
"
金币
"
;
this
.
service_arr
[
l
][
"
isMg
"
]
=
false
;
...
...
@@ -442,19 +433,14 @@ export default {
});
spcs_type_2
.
forEach
((
el
,
ind
)
=>
{
if
(
e
.
spec_id
==
el
.
id
)
{
this
.
service_arr
[
l
][
"
size
"
]
=
`时长收费:
${
el
.
money
}
金币/
${
el
.
duration_unit
==
1
?
"
月
"
:
"
年
"
}
`
;
this
.
service_arr
[
l
][
"
num
"
]
=
`
${
e
.
duration
}${
el
.
duration_unit
==
1
?
"
个月
"
:
"
年
"
}
`
;
this
.
service_arr
[
l
][
"
size
"
]
=
`时长收费:
${
el
.
money
}
金币/月`
;
this
.
service_arr
[
l
][
"
num
"
]
=
`
${
e
.
duration
}
个月`
;
this
.
service_arr
[
l
][
"
count
"
]
=
e
.
duration
*
el
.
money
+
"
金币
"
;
temp_cost
=
this
.
floatAdd
(
temp_cost
,
e
.
duration
*
el
.
money
);
}
});
this
.
service_arr
[
l
][
"
applytype
"
]
=
"
申请方式:
"
+
(
e
.
duration_method
==
1
?
"
月
"
:
"
年
"
);
this
.
service_arr
[
l
][
"
applytype
"
]
=
"
申请方式:月
"
;
this
.
service_arr
[
l
][
"
isMg
"
]
=
e
.
service
.
openness
==
3
;
this
.
service_arr
[
l
][
"
data
"
]
=
e
.
service
.
res_fields
?
JSON
.
parse
(
e
.
service
.
res_fields
)
...
...
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