Commit 48af8d90 by 潘琦

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

parent eee77f5e
......@@ -73,7 +73,7 @@ export default {
text-align:center;
}
.card-item > .card-item-content > .card-item-table > .price .label {
font-size: 2.2em;
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>
......@@ -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
}
......
......@@ -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) {
......
......@@ -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',
......
......@@ -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>
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