Commit 5d36bc0f authored by youjie's avatar youjie

no message

parent 7206b250
<style scoped> <style scoped>
.image-slot{
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.time-box.time-box2 .time-box-width span{ .time-box.time-box2 .time-box-width span{
width: auto; width: auto;
} }
...@@ -272,7 +278,7 @@ ...@@ -272,7 +278,7 @@
<h6 @click="showCardHandler">{{detailsObj.Name}}</h6> <h6 @click="showCardHandler">{{detailsObj.Name}}</h6>
<div> <div>
<span>地址: {{detailsObj.CityName}} {{detailsObj.Address}}</span> <span>地址: {{detailsObj.CityName}} {{detailsObj.Address}}</span>
<a><i class="el-icon-map-location"></i> 地图</a> <a @click="showCardHandler"><i class="el-icon-map-location"></i> 地图</a>
</div> </div>
</div> </div>
</div> </div>
...@@ -422,7 +428,7 @@ ...@@ -422,7 +428,7 @@
</div> </div>
<!-- 门票详情信息 --> <!-- 门票详情信息 -->
<el-dialog custom-class="w800" title="门票详情" :visible.sync="showDetails" center @close="showDetails=false"> <el-dialog custom-class="w800" title="门票详情" :visible.sync="showDetails" center @close="showDetails=false">
<ticket-card :ticket="detailsObj"></ticket-card> <ticket-card :ticket="detailsRow"></ticket-card>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
...@@ -483,7 +489,8 @@ ...@@ -483,7 +489,8 @@
message: '请输入邮寄地址', message: '请输入邮寄地址',
trigger: 'blur' trigger: 'blur'
}], }],
} },
detailsRow: null
}; };
}, },
methods: { methods: {
...@@ -599,6 +606,7 @@ ...@@ -599,6 +606,7 @@
} }
}, },
showCardHandler() { showCardHandler() {
this.detailsRow = JSON.parse(JSON.stringify(this.detailsObj))
this.showDetails = true this.showDetails = true
}, },
getProvinceList(ID, type) { getProvinceList(ID, type) {
......
...@@ -207,9 +207,9 @@ ...@@ -207,9 +207,9 @@
</div> </div>
</div> </div>
<div v-else class="listtwo-card"> <div v-else class="listtwo-card">
<el-row :gutter="24" class="card-form"> <el-row :gutter="30" class="card-form">
<template v-for="(x,index) in tableData"> <template v-for="(x,index) in tableData">
<el-col :span="4" class="listtwo-col"> <el-col :span="5" class="listtwo-col">
<div class="listtwo-form"> <div class="listtwo-form">
<div> <div>
<el-image v-if="x.PicPathList" class="listtwo-img" :src="x.PicPathList[0]"> <el-image v-if="x.PicPathList" class="listtwo-img" :src="x.PicPathList[0]">
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</el-row> </el-row>
</div> </div>
</div> </div>
<div v-if="tableData.length==0" style="margin-top: 10px;text-align: center;">暂无数据</div> <div v-if="tableData.length==0&&!loading" style="margin-top: 10px;text-align: center;">暂无数据</div>
<el-pagination v-if="total>0" background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage" <el-pagination v-if="total>0" background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage"
:page-size="msg.pageSize" layout="total,prev, pager, next, jumper" :total="total"></el-pagination> :page-size="msg.pageSize" layout="total,prev, pager, next, jumper" :total="total"></el-pagination>
<!-- 门票详情信息 --> <!-- 门票详情信息 -->
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
</div> </div>
</div> </div>
<el-image <el-image
v-if="images.length>0"
style="width: 100%; height: 100%" style="width: 100%; height: 100%"
:src="images[0]" :src="images[0]"
:preview-src-list="images"> :preview-src-list="images">
...@@ -79,7 +80,7 @@ ...@@ -79,7 +80,7 @@
</div> </div>
</div> </div>
<div class="hotelDetails-Map"> <div class="hotelDetails-Map">
<div :style="{height:'100%',width:'100%'}" id="mapContainer"></div> <div :style="{height:'100%',width:'100%'}" :id="`mapContainer_${ticket.ID}`"></div>
</div> </div>
</div> </div>
<div class="hotelDetails-prompt"> <div class="hotelDetails-prompt">
...@@ -126,20 +127,19 @@ ...@@ -126,20 +127,19 @@
watch: { watch: {
ticket: { ticket: {
handler: function (val, oldVal) { handler: function (val, oldVal) {
this.t = JSON.parse(JSON.stringify(this.ticket))
this.images = this.t.PicPathList
this.initMap(this.t.Lng,this.t.Lat,this.t.Name)
}, },
deep: true deep: true
}, },
}, },
created() { created() {
}, },
mounted() { mounted() {
if(this.ticket){
this.t = JSON.parse(JSON.stringify(this.ticket)) this.t = JSON.parse(JSON.stringify(this.ticket))
this.images = this.t.PicPathList this.images = this.t.PicPathList
this.initMap(this.t.Lng,this.t.Lat,this.t.Name) this.initMap(this.t.Lng,this.t.Lat,this.t.Name)
}
}, },
methods: { methods: {
initMap(lng,lat,name) { initMap(lng,lat,name) {
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
this.map.clearOverlays() this.map.clearOverlays()
} }
var that = this; var that = this;
this.map = new BMap.Map("mapContainer", {enableMapClick:false, this.map = new BMap.Map(`mapContainer_${this.ticket.ID}`, {enableMapClick:false,
minZoom: 3, minZoom: 3,
maxZoom: 50, maxZoom: 50,
}) //新建地图实例,enableMapClick:false :禁用地图默认点击弹框 }) //新建地图实例,enableMapClick:false :禁用地图默认点击弹框
...@@ -170,7 +170,6 @@ ...@@ -170,7 +170,6 @@
}) })
marker.setLabel(label) marker.setLabel(label)
this.map.addOverlay(marker); this.map.addOverlay(marker);
}, },
showImageHandler(){ showImageHandler(){
this.$refs.images.showViewer = true this.$refs.images.showViewer = true
...@@ -181,6 +180,12 @@ ...@@ -181,6 +180,12 @@
</script> </script>
<style scoped> <style scoped>
.image-slot{
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.hotelDetails-header{ .hotelDetails-header{
display: flex; display: flex;
align-items: center; align-items: center;
......
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