瀏覽代碼

农业执法

RongCheng
庞东旭 2 年之前
父節點
當前提交
4ed4646dcf
共有 3 個檔案被更改,包括 50 行新增0 行删除
  1. +13
    -0
      index.html
  2. +26
    -0
      static/css/main.css
  3. +11
    -0
      static/js/project/index.js

+ 13
- 0
index.html 查看文件

@@ -559,6 +559,19 @@
<div class="clear"></div> <div class="clear"></div>
</div> </div>
</div> </div>
<script id="bannerFocusDataPC" type="text/html">
<div class="pc01">
<img src="/api{{focusListPC[0].picUrl}}" width="150" alt="">
<p>安卓APP下载</p>
</div>

<div class="pc02">
<img src="/api{{focusListPC[1].picUrl}}" width="150" alt="">
<p>手机扫码打开</p>
</div>
</script>

<div id="bannerFocusPCContent" style="position: absolute;top: 0;z-index: 999"></div>
</div> </div>
</body> </body>
<script src="./static/js/common/require.js" data-main="./static/js/common/main.js?t=101" id="require-page" <script src="./static/js/common/require.js" data-main="./static/js/common/main.js?t=101" id="require-page"


+ 26
- 0
static/css/main.css 查看文件

@@ -121,6 +121,8 @@ s {
word-break: break-all; word-break: break-all;
} }


::-webkit-scrollbar{width:0;}

html, html,
body { body {
height: 100%; height: 100%;
@@ -2589,4 +2591,28 @@ Basic Swiper Styles


.swiper-active-switch { .swiper-active-switch {
background: #fff; background: #fff;
}

.pc01{
position: fixed;
top: 50%;
left: 10px;
text-align: center;
background: #ffffff;
box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
padding: 10px;
}

.pc01 p,.pc02 p {
margin-top: 10px;
}

.pc02{
position: fixed;
top: 50%;
right: 10px;
text-align: center;
background: #ffffff;
box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
padding: 10px;
} }

+ 11
- 0
static/js/project/index.js 查看文件

@@ -109,6 +109,8 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa
module.init = function (page) { module.init = function (page) {
//获取焦点图信息 //获取焦点图信息
tools.doGet(websitePicture, {picType:1,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsTop , true); tools.doGet(websitePicture, {picType:1,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsTop , true);
//获取焦点图信息
tools.doGet(websitePicture, {picType:2,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsPC , true);


//获取焦点图信息 //获取焦点图信息
tools.doGet(websiteNew + '/1/0/4', {}, module.focusNews , true); tools.doGet(websiteNew + '/1/0/4', {}, module.focusNews , true);
@@ -211,6 +213,15 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa
} }
} }


//焦点图数据
module.focusNewsPC = function (data) {
if (data.code == 200) {
module.data.focusListPC = data.data;
var bannerFocusDataPC = template('bannerFocusDataPC', module.data);
$("#bannerFocusPCContent").html(bannerFocusDataPC);
}
}

//焦点图数据 //焦点图数据
module.focusNews = function (data) { module.focusNews = function (data) {
if (data.code == 200) { if (data.code == 200) {


Loading…
取消
儲存