Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
ln-medicalAppointment-pc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
孙海亮
ln-medicalAppointment-pc
Commits
b5f3de7c
Commit
b5f3de7c
authored
Nov 30, 2021
by
hailiang.sun
Browse files
Options
Browse Files
Download
Plain Diff
修改readme
parents
1edb7109
5e2161ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
87 additions
and
95 deletions
+87
-95
item.vue
src/views/index/components/item.vue
+87
-95
No files found.
src/views/index/components/item.vue
View file @
b5f3de7c
...
@@ -6,22 +6,14 @@
...
@@ -6,22 +6,14 @@
</div>
</div>
<!-- $router.push(item.fileList[0]&&item.fileList[0].url) -->
<!-- $router.push(item.fileList[0]&&item.fileList[0].url) -->
<div
class=
"detail"
>
<div
class=
"detail"
>
<img
:src=
"eyes"
alt=
""
/>
点击查看服务套餐详情
<img
:src=
"eyes"
alt=
""
@
click=
"openModel"
/>
点击查看服务套餐详情
<!--
{{
item
.
fileList
[
0
].
url
}}
-->
<!--
{{
item
.
fileList
[
0
].
url
}}
-->
</div>
</div>
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<a-button
<a-button
v-if=
"listType == 2"
style=
"background: #ffcc00; color: white; border: none; width: 86px"
v-if=
"listType == 2"
@
click=
"handleReadDetail"
>
查看
</a-button>
style=
"background: #ffcc00; color: white; border: none; width: 86px"
<a-button
v-else
style=
"background: #3f7ffb; color: white; border: none; width: 86px"
@
click=
"handleSubmit"
>
立即预约
@
click=
"handleReadDetail"
>
查看
</a-button
>
<a-button
v-else
style=
"background: #3f7ffb; color: white; border: none; width: 86px"
@
click=
"handleSubmit"
>
立即预约
</a-button>
</a-button>
<div
class=
"date"
>
<div
class=
"date"
>
{{
{{
...
@@ -31,107 +23,107 @@
...
@@ -31,107 +23,107 @@
}}
}}
</div>
</div>
</div>
</div>
<a-modal
width=
"1000px"
:footer=
"null"
>
<a-modal
v-model=
"visible"
width=
"1000px"
:footer=
"null"
>
<img
<img
style=
"width: 100%; padding: 20px 20px"
:src=
"item.fileList[0] && item.fileList[0].url"
alt=
""
/>
style=
"width: 100%; padding: 20px 20px"
:src=
"item.fileList[0] && item.fileList[0].url"
alt=
""
/>
</a-modal>
</a-modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
name
:
"
item
"
,
name
:
"
item
"
,
components
:
{},
components
:
{},
props
:
{
props
:
{
listType
:
{
listType
:
{
type
:
String
,
type
:
String
,
default
:
""
,
default
:
""
,
},
id
:
{
type
:
String
|
Number
,
default
:
""
,
},
item
:
{
type
:
Object
,
default
:
()
=>
{
},
},
},
},
id
:
{
data
()
{
type
:
String
|
Number
,
return
{
default
:
""
,
visible
:
false
,
eyes
:
require
(
"
@/assets/imgs/index/eyes.png
"
),
};
},
},
item
:
{
methods
:
{
type
:
Object
,
// 立即预约
default
:
()
=>
{},
handleSubmit
()
{
},
console
.
log
(
"
立即预约~
"
,
this
.
item
.
chooseList
);
},
data
()
{
return
{
eyes
:
require
(
"
@/assets/imgs/index/eyes.png
"
),
};
},
methods
:
{
// 立即预约
handleSubmit
()
{
console
.
log
(
"
立即预约~
"
,
this
.
item
.
chooseList
);
// 本地存储数据-该产品下可选择的体检套餐
// 本地存储数据-该产品下可选择的体检套餐
window
.
localStorage
.
setItem
(
"
reservedInfo
"
,
JSON
.
stringify
(
this
.
item
));
window
.
localStorage
.
setItem
(
"
reservedInfo
"
,
JSON
.
stringify
(
this
.
item
));
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"
Flow
"
,
name
:
"
Flow
"
,
query
:
{
query
:
{
id
:
this
.
id
,
//客户id
id
:
this
.
id
,
//客户id
servicepackageId
:
this
.
item
.
id
,
//产品id
servicepackageId
:
this
.
item
.
id
,
//产品id
},
},
});
});
},
},
// 查看-预约详情
// 查看-预约详情
handleReadDetail
()
{
handleReadDetail
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"
Detail
"
,
name
:
"
Detail
"
,
query
:
{
query
:
{
id
:
this
.
id
,
id
:
this
.
id
,
},
},
params
:
this
.
item
,
params
:
this
.
item
,
});
});
},
openModel
()
{
this
.
visible
=
true
}
},
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.item {
.item {
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
background: #fafafa;
background: #fafafa;
padding: 14.5px 12px;
padding: 14.5px 12px;
border-radius: 8px;
border-radius: 8px;
margin-top: 12px;
margin-top: 12px;
.right {
.right {
text-align: right;
text-align: right;
.date {
.date {
color: #999999;
color: #999999;
font-size: 14px;
font-size: 14px;
margin-top: 12px;
margin-top: 12px;
}
}
}
}
.left {
.left {
.title {
.title {
color: #333333;
color: #333333;
font-size: 14px;
font-size: 14px;
font-weight: bold;
font-weight: bold;
}
}
.detail {
.detail {
font-size: 14px;
font-size: 14px;
color: #999999;
color: #999999;
line-height: 30px;
line-height: 30px;
margin-top: 12px;
margin-top: 12px;
cursor: pointer;
cursor: pointer;
img {
img {
position: relative;
position: relative;
top: -2px;
top: -2px;
margin-right: 3px;
margin-right: 3px;
}
}
}
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
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