庞东旭 2 лет назад
Родитель
Сommit
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>
</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>
</body>
<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;
}

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

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

.swiper-active-switch {
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) {
//获取焦点图信息
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);
@@ -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) {
if (data.code == 200) {


Загрузка…
Отмена
Сохранить