Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
voucher-h5
Project
Overview
Details
Activity
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
潘琦
voucher-h5
Commits
48af8d90
Commit
48af8d90
authored
Sep 05, 2019
by
潘琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
内容流详情点击分析图标显示分享引导图;
parent
eee77f5e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
7 deletions
+31
-7
share-img.png
src/assets/images/share-img.png
+0
-0
cardItem.vue
src/components/cardItem.vue
+3
-2
permission.js
src/permission.js
+3
-0
request.js
src/router/request.js
+5
-1
comment.vue
src/views/comment/comment.vue
+2
-2
index.vue
src/views/content/index.vue
+18
-2
No files found.
src/assets/images/share-img.png
0 → 100644
View file @
48af8d90
77.7 KB
src/components/cardItem.vue
View file @
48af8d90
...
...
@@ -73,7 +73,7 @@ export default {
text-align
:
center
;
}
.card-item
>
.card-item-content
>
.card-item-table
>
.price
.label
{
font-size
:
2
.2
em
;
font-size
:
2em
;
font-weight
:
bold
;
color
:
#43d1be
;
padding
:
0
;
...
...
@@ -103,6 +103,7 @@ export default {
.card-item
>
.card-item-content
>
.card-item-table
>
.info
.title
{
font-size
:
1.3em
;
font-weight
:
bold
;
margin-bottom
:
0.5em
;
/* margin-bottom:0.5em; */
margin-bottom
:
0
;
}
</
style
>
src/permission.js
View file @
48af8d90
...
...
@@ -158,6 +158,9 @@ const redirectUrl = () => {
// })
window
.
location
.
href
=
newUrl
return
false
}
else
if
(
curUrl
.
indexOf
(
'?scene=0'
)
>=
0
)
{
let
newUrl
=
curUrl
.
replace
(
'?scene=0'
,
''
)
window
.
location
.
href
=
newUrl
}
else
{
return
true
}
...
...
src/router/request.js
View file @
48af8d90
...
...
@@ -31,7 +31,11 @@ axios.interceptors.request.use(config => {
// respone拦截器
axios
.
interceptors
.
response
.
use
(
response
=>
{
const
res
=
response
.
data
&&
(
response
.
data
.
code
===
0
||
response
.
data
.
code
===
200
)
?
response
.
data
:
response
.
data
let
res
=
response
if
(
response
.
request
)
{
res
=
response
.
data
}
// const res = response.data && (response.data.code === 0 || response.data.code === 200) ? response.data : response.data
const
status
=
Number
(
response
.
status
)
||
200
console
.
log
(
'response status:'
+
status
)
if
(
status
!==
200
)
{
...
...
src/views/comment/comment.vue
View file @
48af8d90
...
...
@@ -189,7 +189,7 @@ export default {
})
return
}
if
(
this
.
form
.
DoctorRadio
<
0
)
{
if
(
this
.
form
.
DoctorRadio
<
0
||
this
.
form
.
DoctorRadio
===
''
)
{
this
.
$toast
({
message
:
'请选择对医生的评价'
,
position
:
'center'
,
...
...
@@ -197,7 +197,7 @@ export default {
})
return
}
if
(
this
.
form
.
CommunityRadio
<
0
)
{
if
(
this
.
form
.
CommunityRadio
<
0
||
this
.
form
.
CommunityRadio
===
''
)
{
this
.
$toast
({
message
:
'请选择对本次服务的评价'
,
position
:
'center'
,
...
...
src/views/content/index.vue
View file @
48af8d90
...
...
@@ -10,13 +10,16 @@
<div
class=
"title"
>
{{
data
.
producerName
}}
</div>
<p>
{{
data
.
producerOrgName
}}
</p>
</div>
<div
class=
"list-item-cell tool"
>
<div
class=
"list-item-cell tool"
@
click=
"shareVisible=true"
>
<i
class=
"glyphicon glyphicon-share"
></i>
</div>
</div>
</div>
<div
class=
"content"
v-html=
"data.content"
></div>
</div>
<div
class=
"share-block"
v-show=
"shareVisible"
>
<img
src=
"../../assets/images/share-img.png"
@
click=
"shareVisible=false"
/>
</div>
</div>
</
template
>
...
...
@@ -37,7 +40,8 @@ export default {
producerName
:
''
,
producerOrgName
:
''
,
content
:
''
}
},
shareVisible
:
false
}
},
created
()
{
...
...
@@ -129,4 +133,16 @@ export default {
text-align
:
right
;
border-bottom
:
1px
solid
#ccc
;
}
.share-block
{
position
:
fixed
;
z-index
:
9999
;
left
:
0
;
right
:
0
;
top
:
0
;
bottom
:
0
;
}
.share-block
img
{
width
:
100%
;
}
</
style
>
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