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
53f133ad
Commit
53f133ad
authored
Jun 15, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用商店服务详情优化
parent
e1c7cc5a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
23 deletions
+37
-23
src/components/service-info/service-info.vue
src/components/service-info/service-info.vue
+12
-5
src/pages/service_shop/sjfwDetail.vue
src/pages/service_shop/sjfwDetail.vue
+9
-6
src/pages/service_shop/skfwDetail.vue
src/pages/service_shop/skfwDetail.vue
+8
-6
src/pages/service_shop/zhfwDetail.vue
src/pages/service_shop/zhfwDetail.vue
+8
-6
No files found.
src/components/service-info/service-info.vue
View file @
53f133ad
...
@@ -62,7 +62,10 @@
...
@@ -62,7 +62,10 @@
</div>
</div>
<div
class=
"commodity_information"
>
<div
class=
"commodity_information"
>
<span>
规格说明:
</span>
<span>
规格说明:
</span>
<span
class=
"commodity_text"
v-text=
"specification.descript"
></span>
<span
class=
"commodity_text"
v-text=
"specification && specification.descript"
></span>
</div>
</div>
<div
class=
"commodity_information"
>
<div
class=
"commodity_information"
>
<span>
购买方式:
</span>
<span>
购买方式:
</span>
...
@@ -125,10 +128,6 @@ export default {
...
@@ -125,10 +128,6 @@ export default {
(
item
)
=>
item
.
type
==
this
.
type
(
item
)
=>
item
.
type
==
this
.
type
);
);
if
(
this
.
specification
.
id
===
undefined
)
{
this
.
specification
=
specifications
[
0
];
}
return
specifications
;
return
specifications
;
},
},
},
},
...
@@ -146,6 +145,9 @@ export default {
...
@@ -146,6 +145,9 @@ 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");
...
@@ -183,6 +185,11 @@ export default {
...
@@ -183,6 +185,11 @@ export default {
console
.
log
(
"
applyImmediately
"
);
console
.
log
(
"
applyImmediately
"
);
},
},
},
},
mounted
()
{
if
(
this
.
specifications
.
length
>
0
)
{
this
.
specification
=
this
.
specifications
[
0
];
}
},
};
};
</
script
>
</
script
>
...
...
src/pages/service_shop/sjfwDetail.vue
View file @
53f133ad
...
@@ -56,12 +56,15 @@ export default {
...
@@ -56,12 +56,15 @@ export default {
})
})
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
let
datas
=
data
.
data
;
let
datas
=
data
.
data
;
let
specificationData
=
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
let
specificationData
=
id
:
item
.
id
,
(
datas
.
serviceRequestSpcs
&&
type
:
item
.
type
,
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
id
:
item
.
id
,
descript
:
item
.
des
,
type
:
item
.
type
,
}));
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
descript
:
item
.
des
,
})))
||
[];
this
.
baseInfo
=
{
this
.
baseInfo
=
{
service_id
:
this
.
id
,
service_id
:
this
.
id
,
...
...
src/pages/service_shop/skfwDetail.vue
View file @
53f133ad
...
@@ -61,12 +61,14 @@ export default {
...
@@ -61,12 +61,14 @@ export default {
})
})
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
let
datas
=
data
.
data
;
let
datas
=
data
.
data
;
let
specificationData
=
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
(
datas
.
serviceRequestSpcs
&&
id
:
item
.
id
,
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
type
:
item
.
type
,
id
:
item
.
id
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
type
:
item
.
type
,
descript
:
item
.
des
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
}));
descript
:
item
.
des
,
})))
||
[];
this
.
baseInfo
=
{
this
.
baseInfo
=
{
service_id
:
this
.
id
,
service_id
:
this
.
id
,
...
...
src/pages/service_shop/zhfwDetail.vue
View file @
53f133ad
...
@@ -61,12 +61,14 @@ export default {
...
@@ -61,12 +61,14 @@ export default {
})
})
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
let
datas
=
data
.
data
;
let
datas
=
data
.
data
;
let
specificationData
=
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
(
datas
.
serviceRequestSpcs
&&
id
:
item
.
id
,
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
type
:
item
.
type
,
id
:
item
.
id
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
type
:
item
.
type
,
descript
:
item
.
des
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
}));
descript
:
item
.
des
,
})))
||
[];
this
.
baseInfo
=
{
this
.
baseInfo
=
{
service_id
:
this
.
id
,
service_id
:
this
.
id
,
...
...
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