Files

1426 lines
55 KiB
HTML
Raw Permalink Normal View History

<!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" />
<link rel=stylesheet href="/css/index.5e7e3b56.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"></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>
<script type="text/javascript" src="/Scripts/clipboard.min.js"></script>
<style type="text/css">
html, body {
overflow: hidden;
background-color: #051E54;
}
#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;
width: 100%;
text-align: center;
height: 28px;
line-height: 28px;
bottom: 1.6em;
right: 0;
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;
}
.slideBox .hd li.on {
background: #fff;
}
.slideBox .bd {
position: relative;
z-index: 0;
width: 100%;
min-height: 10em;
box-sizing: border-box;
overflow: hidden;
}
.slideBox .bd li {
position: relative;
text-align: center;
width: 100%;
height: 100%;
padding: 0.8em;
padding-top: 0;
background: url(images/loading.gif) center center no-repeat;
box-sizing: border-box;
overflow: hidden;
}
.slideBox .bd li img {
border-radius: 0.4em;
vertical-align: top;
border: solid 1px #f1f1f1;
width: 100%;
box-sizing: border-box;
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;
}
.layer, .notice-layer {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 100;
background: rgba(0, 0, 0, .5);
text-align: center;
padding: 0;
display: none;
}
.notice-layer .notice-box {
float: none;
width: 95%;
margin: 0 auto;
margin-top: 3em;
position: relative;
overflow: hidden;
background: #fff;
border-radius: 10px;
box-sizing: border-box;
}
.notice-box .n-tit {
width: 100%;
margin-top: 0;
height: 4rem;
position: relative;
padding: 0;
line-height: 4rem;
text-align: center;
font-weight: bold;
font-size: 1.2em;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.notice-box .cont {
margin: 0;
height: 28rem;
padding: 0.8em;
box-sizing: border-box;
overflow-y: scroll;
text-align: left;
}
.notice-box .cont p {
font-size: 1em;
line-height: 2.2rem;
margin-bottom: .8rem;
}
.notice-box .btn {
padding: .5rem 0 1.8rem;
}
.notice-box .btn div {
display: block;
width: 50%;
height: 2.8rem;
line-height: 2.8rem;
text-align: center;
color: #fff;
margin: 0 auto;
border-radius: 15px;
font-size: 1.6rem;
text-decoration: none;
}
.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_box {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: auto;
display: flex;
align-items: center;
justify-content: center;
}
.nav li span {
color: #078E10;
}
.uni-app--showtabbar uni-page-wrapper {
display: block;
height: calc(100% - 50px);
height: calc(100% - 50px - constant(safe-area-inset-bottom));
height: calc(100% - 50px - env(safe-area-inset-bottom));
}
.uni-app--showtabbar uni-page-wrapper::after {
content: "";
display: block;
width: 100%;
height: 50px;
height: calc(50px + constant(safe-area-inset-bottom));
height: calc(50px + env(safe-area-inset-bottom));
}
.uni-app--showtabbar uni-page-head[uni-page-head-type="default"] ~ uni-page-wrapper {
height: calc(100% - 44px - 50px);
height: calc(100% - 44px - constant(safe-area-inset-top) - 50px - constant(safe-area-inset-bottom));
height: calc(100% - 44px - env(safe-area-inset-top) - 50px - env(safe-area-inset-bottom));
}
@charset "UTF-8";
.appbutton[data-v-866cf53c] {
width: 193px;
height: 60px;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAAyCAYAAADbYdBlAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACXFJREFUeNrsXU2MHNURruqeWSOvUYK8S9hd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WLCu+l19ti+N4GO+VdU23EnxT9IquQphq/xJ4ETtG/cH0pyF8MD3xlLv+ZI1uEejdXim+aXr94gw+fojfZNb9kEN4K/SAv+K/B0BO6iE3eLcLtV7umZ/E0uoH4b390ZeQ9tByC6rFN0CvVBg21f4ZeLJu5I8fBU/GSKo97oNWTz7CWg9EERzxWe6w3OREtvJdNhTPq1MVvm56eeLW0P6It/HnD5Tg+ziMTdwXn209kxR58gewrYPg9PuLhjKUhKdmr0ffV9joke+mE4e/GichY5N7mISgkPAO9oKbOJw/CXYw94KjpC1Obxk7krDdSeTZg8E3SS9PTLW/ikdEdmI/Z/LtVspHB2B88r7tx168HB2x0tuFT0IZ1/cEwXgXu1UmobXIZAx+Ujh9rIP+lynTycrpWdVpWlOnfN1gfOP0UsTTNdT+IQbRhpa1N5od1XN8TL6xqXtvfvuFrwkUK9zxVPqO6lP1Ir4CduseEO65qK3TRRhpU/Q/S7K2Dxpfd72q7dcP3uXIiXiAPdiswqEDsHXi3rn3/nEFdjor3DKplak1kTPlgzpZObwGlvsT/zUNF8StcvHcOXUlWLwgaFd0QdXbKHyT9EqIcfbvjELL/i1T63qdfNvfeOHKVts+yi0T0abcnUt9UU3nbuh2V3sV5fPsZ4P/ECzrsiWjfVD4OuplyVkw0v72l74M2H2GV67Ryfftd/789baDR3lYeImSjCwW15zSXtWFnd3gfPIfb119s1Zr3H+FFCqvfCojyTtmzw/fdD3n4/hVWfqbzcQ4cdaJ/oYS8nnh8aJLoNX+E/NjOhF2jx3eBhYsc6cK+WiJd/PpckVP/WWFCO+DoIM9BdG8F9zphdO0eZI/L3yT9PopSFdtf5IXMehyJeF4ArZO/WL2xIvTtiOWe2mOS07XOSTDcfmdHb4reCilI5JPvlve/etVwnGXmZwXq+Tr2O6zI64lSTlRfkpE+cI5+aaboQylBPnm3jzyDdF1j6rkY/e5jwQ913atKBH5vwADAD0kr04FKgh1AAAAAElFTkSuQmCC);
background-repeat: no-repeat;
background-size: cover;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: absolute;
left: 50%;
top: 23em;
-webkit-transform: translate(-50%);
transform: translate(-50%);
font-size: 19px;
font-family: PingFangSC-Medium,PingFang SC;
font-weight: 500;
color: #fff;
line-height: 19px;
text-shadow: 0px 2px 9px rgba(0,0,0,.04)
}
.appbutton uni-image[data-v-866cf53c] {
width: 193px;
height: 60px
}
.container[data-v-866cf53c] {
min-height: 100vh
}
.nc-header[data-v-866cf53c] {
height: 53px
}
.nc-header uni-image[data-v-866cf53c] {
height: 26px;
width: 26px
}
.nc-header .menu-text[data-v-866cf53c] {
width: 72px;
font-size: 19px;
font-weight: bolder;
color: #fff;
}
/* 菜单 */ .menu-circle-items[data-v-866cf53c] {
position: absolute;
top: 0em;
left: 0em;
width: 100%;
height: 100%;
color: #fff
}
.menu-circle-items .menu-circle-area[data-v-866cf53c] {
width: 18em;
height: 18em;
position: relative;
margin: 0 auto;
-webkit-animation: earth-map-data-v-866cf53c 30s linear infinite;
animation: earth-map-data-v-866cf53c 30s linear infinite;
text-align: center;
font-size: 15px;
}
.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c] {
position: absolute;
-webkit-animation: menu-circle-item-data-v-866cf53c 30s linear infinite;
animation: menu-circle-item-data-v-866cf53c 30s linear infinite;
}
.menu-circle-items .menu-circle-area .menu-circle-area-item uni-image[data-v-866cf53c] {
margin-top: 5px;
margin-left: 0.2em;
display: block;
height: 50px;
width: 50px;
}
.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c]:nth-child(1) {
top: 2em;
left: -1em
}
.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c]:nth-child(2) {
top: 7em;
left: 16em
}
.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c]:nth-child(3) {
top: 14.5em;
right: 3em
}
.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c]:nth-child(4) {
top: 12em;
right: 13em
}
.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c]:nth-child(5) {
top: -2em;
left: 9em
}
.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c]:nth-child(6) {
top: 0;
left: 0px
}
/*.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c]:nth-child(1) {
top: 2em;
left: 0em
}
.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c]:nth-child(2) {
top: 10em;
left: 15em
}
.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c]:nth-child(3) {
top: 14.5em;
right: 6em
}
.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c]:nth-child(4) {
top: 11em;
right: 14em
}
.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c]:nth-child(5) {
top: 2em;
left: 14em
}
.menu-circle-items .menu-circle-area .menu-circle-area-item[data-v-866cf53c]:nth-child(6) {
top: -2em;
left: 7em
}*/
.earth[data-v-866cf53c] {
position: absolute;
top: 2em;
left: 0;
width: 100%;
height: 100%;
padding: 18px 0;
box-sizing: border-box;
text-align: center;
}
.earth .earth-area[data-v-866cf53c] {
position: relative;
float: left;
width: 100%;
height: 14em;
text-align: center;
}
.earth .earth-area uni-image[data-v-866cf53c] {
position: relative;
margin: 0 auto;
margin-top: -14em;
width: 14em;
height: 100%;
-webkit-animation: earth-map-data-v-866cf53c 10s linear infinite;
animation: earth-map-data-v-866cf53c 10s linear infinite
}
.earth .earth-area .earth-map[data-v-866cf53c] {
position: relative;
margin: 0 auto;
height: 12em;
width: 12em;
border-radius: 50%;
border: 1px solid rgba(51,89,255,.2);
background-size: auto 151px;
/*border: 1px solid #00ba73;*/ -webkit-animation: earth-data-v-866cf53c 10s linear infinite;
animation: earth-data-v-866cf53c 10s linear infinite
}
.earth-opration[data-v-866cf53c] {
position: absolute;
left: 12px;
bottom: 18px;
width: 429px;
color: #fff
}
.earth-opration .earth-opration-img[data-v-866cf53c] {
width: 72px;
height: 72px;
border-radius: 50%;
border: 1px solid rgba(51,89,255,.6);
box-shadow: 0 0 0 9px rgba(51,89,255,.3)
}
.earth-opration .earth-opration-button[data-v-866cf53c] {
background-size: 100% 100%;
height: 60px;
width: 145px;
line-height: 60px;
text-align: center
}
@-webkit-keyframes menu-circle-item-data-v-866cf53c {
from {
-webkit-transform: rotate(0);
transform: rotate(0)
}
to {
-webkit-transform: rotate(-1turn);
transform: rotate(-1turn)
}
}
@keyframes menu-circle-item-data-v-866cf53c {
from {
-webkit-transform: rotate(0);
transform: rotate(0)
}
to {
-webkit-transform: rotate(-1turn);
transform: rotate(-1turn)
}
}
@-webkit-keyframes earth-data-v-866cf53c {
from {
background-position-x: 0
}
to {
background-position-x: 318px
}
}
@keyframes earth-data-v-866cf53c {
from {
background-position-x: 0
}
to {
background-position-x: 318px
}
}
@-webkit-keyframes earth-map-data-v-866cf53c {
from {
-webkit-transform: rotate(0);
transform: rotate(0)
}
to {
-webkit-transform: rotate(1turn);
transform: rotate(1turn)
}
}
@keyframes earth-map-data-v-866cf53c {
from {
-webkit-transform: rotate(0);
transform: rotate(0)
}
to {
-webkit-transform: rotate(1turn);
transform: rotate(1turn)
}
}
.container[data-v-866cf53c] {
max-height: 100vh;
width: 454px;
padding: 12px;
box-sizing: border-box;
position: relative
}
.head-info[data-v-866cf53c] {
padding: 0 12px;
height: 127px;
border-radius: 12px;
background-size: 429px 127px;
background-repeat: no-repeat
}
.head-info .info uni-image[data-v-866cf53c] {
height: 72px;
width: 72px;
border-radius: 50%;
border: 2px solid #404b98;
background-color: #fff
}
.head-info .info .info-msg[data-v-866cf53c] {
height: 72px;
margin-left: 9px;
color: #fff
}
.head-info .opreate uni-button[data-v-866cf53c] {
width: 72px;
color: #fff;
background-color: #505fc8;
border-radius: 6px;
margin-bottom: 7px;
font-size: 16px;
z-index: 99999
}
.menu-back[data-v-866cf53c] {
position: absolute;
background-color: rgba(51,89,255,.3);
height: 37px;
width: 37px;
margin-top: 12px;
text-align: center;
line-height: 37px;
border-radius: 50%;
z-index: 1
}
.menu-back uni-image[data-v-866cf53c] {
margin-top: 5px;
height: 26px;
width: 26px;
border-radius: 50%
}
.menu-opreate[data-v-866cf53c] {
position: absolute;
right: 18px;
font-size: 16px;
color: #fff;
z-index: 1
}
.menu-opreate uni-image[data-v-866cf53c] {
height: 60px;
width: 60px;
margin: 12px 0
}
.menu-area[data-v-866cf53c] {
position: absolute;
right: 36px;
bottom: 60px;
z-index: 99999999
}
</style>
<script type="text/javascript">
var userId = null;
var LoginId = null;
var CartId = null;
var opentimes = null;
var sInterval0 = null;
var navindex = 0;
var ifapp = 0, ifdw = 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");
}
var lq = $.getUrlParam("lq");
if (lq != null) {
$(".fertilizer_yuan").addClass("hover");
var closeInterval = setInterval(function () {
$(".fertilizer_yuan").removeClass("hover");
clearInterval(closeInterval);
}, 2000);
}
rdata(1, 0);
if (sInterval0 != null) {
clearInterval(sInterval0);
}
sInterval0 = setInterval("rdata(1, 1)", 6000);
opentimes = setInterval(function () {
var myrefresh = getlocalStorage("indexrefresh");
if (myrefresh != null) {
rdata0();
clearlocalStorage("indexrefresh");
}
}, 1000);
if (ifapp == 1) {
var opentimes0 = setInterval(function () {
try {
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();
}
});
}, function () {
alert("授权失败");
});
} else {
GetLocation();
}
} catch (err) {
}
clearInterval(opentimes0);
}, 3000);
}
//var h = $("#section_midFrame").height();
//$("#midFrame").css("height", h);
var clipboard = new Clipboard('#copybtn');
clipboard.on('success', function (e) {
tishi3("复制成功");
});
clipboard.on('error', function (e) {
tishi3("复制失败");
});
});
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();
} else {
//tishi3("定位失败!");
}
});
}
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 oncopy0(font) {
$("#copyinput").val(font);
$("#copybtn").click();
}
function rdata(t, t2) {
userId = getlocalStorage("userId");
LoginId = getlocalStorage("LoginId");
if (t2 == 0) {
$(".ajaxLoader").removeClass("uhide");
}
$.ajax({
type: 'GET',
url: "/apiajax.ashx?action=getindexdata&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);
shoppic1 = data.pic1;
} else {
tishi3(data.msg);
if (data.msg == "您未登录") {
clearlocalStorage("userId");
clearlocalStorage("LoginId");
}
}
} else {
tishi3("读取数据错误0");
}
},
error: function (xhr, type) {
tishi3("读取数据错误");
}
});
}
function rdatato(data) {
var html0 = "";
if (data.news.length > 0) {
for (j = 0; j < data.news.length; j++) {
html0 += "<a href=\"news_details.html?id=" + data.news[j].id + "\">" + data.news[j].content + "</a>";//
}
}
$("#notice_body").html(html0);
var showthjto_title = data.showtitle, showthjto_body = data.showbody;
var showbody = getlocalStorage("showbody");
var showb = true;
if (showthjto_body != "") {
if (showbody != null) {
if (showbody == showthjto_body) {
showb = false;
}
}
} else {
showb = false;
}
if (showb) {
$("#read_title0").html(showthjto_title);
$("#read_body").html(showthjto_body);
$("#notice-detial").fadeIn();
setlocalStorage("showbody", showthjto_body);
}
/*var h = $("body").width();
$("#slideBox").css("height", (h / 2) + "px");
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);
settimeout = setInterval(function () {
TouchSlide({
slideCell: "#slideBox",
titCell: ".hd ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层
mainCell: ".bd ul",
effect: "leftLoop",
delayTime: 0,
interTime: 6000,
autoPage: true, //自动分页
autoPlay: true //自动播放
});
clearInterval(settimeout);
}, 1000);
}*/
//rmenu(data.pic1);//window.parent.
setlocalStorage("FHEnable", data.FHEnable);
setlocalStorage("FHEnable1", data.FHEnable1);
setlocalStorage("FHEnable4", data.FHEnable4);
if (data.iflogin == 2) {
clearlocalStorage("userId");
clearlocalStorage("LoginId");
}
else if (data.iflogin == 1) {
setlocalStorage("userinfo", JSON.stringify(data.userInfo));
$("#ggjf_box").html(data.userInfo.ggjfye);
setlocalStorage("msgCount", data.msgCount);
rdata0();
if (data.CloseEnable != null) {
if (data.CloseEnable == "1") {
clearlocalStorage("userId");
clearlocalStorage("LoginId");
api.openWin("login", "/");
}
}
}
}
function rdata0() {
var userinfo = getlocalStorage("userinfo");
var userdata = JSON.parse(userinfo);
$("#ggjf_box").html(userdata.ggjfye);
/*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>";
html += "<span class=\"rmb\"><span class=\"hyje\">¥" + list[j].hyje + "</span></span>";
html += "<span class=\"hsdrmb\"><span class=\"hyje\">" + list[j].hsdje + "</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("亲!找不到更多了");
}
} else {
$('.floor-product').html("");
$(".more_box").html("亲,暂无信息!");
}
}
$(".ajaxLoader").addClass("uhide");
} else {
tishi3(data.msg);
$(".ajaxLoader").addClass("uhide");
}
} else {
tishi3("网络错误!");
$(".ajaxLoader").addClass("uhide");
}
},
error: function (xhr, type) {
tishi3("读取数据错误");
}
});
}
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 onksd() {
userId = getlocalStorage("userId");
LoginId = getlocalStorage("LoginId");
if (userId != null) {
onlink("http://www.ksd2023.com/?userId=" + userId + "&LoginId=" + LoginId + "&app=" + ifapp);
} else {
onlink("/");
}
}
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 showfertilize() {
if ($(".fertilizer_msg").html() == "您还没有兑换任务!") {
tishi3('您还没有兑换任务!');
} else {
if ($("#fertilizer_ks").html() == "0") {
tishi3('您还没有肥料!');
} else {
$("#fertilizing").css("display", "block");
}
}
}
function fertilize() {
$(".ajaxLoader").removeClass("uhide");
var datas = {
action: "fertilize",
userId: userId,
LoginId: LoginId
};
$.ajax({
type: 'POST',
url: "/apiajax.ashx?ifweb=1",
data: datas,
dataType: "json",
error: function (xhr) {
tishi3("发生错误:" + JSON.stringify(xhr));
},
success: function (data) {
if (data) {
$(".ajaxLoader").addClass("uhide");
if (data.status == 1) {
$(".fertilize").addClass("fertilize-fadeIn");
$(".fertilize0").css("display", "block");
rdata(1, 0);
var closeInterval = setInterval(function () {
$(".fertilize").removeClass("fertilize-fadeIn").css("display", "none");
$(".fertilize0").css("display", "none");
clearInterval(closeInterval);
}, 3000);
} if (data.status == 0) {
tishi3(data.msg);
}
} else {
tishi3('网络异常,请稍后重试');
}
}
});
}
/*this.able1 = 0; //0 不能 - 1 能
this.able2 = 0;
this.able3 = 1;
this.able4 = 0;
this.able5 = 0;
function fertilize(action) {
var datas = {
action: "fertilize",
userId: userId,
LoginId: LoginId
};
$.ajax({
type: 'POST',
url: "/apiajax.ashx?ifweb=1",
data: datas,
dataType: "json",
error: function (xhr) {
tishi3("发生错误:" + JSON.stringify(xhr));
},
success: function (data) {
$("#savebtn").removeAttr("disabled");
$("#savebtn").val("提交");
if (data) {
if (data.status == 1) {
if (this.able3 == 1) {
this.action = action;
document.getElementsByClassName("fertilize")[0].style.display = "block";
document.getElementsByClassName("fertilize")[0].classList.add("fertilize-fadeIn");
this.able1 = 0; //0 不能 - 1 能
this.able2 = 0;
this.able4 = 0;
this.able5 = 0;
rdata(1, 0);
} else { return; }
} if (data.status == 0) {
tishi3(data.msg);
}
} else {
tishi3('网络异常,请稍后重试');
}
}
});
}*/
</script>
</head>
<body class="wrap" style="background: url(../image/indexbg.png) no-repeat 0 0; background-size:100% 100%;">
<header class="indexheader">
<div class="header-box">
<div class="header-btn" onclick="onloginlink('gh.html')">
<img src="../image/index_ico.png" /><span>规划</span>
</div>
<div class="header-btn" onclick="onloginlink('rq.html')">
<img src="../image/index_ico0.png" /><span>入群</span>
</div>
<div class="header-btn" onclick="onloginlink('mykf.html')">
<img src="../image/index_ico1.png" /><span>客服</span>
</div>
<div class="header-btn right" onclick="onloginlink('set.html')">
<img src="../image/index_ico2.png" />
</div>
</div>
</header>
<section class="ub-f1" id="wrapper">
<div class="notice_box">
<div class="notice_box_to">
<div class="notice_title"><img src="../images/notice_ico.png" /><!--<span>最新公告</span>--></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 class="notice_more" onclick="onlink('news.html')"><img src="../image/notice_more.png" /></div>
</div>
</div>
<!--<div id="slideBox" class="slideBox">
<div class="bd">
<ul><li><a class="pic" href="javascript:void(0);"></a></li></ul>
</div>
<div class="hd">
<ul>
</ul>
</div>
</div>-->
<div class="ggjf_box">
<div onclick="onloginlink('ggjf.html')"><div><span id="ggjf_box">0</span><label>流量积分</label></div></div>
</div>
<div class="indexbox" style="position: relative; float: left;margin-top:0.5em; width: 100%; height: 24em;overflow:hidden;">
<uni-view data-v-866cf53c="" class="earth hi-flex hi-flex-center" style="padding-top: 50px;">
<uni-view data-v-866cf53c="" class="earth-area">
<uni-view data-v-866cf53c="" class="earth-map" style="background-image: url(&quot;/images/world.a512acae.png&quot;);"></uni-view>
<uni-image data-v-866cf53c="">
<div style="background-image: url(&quot;/images/theglobe_bg@2x.png&quot;); background-position: center center; background-size: contain; background-repeat: no-repeat;"></div>
<img src="/images/theglobe_bg@2x.png" draggable="true"><!---->
</uni-image>
</uni-view>
</uni-view>
<uni-view data-v-866cf53c="" class="menu-circle hi-flex hi-flex-center"></uni-view>
<uni-view data-v-866cf53c="" class="menu-circle-items hi-flex hi-flex-center" style="padding-top: 50px; box-sizing: border-box;">
<uni-view data-v-866cf53c="" class="menu-circle-area">
<uni-view data-v-866cf53c="" onclick="onloginlink('jiaocheng.html')" class="menu-circle-area-item hi-columns hi-flex-center hi-flex-vcenter">
<uni-image data-v-866cf53c="">
<div style="background-image: url('../image/index_lq.png'); background-position: center center; background-size: contain; background-repeat: no-repeat;"></div><img src="../image/index_lq.png" draggable="true"><!---->
</uni-image>
<uni-text data-v-866cf53c=""><span>操作教程</span></uni-text>
</uni-view>
<!--<uni-view data-v-866cf53c="" onclick="onloginlink('fnst.html')" class="menu-circle-area-item hi-columns hi-flex-center hi-flex-vcenter">
<uni-image data-v-866cf53c="" style="margin-left:0.4em;margin-right:0.4em;">
<div style="background-image: url('../image/index_fnst.png'); background-position: center center; background-size: contain; background-repeat: no-repeat;"></div><img src="../image/index_lq.png" draggable="true">
</uni-image>
<uni-text data-v-866cf53c=""><span>赋能实体</span></uni-text>
</uni-view>-->
<uni-view data-v-866cf53c="" onclick="onloginlink('task.html')" class="menu-circle-area-item hi-columns hi-flex-center hi-flex-vcenter">
<uni-image data-v-866cf53c="">
<div style="background-image: url('../image/index_rw.png'); background-position: center center; background-size: contain; background-repeat: no-repeat;"></div><img src="../image/index_rw.png" draggable="true"><!---->
</uni-image>
<uni-text data-v-866cf53c=""><span style="width:4em;">流量任务</span></uni-text>
</uni-view>
<uni-view data-v-866cf53c="" onclick="onmy2wm()" class="menu-circle-area-item hi-columns hi-flex-center hi-flex-vcenter">
<uni-image data-v-866cf53c="">
<div style="background-image: url('../image/index_yqhy.png'); background-position: center center; background-size: contain; background-repeat: no-repeat;"></div><img src="../image/index_yqhy.png" draggable="true"><!---->
</uni-image>
<uni-text data-v-866cf53c=""><span>邀请好友</span></uni-text>
</uni-view>
<uni-view data-v-866cf53c="" onclick='tishi3("正在建设中...")' class="menu-circle-area-item hi-columns hi-flex-center hi-flex-vcenter">
<uni-image data-v-866cf53c="" style="margin-left: 0.1em;">
<div style="background-image: url('../image/index_yx.png'); background-position: center center; background-size: contain; background-repeat: no-repeat;"></div><img src="../image/index_yx.png" draggable="true"><!---->
</uni-image>
<uni-text data-v-866cf53c=""><span>游戏</span></uni-text>
</uni-view>
<uni-view data-v-866cf53c="" onclick="onloginlink('dhggb.html')" class="menu-circle-area-item hi-columns hi-flex-center hi-flex-vcenter">
<uni-image data-v-866cf53c="" style="margin-left:0.8em;">
<div style="background-image: url('../image/index_sc.png'); background-position: center center; background-size: contain; background-repeat: no-repeat;"></div><img src="../image/index_sc.png" draggable="true"><!---->
</uni-image>
<uni-text data-v-866cf53c=""><span>兑换流量包</span></uni-text>
</uni-view>
</uni-view>
</uni-view>
</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 icon_act"></div>
<div class="uinn-a13 uinn-a13-hover 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"></div>
<div class="uinn-a13 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>
<div class="notice-layer" id="notice-detial">
<div class="notice-box">
<div class="n-tit" id="read_title0"></div>
<div class="cont">
<p id="read_body"></p>
</div>
<div class="btn">
<div onclick='$("#notice-detial").fadeOut();' class="mybtn" id="yreaded">已阅读完</div>
</div>
</div>
</div>
<div style="height:1px;width:1px; overflow:hidden;"><input id="copyinput" type="text" /><input type="button" id="copybtn" data-clipboard-action="copy" data-clipboard-target="#copyinput" value="copy" /></div>
</body>
</html>