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
9b53e9f0
Commit
9b53e9f0
authored
Oct 29, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ldx' into dev
parents
7210f85a
885cd2c7
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
367 additions
and
164 deletions
+367
-164
src/components/service-info/app-info.vue
src/components/service-info/app-info.vue
+10
-13
src/components/service-info/service-info.vue
src/components/service-info/service-info.vue
+31
-31
src/components/shop-car-apply/apply_service_state.vue
src/components/shop-car-apply/apply_service_state.vue
+16
-22
src/components/shop-car-apply/service_list.vue
src/components/shop-car-apply/service_list.vue
+8
-5
src/components/shop-cloud/shop-cloud.vue
src/components/shop-cloud/shop-cloud.vue
+31
-1
src/components/shopping-cart/shopping-cart-cell.vue
src/components/shopping-cart/shopping-cart-cell.vue
+97
-61
src/components/shopping-cart/shopping-cart-com.vue
src/components/shopping-cart/shopping-cart-com.vue
+68
-6
src/pages/service_shop/shop_car_apply.vue
src/pages/service_shop/shop_car_apply.vue
+89
-4
src/pages/service_shop/sjfwDetail.vue
src/pages/service_shop/sjfwDetail.vue
+1
-16
src/pages/service_shop/yysdDetail.vue
src/pages/service_shop/yysdDetail.vue
+7
-4
src/request/api/service-shop.js
src/request/api/service-shop.js
+9
-1
No files found.
src/components/service-info/app-info.vue
View file @
9b53e9f0
...
@@ -37,27 +37,20 @@
...
@@ -37,27 +37,20 @@
<div
class=
"and_wid"
>
<div
class=
"and_wid"
>
<div
class=
"dbn_wkdn"
>
<div
class=
"dbn_wkdn"
>
价
格:
价
格:
<span
class=
"ndwa_indowa"
>
{{
specification
&&
specification
.
single_money
?
specification
.
single_money
*
duration
:
0
}}
</span>
<span
class=
"ndwa_indowa"
>
{{
data
.
price
*
duration
}}
</span>
<span
class=
"kfdf_jffa"
>
金币
</span>
<span
class=
"kfdf_jffa"
>
金币
</span>
</div>
</div>
<div
class=
"nmd_kwd"
>
<div
class=
"nmd_kwd"
>
月售:
月售:
<span
class=
"ndwa_dn"
>
{{
data
.
mount_count
}}
笔
</span>
<span
class=
"ndwa_dn"
>
{{
data
.
sale
}}
笔
</span>
<img
src=
"@/assets/imgs/shop_ic_star.png"
class=
"dwin_diwa"
/>
<img
src=
"@/assets/imgs/shop_ic_star.png"
class=
"dwin_diwa"
/>
<span
class=
"dn_wjd"
>
{{
data
.
s
coreDetail
.
avgScore
}}
</span>
<span
class=
"dn_wjd"
>
{{
data
.
s
tar
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"commodity_information"
>
<div
class=
"commodity_information"
>
<span>
规
  
格:
</span>
<span>
规
  
格:
</span>
<div
class=
"btn_container"
>
<div
class=
"btn_container_ddaw"
>
<el-button
{{
data
.
price
}}
金币/月
v-for=
"(item, index) in specifications"
:key=
"'specifications_' + index"
:type=
"item.value === specificationID ? 'primary' : 'default'"
@
click=
"changeSpecification(item)"
>
{{
item
.
name
}}
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"commodity_information"
>
<div
class=
"commodity_information"
>
...
@@ -67,7 +60,7 @@
...
@@ -67,7 +60,7 @@
v-model=
"duration"
v-model=
"duration"
:min=
"1"
:min=
"1"
:disabled=
"actionDisabled"
:disabled=
"actionDisabled"
></el-input-number>
></el-input-number>
月
</div>
</div>
</div>
</div>
<div
class=
"commodity_action"
>
<div
class=
"commodity_action"
>
...
@@ -273,6 +266,10 @@ export default {
...
@@ -273,6 +266,10 @@ export default {
.commodity_information
>
.btn_container
>
.el-input-number
{
.commodity_information
>
.btn_container
>
.el-input-number
{
margin
:
0
20px
15px
0
;
margin
:
0
20px
15px
0
;
}
}
.btn_container_ddaw
{
line-height
:
40px
;
margin-left
:
5px
;
}
.commodity_action
{
.commodity_action
{
margin-top
:
60px
;
margin-top
:
60px
;
text-align
:
right
;
text-align
:
right
;
...
...
src/components/service-info/service-info.vue
View file @
9b53e9f0
...
@@ -64,45 +64,59 @@
...
@@ -64,45 +64,59 @@
<div
class=
"and_wid"
>
<div
class=
"and_wid"
>
<div
class=
"dbn_wkdn"
>
<div
class=
"dbn_wkdn"
>
价
格:
<span
class=
"ndwa_indowa"
>
价
格:
<span
class=
"ndwa_indowa"
>
{{
specification
&&
specification
.
single_money
?
specification
.
single_money
:
0
}}
{{
specification
&&
specification
.
money
?
specification
.
money
*
(
showTime
?
duration
:
1
)
:
0
}}
</span>
</span>
<span
class=
"kfdf_jffa"
>
金币
</span>
<span
class=
"kfdf_jffa"
>
金币
</span>
</div>
</div>
<div
class=
"nmd_kwd"
>
<div
class=
"nmd_kwd"
>
月售:
<span
class=
"ndwa_dn"
>
{{
data
.
mo
unt_count
}}
笔
</span
月售:
<span
class=
"ndwa_dn"
>
{{
data
.
mo
nth_sale
}}
笔
</span
><img
src=
"@/assets/imgs/shop_ic_star.png"
class=
"dwin_diwa"
/>
><img
src=
"@/assets/imgs/shop_ic_star.png"
class=
"dwin_diwa"
/>
<span
class=
"dn_wjd"
>
{{
data
.
scoreDetail
.
avgScore
}}
</span>
<span
class=
"dn_wjd"
>
{{
data
.
scoreDetail
.
avgScore
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"commodity_information"
>
<div
class=
"commodity_information"
>
<span>
计次收费规格:
</span>
<span>
计次收费规格:
</span>
<span
v-if=
"data.spce_type_1 && data.spce_type_1.length == 0"
class=
"commodity_text"
<span
v-if=
"
data.serviceRequestSpcs.spcs_type_1 &&
data.serviceRequestSpcs.spcs_type_1.length == 0
"
class=
"commodity_text"
>
暂无
</span
>
暂无
</span
>
>
<div
v-else
class=
"btn_container"
>
<div
v-else
class=
"btn_container"
>
<el-button
<el-button
v-for=
"(item, index) in data.s
pce
_type_1"
v-for=
"(item, index) in data.s
erviceRequestSpcs.spcs
_type_1"
:key=
"'spcs_' + index"
:key=
"'spcs_' + index"
:type=
"item.id === specification.id ? 'primary' : 'default'"
:type=
"item.id === specification.id ? 'primary' : 'default'"
@
click=
"changeSpecification(item, 0)"
@
click=
"changeSpecification(item, 0)"
>
>
{{
item
.
name
}}
{{
item
.
money
}}
金币/
{{
item
.
spcs_count
}}
次
</el-button>
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"commodity_information"
>
<div
class=
"commodity_information"
>
<span>
时长收费规格:
</span>
<span>
时长收费规格:
</span>
<span
v-if=
"data.spce_type_2 && data.spce_type_2.length == 0"
class=
"commodity_text"
<span
v-if=
"
data.serviceRequestSpcs.spcs_type_2 &&
data.serviceRequestSpcs.spcs_type_2.length == 0
"
class=
"commodity_text"
>
暂无
</span
>
暂无
</span
>
>
<div
v-else
class=
"btn_container"
>
<div
v-else
class=
"btn_container"
>
<el-button
<el-button
v-for=
"(item, index) in data.s
pce
_type_2"
v-for=
"(item, index) in data.s
erviceRequestSpcs.spcs
_type_2"
:key=
"'spcs_' + index"
:key=
"'spcs_' + index"
:type=
"item.id === specification.id ? 'primary' : 'default'"
:type=
"item.id === specification.id ? 'primary' : 'default'"
@
click=
"changeSpecification(item, 1)"
@
click=
"changeSpecification(item, 1)"
>
>
{{
item
.
name
}}
{{
item
.
money
}}
金币/月
</el-button>
</el-button>
</div>
</div>
</div>
</div>
...
@@ -122,8 +136,8 @@
...
@@ -122,8 +136,8 @@
v-model=
"duration"
v-model=
"duration"
:min=
"1"
:min=
"1"
:disabled=
"actionDisabled"
:disabled=
"actionDisabled"
></el-input-number
></el-input-number
>
>
月
月
</div>
</div>
<div
v-else
class=
"btn_container"
>
<div
v-else
class=
"btn_container"
>
<el-button
type=
"primary"
>
不限时长
</el-button>
<el-button
type=
"primary"
>
不限时长
</el-button>
...
@@ -177,25 +191,12 @@ export default {
...
@@ -177,25 +191,12 @@ export default {
showTime
:
false
,
showTime
:
false
,
}),
}),
computed
:
{
computed
:
{
specifications
()
{
let
specifications
=
(
this
.
data
.
serviceRequestSpcs
||
[]).
filter
(
(
item
)
=>
item
.
type
==
this
.
type
||
item
.
type
==
3
);
return
specifications
;
},
actionDisabled
()
{
actionDisabled
()
{
return
this
.
specifications
.
length
==
0
;
let
a
=
this
.
data
.
serviceRequestSpcs
;
},
return
a
.
spcs_type_1
.
length
==
0
&&
a
.
spcs_type_2
.
length
==
0
;
},
watch
:
{
specifications
:
{
handler
()
{
this
.
specification
=
this
.
specifications
[
0
];
},
deep
:
true
,
},
},
},
},
watch
:
{},
methods
:
{
methods
:
{
dateTransform
(
datestr
=
""
)
{
dateTransform
(
datestr
=
""
)
{
return
helper
.
dateStringTransform
(
datestr
);
return
helper
.
dateStringTransform
(
datestr
);
...
@@ -210,9 +211,6 @@ export default {
...
@@ -210,9 +211,6 @@ export default {
},
},
changeType
({
value
})
{
changeType
({
value
})
{
this
.
type
=
value
;
this
.
type
=
value
;
if
(
this
.
specifications
.
length
>
0
)
{
this
.
specification
=
this
.
specifications
[
0
];
}
},
},
addToCart
()
{
addToCart
()
{
// console.log("addToCart");
// console.log("addToCart");
...
@@ -296,8 +294,10 @@ export default {
...
@@ -296,8 +294,10 @@ export default {
}
}
// 初始化规格
// 初始化规格
if
(
this
.
specifications
.
length
>
0
)
{
if
(
this
.
data
.
serviceRequestSpcs
.
spcs_type_1
.
length
>
0
)
{
this
.
specification
=
this
.
specifications
[
0
];
this
.
specification
=
this
.
data
.
serviceRequestSpcs
.
spcs_type_1
[
0
];
}
else
if
(
this
.
data
.
serviceRequestSpcs
.
spcs_type_2
.
length
>
0
)
{
this
.
specification
=
this
.
data
.
serviceRequestSpcs
.
spcs_type_2
[
0
];
}
}
},
},
};
};
...
...
src/components/shop-car-apply/apply_service_state.vue
View file @
9b53e9f0
...
@@ -37,10 +37,10 @@
...
@@ -37,10 +37,10 @@
</div>
</div>
</div>
</div>
<div
class=
"size"
>
<div
class=
"size"
>
<p>
{{
data
.
size
}}
</p>
<p>
计次收费:200金币/1000次
</p>
<P>
{{
data
.
applytype
}}
</P>
</div>
</div>
<div
class=
"num"
>
{{
data
.
num
}}
</div>
<div
class=
"num"
>
22222
{{
data
.
num
}}
</div>
<div
class=
"num"
>
22222
{{
data
.
num
}}
</div>
<div
class=
"oprate"
>
<div
class=
"oprate"
>
<upload-file
<upload-file
v-if=
"data.isMg"
v-if=
"data.isMg"
...
@@ -155,19 +155,19 @@ export default {
...
@@ -155,19 +155,19 @@ export default {
float
:
left
;
float
:
left
;
}
}
.serviceinfo
{
.serviceinfo
{
width
:
415
px
;
width
:
370
px
;
margin-right
:
90
px
;
margin-right
:
15
px
;
}
}
.pic
{
.pic
{
width
:
116px
;
width
:
116px
;
height
:
116px
;
height
:
116px
;
float
:
left
;
float
:
left
;
background-size
:
contain
;
background-size
:
contain
;
margin-right
:
20
px
;
margin-right
:
15
px
;
}
}
.info
{
.info
{
float
:
left
;
float
:
left
;
width
:
2
7
0px
;
width
:
2
3
0px
;
}
}
.info
p
{
.info
p
{
color
:
rgba
(
136
,
144
,
167
,
1
);
color
:
rgba
(
136
,
144
,
167
,
1
);
...
@@ -193,27 +193,21 @@ export default {
...
@@ -193,27 +193,21 @@ export default {
.size
{
.size
{
width
:
240px
;
width
:
240px
;
height
:
107px
;
height
:
107px
;
background-color
:
rgba
(
249
,
250
,
252
,
1
);
margin-right
:
20px
;
border-radius
:
8px
;
display
:
flex
;
margin-right
:
70px
;
justify-content
:
center
;
padding
:
20px
;
align-items
:
center
;
color
:
rgba
(
136
,
144
,
167
,
1
);
}
.size
p
:nth-of-type
(
1
)
{
line-height
:
22px
;
margin-bottom
:
10px
;
}
}
.num
{
.num
{
width
:
138px
;
width
:
138px
;
height
:
107px
;
height
:
107px
;
line-height
:
107px
;
margin-right
:
20px
;
font-size
:
16px
;
display
:
flex
;
color
:
rgba
(
88
,
97
,
122
,
1
);
justify-content
:
center
;
margin-right
:
55px
;
align-items
:
center
;
text-align
:
center
;
}
}
.oprate
{
.oprate
{
width
:
1
3
0px
;
width
:
1
7
0px
;
height
:
107px
;
height
:
107px
;
padding-top
:
34px
;
padding-top
:
34px
;
padding-left
:
30px
;
padding-left
:
30px
;
...
...
src/components/shop-car-apply/service_list.vue
View file @
9b53e9f0
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
<p
class=
"list_title"
>
<p
class=
"list_title"
>
<span>
服务信息
</span>
<span>
服务信息
</span>
<span>
规格
</span>
<span>
规格
</span>
<span>
数量
</span>
<span>
购买时长
</span>
<span>
小计
</span>
<span>
操作
</span>
<span>
操作
</span>
</p>
</p>
<apply-service-state
ref=
"apply_service_state"
v-for=
"(item,index) in service_arr"
:idx=
"index"
:key=
"index+5000"
:data=
"item"
></apply-service-state>
<apply-service-state
ref=
"apply_service_state"
v-for=
"(item,index) in service_arr"
:idx=
"index"
:key=
"index+5000"
:data=
"item"
></apply-service-state>
...
@@ -67,13 +68,15 @@ export default {
...
@@ -67,13 +68,15 @@ export default {
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.list_title
span
:nth-of-type
(
1
)
{
.list_title
span
:nth-of-type
(
1
)
{
margin-right
:
4
6
0px
;
margin-right
:
4
2
0px
;
}
}
.list_title
span
:nth-of-type
(
2
)
{
.list_title
span
:nth-of-type
(
2
)
{
margin-right
:
31
5px
;
margin-right
:
16
5px
;
}
}
.list_title
span
:nth-of-type
(
3
)
{
.list_title
span
:nth-of-type
(
3
)
{
margin-right
:
155px
;
margin-right
:
112px
;
}
.list_title
span
:nth-of-type
(
4
)
{
margin-right
:
130px
;
}
}
</
style
>
</
style
>
src/components/shop-cloud/shop-cloud.vue
View file @
9b53e9f0
...
@@ -1047,7 +1047,9 @@ export default {
...
@@ -1047,7 +1047,9 @@ export default {
getSumCoin
()
{
getSumCoin
()
{
let
sumCM
=
0
;
let
sumCM
=
0
;
let
sumDisk
=
0
;
let
sumDisk
=
0
;
let
a_deductions
=
0
;
if
(
this
.
activeName
==
"
0
"
)
{
if
(
this
.
activeName
==
"
0
"
)
{
a_deductions
=
this
.
deductions
;
if
(
this
.
formNew
.
cpu
==
"
8
"
)
{
if
(
this
.
formNew
.
cpu
==
"
8
"
)
{
if
(
this
.
formNew
.
memory
==
"
16
"
)
{
if
(
this
.
formNew
.
memory
==
"
16
"
)
{
sumCM
+=
10880
;
sumCM
+=
10880
;
...
@@ -1094,6 +1096,7 @@ export default {
...
@@ -1094,6 +1096,7 @@ export default {
this.formNew.appDuration >= 1 ? this.formNew.appDuration : 0
this.formNew.appDuration >= 1 ? this.formNew.appDuration : 0
}
个月`
;
}
个月`
;
}
else
if
(
this
.
activeName
==
"
1
"
)
{
}
else
if
(
this
.
activeName
==
"
1
"
)
{
a_deductions
=
this
.
deductions
;
if
(
this
.
formOld
.
cpu
==
"
8
"
)
{
if
(
this
.
formOld
.
cpu
==
"
8
"
)
{
if
(
this
.
formOld
.
memory
==
"
16
"
)
{
if
(
this
.
formOld
.
memory
==
"
16
"
)
{
sumCM
+=
10880
;
sumCM
+=
10880
;
...
@@ -1140,7 +1143,9 @@ export default {
...
@@ -1140,7 +1143,9 @@ export default {
this.formOld.appDuration >= 1 ? this.formOld.appDuration : 0
this.formOld.appDuration >= 1 ? this.formOld.appDuration : 0
}
个月`
;
}
个月`
;
}
}
return
sumCM
+
sumDisk
;
this
.
amounts_payable
=
sumCM
+
sumDisk
;
this
.
total_money
=
sumCM
+
sumDisk
-
a_deductions
;
return
this
.
total_money
;
}
,
}
,
}
,
}
,
data
()
{
data
()
{
...
@@ -1170,6 +1175,11 @@ export default {
...
@@ -1170,6 +1175,11 @@ export default {
}
}
}
;
}
;
return
{
return
{
total_money
:
0
,
disk_single_money
:
0
,
eci_single_money
:
0
,
amounts_payable
:
0
,
deductions
:
0
,
helper
,
helper
,
form
:
{
form
:
{
department_name
:
""
,
department_name
:
""
,
...
@@ -1490,6 +1500,19 @@ export default {
...
@@ -1490,6 +1500,19 @@ export default {
this
.
formOld
.
apply_file
=
val
[
0
].
url
;
this
.
formOld
.
apply_file
=
val
[
0
].
url
;
}
,
}
,
handleChange
()
{
}
,
handleChange
()
{
}
,
getSpecifications
()
{
this
.
$api
.
serviceShop
.
getSpecifications
().
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
amounts_payable
=
1000
;
this
.
amounts_payable
=
1000
;
}
else
{
this
.
$message
({
message
:
"
获取资源规格失败,请刷新网页
"
,
type
:
"
error
"
,
}
);
}
}
);
}
,
getForm
(
val
)
{
getForm
(
val
)
{
if
(
val
!==
""
)
{
if
(
val
!==
""
)
{
let
paramsOld
=
this
.
workSpaceOptions
[
val
];
let
paramsOld
=
this
.
workSpaceOptions
[
val
];
...
@@ -1542,6 +1565,7 @@ export default {
...
@@ -1542,6 +1565,7 @@ export default {
sum
:
"
2000金币
"
,
sum
:
"
2000金币
"
,
}
,
}
,
];
];
this
.
deductions
=
20000
;
}
else
{
}
else
{
this
.
formShow
=
false
;
this
.
formShow
=
false
;
}
}
...
@@ -1627,6 +1651,12 @@ export default {
...
@@ -1627,6 +1651,12 @@ export default {
store_type
:
this
.
formNew
.
store_type
,
store_type
:
this
.
formNew
.
store_type
,
}
,
}
,
],
],
payment
:
{
total_money
:
this
.
total_money
,
disk_single_money
:
this
.
disk_single_money
,
eci_single_money
:
this
.
eci_single_money
,
amounts_payable
:
this
.
amounts_payable
,
}
,
}
;
}
;
this
.
$api
.
serviceShop
.
applicationCloud
(
query
).
then
((
response
)
=>
{
this
.
$api
.
serviceShop
.
applicationCloud
(
query
).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
if
(
response
.
data
.
success
==
1
)
{
...
...
src/components/shopping-cart/shopping-cart-cell.vue
View file @
9b53e9f0
This diff is collapsed.
Click to expand it.
src/components/shopping-cart/shopping-cart-com.vue
View file @
9b53e9f0
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
>
全选
</el-checkbox
>
全选
</el-checkbox
>
>
</el-col>
</el-col>
<el-col
:span=
"
9
"
class=
"shopping_all_head_item"
>
服务信息
</el-col>
<el-col
:span=
"
8
"
class=
"shopping_all_head_item"
>
服务信息
</el-col>
<el-col
:span=
"5"
class=
"shopping_all_head_item"
>
规格
</el-col>
<el-col
:span=
"5"
class=
"shopping_all_head_item"
>
规格
</el-col>
<el-col
:span=
"3"
class=
"shopping_all_head_item"
>
购买时长
</el-col>
<el-col
:span=
"3"
class=
"shopping_all_head_item"
>
购买时长
</el-col>
<el-col
:span=
"
2
"
class=
"shopping_all_head_item"
>
小计
</el-col>
<el-col
:span=
"
3
"
class=
"shopping_all_head_item"
>
小计
</el-col>
<el-col
:span=
"3"
class=
"shopping_all_head_item"
>
操作
</el-col>
<el-col
:span=
"3"
class=
"shopping_all_head_item"
>
操作
</el-col>
</el-row>
</el-row>
</div>
</div>
...
@@ -58,8 +58,24 @@
...
@@ -58,8 +58,24 @@
>
>
</el-col>
</el-col>
<el-col
:span=
"15"
class=
"shopping_cart_options_num"
>
<el-col
:span=
"15"
class=
"shopping_cart_options_num"
>
共
{{
list
.
length
}}
项服务,已选择
<span>
{{
getNum
}}
</span>
项,共
<div
class=
"fyzj"
>
<span>
{{
getSumCoin
}}
</span>
金币
<p
class=
"fyzj_p"
>
<span
v-if=
"getSumCoin > 20000"
class=
"yebz"
>
余额不足,请联系超级管理员进行充值
</span>
费用总计:
<span
class=
"fyzj_span"
>
{{
getSumCoin
}}
</span>
<span
class=
"fyzj_qian"
>
金币
</span>
</p>
<div
class=
"ckfymx"
>
<p
class=
"ckfymx_a"
>
共
{{
list
.
length
}}
项服务,已选择
<span
class=
"dwa_djf"
>
{{
getNum
}}
</span>
项
<span
class=
"ckfymx_qian"
>
账户余额:20,000 金币
</span>
</p>
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"4"
class=
"shopping_cart_options_cell"
>
<el-col
:span=
"4"
class=
"shopping_cart_options_cell"
>
<el-button
<el-button
...
@@ -110,7 +126,7 @@ export default {
...
@@ -110,7 +126,7 @@ export default {
let
sum
=
0
;
let
sum
=
0
;
this
.
checkList
.
forEach
((
item
,
index
)
=>
{
this
.
checkList
.
forEach
((
item
,
index
)
=>
{
if
(
item
)
{
if
(
item
)
{
sum
+=
10
;
sum
+=
item
.
total_money
;
}
}
});
});
return
sum
;
return
sum
;
...
@@ -253,7 +269,7 @@ export default {
...
@@ -253,7 +269,7 @@ export default {
font-weight
:
500
;
font-weight
:
500
;
color
:
#58617a
;
color
:
#58617a
;
}
}
.
shopping_cart_options_num
span
{
.
dwa_djf
{
color
:
#e56600
;
color
:
#e56600
;
}
}
.shopping_cart_options_cell_btn
{
.shopping_cart_options_cell_btn
{
...
@@ -279,6 +295,52 @@ export default {
...
@@ -279,6 +295,52 @@ export default {
.shopping_list_page
{
.shopping_list_page
{
padding
:
10px
20px
0
;
padding
:
10px
20px
0
;
}
}
.fyzj_item
{
position
:
relative
;
}
.fyzj
{
color
:
#242c43
;
font-size
:
18px
;
margin-right
:
10px
;
text-align
:
right
;
position
:
relative
;
top
:
8px
;
line-height
:
26px
;
}
.fyzj_p
{
margin-bottom
:
6px
;
}
.fyzj_span
{
color
:
#e56600
;
font-size
:
24px
;
font-weight
:
bold
;
}
.fyzj_qian
{
color
:
#e56600
;
font-size
:
14px
;
}
.ckfymx
{
color
:
#58617a
;
font-size
:
14px
;
}
.ckfymx_a
{
color
:
#58617a
;
}
.ckfymx_qian
{
display
:
inline-block
;
margin-left
:
20px
;
position
:
relative
;
color
:
#a9aec0
;
}
.ckfymx_qian
::after
{
content
:
""
;
position
:
absolute
;
width
:
1px
;
height
:
16px
;
background
:
#bcc1d0
;
left
:
-10px
;
top
:
2px
;
}
</
style
>
</
style
>
<
style
>
<
style
>
.shopping_cart_options_cell
.el-checkbox
{
.shopping_cart_options_cell
.el-checkbox
{
...
...
src/pages/service_shop/shop_car_apply.vue
View file @
9b53e9f0
<
template
>
<
template
>
<div
class=
"apply_container"
>
<div
class=
"apply_container"
>
<info-list
:list_arr=
"module_arr"
>
<info-list
:list_arr=
"module_arr"
>
<apply-form
:formInline=
"formInline"
ref=
"apply_info"
slot=
"apply_info"
></apply-form>
<apply-form
<service-list
ref=
"apply_service"
slot=
"apply_service"
:service_arr=
"service_arr"
></service-list>
:formInline=
"formInline"
ref=
"apply_info"
slot=
"apply_info"
></apply-form>
<service-list
ref=
"apply_service"
slot=
"apply_service"
:service_arr=
"service_arr"
></service-list>
</info-list>
</info-list>
<div
class=
"footout"
>
<div
class=
"footout"
>
<span>
共
{{
service_arr
.
length
}}
项服务
</span>
<div
class=
"fyzj"
>
<p
class=
"fyzj_p"
>
<span
v-if=
"getSumCoin > 20000"
class=
"yebz"
>
余额不足,请联系超级管理员进行充值
</span>
费用总计:
<span
class=
"fyzj_span"
>
{{
getSumCoin
}}
</span>
<span
class=
"fyzj_qian"
>
金币
</span>
</p>
<div
class=
"ckfymx"
>
<p
class=
"ckfymx_a"
>
共
{{
service_arr
.
length
}}
项服务
<span
class=
"ckfymx_qian"
>
账户余额:20,000 金币
</span>
</p>
</div>
</div>
<span
class=
"applybtn"
@
click=
"sub_service()"
>
提交申请
</span>
<span
class=
"applybtn"
@
click=
"sub_service()"
>
提交申请
</span>
</div>
</div>
</div>
</div>
...
@@ -23,6 +47,17 @@ export default {
...
@@ -23,6 +47,17 @@ export default {
applyForm
,
applyForm
,
serviceList
,
serviceList
,
},
},
computed
:
{
getSumCoin
()
{
let
sum
=
0
;
this
.
service_arr
.
forEach
((
item
,
index
)
=>
{
if
(
item
)
{
sum
+=
item
.
total_money
;
}
});
return
sum
;
},
},
data
()
{
data
()
{
return
{
return
{
formInline
:
{
formInline
:
{
...
@@ -106,7 +141,6 @@ export default {
...
@@ -106,7 +141,6 @@ export default {
};
};
},
},
watch
:
{},
watch
:
{},
computed
:
{},
created
()
{
created
()
{
if
(
this
.
$route
.
query
.
service_id
)
{
if
(
this
.
$route
.
query
.
service_id
)
{
this
.
get_one_service
(
this
.
$route
.
query
);
this
.
get_one_service
(
this
.
$route
.
query
);
...
@@ -410,6 +444,7 @@ export default {
...
@@ -410,6 +444,7 @@ export default {
padding
:
20px
;
padding
:
20px
;
text-align
:
right
;
text-align
:
right
;
margin
:
20px
0
;
margin
:
20px
0
;
position
:
relative
;
}
}
.applybtn
{
.applybtn
{
color
:
rgba
(
252
,
239
,
214
,
1
);
color
:
rgba
(
252
,
239
,
214
,
1
);
...
@@ -422,5 +457,55 @@ export default {
...
@@ -422,5 +457,55 @@ export default {
border-radius
:
8px
;
border-radius
:
8px
;
margin-left
:
20px
;
margin-left
:
20px
;
cursor
:
pointer
;
cursor
:
pointer
;
position
:
absolute
;
top
:
20px
;
right
:
20px
;
}
.fyzj_item
{
position
:
relative
;
}
.fyzj
{
color
:
#242c43
;
font-size
:
18px
;
margin-right
:
10px
;
text-align
:
right
;
position
:
relative
;
top
:
-8px
;
right
:
210px
;
line-height
:
26px
;
}
.fyzj_p
{
margin-bottom
:
6px
;
}
.fyzj_span
{
color
:
#e56600
;
font-size
:
24px
;
font-weight
:
bold
;
}
.fyzj_qian
{
color
:
#e56600
;
font-size
:
14px
;
}
.ckfymx
{
color
:
#58617a
;
font-size
:
14px
;
}
.ckfymx_a
{
color
:
#58617a
;
}
.ckfymx_qian
{
display
:
inline-block
;
margin-left
:
20px
;
position
:
relative
;
color
:
#a9aec0
;
}
.ckfymx_qian
::after
{
content
:
""
;
position
:
absolute
;
width
:
1px
;
height
:
16px
;
background
:
#bcc1d0
;
left
:
-10px
;
top
:
2px
;
}
}
</
style
>
</
style
>
src/pages/service_shop/sjfwDetail.vue
View file @
9b53e9f0
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
<service-tabs
<service-tabs
:detail-data=
"detailData"
:detail-data=
"detailData"
:specification-data=
"specificationData"
:provider-data=
"providerData"
:provider-data=
"providerData"
:comments-data=
"commentsData"
:comments-data=
"commentsData"
:comments-url=
"commentsUrl"
:comments-url=
"commentsUrl"
...
@@ -34,7 +33,6 @@ export default {
...
@@ -34,7 +33,6 @@ export default {
data
:
()
=>
({
data
:
()
=>
({
baseInfo
:
null
,
baseInfo
:
null
,
detailData
:
null
,
detailData
:
null
,
specificationData
:
null
,
providerData
:
null
,
providerData
:
null
,
commentsData
:
null
,
commentsData
:
null
,
}),
}),
...
@@ -56,18 +54,6 @@ export default {
...
@@ -56,18 +54,6 @@ export default {
})
})
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
let
datas
=
data
.
data
;
let
datas
=
data
.
data
;
let
specificationData
=
(
datas
.
serviceRequestSpcs
&&
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
id
:
item
.
id
,
type
:
item
.
type
,
pv
:
item
.
pv
,
count
:
item
.
count
,
name
:
`访问次数:
${
item
.
pv
}
次/日 访问量:
${
item
.
count
}
次/日`
,
descript
:
item
.
des
,
})))
||
[];
this
.
baseInfo
=
{
this
.
baseInfo
=
{
service_id
:
this
.
id
,
service_id
:
this
.
id
,
app_id
:
0
,
app_id
:
0
,
...
@@ -87,7 +73,7 @@ export default {
...
@@ -87,7 +73,7 @@ export default {
datas
.
data_service_type3_name
,
datas
.
data_service_type3_name
,
],
],
descript
:
datas
.
descript
,
descript
:
datas
.
descript
,
serviceRequestSpcs
:
specificationData
,
serviceRequestSpcs
:
datas
.
serviceRequestSpcs
,
scoreDetail
:
datas
.
scoreDetail
,
scoreDetail
:
datas
.
scoreDetail
,
};
};
...
@@ -185,7 +171,6 @@ export default {
...
@@ -185,7 +171,6 @@ export default {
},
},
},
},
];
];
this
.
specificationData
=
specificationData
;
this
.
providerData
=
{
this
.
providerData
=
{
organization_name
:
datas
.
organization_name
,
organization_name
:
datas
.
organization_name
,
picture_path
:
datas
.
organization_picture
,
picture_path
:
datas
.
organization_picture
,
...
...
src/pages/service_shop/yysdDetail.vue
View file @
9b53e9f0
...
@@ -55,9 +55,12 @@ export default {
...
@@ -55,9 +55,12 @@ export default {
},
},
})
})
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
this
.
baseInfo
=
data
.
data
;
this
.
$api
.
serviceShop
.
getExtendedInfo
({
id
:
this
.
id
}).
then
((
response
)
=>
{
this
.
baseInfo
=
data
.
data
;
this
.
baseInfo
=
Object
.
assign
(
this
.
baseInfo
,
response
.
data
.
data
);
});
})
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
});
});
...
@@ -100,7 +103,7 @@ export default {
...
@@ -100,7 +103,7 @@ export default {
);
);
this
.
detailData
=
detailData
;
this
.
detailData
=
detailData
;
})
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
});
});
...
@@ -114,7 +117,7 @@ export default {
...
@@ -114,7 +117,7 @@ export default {
phone
:
data
.
data
.
phone
,
phone
:
data
.
data
.
phone
,
};
};
})
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
});
});
},
},
...
...
src/request/api/service-shop.js
View file @
9b53e9f0
...
@@ -46,6 +46,9 @@ businessArea=${params.businessArea}&developable=${params.developable}&orgSource=
...
@@ -46,6 +46,9 @@ businessArea=${params.businessArea}&developable=${params.developable}&orgSource=
checkNameSpaceCouldUse
(
params
)
{
checkNameSpaceCouldUse
(
params
)
{
return
axios
.
get
(
`/apaas/service/v3/resource/apply/checkNs?namespace=
${
params
.
id
}
`
)
return
axios
.
get
(
`/apaas/service/v3/resource/apply/checkNs?namespace=
${
params
.
id
}
`
)
},
},
getSpecifications
()
{
return
axios
.
get
(
``
)
},
// shopping cart
// shopping cart
addShoppingCart
(
params
)
{
addShoppingCart
(
params
)
{
...
@@ -77,7 +80,12 @@ businessArea=${params.businessArea}&developable=${params.developable}&orgSource=
...
@@ -77,7 +80,12 @@ businessArea=${params.businessArea}&developable=${params.developable}&orgSource=
},
},
getGeneralOverview
()
{
getGeneralOverview
()
{
return
axios
.
get
(
`/apaas/service/v3/statistics/other/index`
);
return
axios
.
get
(
`/apaas/service/v3/statistics/other/index`
);
}
},
// app
getExtendedInfo
(
params
)
{
return
axios
.
get
(
`/apaas/hubApi/market/extendedInfo?id=
${
params
.
id
}
`
);
},
}
}
export
default
serviceShop
;
export
default
serviceShop
;
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