Pārlūkot izejas kodu

feat: 新增活动路由

cuiyalong 11 mēneši atpakaļ
vecāks
revīzija
92ed3c06bb

+ 13 - 1
src/web/staticres/common-module/pc-dialog/js/leave-info-dialog.js

@@ -493,7 +493,19 @@ var vm = new Vue({
           height: '277px',
           desc: '数据自助导出-中标单位个数达上限-申请数据定制',
           oneRow: true
-        }
+        },
+        pc_consult_report: {
+          headerUrl: '/common-module/pc-dialog/image/leave-title-custom.png',
+          height: '277px',
+          desc: '数据自助导出-中标单位个数达上限-申请数据定制',
+          oneRow: true
+        },
+        pc_consult_exclusiv_more: {
+          headerUrl: '/common-module/pc-dialog/image/leave-title-custom.png',
+          height: '277px',
+          desc: '数据自助导出-中标单位个数达上限-申请数据定制',
+          oneRow: true
+        },
       }
     }
   },

+ 47 - 0
src/web/staticres/frontRouter/pc/customExport/css/consult.css

@@ -0,0 +1,47 @@
+.public-nav{
+  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
+}
+.w1200{
+  width: 1200px;
+  margin: 0 auto;
+}
+
+
+.i-need-more {
+  padding: 0 20px;
+  display: flex;
+  align-items: center;
+  justify-content: flex-end;
+  font-size: 28px;
+  color: #fff;
+  background: #003396;
+}
+.i-need-more.fixed {
+  position: fixed;
+  bottom: 0;
+  left: 0;
+  width: 100%;
+  z-index: 999;
+}
+.i-need-more .closed {
+  cursor: pointer;
+  width:16px;
+  height:16px;
+  background-image: url(/frontRouter/pc/customExport/image/close.png);
+}
+.i-need-more .i-n-m-bg {
+  position: relative;
+  height: 88px;
+  background-image: url(/frontRouter/pc/customExport/image/bottom-fixed-ad.png);
+}
+
+.i-need-more .get-data-example-button {
+  position: absolute;
+  top: 0;
+  right: 0;
+  width: 400px;
+  height: 100%;
+  cursor: pointer;
+  background-image: url(/frontRouter/pc/customExport/image/bottom-fixed-button.png);
+}
+

+ 41 - 0
src/web/staticres/frontRouter/pc/customExport/js/consult.js

@@ -0,0 +1,41 @@
+var needMoreAdShow = true
+$(function(){
+  // 底部ad
+  $('.i-need-more .closed').on('click', function () {
+    $('.i-need-more').fadeOut()
+    needMoreAdShow = false
+  });
+  windowScrollFn();
+  $(window).on('scroll', windowScrollFn);
+  $(window).on('resize', windowScrollFn);
+});
+
+// 数据定制导出(获取数据样例) source: pc_data_custom_export
+// 数据定制导出(定制操作)source:  pc_data_custom_data
+function needSubmitHandle (source){
+  // 调用组件是否留资方法 传入一个来源对应模块 弹出弹框 (页面改版改为点击【获取数据样例】触发弹框)
+  vm.isNeedSubmit(source, function(){
+    // vm.showSuccess = true
+  })
+}
+
+function windowScrollFn () {
+  // 底部横幅固定
+  var stickyFooter = $('.i-need-more');
+  if (needMoreAdShow) {
+    // 吸底
+    // 如果距离底部
+    var bottomFooter = $('.j-bottom');
+    var ob = { top: 0 };
+    if (bottomFooter.length) {
+      ob = bottomFooter[0] && bottomFooter[0].getBoundingClientRect();
+    }
+    // bottom出现在视口
+    var bottom = window.innerHeight - ob.top;
+    if (bottom > 0 && ob.top !== 0) {
+      stickyFooter.css({ bottom: parseInt(bottom) });
+    } else {
+      stickyFooter.css({ bottom: 0 });
+    }
+  }
+}

+ 44 - 0
src/web/templates/frontRouter/pc/serviceSystem/free/consult.html

@@ -0,0 +1,44 @@
+<!doctype html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <meta name="viewport"
+        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
+  <meta http-equiv="X-UA-Compatible" content="ie=edge">
+  <title>数据定制导出_剑鱼标讯,专业招标大数据服务平台</title>
+  <meta name="Keywords" content="招标数据,中标数据,采购数据,结构化数据"/>
+  <meta name="Description" content="剑鱼标讯提供完整的结构化数据导出和定制化合作,提供招标信息相关的项目名称、项目编号、项目范围等多达30个字段,帮助企业通过数据分析市场、获取商机、辅助企业战略决策。。"/>
+  <meta content="数据定制导出" theme="light" name="enable-header"/>
+  {{include "/common/pnc.html"}}
+  <link href='{{Msg "seo" "cdn"}}/css/swiper.min.css?v={{Msg "seo" "version"}}' rel="stylesheet" type="text/css"/>
+  <link rel="stylesheet" type="text/css" href='{{Msg "seo" "cdn"}}/pccss/reset_pc.css?v={{Msg "seo" "version"}}' />
+  <link rel="stylesheet" type="text/css" href='{{Msg "seo" "cdn"}}/pccss/public-nav-1200.css?v={{Msg "seo" "version"}}' />
+  <link href='{{Msg "seo" "cdn"}}/css/pc.css?v={{Msg "seo" "version"}}' rel="stylesheet"/>
+  <link href="//cdn-common.jianyu360.com/cdn/lib/element-ui/2.15.7/lib/theme-chalk/index.css" rel="stylesheet" />
+  <link rel="stylesheet" href='{{Msg "seo" "cdn"}}/frontRouter/pc/customExport/css/consult.css?v={{Msg "seo" "version"}}'/>
+  <link href='{{Msg "seo" "cdn"}}/common-module/pc-dialog/css/leave-info-dialog.css?v={{Msg "seo" "version"}}' rel="stylesheet">
+</head>
+<body>
+  {{include "/common/pchead.html"}}
+  <!-- 用户留资 -->
+  <div id="vue-collect-user-info"></div>
+  <div class="service-consult-index">
+    <button class="leave-button">留资</button>
+
+    <div class="i-need-more fixed" style="z-index: 99;height:800px">
+      <div class="i-n-m-bg bg-contain w1200">
+        <div class="get-data-example-button bg-contain" onClick="needSubmitHandle('pc_data_custom_export')"></div>
+      </div>
+      <div class="closed bg-contain"></div>
+    </div>
+  </div>
+
+  {{include "/common/pcbottom.html"}}
+  <script src=//cdn-common.jianyu360.com/cdn/lib/vue/2.6.11/vue.min.js></script>
+  <script src="//cdn-common.jianyu360.com/cdn/lib/element-ui/2.15.7/lib/index.js"></script>
+  <script src='{{Msg "seo" "cdn"}}/js/swiper.min.js'></script>
+  <script src='{{Msg "seo" "cdn"}}/common-module/pc-dialog/js/leave-info-dialog.js?v={{Msg "seo" "version"}}'></script>
+  
+  <script src='{{Msg "seo" "cdn"}}/frontRouter/pc/customExport/js/consult.js?v={{Msg "seo" "version"}}'></script>
+</body>
+</html>