Browse Source

fix:移动端下单页样例调整为跳转当前类型报告样例

yangfeng 1 month ago
parent
commit
963f7c793d

+ 12 - 0
apps/mobile/src/views/article/components/ActionDownloadReport.vue

@@ -291,6 +291,16 @@ export default {
 </style>
 <style lang="scss">
 .rival-dialog {
+  display: flex;
+  flex-direction: column;
+  max-height: 80%;
+  top: 50%;
+  .van-dialog__content {
+    display: flex;
+    flex-direction: column;
+    flex: 1;
+    overflow: hidden;
+  }
   .dialog-header {
     padding: 24px 16px 14px;
   }
@@ -300,7 +310,9 @@ export default {
     color: #171826;
   }
   .dialog-content {
+    flex: 1;
     padding: 0 16px 24px;
+    overflow-y: scroll;
   }
   .ent-list {
     padding: 16px 0;

+ 1 - 1
apps/mobile/src/views/article/components/DownProjectReport.vue

@@ -15,7 +15,7 @@
         content-tip-text="项目报告文件将以邮件的形式发送至您的邮箱"
         :before-close="beforeEmailDialogClose"
       />
-      <span>下载项目报告</span>
+      <span>项目进度报告</span>
     </template>
   </TabActionItem>
 </template>

+ 21 - 15
apps/mobile/src/views/create-order/components/analysis-report/HeaderAdsense.vue

@@ -1,8 +1,11 @@
 <template>
   <div class="header-show-group flex flex-(col items-center)">
-    <img class="jy-zhima-logo" src="@/assets/image/reportanalysis/jy-zhima-logo.png" />
+    <img
+      class="jy-zhima-logo"
+      src="@/assets/image/reportanalysis/jy-zhima-logo.png"
+    />
     <div class="ex-name">{{ name }}</div>
-    <select-report-example>
+    <select-report-example :name="reportType">
       <van-button class="ex-button">报告样例</van-button>
     </select-report-example>
   </div>
@@ -13,9 +16,9 @@ import { mixinHeader } from '@/utils/mixins/header'
 import SelectReportExample from '@/components/select-report-example/index.vue'
 
 const titleMaps = {
-  'project': '项目分析报告',
-  'unit': '采购单位分析报告',
-  'competitor': '竞争对手分析报告',
+  project: '项目分析报告',
+  unit: '采购单位分析报告',
+  competitor: '竞争对手分析报告'
 }
 
 export default {
@@ -26,27 +29,30 @@ export default {
   },
   mixins: [mixinHeader],
   computed: {
-    name () {
+    name() {
       return this.$route.query.name || '芝麻信用共建分析报告'
+    },
+    reportType() {
+      return titleMaps[this.$route.params.type]
     }
   },
   data() {
     return {
       pageLayoutConf: {
-        title: '购买' + (titleMaps[this.$route.params.type] || '芝麻信用共建分析报告'),
-      },
+        title:
+          '购买' +
+          (titleMaps[this.$route.params.type] || '芝麻信用共建分析报告')
+      }
     }
   },
-  methods: {
-  }
+  methods: {}
 }
 </script>
 <style lang="scss" scoped>
 .header-show-group {
-  background: linear-gradient(269.56deg, #F2FFFE 0.07%, #FBFFFF 100%);
+  background: linear-gradient(269.56deg, #f2fffe 0.07%, #fbffff 100%);
   padding: 12px 0;
 
-
   .jy-zhima-logo {
     width: 235px;
     height: 24px;
@@ -55,7 +61,7 @@ export default {
   .ex-name {
     font-size: 15px;
     line-height: 22px;
-    color: #5F5E64;
+    color: #5f5e64;
     margin: 10px 16px;
   }
   .ex-button {
@@ -63,8 +69,8 @@ export default {
     height: 22px;
     font-size: 12px;
     line-height: 22px;
-    color: #2ABED1;
-    border: 1px solid #2ABED1;
+    color: #2abed1;
+    border: 1px solid #2abed1;
     border-radius: 4px;
   }
 }