|
|
@@ -31,31 +31,47 @@ function getStoreDetail() {
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <el-card class="store-item-card">
|
|
|
+ <el-card class="store-item-card" :body-style="{ padding: '0px' }" shadow="hover">
|
|
|
<el-image class="logo-image" :src="logoUrl"/>
|
|
|
- <el-row style="font-size: 20px">
|
|
|
- {{ name }}
|
|
|
- </el-row>
|
|
|
- <el-row style="font-size: 10px">
|
|
|
- 评分人数: {{ number }}
|
|
|
- </el-row>
|
|
|
- <el-row style="font-size: 10px">
|
|
|
- 评分: {{ rating }}
|
|
|
- </el-row>
|
|
|
- <el-row style="font-size: 10px">
|
|
|
- 地址: {{ location }}
|
|
|
- </el-row>
|
|
|
+
|
|
|
+ <div style="padding: 14px">
|
|
|
+
|
|
|
+ <h1> {{name}} </h1>
|
|
|
+
|
|
|
+ <el-descriptions :column="1">
|
|
|
+ <el-descriptions-item style="font-size: 10px" label="评分人数">
|
|
|
+ {{ number }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item style="font-size: 10px" label="评分">
|
|
|
+ <el-rate
|
|
|
+ v-model="rating"
|
|
|
+ disabled
|
|
|
+ show-score
|
|
|
+ text-color="#ff9900"
|
|
|
+ score-template="{value} 分"
|
|
|
+ size="small"
|
|
|
+ />
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item style="font-size: 10px" label="地址">
|
|
|
+ {{ location }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
</el-card>
|
|
|
</template>
|
|
|
|
|
|
<style scoped>
|
|
|
.store-item-card {
|
|
|
- margin-bottom: 10px;
|
|
|
- width:30%;
|
|
|
+ margin: 20px;
|
|
|
border-radius: 8px;
|
|
|
+ min-width: 25%;
|
|
|
+ max-width: 25%;
|
|
|
}
|
|
|
|
|
|
.logo-image {
|
|
|
- height: 120px;
|
|
|
+ width: 100%;
|
|
|
+ display: block;
|
|
|
}
|
|
|
</style>
|