一次修改
This commit is contained in:
parent
aea87019dd
commit
141e3418c9
@ -37,7 +37,7 @@ body:after {
|
||||
.check_0 {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: url(http://img.juzi199.com/static/app2/img/no_checked.png) no-repeat top left;
|
||||
background: url(http://www.zgqlg.com.cn/static/app2/img/no_checked.png) no-repeat top left;
|
||||
background-size: 18px 18px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
@ -45,7 +45,7 @@ body:after {
|
||||
.check_1 {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: url(http://img.juzi199.com/static/app2/img/checked.png) no-repeat top left;
|
||||
background: url(http://www.zgqlg.com.cn/static/app2/img/checked.png) no-repeat top left;
|
||||
background-size: 18px 18px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
61
js/guide.js
61
js/guide.js
@ -1,61 +0,0 @@
|
||||
|
||||
var swiperTest = null;
|
||||
var banerArray = new Array();
|
||||
|
||||
mui.init({
|
||||
swipeBack: true //启用右滑关闭功能
|
||||
});
|
||||
|
||||
/**/
|
||||
mui.back = function() {};
|
||||
mui.plusReady(function() {
|
||||
var timestamp1 = Date.parse(new Date());
|
||||
if(timestamp1 >= 1542470400000) {
|
||||
plus.storage.setItem("lauchFlag", "true"); //第一次登陆显示
|
||||
plus.navigator.setFullscreen(false);
|
||||
plus.webview.currentWebview().close();
|
||||
return;
|
||||
}
|
||||
$.ajax('http://www.juzi199.com/get_startup.php', {
|
||||
dataType: 'json', //服务器返回json格式数据
|
||||
type: 'post', //HTTP请求类型
|
||||
timeout: 10000, //超时时间设置为10秒;
|
||||
success: function(data) { //服务器返回响应,根据响应结果,分析是否登录成功;
|
||||
// var data = toJson(data, 1);
|
||||
var html = '';
|
||||
$.each(data.img, function() {
|
||||
html += '<div class="mui-slider-item "><img src="' + this + '"/></div>'
|
||||
});
|
||||
$('.mui-slider-group').html(html)
|
||||
$('.mui-slider-item').eq(0).addClass('mui-slider-item-duplicate');
|
||||
$('.mui-slider-item').eq(data.img.length - 1).append('<button id="close" class="mui-btn mui-btn-warning mui-btn-outlined">跳过</button>');
|
||||
var slider = mui("#slider");
|
||||
swiperTest = document.getElementById('swiperTest');
|
||||
plus.navigator.setFullscreen(true);
|
||||
plus.navigator.closeSplashscreen();
|
||||
|
||||
},
|
||||
error: function(xhr, type, errorThrown) { //异常处理;
|
||||
// mui.alert(errorThrown);
|
||||
}
|
||||
});
|
||||
|
||||
mui('body').on('tap', '#close', function() {
|
||||
// plus.storage.setItem("lauchFlag", "true"); //第一次登陆显示
|
||||
plus.storage.removeItem("lauchFlag");
|
||||
plus.navigator.setFullscreen(false);
|
||||
plus.webview.currentWebview().close();
|
||||
|
||||
})
|
||||
setTimeout(function(){
|
||||
// plus.storage.setItem("lauchFlag", "true"); //第一次登陆显示
|
||||
plus.storage.removeItem("lauchFlag");
|
||||
plus.navigator.setFullscreen(false);
|
||||
plus.webview.currentWebview().close();
|
||||
},5000)
|
||||
|
||||
});
|
||||
//立即体验按钮点击事件
|
||||
//document.getElementById("close").addEventListener('tap', function(event) {
|
||||
//
|
||||
//}, false);
|
@ -34,6 +34,15 @@ mui.init({
|
||||
});
|
||||
var count = 1;
|
||||
|
||||
if (order_class.indexOf('zg') === 0) {
|
||||
JZL.ajax(qlgUrl('app/user_level/stats2'), {}, function(data) {
|
||||
// console.log(data); //服务器返回响应,根据响应结果,分析是否登录成功;
|
||||
var data = toJson(data, 1);
|
||||
$('.zgThing').show();
|
||||
$('#zgAmounts').text(data.zgAmounts);
|
||||
})
|
||||
}
|
||||
|
||||
setInterval(function() {
|
||||
var pr = mui('#pullrefresh').pullRefresh();
|
||||
if ($("#qlg_pay_pwd").is(":visible")) {
|
||||
|
@ -1,86 +0,0 @@
|
||||
mui.init({
|
||||
swipeBack: true //启用右滑关闭功能
|
||||
});
|
||||
/**/
|
||||
mui.back = function() {};
|
||||
mui.plusReady(function() {
|
||||
var showGuide = plus.storage.getItem("lauchFlag");
|
||||
if(showGuide) {
|
||||
//有值,说明已经显示过了,无需显示//关闭splash页面;
|
||||
plus.navigator.closeSplashscreen();
|
||||
closeGuide();
|
||||
}else{
|
||||
launchScreen();
|
||||
}
|
||||
function launchScreen() {
|
||||
mui.ajax('http://www.juzi199.com/get_startup.php', {
|
||||
dataType: 'json', //服务器返回json格式数据
|
||||
type: 'post', //HTTP请求类型
|
||||
timeout: 10000, //超时时间设置为10秒;
|
||||
aysnc:false,
|
||||
success: function(data) {//服务器返回响应,根据响应结果,分析是否登录成功;
|
||||
if(1 == data.show){
|
||||
var html = '';
|
||||
var indicatorHtml = '';
|
||||
$.each(data.img, function() {
|
||||
html += '<div class="mui-slider-item"><img class="guide-img" src="' + this.src + '"/></div>';
|
||||
indicatorHtml+='<div class="mui-indicator"></div>';
|
||||
});
|
||||
$(".mui-slider-group").html(html);
|
||||
$(".mui-slider-indicator").html(indicatorHtml);
|
||||
$('.mui-slider-item').first().addClass('mui-slider-item-duplicate');
|
||||
$('.mui-slider-item').last().append('<button id="close" class="mui-btn mui-btn-warning mui-btn-outlined">跳过</button>');
|
||||
$('.mui-indicator').first().addClass('mui-active');
|
||||
setTimeout(function(){
|
||||
plus.navigator.closeSplashscreen();
|
||||
},1000)
|
||||
}else{
|
||||
plus.navigator.closeSplashscreen();
|
||||
closeGuide();
|
||||
}
|
||||
//if(data.img.count() == 1){
|
||||
|
||||
//}
|
||||
|
||||
},
|
||||
error: function(xhr, type, errorThrown) {
|
||||
//异常处理;
|
||||
//alert(errorThrown);
|
||||
}
|
||||
});
|
||||
setTimeout(function(){
|
||||
closeGuide();
|
||||
},6000)
|
||||
}
|
||||
mui('body').on('tap', '#close', function(){
|
||||
closeGuide();
|
||||
})
|
||||
// document.addEventListener('tap', function() {
|
||||
// // //console.log("addEventListener: newintent");
|
||||
// //console.log(1)
|
||||
// }, false);
|
||||
|
||||
function closeGuide(){
|
||||
//显示启动导航
|
||||
mui.openWindow({
|
||||
id: 'index',
|
||||
url: 'index.html',
|
||||
show: {
|
||||
},
|
||||
waiting: {
|
||||
autoShow: false
|
||||
}
|
||||
});
|
||||
setTimeout(function(){
|
||||
//plus.storage.setItem("lauchFlag", "true"); //第一次登陆显示
|
||||
//plus.storage.removeItem("lauchFlag");
|
||||
//plus.navigator.setFullscreen(false);
|
||||
plus.webview.currentWebview().close();
|
||||
},1000)
|
||||
}
|
||||
});
|
||||
|
||||
//立即体验按钮点击事件
|
||||
//document.getElementById("close").addEventListener('tap', function(event) {
|
||||
//
|
||||
//}, false);
|
2
js/my.js
2
js/my.js
@ -1,4 +1,4 @@
|
||||
$('.mui-scroll').css('background', 'url(http://img.juzi199.com/static/app2/img/user_center.png) no-repeat center top');
|
||||
$('.mui-scroll').css('background', 'url(http://www.zgqlg.com.cn/static/app2/img/user_center.png) no-repeat center top');
|
||||
$('.mui-scroll').css('background-size', '100%');
|
||||
|
||||
mui.plusReady(function() {
|
||||
|
@ -15,8 +15,8 @@ mui.plusReady(function(){
|
||||
$('.zgThing').show();
|
||||
console.log(data);
|
||||
$('#zgTimes').text(data.zgTimes);
|
||||
$('#zgAmounts').text(data.zgAmounts);
|
||||
$('#zgYhYhq').text(data.zgYhYhq);
|
||||
$('#zgAmounts').text('¥'+data.zgAmounts);
|
||||
$('#myZgA').text(data.myZgA);
|
||||
})
|
||||
|
||||
$("#userName").text(localStorage.getItem("userName"))
|
||||
|
@ -25,7 +25,14 @@ mui.plusReady(function() {
|
||||
}, function(data) {
|
||||
// //console.log(data);
|
||||
if (1 != data.status) {
|
||||
mui.alert(data.msg)
|
||||
mui.confirm(data.msg, "提示", [
|
||||
"我要核实",
|
||||
"继续注册"
|
||||
], function(result) {
|
||||
if (result.index == 0) {
|
||||
mui.back()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
|
@ -3,8 +3,8 @@
|
||||
"id" : "H5436787D",
|
||||
"name" : "全亮共商城",
|
||||
"version" : {
|
||||
"name" : "2.4.2",
|
||||
"code" : 91
|
||||
"name" : "2.4.4",
|
||||
"code" : 94
|
||||
},
|
||||
"description" : "",
|
||||
"icons" : {
|
||||
|
@ -21,6 +21,13 @@
|
||||
</div>
|
||||
<div class="top"></div>
|
||||
<div class="con">
|
||||
<div class="row shadown_wai zgThing" style="margin-bottom: 6px; display: none;">
|
||||
<div class="row_title">
|
||||
<span class="store_name">助购获得</span>
|
||||
<span class="indent_status"><span id="zgAmounts"></span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--<div class="row shadown_wai">
|
||||
<div class="row_title">
|
||||
<div class="store_name">爱尚客潮流鞋</div>
|
||||
|
@ -18,13 +18,12 @@
|
||||
</div>
|
||||
<div class="z"></div>
|
||||
<div class="block">
|
||||
<div class="row shadown_wai" id="myHelpSaleOrder"><img class="img" src="../img/setting_lock1.png" /><span class="r1">我家订单</span><span
|
||||
class="r2">我家全部订单</span><img class="youjiantou" src="../img/youjiantou.png" /></div>
|
||||
|
||||
<div class="row shadown_wai zgThing" style="margin-top: 6px;"><span class="r1">助购值</span><span class="r2"><span id="zgAmounts"></span></span></div>
|
||||
<div class="row" style="margin: 0;font-weight: bolder;">对应层的被助购上滑至对应层是该层的助购券值≤15元</div>
|
||||
<div class="row" style="margin: 0;font-weight: bolder;">所有层的被助购上滑至对应层是任意层的助购券值<0元</div>
|
||||
<div class="row" style="margin: 0;font-weight: bolder;">每天耗损预获产品券值或预获优惠券值是各券负数值的1%</div>
|
||||
<div class="row shadown_wai" style="margin-top: 6px;"><img class="img" src="../img/setting_user1.png" /><span class="r1" id="userName"></div>
|
||||
<div class="row shadown_wai zgThing" style="margin-top: 6px;"><span class="r1">助购次数</span><span class="r2" id="zgTimes"></span></div>
|
||||
<div class="row shadown_wai zgThing" style="margin-top: 6px;"><span class="r1">助购总值</span><span class="r2" id="zgAmounts"></span></div>
|
||||
<div class="row shadown_wai zgThing" style="margin-top: 6px;"><span class="r1">助购获得的已获优惠券</span><span class="r2">¥<span id="zgYhYhq"></span></span></div>
|
||||
<div class="row shadown_wai zgThing" style="margin-top: 6px;"><span class="r1">助购奉献</span><span class="r2"><span id="zgTimes"></span>次|¥<span id="myZgA">0</span></span></div>
|
||||
<div class="row shadown_wai" id="preGetCoupon" style="margin-top: 6px;"></span><span
|
||||
class="r1" id="preGetCouponCount" style="color: #000000;"></span><img class="youjiantou" src="../img/youjiantou.png" /></div>
|
||||
<div id="helpSaleTable">
|
||||
|
@ -26,6 +26,7 @@
|
||||
<img class="right youjiantou" src="../img/youjiantou.png" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">备案号:鲁ICP备19025755号</div>
|
||||
</body>
|
||||
<script src="../js/mui.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user