911 lines
36 KiB
HTML
911 lines
36 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="/scripts/navbarscroll.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="/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;
|
|||
|
|
}
|
|||
|
|
/* 本例子css -------------------------------------- */
|
|||
|
|
.slideBox {
|
|||
|
|
position: relative;
|
|||
|
|
overflow: hidden;
|
|||
|
|
margin: 0 auto;
|
|||
|
|
max-width: 100%; /* 设置焦点图最大宽度 */
|
|||
|
|
padding: 0;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
overflow: hidden;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.slideBox .hd {
|
|||
|
|
position: absolute;
|
|||
|
|
height: 28px;
|
|||
|
|
line-height: 28px;
|
|||
|
|
width:100%;
|
|||
|
|
bottom: 0em;
|
|||
|
|
right: 0em;
|
|||
|
|
z-index: 1;
|
|||
|
|
text-align:center;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.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: #00B050;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.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;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
.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#slideBox0 .bd li {
|
|||
|
|
position: relative;
|
|||
|
|
text-align: center;
|
|||
|
|
width: 25%;
|
|||
|
|
overflow: hidden;
|
|||
|
|
}
|
|||
|
|
.slideBox#slideBox0 .bd li {
|
|||
|
|
width: 25%;
|
|||
|
|
height: 5.8em;
|
|||
|
|
float: left;
|
|||
|
|
text-align: center;
|
|||
|
|
font-size: 0.85em;
|
|||
|
|
overflow: hidden;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.slideBox#slideBox0 .bd li img {
|
|||
|
|
width: 3em;
|
|||
|
|
height: 3em;
|
|||
|
|
border: 1px solid #dfdfdf;
|
|||
|
|
border-radius: 0.4em;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.slideBox#slideBox0 .bd li span {
|
|||
|
|
display: block;
|
|||
|
|
width: 100%;
|
|||
|
|
color: #000;
|
|||
|
|
line-height: 2em;
|
|||
|
|
}
|
|||
|
|
.showthjto {
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
justify-content: center;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.showthjto_box {
|
|||
|
|
border-radius: 0.5em;
|
|||
|
|
margin: 5%;
|
|||
|
|
width: 90%;
|
|||
|
|
bottom: 2.5em;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.showthjto h3 span {
|
|||
|
|
float: left;
|
|||
|
|
margin-top: 0.8em;
|
|||
|
|
margin-left: 0em;
|
|||
|
|
display: block;
|
|||
|
|
width: 100%;
|
|||
|
|
height: 2em;
|
|||
|
|
text-align: center;
|
|||
|
|
font-size: 0.9em;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.wrapper03 {
|
|||
|
|
position: relative;
|
|||
|
|
height: 2.2em;
|
|||
|
|
width: 100%;
|
|||
|
|
overflow: hidden;
|
|||
|
|
margin: 0 auto;
|
|||
|
|
margin-top: 0.6em;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.wrapper03 .scroller {
|
|||
|
|
position: absolute
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.wrapper03 .scroller li {
|
|||
|
|
height: 1rem;
|
|||
|
|
color: #fff;
|
|||
|
|
float: left;
|
|||
|
|
height: 2.2em;
|
|||
|
|
text-align: center
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.wrapper03 .scroller li a {
|
|||
|
|
color: #fff;
|
|||
|
|
display: block;
|
|||
|
|
height: 2.2em;
|
|||
|
|
margin: 0 .5em;
|
|||
|
|
padding: 0 .1em;
|
|||
|
|
font-size: 1em;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.wrapper03 .scroller li.cur a {
|
|||
|
|
color: #FEFE02;
|
|||
|
|
height: 1.7em;
|
|||
|
|
border-bottom: .1rem solid #FEFE02
|
|||
|
|
}
|
|||
|
|
.nav li img {
|
|||
|
|
border-radius: 0.4em;
|
|||
|
|
}
|
|||
|
|
</style>
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
var userId = null;
|
|||
|
|
var LoginId = null;
|
|||
|
|
var CartId = null;
|
|||
|
|
var etype = 0;
|
|||
|
|
var ifapp = 0;
|
|||
|
|
var opentimes = null;
|
|||
|
|
var sInterval0 = null;
|
|||
|
|
var navindex = 0;
|
|||
|
|
var shoppic1 = 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");
|
|||
|
|
CartId = getlocalStorage("CartId");
|
|||
|
|
var aifapp = getlocalStorage("ifapp");
|
|||
|
|
if (aifapp != null) {
|
|||
|
|
ifapp = aifapp;
|
|||
|
|
}
|
|||
|
|
if (ifapp == 1) {
|
|||
|
|
$("#index_0_box").removeClass("uhide");
|
|||
|
|
} else {
|
|||
|
|
$("#index_0_box").addClass("uhide");
|
|||
|
|
}
|
|||
|
|
rdata(1, 0);
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
//var h = $("#section_midFrame").height();
|
|||
|
|
//$("#midFrame").css("height", h);
|
|||
|
|
document.onkeydown = function (event) {
|
|||
|
|
var e = event || window.event;
|
|||
|
|
if (e.keyCode === 13) {
|
|||
|
|
onkeyword();
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
function onScroll0() {
|
|||
|
|
isload = true;//设置是否终止滚动加载
|
|||
|
|
curScrollHeight = 0;//当前滚动位置
|
|||
|
|
curCount = 1;//计数器,防止滚动时重复执行加载下一页
|
|||
|
|
$("#wrapper").scroll(function () {
|
|||
|
|
var pageHeight = $((navindex == 0 ? ".products_list" : ".floor-product .product-item-cont")).height();
|
|||
|
|
var showHeight = $("#wrapper").height();
|
|||
|
|
var scrollHeight = $("#wrapper").scrollTop();
|
|||
|
|
|
|||
|
|
if (curScrollHeight - scrollHeight < 30 && curScrollHeight > 0) {
|
|||
|
|
if (curCount == 1 && isload) {
|
|||
|
|
|
|||
|
|
if (navindex == 0) {
|
|||
|
|
//rdata(1, 0);
|
|||
|
|
} else {
|
|||
|
|
getlist(0);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
curCount++; //加载下一页后计数器+1
|
|||
|
|
}
|
|||
|
|
if (curScrollHeight < scrollHeight) {
|
|||
|
|
curScrollHeight = pageHeight - showHeight;//滚动到页面底部时,重设当前滚动位置
|
|||
|
|
curCount = 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
function rdata(t, t2) {
|
|||
|
|
|
|||
|
|
|
|||
|
|
userId = getlocalStorage("userId");
|
|||
|
|
LoginId = getlocalStorage("LoginId");
|
|||
|
|
|
|||
|
|
if (t2 == 0) {
|
|||
|
|
$(".ajaxLoader").removeClass("uhide");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$.ajax({
|
|||
|
|
type: 'GET',
|
|||
|
|
url: "/apiajax.ashx?action=getshopdata&ifweb=1&userId=" + (userId != null ? userId : "") + "&LoginId=" + (LoginId != null ? LoginId : ""),
|
|||
|
|
dataType: "json",
|
|||
|
|
success: function (data) {
|
|||
|
|
if (t2 == 0) {
|
|||
|
|
$(".ajaxLoader").addClass("uhide");
|
|||
|
|
}
|
|||
|
|
if (data) {
|
|||
|
|
|
|||
|
|
if (data.status == '1') {
|
|||
|
|
|
|||
|
|
rdatato(data);
|
|||
|
|
|
|||
|
|
} else {
|
|||
|
|
etishi3(data.msg);
|
|||
|
|
if (data.msg == (etype == 0 ? "您未登录!" :"You are not logged in!")) {
|
|||
|
|
clearlocalStorage("userId");
|
|||
|
|
clearlocalStorage("LoginId");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
} else {
|
|||
|
|
|
|||
|
|
etishi3("读取数据错误0");
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
error: function (xhr, type) {
|
|||
|
|
etishi3("读取数据错误");
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
function rdatato(data) {
|
|||
|
|
|
|||
|
|
var html = "";
|
|||
|
|
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 //自动播放
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
html = "";
|
|||
|
|
|
|||
|
|
if (data.pic1.length > 0) {
|
|||
|
|
for (i = 0; i < data.pic1.length; i++) {
|
|||
|
|
if (i == 0||i == 8) {
|
|||
|
|
html += '<ul class="nav">';
|
|||
|
|
}
|
|||
|
|
html += '<li onclick="onCategory(0,' + data.pic1[i].id + ',\'' + data.pic1[i].label + '\')" class="ico1">';
|
|||
|
|
html += '<div><img src="' + data.pic1[i].img + '" /></div><span>' + data.pic1[i].label +'</span>';
|
|||
|
|
html += '</li>';
|
|||
|
|
if (i == 7 || i == data.pic1.length-1) {
|
|||
|
|
html += '</ul>';
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$("#nav_box").html(html);
|
|||
|
|
TouchSlide({
|
|||
|
|
slideCell: "#slideBox0",
|
|||
|
|
titCell: ".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
|
|||
|
|
mainCell: ".bd",
|
|||
|
|
effect: "leftLoop",
|
|||
|
|
interTime: 6000,
|
|||
|
|
autoPage: true, //自动分页
|
|||
|
|
autoPlay: true //自动播放
|
|||
|
|
});
|
|||
|
|
html = "";
|
|||
|
|
|
|||
|
|
var list = data.products;
|
|||
|
|
for (var j = 0; j < list.length; j++) {
|
|||
|
|
html += "<div class=\"product-cont" + (j % 2 == 0 ? "" : " product-cont0") + " databox_" + list[j]._id + "\">";
|
|||
|
|
html += "<div onclick=\"ondetail(" + 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\"><del>" + list[j].scje + "元</del><span class=\"hyje\" style=\"float:right;\">" + list[j].hyje + "元</span></span>";
|
|||
|
|
html += "<span class=\"rmb\" style=\" margin-top: -0.6em;\"><span class=\"hyje0\">贡献值:" + list[j].hyje0 + "</span></span>";
|
|||
|
|
html += "</div>";
|
|||
|
|
html += "</div>";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$("#products_list").html(html);
|
|||
|
|
html = "";
|
|||
|
|
list = data.products0;
|
|||
|
|
for (var j = 0; j < list.length; j++) {
|
|||
|
|
html += "<div class=\"product-cont" + (j % 2 == 0 ? "" : " product-cont0") + " databox_" + list[j]._id + "\">";
|
|||
|
|
html += "<div onclick=\"ondetail(" + 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\"><del>" + list[j].scje + "元</del><span class=\"hyje\" style=\"float:right;\">" + list[j].hyje + "元</span></span>";
|
|||
|
|
html += "<span class=\"rmb\" style=\" margin-top: -0.6em;\"><span class=\"hyje0\">贡献值:" + list[j].hyje0 + "</span></span>";
|
|||
|
|
html += "</div>";
|
|||
|
|
html += "</div>";
|
|||
|
|
}
|
|||
|
|
$("#products_list0").html(html);
|
|||
|
|
|
|||
|
|
if (data.iflogin == 2) {
|
|||
|
|
clearlocalStorage("userId");
|
|||
|
|
clearlocalStorage("LoginId");
|
|||
|
|
}
|
|||
|
|
else if (data.iflogin == 1) {
|
|||
|
|
setlocalStorage("userinfo", JSON.stringify(data.userInfo));
|
|||
|
|
|
|||
|
|
if (data.CloseEnable != null) {
|
|||
|
|
if (data.CloseEnable == "1") {
|
|||
|
|
clearlocalStorage("userId");
|
|||
|
|
clearlocalStorage("LoginId");
|
|||
|
|
api.openWin("login", "/");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function rdata0() {
|
|||
|
|
var msgCount = getlocalStorage("msgCount");
|
|||
|
|
if (msgCount != null) {
|
|||
|
|
$("#MsgCount").html(msgCount);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
function showhtml(index) {
|
|||
|
|
navindex = index;
|
|||
|
|
var h = 0;
|
|||
|
|
if (navindex == 0) {
|
|||
|
|
$("#index_content").css("display", "block");
|
|||
|
|
$("#index_content0").css("display", "none");
|
|||
|
|
h = $("#index_content").height();
|
|||
|
|
} else {
|
|||
|
|
$("#index_content0").css("display", "block");
|
|||
|
|
$("#index_content").css("display", "none");
|
|||
|
|
getlist(1);
|
|||
|
|
h = $("#index_content0").height();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
function getlist(ag) {
|
|||
|
|
userId = getlocalStorage("userId");
|
|||
|
|
LoginId = getlocalStorage("LoginId");
|
|||
|
|
var categoryid = 0;
|
|||
|
|
if (shoppic1 != null) {
|
|||
|
|
|
|||
|
|
categoryid = shoppic1[navindex].id;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
var Start = $(".floor-product .product-cont").length;
|
|||
|
|
if (ag == 1) {
|
|||
|
|
Start = 0;
|
|||
|
|
}
|
|||
|
|
$(".ajaxLoader").removeClass("uhide");
|
|||
|
|
$.ajax({
|
|||
|
|
type: 'GET',
|
|||
|
|
url: "/apiajax.ashx?action=getwxshoplist&ifweb=1&categoryid=" + categoryid + "&Start=" + Start + "&userId=" + (userId != null ? userId : "") + "&LoginId=" + (LoginId != null ? LoginId : ""),
|
|||
|
|
dataType: "json",
|
|||
|
|
success: function (data) {
|
|||
|
|
|
|||
|
|
|
|||
|
|
if (data) {
|
|||
|
|
if (data.status == 1) {
|
|||
|
|
var html = "";
|
|||
|
|
if (data.productlist.length > 0) {
|
|||
|
|
var list = data.productlist;
|
|||
|
|
if (Start == 0) {
|
|||
|
|
|
|||
|
|
html += "<div class=\"floor-product-item\">";
|
|||
|
|
html += "<div class=\"product-item-cont\">";
|
|||
|
|
}
|
|||
|
|
for (j = 0; j < list.length; j++) {
|
|||
|
|
if (document.getElementsByClassName(".databox_" + list[j]._id).length == 0) {
|
|||
|
|
html += "<div class=\"product-cont" + (j % 2 == 0 ? "" : " product-cont0") + " databox_" + list[j]._id + "\">";
|
|||
|
|
html += "<div onclick=\"ondetail(" + 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\"><del>" + list[j].scje + "元</del><span class=\"hyje\">" + list[j].hyje + "元</span></span>";
|
|||
|
|
html += "<span class=\"rmb\"><span class=\"hyje\">贡献值" + list[j].hyje0 + "元</span></span>";
|
|||
|
|
html += "</div>";
|
|||
|
|
html += "</div>";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if (Start == 0) {
|
|||
|
|
html += "</div>";
|
|||
|
|
html += "</div>";
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
if (ag == 1 || ag == 2) {
|
|||
|
|
$(".floor-product").html(html);
|
|||
|
|
|
|||
|
|
if (ag == 1) {
|
|||
|
|
onScroll0();
|
|||
|
|
}
|
|||
|
|
} else {
|
|||
|
|
$(".floor-product .product-item-cont").append(html);
|
|||
|
|
}
|
|||
|
|
$(".more_box").html("");
|
|||
|
|
} else {
|
|||
|
|
if (Start > 0) {
|
|||
|
|
if (Start > 10) {
|
|||
|
|
$(".more_box").html(etype == 0 ? "亲!找不到更多了" :"dear! No more");
|
|||
|
|
}
|
|||
|
|
} else {
|
|||
|
|
$('.floor-product').html("");
|
|||
|
|
$(".more_box").html(etype == 0 ? "亲,暂无信息!" : "Dear, no information!");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
$(".ajaxLoader").addClass("uhide");
|
|||
|
|
} else {
|
|||
|
|
|
|||
|
|
etishi3(data.msg);
|
|||
|
|
$(".ajaxLoader").addClass("uhide");
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
} else {
|
|||
|
|
etishi3(etype == 0 ? "网络错误!" : "Network error!");
|
|||
|
|
$(".ajaxLoader").addClass("uhide");
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
error: function (xhr, type) {
|
|||
|
|
etishi3("读取数据错误");
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
function onread(id) {
|
|||
|
|
onlink("news_details.html?id=" + id);
|
|||
|
|
}
|
|||
|
|
function ondetail(id) {
|
|||
|
|
onlink("shop_view.html?id=" + id);
|
|||
|
|
}
|
|||
|
|
function showbox(type) {
|
|||
|
|
$("#showthjto" + type).removeClass("uhide");
|
|||
|
|
}
|
|||
|
|
function hideshowthjto(type) {
|
|||
|
|
$("#showthjto" + type).addClass("uhide");
|
|||
|
|
}
|
|||
|
|
function rmenu(shopdatas) {
|
|||
|
|
var html = "";
|
|||
|
|
if (shopdatas.length > 0) {
|
|||
|
|
for (i = 0; i < shopdatas.length; i++) {
|
|||
|
|
var sclass = "";
|
|||
|
|
if (i == 0) {
|
|||
|
|
sclass = " class=\"cur\"";
|
|||
|
|
}
|
|||
|
|
html += '<li' + sclass + '><a href="javascript:void(0)">' + shopdatas[i].label + '</a></li>';
|
|||
|
|
}
|
|||
|
|
$("#wrapper03 .scroller ul").html(html);
|
|||
|
|
//demo示例一到四 通过lass调取,一句可以搞定,用于页面中可能有多个导航的情况
|
|||
|
|
$('#wrapper03').navbarscroll({
|
|||
|
|
defaultSelect: 0,
|
|||
|
|
endClickScroll: function (obj) {
|
|||
|
|
var index = obj.index();
|
|||
|
|
|
|||
|
|
showhtml(index);
|
|||
|
|
$("#wrapper").animate({ scrollTop: 0 }, 500);
|
|||
|
|
//$(window.parent.$('#midFrame'))[0].contentWindow.
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function onkeyword() {
|
|||
|
|
var key = fTrim($("#keyword0").val());
|
|||
|
|
if (key != "") {
|
|||
|
|
setlocalStorage("search_keyword", key);
|
|||
|
|
onlink("shop_search.html");
|
|||
|
|
} else {
|
|||
|
|
$("#keyword0").attr("placeholder", "请输入商品关键字");
|
|||
|
|
tishi3("搜索关键字不能为空");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
function onCategory(t,id,title) {
|
|||
|
|
setlocalStorage("shopcategorytype",t);
|
|||
|
|
setlocalStorage("shopcategoryid",id);
|
|||
|
|
setlocalStorage("showshoplist", title);
|
|||
|
|
onlink("shop_list.html?iflb=1");
|
|||
|
|
}
|
|||
|
|
function oncart() {
|
|||
|
|
onlink("shop_cart.html");
|
|||
|
|
}
|
|||
|
|
function onmy2wm(){
|
|||
|
|
userId = getlocalStorage("userId");
|
|||
|
|
if (userId != null) {
|
|||
|
|
var userdata = JSON.parse(getlocalStorage("userinfo"));
|
|||
|
|
yaoqingma = userdata.yaoqingma;
|
|||
|
|
onlink("my2wm.html?yaoqingma=" + yaoqingma);
|
|||
|
|
} else {
|
|||
|
|
onlink("/");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
function onksd() {
|
|||
|
|
userId = getlocalStorage("userId");
|
|||
|
|
LoginId = getlocalStorage("LoginId");
|
|||
|
|
if (userId != null) {
|
|||
|
|
onlink("http://www.ksd2023.com/?userId=" + userId + "&LoginId=" + LoginId + "&app=" + ifapp);
|
|||
|
|
} else {
|
|||
|
|
onlink("/");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
function onfnst() {
|
|||
|
|
userId = getlocalStorage("userId");
|
|||
|
|
LoginId = getlocalStorage("LoginId");
|
|||
|
|
if (userId != null && LoginId) {
|
|||
|
|
var userdata = JSON.parse(getlocalStorage("userinfo"));
|
|||
|
|
if (userdata.ckuLevel > 0) {
|
|||
|
|
onlink("fnst.html");
|
|||
|
|
} else {
|
|||
|
|
tishi3("未达到创客级别");
|
|||
|
|
}
|
|||
|
|
} else {
|
|||
|
|
onlink("/");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
function onbusiness() {
|
|||
|
|
userId = getlocalStorage("userId");
|
|||
|
|
LoginId = getlocalStorage("LoginId");
|
|||
|
|
if (userId != null && LoginId) {
|
|||
|
|
if (ifapp == 1) {
|
|||
|
|
var longitude = getlocalStorage("longitude");
|
|||
|
|
var latitude = getlocalStorage("latitude");
|
|||
|
|
if (longitude != null && latitude != null) {
|
|||
|
|
onlink("business.html");
|
|||
|
|
} else {
|
|||
|
|
try {
|
|||
|
|
$(".ajaxLoader").removeClass("uhide");
|
|||
|
|
var permission = 'location';
|
|||
|
|
var resultList = api.hasPermission({
|
|||
|
|
list: [permission]
|
|||
|
|
});
|
|||
|
|
var granted = resultList[0].granted;
|
|||
|
|
if (!granted) {
|
|||
|
|
var _index = layer.confirm('应用需要您的授权才能访问定位,是否要授权定位?', {
|
|||
|
|
btn: ['是', '否'] //按钮
|
|||
|
|
}, function () {
|
|||
|
|
api.requestPermission({
|
|||
|
|
list: [permission],
|
|||
|
|
}, function (res) {
|
|||
|
|
if (res.list[0].granted) {
|
|||
|
|
// 已授权,可以继续下一步操作
|
|||
|
|
layer.close(_index);
|
|||
|
|
tishi3("授权成功!");
|
|||
|
|
GetLocation();
|
|||
|
|
} else {
|
|||
|
|
$(".ajaxLoader").addClass("uhide");
|
|||
|
|
onlink("business.html");
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
}, function () {
|
|||
|
|
$(".ajaxLoader").addClass("uhide");
|
|||
|
|
onlink("business.html");
|
|||
|
|
});
|
|||
|
|
} else {
|
|||
|
|
GetLocation();
|
|||
|
|
}
|
|||
|
|
} catch (err) {
|
|||
|
|
$(".ajaxLoader").addClass("uhide");
|
|||
|
|
onlink("business.html");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
} else {
|
|||
|
|
onlink("business.html");
|
|||
|
|
}
|
|||
|
|
} else {
|
|||
|
|
onlink("/");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
function GetLocation() {
|
|||
|
|
api.startLocation({
|
|||
|
|
accuracy: '100m',
|
|||
|
|
filter: 1,
|
|||
|
|
autoStop: true
|
|||
|
|
}, function (ret, err) {
|
|||
|
|
if (ret && ret.status) {
|
|||
|
|
setlocalStorage("longitude", ret.longitude);
|
|||
|
|
setlocalStorage("latitude", ret.latitude);
|
|||
|
|
api.stopLocation();
|
|||
|
|
$(".ajaxLoader").addClass("uhide");
|
|||
|
|
onlink("business.html");
|
|||
|
|
} else {
|
|||
|
|
$(".ajaxLoader").addClass("uhide");
|
|||
|
|
onlink("business.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:0.8em" onclick="closeWin()">
|
|||
|
|
</div>
|
|||
|
|
<!--<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:0.5em; height:1.2em;width:1.2em;" />
|
|||
|
|
|
|||
|
|
|
|||
|
|
</div>-->
|
|||
|
|
<h1 class="ub-f1" tabindex="0" style=" margin:0; padding:0; position:relative; ">
|
|||
|
|
<div class="header-search-box">
|
|||
|
|
<div class="header-search-keyword-box">
|
|||
|
|
<input id="keyword0" name="keyword0" onfocus="placeholder='';" onblur="onkeyword()" class="keyword" value="" placeholder="请输入商品关键字" type="search" />
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</h1>
|
|||
|
|
<div class="nav-btn blue" onclick="onlink('shop_cart.html')" id="nav-right" style=" margin:0; padding:0; min-width:3.5em">
|
|||
|
|
<img src="../image/addcart.png" style="margin-left:0; margin-top:0.5em; height:1.2em;width:1.2em;" />
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="wrapper wrapper03" id="wrapper03">
|
|||
|
|
<div class="scroller">
|
|||
|
|
<ul class="clearfix"></ul>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</header>
|
|||
|
|
<section class="ub-f1" id="wrapper">
|
|||
|
|
<div id="wrapper_content">
|
|||
|
|
<p class="pullDown">下拉刷新...</p>
|
|||
|
|
<div class="clear"></div>
|
|||
|
|
<div id="index_content">
|
|||
|
|
<div id="slideBox" class="slideBox">
|
|||
|
|
|
|||
|
|
<div class="bd">
|
|||
|
|
<ul></ul>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="hd">
|
|||
|
|
<ul></ul>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<!--<div class="clear"></div>
|
|||
|
|
<div class="notice_box">
|
|||
|
|
<div class="notice_title"><img src="../../images/notice_ico.png"></img>
|
|||
|
|
</div>
|
|||
|
|
<div class="notice_body">
|
|||
|
|
<marquee direction="left" id="notice_body" behavior="scroll" scrollamount="3" scrolldelay="0" loop="-1" width="200" height="50" hspace="10" vspace="10">
|
|||
|
|
|
|||
|
|
</marquee>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</div>onloginlink('hfcz.html'-->
|
|||
|
|
<div class="clear"></div>
|
|||
|
|
<div class="nav_box1">
|
|||
|
|
<ul class="nav" style="border-radius: 0.8em">
|
|||
|
|
<li><div onclick="onloginlink('shop_other0.html?t=2')"><img src="../images/icon-tese.png"><span>生态专区</span></div></li>
|
|||
|
|
<li><div onclick="onloginlink('shop_other0.html?t=4')"><img src="../images/icon-gou.png"><span>创客区</span></div></li>
|
|||
|
|
<li><div onclick="onloginlink('shop_other0.html?t=5')"><img src="../images/icon-changke.png"><span>流量专区</span></div></li>
|
|||
|
|
<li><div onclick="onloginlink('shop_other.html')"><img src="../images/icon-order.png"><span>事业联盟部</span></div></li>
|
|||
|
|
</ul>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
<div class="clear"></div>
|
|||
|
|
<div class="nav_box">
|
|||
|
|
|
|||
|
|
<div id="slideBox0" class="slideBox">
|
|||
|
|
|
|||
|
|
<div class="bd" id="nav_box">
|
|||
|
|
<ul></ul>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="hd">
|
|||
|
|
<ul></ul>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="clear"></div>
|
|||
|
|
<div class="shop_buttons">
|
|||
|
|
<div class="mybtn" onclick="onbusiness()">联盟门店</div>
|
|||
|
|
<div class="mybtn" onclick="onfnst()">赋能实体门店</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="clear"></div>
|
|||
|
|
<div class="floor-product-item">
|
|||
|
|
<div class="product-hd" style="margin-bottom:0.8em;border-radius: 0;">
|
|||
|
|
<span class="product-hd-txt"><span>HOT</span> 热门商品</span><!--<span style="float:right;width:auto; margin-top:0.1em; height:2.2em; line-height:2.2em; color:#fff;background-color:#00B050;border-radius: 1.2em;padding:0 0.8em;border:1px solid #02662F;" onclick="onfnst()">赋能实体门店</span>--><!--<span style="float:right;width:auto;margin-top:0.4em;"><img src="../image/m-through.png" style="width:1.6em;" /></span>-->
|
|||
|
|
</div>
|
|||
|
|
<div class="product-item-cont" id="products_list">
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="floor-product-item">
|
|||
|
|
<div class="product-hd" style="margin-bottom:0.8em;border-radius: 0;">
|
|||
|
|
<span class="product-hd-txt"><span>Rec</span> 推荐商品</span>
|
|||
|
|
</div>
|
|||
|
|
<div class="product-item-cont" id="products_list0">
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div id="index_content0" class="floor-product" style="padding-bottom:3em; ">
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
<div class="clear"></div>
|
|||
|
|
<div class="more_box"></div>
|
|||
|
|
<div class="clear"></div>
|
|||
|
|
<p class="pullUp">上拉加载...</p>
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
</section>
|
|||
|
|
<footer style="">
|
|||
|
|
<!--overflow:hidden;box-sizing:border-box;-->
|
|||
|
|
<div class="ub">
|
|||
|
|
<div class="pos_re ub ub-f1 footer-box">
|
|||
|
|
<div id="index_1" class="ub-f1 ub ub-ver" onclick='onloginlink("/mobile/")'>
|
|||
|
|
<div class="ub-img5 icon"></div>
|
|||
|
|
<div class="uinn-a13 tx-c">
|
|||
|
|
任务
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="pos_re ub ub-f1 footer-box uhide" id="index_0_box">
|
|||
|
|
<div id="index_0" class="ub-f1 ub ub-ver" onclick='onloginlink("dvideo.html")'>
|
|||
|
|
<div class="ub-img5 icon"></div>
|
|||
|
|
<div class="uinn-a13 tx-c">
|
|||
|
|
短视频
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<!--<div class="pos_re ub ub-f1 footer-box" onclick='tishi3("正在建设中...")'>
|
|||
|
|
<div class="footer-center-box">
|
|||
|
|
<img src="/image/center.png?t=2">
|
|||
|
|
</div>
|
|||
|
|
</div>-->
|
|||
|
|
<div class="pos_re ub ub-f1 footer-box">
|
|||
|
|
<div id="index_2" class="ub-f1 ub ub-ver " onclick='onloginlink("shop.html")'>
|
|||
|
|
<div class="ub-img5 icon icon_act"></div>
|
|||
|
|
<div class="uinn-a13 uinn-a13-hover tx-c">
|
|||
|
|
商城
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="pos_re ub ub-f1 footer-box">
|
|||
|
|
<div id="index_4" class="ub-f1 ub ub-ver " onclick='onloginlink("my.html")'>
|
|||
|
|
<div class="ub-img5 icon"></div>
|
|||
|
|
<div class="uinn-a13 tx-c">
|
|||
|
|
我的
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</footer>
|
|||
|
|
<div class="ajaxLoader ub ub-ac uhide" onclick="reload()">
|
|||
|
|
<div class="ub ub-ac ub-ver"><img src="/image/load.gif" /><br>正在加载...</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="showthjto uhide" id="showthjto0" onclick='hideshowthjto(0);'>
|
|||
|
|
<div class="showthjto_box" onclick="stopPropagation(event)">
|
|||
|
|
<h3><span>用户服务协议和隐私政策</span><!--<span class="close" onclick='hideshowthjto(0);'>X</span>--></h3>
|
|||
|
|
|
|||
|
|
<div class="ub ub-ac" id="showthjto_body" style="background-color: #FFFFFF; color:#848484; margin-bottom: .08em; padding:0.8em 0;">
|
|||
|
|
请您务必审慎阅读、充分理解<span class="blue" onclick="onread(341)">《用户服务协议》</span>和<span class="blue" onclick="onread(141107)">《隐私政策》</span>各条款,
|
|||
|
|
包括但不限于:为了更好的向您提供服务,我们需要收集您的设备标识、操作日志等信息用于分析、优化应用性能。您可阅读
|
|||
|
|
<span class="blue" onclick="onread(341)">《用户服务协议》</span>和<span class="blue" onclick="onread(141107)">《隐私政策》</span>了解详细信息。如果您同意,请点击
|
|||
|
|
下面按钮开始接受我们的服务。
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div class="ub ub-ac ub-pc" style="margin-bottom: .08em;">
|
|||
|
|
<input type="button" class="ulev-3 tx-c" id="btntj" onclick="setreadprivacy()" value="同意并接受" />
|
|||
|
|
<input type="button" class="ulev-3 tx-c" id="btnqx" onclick='hideshowthjto(0);' value="暂不同意" />
|
|||
|
|
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
</body>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</html>
|