Commit 48af8d90 by 潘琦

内容流详情点击分析图标显示分享引导图;

parent eee77f5e
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
text-align:center; text-align:center;
} }
.card-item > .card-item-content > .card-item-table > .price .label { .card-item > .card-item-content > .card-item-table > .price .label {
font-size: 2.2em; font-size: 2em;
font-weight: bold; font-weight: bold;
color:#43d1be; color:#43d1be;
padding: 0; padding: 0;
...@@ -103,6 +103,7 @@ export default { ...@@ -103,6 +103,7 @@ export default {
.card-item > .card-item-content > .card-item-table > .info .title{ .card-item > .card-item-content > .card-item-table > .info .title{
font-size: 1.3em; font-size: 1.3em;
font-weight:bold; font-weight:bold;
margin-bottom:0.5em; /* margin-bottom:0.5em; */
margin-bottom: 0;
} }
</style> </style>
...@@ -158,6 +158,9 @@ const redirectUrl = () => { ...@@ -158,6 +158,9 @@ const redirectUrl = () => {
// }) // })
window.location.href = newUrl window.location.href = newUrl
return false return false
} else if (curUrl.indexOf('?scene=0') >= 0) {
let newUrl = curUrl.replace('?scene=0', '')
window.location.href = newUrl
} else { } else {
return true return true
} }
......
...@@ -31,7 +31,11 @@ axios.interceptors.request.use(config => { ...@@ -31,7 +31,11 @@ axios.interceptors.request.use(config => {
// respone拦截器 // respone拦截器
axios.interceptors.response.use(response => { 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 const status = Number(response.status) || 200
console.log('response status:' + status) console.log('response status:' + status)
if (status !== 200) { if (status !== 200) {
......
...@@ -189,7 +189,7 @@ export default { ...@@ -189,7 +189,7 @@ export default {
}) })
return return
} }
if (this.form.DoctorRadio < 0) { if (this.form.DoctorRadio < 0 || this.form.DoctorRadio === '') {
this.$toast({ this.$toast({
message: '请选择对医生的评价', message: '请选择对医生的评价',
position: 'center', position: 'center',
...@@ -197,7 +197,7 @@ export default { ...@@ -197,7 +197,7 @@ export default {
}) })
return return
} }
if (this.form.CommunityRadio < 0) { if (this.form.CommunityRadio < 0 || this.form.CommunityRadio === '') {
this.$toast({ this.$toast({
message: '请选择对本次服务的评价', message: '请选择对本次服务的评价',
position: 'center', position: 'center',
......
...@@ -10,13 +10,16 @@ ...@@ -10,13 +10,16 @@
<div class="title">{{data.producerName}}</div> <div class="title">{{data.producerName}}</div>
<p>{{data.producerOrgName}}</p> <p>{{data.producerOrgName}}</p>
</div> </div>
<div class="list-item-cell tool"> <div class="list-item-cell tool" @click="shareVisible=true">
<i class="glyphicon glyphicon-share"></i> <i class="glyphicon glyphicon-share"></i>
</div> </div>
</div> </div>
</div> </div>
<div class="content" v-html="data.content"></div> <div class="content" v-html="data.content"></div>
</div> </div>
<div class="share-block" v-show="shareVisible">
<img src="../../assets/images/share-img.png" @click="shareVisible=false"/>
</div>
</div> </div>
</template> </template>
...@@ -37,7 +40,8 @@ export default { ...@@ -37,7 +40,8 @@ export default {
producerName: '', producerName: '',
producerOrgName: '', producerOrgName: '',
content: '' content: ''
} },
shareVisible: false
} }
}, },
created () { created () {
...@@ -129,4 +133,16 @@ export default { ...@@ -129,4 +133,16 @@ export default {
text-align: right; text-align: right;
border-bottom:1px solid #ccc; 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> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment