Files
2026-02-07 15:48:27 +08:00

624 lines
24 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title></title>
<link rel="stylesheet" type="text/css" href="/css/api.css" />
<link rel="stylesheet" type="text/css" href="/css/content.css" />
<script type="text/javascript" src="/scripts/jquery-2.0.2.min.js"></script>
<script type="text/javascript" src="/scripts/jquery.cookie.min.js"></script>
<!--<script type="text/javascript" src="/scripts/iscroll.js"></script>-->
<script type="text/javascript" src="/script/main.js?t=0"></script>
<script type="text/javascript" src="/layer/layer.js"></script>
<script type="text/javascript" src="/Scripts/long.js"></script>
<script type="text/javascript" src="/script/moment.js"></script>
<script type="text/javascript" src="/Scripts/TouchSlide.1.1.js"></script>
<script type="text/javascript" src="/script/api.js"></script>
<style type="text/css">
html, body {
overflow: hidden;
}
#wrapper {
flex: 1;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.pullDown {
position: absolute;
top: -1.25rem;
left: 0;
width: 100%;
z-index: 100;
text-align: center;
display: none;
}
.pullUp {
position: absolute;
bottom: -1.25rem;
left: 0;
width: 100%;
z-index: 100;
text-align: center;
display: none;
}
.pullDown.loading, .pullUp.loading, .pullDown.refresh, .pullUp.refresh {
display: block;
}
.choice_box .text {
padding-left: 0.8em;
box-sizing: border-box;
}
.mydata_box0 {
background-color: #01A14A;
border-bottom: 0;
}
.mydata_box0 div {
color:#fff;
font-size:0.85em;
}
/* 本例子css -------------------------------------- */
.slideBox {
position: relative;
overflow: hidden;
margin: 0 auto;
max-width: 100%; /* 设置焦点图最大宽度 */
padding: 0;
padding-bottom: 0;
box-sizing: border-box;
overflow: hidden;
}
.slideBox .hd {
position: absolute;
height: 28px;
line-height: 28px;
bottom: 0.3em;
right: 2em;
z-index: 1;
}
.slideBox .hd li {
display: inline-block;
width: 5px;
height: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background: #333;
text-indent: -9999px;
overflow: hidden;
margin: 0 6px;
}
.slideBox .hd li.on {
background: #fff;
}
.slideBox .bd {
position: relative;
z-index: 0;
width: 100%;
box-sizing: border-box;
overflow: hidden;
}
.slideBox .bd li {
position: relative;
text-align: center;
width: 100%;
overflow: hidden;
}
.slideBox .bd li img {
background: url(/images/loading.gif) center center no-repeat;
border-radius: 0.5em;
vertical-align: top;
width: 100%; /* 图片宽度100%,达到自适应效果 */
overflow: hidden;
}
.slideBox .bd li a {
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
/* 去掉链接触摸高亮 */
.slideBox .bd li .tit {
display: block;
width: 100%;
position: absolute;
bottom: 0;
text-indent: 10px;
height: 28px;
line-height: 28px;
background: url(/images/focusBg.png) repeat-x;
color: #fff;
text-align: left;
}
.choice_box{
margin-top:0.8em;
}
.choice_box .text {
background: linear-gradient(to right,#1C7A47,#1C7A47);
color: #fff;
border-radius: 0.4em;
}
.choice_box .choice_list .choice_item {
margin-top: 0.8em;
background-color: #fff;
border: 1px solid #dfdfdf;
border-radius: 0.4em;
}
.choice_box .choice_list .choice_item .choice_item_box {
display: flex;
flex-direction: row;
width: 100%;
}
.choice_box .choice_list .choice_item .choice_image {
display: flex;
flex-direction: column;
width: 9em;
height: 7em;
padding: 0;
box-sizing: border-box;
overflow: hidden;
}
.choice_box .choice_list .choice_item .choice_image img {
width: 7.4em;
height: 7.4em;
}
.choice_box .choice_list .right_title {
display: flex;
flex-direction: column;
flex-grow: 1;
margin-top:0;
padding: 0;
height: 7em;
width: 70%;
box-sizing: border-box;
overflow: hidden;
}
.choice_box .choice_list .right_name {
display:block;
float: left;
margin-top: -0.4em;
padding: 0;
width: 100%;
height: 2em;
text-align: left;
overflow:hidden;
box-sizing: border-box;
white-space: nowrap;
text-overflow: ellipsis;
color: #000;
}
.choice_box .choice_list .right_name0 {
float: left;
display: block;
width: 100%;
height: 3em;
line-height: 1.2em;
color: #000;
text-align: left;
overflow: hidden;
box-sizing: border-box;
}
.choice_box .choice_list .jeto {
float: left;
display: flex;
flex-direction: column;
margin-top: 0;
font-size: 0.85em;
color: #333;
width: 100%;
}
.choice_box .choice_list .jeto .hyje {
color: #333;
line-height: 1.5em;
margin-top: 0.5em;
}
.choice_box .choice_list .jeto .hyje span {
}
.choice_box .choice_list .right_button {
float: left;
display: block;
margin: 0;
margin-top:-1.8em;
width: 100%;
}
.choice_box .choice_list .right_button div {
float: right;
display: block;
margin: 0;
margin-right: 0;
width: 5em;
text-align: center;
padding: 0.2em 0.5em;
box-sizing: border-box;
background: linear-gradient(to left,#00B050,#00B050);
color: #fff;
border-radius: 0.5em;
overflow: hidden;
}
.choice_box .choice_list .right_button div.visited {
background: linear-gradient(to left,#e1e1e1,#e8e8e8);
border: 1px solid #dfdfdf;
color: #aaa;
}
.floor-product-item .product-item-cont .product-cont {
padding: 0;
padding-right: 0.4em;
}
.floor-product-item .product-item-cont .product-cont.product-cont0 {
padding-right: 0em;
}
</style>
<script type="text/javascript">
var userId = null;
var LoginId = null;
var CartId = null;
var opentimes = null;
var t = 0, ifytfg=0;
var title = "赋能实体";
var productlb_data = null;
var myScroll = null;
var pullDown = 1; // 下拉刷新避免多次执行
var pullUp = 1; // 上拉加载避免多次执行
var downHeight = 0;
var upHeight = 0;
var isload = true;//设置是否终止滚动加载
var curScrollHeight = 0;//当前滚动位置
var curCount = 1;//计数器,防止滚动时重复执行加载下一页
$(document).ready(function () {
userId = getlocalStorage("userId");
LoginId = getlocalStorage("LoginId");
var indexnav = getlocalStorage("indexnav");
if (indexnav != null) {
t = indexnav;
$("#tab" + t).addClass("on").siblings().removeClass("on");
if (t == 1) {
$(".floor-product").css("display", "none");
$("#sysnew").css("display", "block");
} else {
$(".floor-product").css("display", "block");
$("#sysnew").css("display", "none");
}
clearlocalStorage("indexnav");
}
$("header h1").html(title);
$(document).attr("title", title);
$("title").html(title);
$(".tab a").on("click", function () {
t = $(this).index();
$(this).addClass("on").siblings().removeClass("on");
if (t == 1) {
$(".floor-product").css("display", "none");
$("#sysnew").css("display", "block");
} else {
$(".floor-product").css("display", "block");
$("#sysnew").css("display", "none");
}
rdata(1);
$("#wrapper").animate({ scrollTop: 0 }, 500);
});
opentimes = setInterval(function () {
var myrefresh = getlocalStorage("fnstrefresh");
if (myrefresh != null) {
rdata(1);
clearlocalStorage("fnstrefresh");
}
}, 1000);
rdata(1);
});
function onScroll0() {
isload = true;//设置是否终止滚动加载
curScrollHeight = 0;//当前滚动位置
curCount = 1;//计数器,防止滚动时重复执行加载下一页
$("#wrapper").scroll(function () {
var pageHeight = $("#sysnew").height();
var showHeight = $("#wrapper").height();
var scrollHeight = $("#wrapper").scrollTop();
if (curScrollHeight - scrollHeight < 10 && curScrollHeight > 0) {
if (curCount == 1 && isload) {
rdata(0);
}
curCount++; //加载下一页后计数器+1
}
if (curScrollHeight < scrollHeight) {
curScrollHeight = pageHeight - showHeight;//滚动到页面底部时,重设当前滚动位置
curCount = 1;
}
});
}
function rdata(ag) {
userId = getlocalStorage("userId");
LoginId = getlocalStorage("LoginId");
var sysnew = "0";
if (t == 1) {
sysnew = "";
}
var Start = $("#sysnew" + sysnew + " .databox").length;
if (ag == 1) {
Start = 0;
}
$(".more_box").html("");
$(".ajaxLoader").removeClass("uhide");
$.ajax({
type: 'GET',
url: "/apiajax.ashx",
data: "&action=" + (t == 0 ? "getupvideolist&t=1" :"getothershopdata0&t=6") + "&ifweb=1&Start=" + Start +"&userId=" + (userId != null ? userId : "") + "&LoginId=" + (LoginId != null ? LoginId : ""),
dataType: "JSON",
error: function (xhr, type) {
tishi3("发生错误:" + JSON.stringify(xhr));
},
success: function (data) {
if (data) {
if (data.status == 1) {
var html = "";
if (Start == 0) {
ifytfg = data.ifytfg;
}
/*if (ag == 1) {
if (data.pic.length > 0) {
for (i = 0; i < data.pic.length; i++) {
html += '<li>';
html += '<a class="pic" href="javascript:void(0);"><img src="' + data.pic[i].img + '" /></a>';
html += '</li>';
}
}
$("#slideBox .bd ul").html(html);
TouchSlide({
slideCell: "#slideBox",
titCell: ".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
mainCell: ".bd ul",
effect: "leftLoop",
interTime: 6000,
autoPage: true, //自动分页
autoPlay: true //自动播放
});
}*/
$("#llj_box").html(data.userInfo.lljye);
setlocalStorage("userinfo", JSON.stringify(data.userInfo));
html = "";
var list = null;
if (t == 1) {
list = data.productlist;
} else {
list = data.data;
}
if (list.length > 0) {
for (j = 0; j < list.length; j++) {
var bifshow = 0;
if (ag == 0) {
if ($api.domAll("#sysnew" + sysnew + " .databox#databox_" + list[j]._id).length == 0) {
bifshow = 1;
}
} else {
bifshow = 1;
}
if (bifshow == 1) {
if (t == 1) {
html += '<div class="choice_item databox" onclick="ondetail(' + list[j]._id + ')" id="databox_' + list[j]._id + '">';
html += '<div class="choice_item_box">';
html += '<div class="choice_image">';
html += '<div class="choice_image_box">';
html += '<img src="' + list[j].image + '"></img>';
html += '</div>';
html += '</div>';
html += '<div class="right_title">';
html += '<div class="right_name' + (t != 2 ? "" : "0") + '" >' + list[j].name + '</div>';
html += '<div class="jeto">';
html += '<div class="hyje">金额:<span>¥' + list[j].hyje + '</span></div>';
html += '<div class="hyje">贡献值:<span>' + list[j].hyje0 + '</span></div>';
html += '<div class="hyje">展示次数:<span>' + list[j].hyje1 + '</span></div>';
/*if (list[j].type < 4) {
html += '<div class="hyje">展示次数:<span>' + list[j].hyje1 + '</span></div>';
} else {
html += '<div class="hyje">可上传视频:<span>' + parseFloat(list[j].scje).toFixed() + '个</span></div>';
}*/
html += '</div>';
html += '<div class="right_button" >';
html += '<div>立即申请</div>';
html += '</div>';
html += '</div>';
html += '</div>';
html += '</div>';
} else {
html += "<div class=\"product-cont" + (j % 2 == 0 ? "" : " product-cont0") + " databox\" databox_" + list[j].id + "\">";
html += "<div onclick=\"ondetail0(" + list[j].id + ")\" class=\"product-cont-box\">";
html += "<img src=\"" + list[j].image + "\" />";
html += "<span class=\"txt\">" + list[j].name + "</span>";
html += "<span class=\"rmb\"><span class=\"hyje\">投放流量:" + list[j].tfllmoney + "</span></span>";
html += "<span class=\"rmb\"><span class=\"hyje\">展示次数:" + list[j].zscs + "</span></span>";
//html += "<span class=\"rmb\"><span class=\"hyje\">贡献值:" + list[j].gxzmoney + "</span></span>";
html += "</div>";
html += "</div>";
}
}
}
if (ag == 1 || ag == 2) {
$("#sysnew" + sysnew + "").html(html);
if (ag == 1) {
onScroll0();
}
} else {
$("#sysnew" + sysnew + "").append(html);
}
} else {
if (Start > 0) {
if (Start > 10) {
$(".more_box").html("亲!找不到更多了");
}
} else {
$("#sysnew" + sysnew + "").html("");
$(".more_box").html("亲,暂无信息!");
}
}
$(".ajaxLoader").addClass("uhide");
} else {
tishi3(data.msg);
$(".ajaxLoader").addClass("uhide");
if (data.msg == "您未登录") {
onlink("/");
}
}
} else {
tishi3("网络错误!");
$(".ajaxLoader").addClass("uhide");
}
}
});
}
function onlistmore(id) {
$(".item-menu .item-menu-li").removeClass("hover");
$(".item-menu .item-menu-li#menu-li" + id).addClass("hover");
t0 = id;
rdata(1);
}
function ondetail(id) {
setlocalStorage("indexnav", t);
onlink("fnst_app.html?id=" + id);
}
function ondetail0(id) {
setlocalStorage("indexnav", t);
onlink("fnst_tfll.html?id=" + id);
}
function onupvideo() {
if (ifytfg == 1) {
onloginlink('fnst_upvideo.html');
} else {
onloginlink('fnst_app0.html');
}
}
</script>
</head>
<body class="wrap">
<header>
<div class="ub">
<div class="nav-btn" id="nav-left" style=" margin:0; padding:0; padding-top:0.2em; min-width:3em" onclick="closeWin()">
<img src="../image/faifei.png" style="margin-left:0; margin-top:0em; height:1.2em;width:1.2em;" />
</div>
<h1 class="ub-f1">赋能实体</h1>
<div class="nav-btn blue" id="nav-right" style="color:#fff; margin:0; padding:0; min-width:4em; padding-right:1em;">
</div>
</div>
</header>
<section class="ub-f1" id="wrapper">
<div class="mydata_box0">
<div onclick="onloginlink('fnst_log.html');" style="width:100%;">
<span id="llj_box">0</span>
<label>流量券余额</label>
</div>
</div>
<div class="mydata_box0 logbox">
<div onclick="onloginlink('fnst_log.html');" style="width:40%">
<span>申请企业品牌展示记录</span>
</div>
<div onclick="onloginlink('fnst_tflllog.html');" style="width:30%">
<span>投放流量记录</span>
</div>
<div onclick="onupvideo();" style="width:30%">
<span>上传企业视频</span>
</div>
</div>
<div class="clear"></div>
<div style="padding:0 0.8em;">
<div class="clear"></div>
<div class="choice_box">
<div class="choice_box_to">
<div class="text" id="choice_box_text0">
<div class="tab flex-around">
<a class="on" id="tab0">短视频</a>
<a id="tab1">申请投放</a>
</div>
</div>
<div class="choice_list" id="sysnew">
</div>
</div>
</div>
<div class="floor-product" style="padding:0;">
<div class="floor-product-item">
<div class="product-item-cont" id="sysnew0">
</div>
</div>
</div>
<div class="clear"></div>
<div class="more_box"></div>
</div>
</section>
<div class="ajaxLoader ub ub-ac uhide" onclick="reload()">
<div class="ub ub-ac ub-ver"><img src="image/load.gif" /><br>正在加载...</div>
</div>
</body>
</html>