diff --git a/css/shoppingcart.css b/css/shoppingcart.css index 1bcd633..e98ca52 100644 --- a/css/shoppingcart.css +++ b/css/shoppingcart.css @@ -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%; } diff --git a/js/guide.js b/js/guide.js deleted file mode 100644 index f83db23..0000000 --- a/js/guide.js +++ /dev/null @@ -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 += '
' - }); - $('.mui-slider-group').html(html) - $('.mui-slider-item').eq(0).addClass('mui-slider-item-duplicate'); - $('.mui-slider-item').eq(data.img.length - 1).append(''); - 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); \ No newline at end of file diff --git a/js/indentcon.js b/js/indentcon.js index 2e6340b..ed68909 100644 --- a/js/indentcon.js +++ b/js/indentcon.js @@ -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")) { diff --git a/js/main_guide.js b/js/main_guide.js deleted file mode 100644 index 57daf11..0000000 --- a/js/main_guide.js +++ /dev/null @@ -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 += ' '; - indicatorHtml+=''; - }); - $(".mui-slider-group").html(html); - $(".mui-slider-indicator").html(indicatorHtml); - $('.mui-slider-item').first().addClass('mui-slider-item-duplicate'); - $('.mui-slider-item').last().append(''); - $('.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); \ No newline at end of file diff --git a/js/my.js b/js/my.js index 90d9c8e..801cd4f 100644 --- a/js/my.js +++ b/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() { diff --git a/js/my_help_sale.js b/js/my_help_sale.js index 72d3f03..f893aaf 100644 --- a/js/my_help_sale.js +++ b/js/my_help_sale.js @@ -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")) diff --git a/js/register.js b/js/register.js index 7419918..b6ae7a3 100644 --- a/js/register.js +++ b/js/register.js @@ -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() + } + }) } }) }) diff --git a/manifest.json b/manifest.json index 5d77ae1..1be0bc8 100644 --- a/manifest.json +++ b/manifest.json @@ -3,8 +3,8 @@ "id" : "H5436787D", "name" : "全亮共商城", "version" : { - "name" : "2.4.2", - "code" : 91 + "name" : "2.4.4", + "code" : 94 }, "description" : "", "icons" : { diff --git a/templete/indentcon.html b/templete/indentcon.html index 5016c1d..ab54ba3 100644 --- a/templete/indentcon.html +++ b/templete/indentcon.html @@ -21,6 +21,13 @@