You've already forked qlg.frontend
一次修改
This commit is contained in:
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()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user