|
@@ -46,48 +46,84 @@ function toProductDetailPage(productId) {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
- <div>
|
|
|
|
|
- <div class="store-detail-main">
|
|
|
|
|
- <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>
|
|
|
|
|
- <el-button class="create-product-button" type="primary" plain
|
|
|
|
|
- @click="toCreateProduct()">新增商品
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="all-product-main">
|
|
|
|
|
|
|
+ <el-container>
|
|
|
|
|
+ <el-aside width="25%" class="page-aside">
|
|
|
|
|
+ <div class="store-detail-main">
|
|
|
|
|
+
|
|
|
|
|
+ <el-button class="create-product-button" type="primary" plain>
|
|
|
|
|
+ 返回
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+
|
|
|
|
|
+ <el-image class="logo-image" :src="logoUrl"/>
|
|
|
|
|
+
|
|
|
|
|
+ <span style="font-size: 30px">
|
|
|
|
|
+ {{ name }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <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>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <el-button class="create-product-button" type="primary" plain
|
|
|
|
|
+ @click="toCreateProduct()">新增商品
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-aside>
|
|
|
|
|
+
|
|
|
|
|
+ <el-main class="all-product-main">
|
|
|
<productItem class="product-item-list"
|
|
<productItem class="product-item-list"
|
|
|
v-for="productVO in productList" :productId="productVO.id"
|
|
v-for="productVO in productList" :productId="productVO.id"
|
|
|
@click="toProductDetailPage(productVO.id)" />
|
|
@click="toProductDetailPage(productVO.id)" />
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </el-main>
|
|
|
|
|
+ </el-container>
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
|
|
+.page-aside {
|
|
|
|
|
+ border-right: lightgrey solid 1px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.store-detail-main {
|
|
.store-detail-main {
|
|
|
- margin-left: 50px;
|
|
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ justify-content: start;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.logo-image {
|
|
.logo-image {
|
|
|
- width: 30%;
|
|
|
|
|
|
|
+ width: 100%;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.create-product-button {
|
|
.create-product-button {
|
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.product-item-list {
|
|
|
|
|
- margin-top: 20px;
|
|
|
|
|
- margin-left: 50px;
|
|
|
|
|
|
|
+.all-product-main {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: row;
|
|
|
|
|
+ padding: 20px;
|
|
|
|
|
+ flex-flow: wrap;
|
|
|
|
|
+ align-content: start;
|
|
|
|
|
+ justify-content: start;
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|