助购吧页面JS接口等

This commit is contained in:
2019-09-06 16:31:23 +08:00
parent c64195c218
commit bff6584b7d
7 changed files with 522 additions and 19 deletions

View File

@ -87,7 +87,7 @@ function jumpPage(ipxSizeBottom) {
//跳转页面
var bSize = 50 + (+ipxSizeBottom) + 'px';
var subpages = ['templete/home.html', 'templete/shops.html', '', 'templete/zhuweiba.html',
var subpages = ['templete/home.html', 'templete/shops.html', 'templete/zhugouba.html', 'templete/zhuweiba.html',
'templete/my.html'
];
var subpage_style = {
@ -161,6 +161,10 @@ function jumpPage(ipxSizeBottom) {
var targetTab = plus.webview.getWebviewById(targetTab);
mui.fire(targetTab, 'refresh');
}
if (targetTab == 'templete/zhugouba.html') {
var targetTab = plus.webview.getWebviewById(targetTab);
mui.fire(targetTab, 'refresh');
}
if (targetTab == 'templete/my.html') {
var targetTab = plus.webview.getWebviewById(targetTab);
mui.fire(targetTab, 'refresh');
@ -192,11 +196,7 @@ function jumpPage(ipxSizeBottom) {
function nav(num) {
//console.log(num);
$('.mui-tab-item span .img').each(function(a) {
if (a == 2) {
} else if (num == a && a != 2) {
// //console.log(a);
if (num == a) {
$(this).attr('src', 'http://img.zgqlg.com.cn/static/app2/img/nav_' + a + '_1.png?version='+localStorage.getItem('version'));
} else {
$(this).attr('src', 'http://img.zgqlg.com.cn/static/app2/img/nav_' + a + '_0.png?version='+localStorage.getItem('version'));
@ -207,13 +207,8 @@ function nav(num) {
$('.mui-bar').on('tap', '.mui-tab-item', function(e) {
var num = $(this).attr('data-num');
if (num == 2) {
$('.nav_in').addClass('shun');
$('.nav_out').addClass('ni');
} else {
$('.nav_in').removeClass('shun');
$('.nav_out').removeClass('ni');
}
$('.nav_in').removeClass('shun');
$('.nav_out').removeClass('ni');
nav(num);
})