Explorar el Código

前端修改

master
庞东旭 hace 4 años
padre
commit
809ea4f32d
Se han modificado 8 ficheros con 89 adiciones y 57 borrados
  1. +16
    -16
      static/css/listingItems/items.css
  2. BIN
      static/images/feel5.png
  3. BIN
      static/images/feel6.png
  4. BIN
      static/images/zwtp.jpg
  5. +3
    -1
      static/js/common/tools.js
  6. +18
    -3
      static/js/project/listingItems/items.js
  7. +8
    -0
      static/js/project/listingItems/itemsList.js
  8. +44
    -37
      view/listingItems/itemsDetail.html

+ 16
- 16
static/css/listingItems/items.css Ver fichero

@@ -202,14 +202,13 @@
} }


.pc-slide { .pc-slide {
width: 445px;
background-color: #f7f7f7;
/*border: 1px solid #eaeaea;*/
width: 500px;
margin: 0 auto;
} }


.view .swiper-container { .view .swiper-container {
width: 445px;
height: 298px;
width: 500px;
height: 350px;
} }


.view .arrow-left { .view .arrow-left {
@@ -218,9 +217,10 @@
left: 10px; left: 10px;
top: 50%; top: 50%;
margin-top: -25px; margin-top: -25px;
width: 28px;
height: 28px;
width: 30px;
height: 30px;
z-index: 10; z-index: 10;
background-size: 100%;
} }


.view .arrow-right { .view .arrow-right {
@@ -229,27 +229,27 @@
right: 10px; right: 10px;
top: 50%; top: 50%;
margin-top: -25px; margin-top: -25px;
width: 28px;
height: 28px;
width: 30px;
height: 30px;
z-index: 10; z-index: 10;
background-size: 100%;
} }


.preview { .preview {
width: 100%; width: 100%;
margin-top: 10px; margin-top: 10px;
padding-bottom: 40px;
position: relative; position: relative;
} }


.preview .swiper-container { .preview .swiper-container {
width: 420px;
width: 430px;
height: 82px; height: 82px;
margin-left: 35px;
} }


.preview .swiper-slide { .preview .swiper-slide {
width: 100px;
width: 87px;
height: 82px; height: 82px;
margin-right: 10px;
} }


.preview .slide6 { .preview .slide6 {
@@ -257,7 +257,7 @@
} }


.preview .arrow-left { .preview .arrow-left {
background: url(../../images/feel3.png) no-repeat left top;
background: url(../../images/feel6.png) no-repeat left top;
position: absolute; position: absolute;
left: 10px; left: 10px;
top: 50%; top: 50%;
@@ -268,7 +268,7 @@
} }


.preview .arrow-right { .preview .arrow-right {
background: url(../../images/feel4.png) no-repeat left bottom;
background: url(../../images/feel5.png) no-repeat left bottom;
position: absolute; position: absolute;
right: 10px; right: 10px;
top: 50%; top: 50%;
@@ -284,7 +284,7 @@


.preview .active-nav img { .preview .active-nav img {
padding: 0; padding: 0;
border: 1px solid #007b76;
border: 1px solid #F00;
} }


.swiperDetail{ .swiperDetail{


BIN
static/images/feel5.png Ver fichero

Antes Después
Anchura: 9  |  Altura: 18  |  Tamaño: 1.0 KiB

BIN
static/images/feel6.png Ver fichero

Antes Después
Anchura: 9  |  Altura: 18  |  Tamaño: 1.0 KiB

BIN
static/images/zwtp.jpg Ver fichero

Antes Después
Anchura: 444  |  Altura: 297  |  Tamaño: 7.3 KiB

+ 3
- 1
static/js/common/tools.js Ver fichero

@@ -3,9 +3,10 @@ define(['jquery', 'dialog'], function ($, dialog) {
function Tool() { function Tool() {
this.version = "1.0.0"; this.version = "1.0.0";
this.description = "这是一个工具类"; this.description = "这是一个工具类";
this.serverApi = 'aaa';
} }
var ajaxJsUrl = "/api"; var ajaxJsUrl = "/api";
var module = {};
$.extend(Tool.prototype, { $.extend(Tool.prototype, {
/** /**
* ajax post * ajax post
@@ -391,6 +392,7 @@ define(['jquery', 'dialog'], function ($, dialog) {
$("#webConfigName").html(content[0].configValue); $("#webConfigName").html(content[0].configValue);
$("#webConfigRecord").html(content[1].configValue + content[2].configValue); $("#webConfigRecord").html(content[1].configValue + content[2].configValue);
$("#webConfigAddress").html(content[0].configValue+' '+content[3].configValue); $("#webConfigAddress").html(content[0].configValue+' '+content[3].configValue);
this.serverApi = content[11].configValue;
} }
}, },
/** /**


+ 18
- 3
static/js/project/listingItems/items.js Ver fichero

@@ -13,7 +13,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ
module.init = function (page) { module.init = function (page) {


//浏览次数 //浏览次数
tools.doGet(outProject + '/'+getQueryVariable('id'), {}, module.projectNum(),true);
//tools.doGet(outProject + '/'+getQueryVariable('id'), {}, module.projectNum(),true);


//项目基本信息 //项目基本信息
tools.doGet(outProject + '/id/'+getQueryVariable('id'), {}, module.outProjectInformation,true); tools.doGet(outProject + '/id/'+getQueryVariable('id'), {}, module.outProjectInformation,true);
@@ -24,6 +24,11 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ
//网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号) //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号)
tools.getWebConfig(); tools.getWebConfig();


//焦点图
setTimeout(function () {
module.swiperBanner();
},200)

}; };


//获取地址栏参数 //获取地址栏参数
@@ -61,6 +66,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ
var outProjectInformationData = template('outProjectInformationData', module.data); var outProjectInformationData = template('outProjectInformationData', module.data);
$("#outProjectInformationContent").html(outProjectInformationData); $("#outProjectInformationContent").html(outProjectInformationData);



//挂牌项目竞价记录 //挂牌项目竞价记录
tools.doGet(biddinglist, {projectId:getQueryVariable('id')}, module.biddinglistInformation,true); tools.doGet(biddinglist, {projectId:getQueryVariable('id')}, module.biddinglistInformation,true);
//挂牌价格字典 //挂牌价格字典
@@ -100,8 +106,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ
tools.doGet(signup, {projectId:getQueryVariable('id'),depositStatus:'1',memberId:tools.getCookie('memberId')}, module.signup); tools.doGet(signup, {projectId:getQueryVariable('id'),depositStatus:'1',memberId:tools.getCookie('memberId')}, module.signup);




//焦点图
module.swiperBanner();

} }
} }


@@ -144,6 +149,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ


//焦点图滚动 //焦点图滚动
module.swiperBanner = function (type) { module.swiperBanner = function (type) {
console.log('aaaa')
var viewSwiper = new Swiper('.view .swiper-container', { var viewSwiper = new Swiper('.view .swiper-container', {
onSlideChangeStart: function() { onSlideChangeStart: function() {
updateNavPosition() updateNavPosition()
@@ -175,6 +181,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ
viewSwiper.swipeTo(previewSwiper.clickedSlideIndex) viewSwiper.swipeTo(previewSwiper.clickedSlideIndex)
} }
}) })

function updateNavPosition() { function updateNavPosition() {
$('.preview .active-nav').removeClass('active-nav') $('.preview .active-nav').removeClass('active-nav')
var activeNav = $('.preview .swiper-slide').eq(viewSwiper.activeIndex).addClass('active-nav') var activeNav = $('.preview .swiper-slide').eq(viewSwiper.activeIndex).addClass('active-nav')
@@ -365,6 +372,10 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ
module.data.outProjectInformationDetail.money += module.data.outProjectInformationDetail.ladderPrice ; module.data.outProjectInformationDetail.money += module.data.outProjectInformationDetail.ladderPrice ;
var outProjectInformationData = template('outProjectInformationData', module.data); var outProjectInformationData = template('outProjectInformationData', module.data);
$("#outProjectInformationContent").html(outProjectInformationData); $("#outProjectInformationContent").html(outProjectInformationData);
//焦点图
setTimeout(function () {
module.swiperBanner();
},200)
} }


//向下降价 //向下降价
@@ -375,6 +386,10 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ
module.data.outProjectInformationDetail.money -= module.data.outProjectInformationDetail.ladderPrice ; module.data.outProjectInformationDetail.money -= module.data.outProjectInformationDetail.ladderPrice ;
var outProjectInformationData = template('outProjectInformationData', module.data); var outProjectInformationData = template('outProjectInformationData', module.data);
$("#outProjectInformationContent").html(outProjectInformationData); $("#outProjectInformationContent").html(outProjectInformationData);
//焦点图
setTimeout(function () {
module.swiperBanner();
},200)
} }
return module; return module;
}); });

+ 8
- 0
static/js/project/listingItems/itemsList.js Ver fichero

@@ -81,6 +81,12 @@ define(['jquery', "template", "Tools", "itemsApi", "paging",'dateTime'], functio


//网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号) //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号)
tools.getWebConfig(); tools.getWebConfig();
console.log(tools)
setTimeout(function () {
module.data.serverApi = tools.serverApi;
console.log(tools.serverApi)
},5000)



$("#signStartTimeStr").datetime({ $("#signStartTimeStr").datetime({
type:"date", type:"date",
@@ -113,6 +119,8 @@ define(['jquery', "template", "Tools", "itemsApi", "paging",'dateTime'], functio
console.log(res) console.log(res)
} }
}) })


}; };


//获取地址栏参数 //获取地址栏参数


+ 44
- 37
view/listingItems/itemsDetail.html Ver fichero

@@ -15,7 +15,6 @@
<link href="../../static/css/iconfont.css" rel="stylesheet" type="text/css"/> <link href="../../static/css/iconfont.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/swiper-bundle.min.css" rel="stylesheet" type="text/css"/> <link href="../../static/css/swiper-bundle.min.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/listingItems/items.css" rel="stylesheet" type="text/css"/> <link href="../../static/css/listingItems/items.css" rel="stylesheet" type="text/css"/>
<link href="https://at.alicdn.com/t/font_426541_j8s6z8ejoo.css" rel="stylesheet" type="text/css"/>
<style> <style>


</style> </style>
@@ -135,6 +134,7 @@
<div class="w-1200"> <div class="w-1200">
<p class="font16 m-t-15 titIndex">挂牌项目<i>></i>产权交易<i>></i><span>三屯乡黄家村土地经营权流转</span></p> <p class="font16 m-t-15 titIndex">挂牌项目<i>></i>产权交易<i>></i><span>三屯乡黄家村土地经营权流转</span></p>
<p class="importantText m-t-15">重要提示:竞买人在竞价前请务必遵照左云县农村产权交易网的《平台竞价交易规则》、《左云县农村产权交易网平台农村产权交易操作指南》的要求,了解的情况、竞买资格、注册报名、保证金缴纳、竞买操作及款项支付方式等内容。如未全面了解相关内容,违反相关规定,您将承担无法参与项目竞买、保证金不予退还等不利后果,请审慎参与竞买。</p> <p class="importantText m-t-15">重要提示:竞买人在竞价前请务必遵照左云县农村产权交易网的《平台竞价交易规则》、《左云县农村产权交易网平台农村产权交易操作指南》的要求,了解的情况、竞买资格、注册报名、保证金缴纳、竞买操作及款项支付方式等内容。如未全面了解相关内容,违反相关规定,您将承担无法参与项目竞买、保证金不予退还等不利后果,请审慎参与竞买。</p>

<div id="outProjectInformationContent"></div> <div id="outProjectInformationContent"></div>
<script id="outProjectInformationData" type="text/html"> <script id="outProjectInformationData" type="text/html">
<div class="swiperDiv"> <div class="swiperDiv">
@@ -143,49 +143,56 @@
<div class="swiper-container"> <div class="swiper-container">
<a class="arrow-left" href="#"></a> <a class="arrow-left" href="#"></a>
<a class="arrow-right" href="#"></a> <a class="arrow-right" href="#"></a>

<div class="swiper-wrapper"> <div class="swiper-wrapper">
<div class="swiper-slide">
<a href="javascript:void(0);"><img src="../../static/images/material1.jpg" alt=""></a>
</div>
<div class="swiper-slide">
<a href="javascript:void(0);"><img src="../../static/images/material1.jpg" alt=""></a>
</div>
<div class="swiper-slide">
<a href="javascript:void(0);"><img src="../../static/images/material1.jpg" alt=""></a>
</div>
<div class="swiper-slide">
<a href="javascript:void(0);"><img src="../../static/images/material1.jpg" alt=""></a>
</div>
<div class="swiper-slide">
<a href="javascript:void(0);"><img src="../../static/images/material1.jpg" alt=""></a>
</div>
<div class="swiper-slide">
<a href="javascript:void(0);"><img src="../../static/images/material1.jpg" alt=""></a>
</div>
{{if fileUrl == null}}
<div class="swiper-slide">
<a href="javascript:void(0);" ><img src="../../static/images/zwtp.jpg" alt=""></a>
</div>
{{else}}
{{each fileUrl as value i}}
<div class="swiper-slide">
<a href="javascript:void(0);" ><img src="../../static/images/material1.jpg" alt=""></a>
</div>
{{/each}}
{{/if}}
</div> </div>
</div> </div>
</div> </div>
<div class="preview"> <div class="preview">
<a class="arrow-left" href="#"></a>
<a class="arrow-right" href="#"></a>
<div class="swiper-container"> <div class="swiper-container">
<div class="swiper-wrapper"> <div class="swiper-wrapper">
<div class="swiper-slide active-nav">
<img src="../../static/images/material1.jpg" alt="">
</div>
<div class="swiper-slide">
<img src="../../static/images/material1.jpg" alt="">
</div>
<div class="swiper-slide active-nav">
<img src="../../static/images/material1.jpg" alt="">
</div>
<div class="swiper-slide">
<img src="../../static/images/material1.jpg" alt="">
</div>
<div class="swiper-slide active-nav">
<img src="../../static/images/material1.jpg" alt="">
</div>
<div class="swiper-slide">
<img src="../../static/images/material1.jpg" alt="">
</div>
{{if fileUrl == null}}
<div class="swiper-slide active-nav">
<img src="../../static/images/zwtp.jpg" alt="">
</div>
{{else}}
{{each fileUrl as value i}}
<div class="swiper-slide active-nav">
<img src="../../static/images/material1.jpg" alt="">
</div>
{{/each}}
{{/if}}
<!-- <div class="swiper-slide active-nav">-->
<!-- <img src="../../static/images/material1.jpg" alt="">-->
<!-- </div>-->
<!-- <div class="swiper-slide">-->
<!-- <img src="../../static/images/material2.jpg" alt="">-->
<!-- </div>-->
<!-- <div class="swiper-slide">-->
<!-- <img src="../../static/images/material1.jpg" alt="">-->
<!-- </div>-->
<!-- <div class="swiper-slide">-->
<!-- <img src="../../static/images/material2.jpg" alt="">-->
<!-- </div>-->
<!-- <div class="swiper-slide">-->
<!-- <img src="../../static/images/material1.jpg" alt="">-->
<!-- </div>-->
<!-- <div class="swiper-slide slide6">-->
<!-- <img src="../../static/images/material2.jpg" alt="">-->
<!-- </div>-->
</div> </div>
</div> </div>
</div> </div>


Cargando…
Cancelar
Guardar