Commit 5e2161ea authored by 王志鹏's avatar 王志鹏

预约体检展示照片bug

parent b7cfed43
...@@ -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,18 +23,14 @@ ...@@ -31,18 +23,14 @@
}} }}
</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: {
...@@ -56,11 +44,12 @@ export default { ...@@ -56,11 +44,12 @@ export default {
}, },
item: { item: {
type: Object, type: Object,
default: () => {}, default: () => { },
}, },
}, },
data() { data() {
return { return {
visible: false,
eyes: require("@/assets/imgs/index/eyes.png"), eyes: require("@/assets/imgs/index/eyes.png"),
}; };
}, },
...@@ -89,12 +78,15 @@ export default { ...@@ -89,12 +78,15 @@ export default {
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;
...@@ -133,5 +125,5 @@ export default { ...@@ -133,5 +125,5 @@ export default {
} }
} }
} }
} }
</style> </style>
\ No newline at end of file
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