web/im/src/components/chat/panel/template/storeDetail.vue

101 lines
2.3 KiB
Vue
Raw Normal View History

2022-12-28 10:08:51 +08:00
<template>
2022-12-28 14:54:57 +08:00
<div style="width: 362px;">
<div class="base">
<div>
<img :src="storeInfo.storeLogo" class="image" />
</div>
<div style="margin-left: 13px">
<div class="div-zoom">
2023-01-10 18:44:39 +08:00
<span class="title_left_name"> 店铺名称</span> <span class="title_right_name">{{ storeInfo.storeName }}</span>
<el-tag style="margin-left: 10px;" type="danger" v-if="storeInfo.selfOperated" size="mini">自营</el-tag>
2022-12-28 10:08:51 +08:00
</div>
2022-12-28 14:54:57 +08:00
<div>
2023-01-10 18:44:39 +08:00
<span class="title_left_name"> 联系方式:</span> <span class="title_right_name">{{ storeInfo.memberName }}</span>
2022-12-28 14:54:57 +08:00
</div>
<div>
<el-button class="store-button" type="danger" @click="linkToStore(storeInfo.id)" size="mini"
plain>进入店铺</el-button>
</div>
</div>
2022-12-28 10:08:51 +08:00
</div>
2022-12-28 14:54:57 +08:00
<hr class="separate" />
2023-01-10 18:44:39 +08:00
<div class="separate">店铺评分: <el-rate v-model="storeInfo.serviceScore" disabled show-score text-color="#ff9900"
score-template="{value}">
</el-rate></div>
<div class="separate">服务评分: <el-rate v-model="storeInfo.descriptionScore" disabled show-score text-color="#ff9900"
score-template="{value}">
</el-rate></div>
<div class="separate">物流评分: <el-rate v-model="storeInfo.deliveryScore" disabled show-score text-color="#ff9900"
score-template="{value}">
</el-rate></div>
2022-12-28 14:54:57 +08:00
</div>
2022-12-28 10:08:51 +08:00
</template>
<script>
2023-01-10 18:44:39 +08:00
import { Tag, button, rate } from 'element-ui'
2022-12-28 10:08:51 +08:00
export default {
2022-12-28 14:54:57 +08:00
data () {
return {
2023-01-10 18:44:39 +08:00
value: null,
colors: ['#99A9BF', '#F7BA2A', '#FF9900']
2022-12-28 14:54:57 +08:00
}
},
components: {
"el-tag": Tag,
"el-button": button,
2023-01-10 18:44:39 +08:00
"el-rate": rate
2022-12-28 14:54:57 +08:00
},
methods: {
},
props: {
storeInfo: {
type: Object,
default: null,
2022-12-28 10:08:51 +08:00
},
2022-12-28 14:54:57 +08:00
},
2022-12-28 10:08:51 +08:00
}
</script>
<style scoped lang="less">
2023-01-10 18:44:39 +08:00
.title_left_name {
font-size: 12px;
color: #a1a6af;
}
.title_right_name {
font-size: 12px;
color: #343036;
}
2022-12-28 14:54:57 +08:00
.store-button {
background-color: white;
border-color: #F56C6C;
}
2022-12-28 10:08:51 +08:00
2022-12-28 14:54:57 +08:00
.base {
margin-top: 5px;
height: 120px;
display: flex;
2022-12-28 10:08:51 +08:00
2022-12-28 14:54:57 +08:00
div {
margin-top: 8px;
}
2022-12-28 10:08:51 +08:00
2022-12-28 14:54:57 +08:00
.image {
height: 100px;
margin-top: 3px;
width: 100px
}
}
.separate {
margin-top: 8px;
2023-01-10 18:44:39 +08:00
// display: inline;
display: flex;
font-size: 12px;
color: #a1a6af;
2022-12-28 14:54:57 +08:00
}
2022-12-28 10:08:51 +08:00
</style>