|
@@ -3,15 +3,48 @@
|
|
|
<div class="record-head"></div>
|
|
|
<div class="record-wrap">
|
|
|
<div class="record-wrap-content">
|
|
|
- <div class="record-wrap-content__overview"></div>
|
|
|
- <div class="overview-left"></div>
|
|
|
- <div class="overview-right"></div>
|
|
|
+ <div class="record-wrap-content__overview" v-loading="loading">
|
|
|
+ <span>概述关于你的产品的描述,通常的英语表述为</span>
|
|
|
+ <span class="active">{{ keywordEn }},</span>
|
|
|
+ <span>在互联网上搜索的关键词为</span>
|
|
|
+ <span class="active">{{ keywords }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="overview-left">概述</div>
|
|
|
+ <div class="overview-right">
|
|
|
+ <el-button>下载报告</el-button>
|
|
|
+ </div>
|
|
|
+ <div class="record-wrap-content__keyword">
|
|
|
+ <img :src="keywordPng" />
|
|
|
+ <div class="content">
|
|
|
+ <div class="content-left">
|
|
|
+ <KeywordSearch></KeywordSearch>
|
|
|
+ </div>
|
|
|
+ <div class="content-right">
|
|
|
+ <KeywordTable></KeywordTable>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
-<script lang="ts" setup></script>
|
|
|
+<script lang="ts" setup>
|
|
|
+import { onMounted, computed } from 'vue';
|
|
|
+import { useMainStore } from '../store';
|
|
|
+import KeywordSearch from '../components/keyword/search.vue';
|
|
|
+import KeywordTable from '../components/keyword/table.vue';
|
|
|
+import keywordPng from '../assets/images/keyword.png';
|
|
|
+
|
|
|
+const mainStore = useMainStore();
|
|
|
+mainStore.initData();
|
|
|
+
|
|
|
+const keywordData = computed(() => mainStore.getKeywordInfo);
|
|
|
+const loading = computed(() => keywordData.value.loading);
|
|
|
+const keywordEn = computed(() => keywordData.value.data?.keywordEn);
|
|
|
+const keywords = computed(() => keywordData.value?.data?.keywords?.join(','));
|
|
|
+
|
|
|
+</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.record {
|
|
@@ -40,18 +73,95 @@
|
|
|
position: relative;
|
|
|
width: 1336px;
|
|
|
&__overview {
|
|
|
- width: 100%;
|
|
|
+ display: flex;
|
|
|
+ // justify-content: center;
|
|
|
+ align-items: center;
|
|
|
height: 179px;
|
|
|
+ padding: 0 58px;
|
|
|
background: rgba(255, 255, 255, 0.65);
|
|
|
box-shadow: -9px 13px 22px 0px rgba(5, 112, 183, 0.06);
|
|
|
border-radius: 4px;
|
|
|
margin-top: 35px;
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 20px;
|
|
|
+ color: #282e30;
|
|
|
+
|
|
|
+ .active {
|
|
|
+ color: var(--promotion--color-primary);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.overview-left {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 30px;
|
|
|
+ width: 136px;
|
|
|
+ height: 70px;
|
|
|
+ background: #ffffff;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 70px;
|
|
|
+ box-shadow: 0px 10px 30px 0px rgba(0, 98, 165, 0.2);
|
|
|
+ border-radius: 8px;
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 32px;
|
|
|
+ color: #282e30;
|
|
|
+ z-index: 2000;
|
|
|
}
|
|
|
|
|
|
.overview-right {
|
|
|
+ position: absolute;
|
|
|
+ top: 14px;
|
|
|
+ right: 30px;
|
|
|
+ z-index: 2000;
|
|
|
+
|
|
|
+ :deep(.el-button) {
|
|
|
+ width: 126px;
|
|
|
+ height: 48px;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #ffffff;
|
|
|
+ border-radius: 0;
|
|
|
+ border: none;
|
|
|
+ background: var(--promotion--color-primary);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &__keyword {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 40px;
|
|
|
+
|
|
|
+ img {
|
|
|
+ width: 584px;
|
|
|
+ height: 166px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .content {
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-top: 20px;
|
|
|
+
|
|
|
+ &-left {
|
|
|
+ width: 666px;
|
|
|
+ height: 317px;
|
|
|
+ padding: 45px 60px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background: linear-gradient(
|
|
|
+ 90deg,
|
|
|
+ rgba(255, 255, 255, 0.65) 0%,
|
|
|
+ rgba(255, 255, 255, 0) 100%
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ &-right {
|
|
|
+ width: 650px;
|
|
|
+ height: 317px;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|