<template>
|
<div class="act_detail">
|
<v-header title="详情"></v-header>
|
<div class="fm w_row clearfix">
|
<p class="w_col_24">商家名称:{{ detail.name }}</p>
|
<!-- <p class="w_col_8">活动负责人:{{detail.sponsorName}}</p> -->
|
<p class="w_col_24">商家类型:{{ detail.convenientName }}</p>
|
<p class="w_col_24">商家地址:{{ detail.address }}</p>
|
<section class="w_col_24">
|
<p>商家logo:</p>
|
<img
|
:src="detail.logo"
|
@click="onScaleUploadImage"
|
alt=""
|
class="avatar"
|
/>
|
</section>
|
<p class="w_col_24">商家简介:{{ detail.introduction }}</p>
|
<p class="w_col_24">联系人: {{ detail.contacts }}</p>
|
<p class="w_col_24">联系方式:{{ detail.phone }}</p>
|
<section class="w_col_24">
|
<p>商家图片:</p>
|
<img
|
v-for="(url, index) in detail.imgUrl"
|
:key="index"
|
:src="url"
|
@click="onScaleUploadImage2(index)"
|
alt=""
|
class="avatarList"
|
/>
|
</section>
|
</div>
|
<br />
|
<br />
|
<br />
|
<div class="foot">
|
<el-button size="small" @click="$router.go(-1)">返回</el-button>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
props: {},
|
components: {},
|
data() {
|
return {
|
count: 0,
|
id: "",
|
detail: {},
|
value1: 3,
|
pageType: true,
|
more: 1,
|
pageNum: 1,
|
pageSize: 10,
|
commentList: []
|
};
|
},
|
watch: {},
|
methods: {
|
onScaleUploadImage() {
|
this.$store.dispatch("setImage", {
|
time: Date.now(),
|
pic: this.detail.logo,
|
tool: true
|
});
|
},
|
|
onScaleUploadImage2(j) {
|
this.$store.dispatch("setImage", {
|
time: Date.now(),
|
pic: this.detail.imgUrl[j],
|
tool: true
|
});
|
},
|
|
morePage() {
|
this.pageNum++;
|
this.init();
|
},
|
init() {
|
if (!this.id) {
|
demo.toast("失效详情");
|
return 0;
|
}
|
//Jinhui/experienceGetDetails
|
this.$api.get("Jinhui/merchant/get", { merchantId: this.id }, e => {
|
this.detail = e;
|
if (this.detail.imgUrl.length) {
|
this.detail.imgUrl = this.detail.imgUrl.split(",");
|
}
|
});
|
}
|
},
|
mounted() {
|
this.id = this.$route.params.id;
|
this.init();
|
}
|
};
|
</script>
|
<style lang="less" scoped>
|
.act_detail {
|
.content {
|
height: calc(~"100% - 90px");
|
}
|
.foot {
|
margin-top: 5px;
|
}
|
.fs {
|
p {
|
float: left;
|
height: 100%;
|
}
|
}
|
.curp {
|
cursor: pointer;
|
}
|
.fm {
|
p {
|
font-size: 14px;
|
line-height: 22px;
|
color: #000;
|
padding: 8px 0;
|
min-height: 38px;
|
&.auto {
|
min-height: 20px;
|
}
|
}
|
section {
|
padding: 8px 0;
|
display: flex;
|
flex-wrap: wrap;
|
img {
|
width: 175px;
|
height: 97px;
|
margin: 5px;
|
background-color: #eee;
|
display: block;
|
border-radius: 3px;
|
cursor: pointer;
|
&.avatar {
|
width: 300px;
|
height: 170px;
|
object-fit: cover;
|
}
|
&.avatarList {
|
width: 100px;
|
height: 70px;
|
display: flex;
|
flex-wrap: wrap;
|
justify-content: flex-start;
|
align-items: center;
|
object-fit: cover;
|
}
|
& + b {
|
text-align: center;
|
font-size: 12px;
|
margin: 5px 0;
|
display: block;
|
height: 12px;
|
& + span {
|
font-size: 12px;
|
text-align: center;
|
font-size: 12px;
|
display: block;
|
height: 14px;
|
}
|
}
|
}
|
}
|
}
|
}
|
.comment-list-content {
|
display: flex;
|
flex-direction: column;
|
}
|
.fl-f {
|
display: flex;
|
}
|
.fl-al {
|
display: flex;
|
align-items: center;
|
}
|
.fl-sb {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
}
|
.fl-co {
|
display: flex;
|
flex-direction: column;
|
}
|
.fl-fw {
|
display: flex;
|
flex-wrap: wrap;
|
}
|
.user-header {
|
margin-right: 20px;
|
width: 80px;
|
height: 80px;
|
}
|
.comment-list-content {
|
width: 450px;
|
}
|
.fz-12 {
|
font-size: 24px;
|
}
|
.mr-t-style {
|
margin-top: 20px;
|
}
|
.comment-row-box {
|
margin-bottom: 20px;
|
padding-bottom: 20px;
|
border-bottom: 1px solid #dddada;
|
}
|
.comment-img-list {
|
margin-top: 20px;
|
margin-right: 10px;
|
width: 90px;
|
height: 90px;
|
}
|
.fc-999 {
|
color: #999;
|
}
|
.infinite-list-item {
|
display: flex;
|
align-items: center;
|
height: 50px;
|
}
|
</style>
|