160CM | | M | | | | | | Reviews
Good(100%)
Average(0%)
Poor(0%) Reviews (0) - Good (0)
- Average (0)
- Poor (0)
KadisonCategoryNew ArrivalBy PriceBy SalesBy Click
SEARCH
- -All Products
- -Women Clothing
- Dresses
- Sweaters
- Jackets
- Shirt
- Overcoats
- Pants
- -Women Shoes
- -Men Clothing
- T Shirt
- Sweaters
- Shirt
- Jackets
- Overcoats
- Pants
- Jeans
- Shorts
- -Mens Shoes
- -Female Bags
- -Men Bags
Ranks2017 Spring Autumn Casual Solid Fashion Slim Bomber Jacket Men Overcoat New Arrival Baseball Jackets black m
KSh 1,811
Fashion summer autumn 2017 new women skirt high waist work slim pencil skirt open fork sexy office gray m
KSh 1,780
brand summer Men Casual Striped Polo Shirt men's short sleeve slim fit cotton polo shirts polo shirt blue xl
KSh 1,470
Fashion summer autumn 2017 new women skirt high waist work slim pencil skirt open fork sexy office black m
KSh 1,780
Women Bandage Button Up Washed Denim A-line Skirt High Waist Mini Short Jean Skirts New white m
KSh 1,379
View All Product
// 商品分类收缩
function class_list(obj){
var stc_id = $(obj).attr('span_id');
var span_class = $(obj).attr('class');
if(span_class=='ico-block') {
$("#stc_"+stc_id).show();
$(obj).html(' -');
$(obj).attr('class','ico-none');
}else{
$("#stc_"+stc_id).hide();
$(obj).html(' +');
$(obj).attr('class','ico-block');
}
}
Complete Tips Finish Complete Problem ×
// 运费优惠提示
function shippingDiscountNotice(){
}
// 秒杀弹窗
/* S 秒杀倒计时 */
/* E 秒杀倒计时 */
/* TODO: 乌干达运费提示补丁 */
var siteDomain = window.location.href;
var shippingHighlight = $(".box-logistics-type-2 .l2");
if (siteDomain.indexOf('.co.ug') > 0) shippingHighlight.html("Delivery time : 20-30 days");
else if (siteDomain.indexOf('.ng') > 0) shippingHighlight.html("Delivery time : 15-30 days");
/* 辅助浏览 */
jQuery(function ($) {
// 放大镜效果 产品图片
CloudZoom.quickStart();
// 图片切换效果
$(".controller li").first().addClass('current');
$('.controller').find('li').mouseover(function () {
$(this).first().addClass("current").siblings().removeClass("current");
});
});
//收藏分享处下拉操作
jQuery.divselect = function (divselectid, inputselectid) {
var inputselect = $(inputselectid);
$(divselectid).mouseover(function () {
var ul = $(divselectid + " ul");
ul.slideDown("fast");
if (ul.css("display") == "none") {
ul.slideDown("fast");
}
});
$(divselectid).live('mouseleave', function () {
$(divselectid + " ul").hide();
});
};
$(function () {
//赠品处滚条
$('#ncsGoodsGift').perfectScrollbar({suppressScrollX: true});
// 加入购物车
$('a[nctype="addcart_submit"]').click(function () {
if (typeof(allow_buy) != 'undefined' && allow_buy === false) return;
addcart(1175208, checkQuantity(), 'addcart_callback');
});
// 立即购买
$('a[nctype="buynow_submit"]').click(function () {
if (typeof(allow_buy) != 'undefined' && allow_buy === false) return;
buynow(1175208, checkQuantity());
});
// 秒杀购买
$('a[nctype="checkout_submit"]').on("click", function () {
if (typeof(allow_buy) != 'undefined' && allow_buy === false) return;
var url = '';
var goods_id =1175208;
var quantity = parseInt($("#quantity").val());
var data = 'submitbuynow-' + goods_id + '-' + quantity;
buynow_new(1175208, checkQuantity(), url, data);
});
// 立即购买(加购物车弹窗)
$('a[nctype="checkcart_submit"]').on("click", function () {
if (typeof(allow_buy) != 'undefined' && allow_buy === false) return;
var url = 'https://www.kilimall.co.ke/index.php?act=cart';
buycart_new(url);
});
// 到货通知
// 预约购买
//浮动导航 waypoints.js
$('#main-nav').waypoint(function (event, direction) {
$(this).parent().parent().parent().toggleClass('sticky', direction === "down");
event.stopPropagation();
});
// 分享收藏下拉操作
$.divselect("#handle-l");
$.divselect("#handle-r");
// 规格选择
$('dl[nctype="nc-spec"]').find('a').each(function () {
$(this).click(function () {
if ($(this).hasClass('hovered')) { return false; }
$(this).parents('ul:first').find('a').removeClass('hovered');
$(this).addClass('hovered');
checkSpec();
});
});
// 无库存的商品规格置灰处理
show_storage();
});
function show_storage(){
var spec_param = [{"sign":"143812|143822","url":"https:\/\/www.kilimall.co.ke\/item-1175208-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-blue-m.html","storage":"100"},{"sign":"143813|143822","url":"https:\/\/www.kilimall.co.ke\/item-1175209-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-blue-l.html","storage":"100"},{"sign":"143814|143822","url":"https:\/\/www.kilimall.co.ke\/item-1175210-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-blue-xl.html","storage":"100"},{"sign":"143815|143822","url":"https:\/\/www.kilimall.co.ke\/item-1175211-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-blue-xxl.html","storage":"100"},{"sign":"143816|143822","url":"https:\/\/www.kilimall.co.ke\/item-1175212-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-blue-xxxl.html","storage":"100"},{"sign":"143817|143822","url":"https:\/\/www.kilimall.co.ke\/item-1175213-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-blue-4xl.html","storage":"100"},{"sign":"143812|143827","url":"https:\/\/www.kilimall.co.ke\/item-1175214-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-navy-blue-m.html","storage":"100"},{"sign":"143813|143827","url":"https:\/\/www.kilimall.co.ke\/item-1175215-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-navy-blue-l.html","storage":"100"},{"sign":"143814|143827","url":"https:\/\/www.kilimall.co.ke\/item-1175216-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-navy-blue-xl.html","storage":"100"},{"sign":"143815|143827","url":"https:\/\/www.kilimall.co.ke\/item-1175217-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-navy-blue-xxl.html","storage":"100"},{"sign":"143816|143827","url":"https:\/\/www.kilimall.co.ke\/item-1175218-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-navy-blue-xxxl.html","storage":"100"},{"sign":"143817|143827","url":"https:\/\/www.kilimall.co.ke\/item-1175219-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-navy-blue-4xl.html","storage":"100"},{"sign":"143812|143828","url":"https:\/\/www.kilimall.co.ke\/item-1175220-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-khaki-m.html","storage":"100"},{"sign":"143813|143828","url":"https:\/\/www.kilimall.co.ke\/item-1175221-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-khaki-l.html","storage":"100"},{"sign":"143814|143828","url":"https:\/\/www.kilimall.co.ke\/item-1175222-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-khaki-xl.html","storage":"100"},{"sign":"143815|143828","url":"https:\/\/www.kilimall.co.ke\/item-1175223-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-khaki-xxl.html","storage":"100"},{"sign":"143816|143828","url":"https:\/\/www.kilimall.co.ke\/item-1175224-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-khaki-xxxl.html","storage":"100"},{"sign":"143817|143828","url":"https:\/\/www.kilimall.co.ke\/item-1175225-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-khaki-4xl.html","storage":"100"},{"sign":"143812|143870","url":"https:\/\/www.kilimall.co.ke\/item-1175226-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-beige-m.html","storage":"100"},{"sign":"143813|143870","url":"https:\/\/www.kilimall.co.ke\/item-1175227-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-beige-l.html","storage":"100"},{"sign":"143814|143870","url":"https:\/\/www.kilimall.co.ke\/item-1175228-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-beige-xl.html","storage":"100"},{"sign":"143815|143870","url":"https:\/\/www.kilimall.co.ke\/item-1175229-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-beige-xxl.html","storage":"100"},{"sign":"143816|143870","url":"https:\/\/www.kilimall.co.ke\/item-1175230-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-beige-xxxl.html","storage":"100"},{"sign":"143817|143870","url":"https:\/\/www.kilimall.co.ke\/item-1175231-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-beige-4xl.html","storage":"100"}];
$('dl[nctype="nc-spec"]').each(function () {
var obj = $(this);
obj.find('a').each(function(){
var last_spec=$(this);
var spec_id = '';
var spec = new Array();
obj.siblings().find('.hovered').each(function () {
var data_str = '';
eval('data_str =' + $(this).attr('data-param'));
spec.push(data_str.valid);
});
eval('spec_id =' + last_spec.attr('data-param'));
spec.push(spec_id.valid);
spec1 = spec.sort(function (a, b) { return a - b; });
var spec_sign = spec1.join('|');
$.each(spec_param,function(i, n){
if(n.sign == spec_sign && n.storage==0) last_spec.addClass('no_storage');
})
});
});
}
function checkSpec() {
var spec_param = [{"sign":"143812|143822","url":"https:\/\/www.kilimall.co.ke\/item-1175208-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-blue-m.html","storage":"100"},{"sign":"143813|143822","url":"https:\/\/www.kilimall.co.ke\/item-1175209-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-blue-l.html","storage":"100"},{"sign":"143814|143822","url":"https:\/\/www.kilimall.co.ke\/item-1175210-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-blue-xl.html","storage":"100"},{"sign":"143815|143822","url":"https:\/\/www.kilimall.co.ke\/item-1175211-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-blue-xxl.html","storage":"100"},{"sign":"143816|143822","url":"https:\/\/www.kilimall.co.ke\/item-1175212-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-blue-xxxl.html","storage":"100"},{"sign":"143817|143822","url":"https:\/\/www.kilimall.co.ke\/item-1175213-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-blue-4xl.html","storage":"100"},{"sign":"143812|143827","url":"https:\/\/www.kilimall.co.ke\/item-1175214-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-navy-blue-m.html","storage":"100"},{"sign":"143813|143827","url":"https:\/\/www.kilimall.co.ke\/item-1175215-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-navy-blue-l.html","storage":"100"},{"sign":"143814|143827","url":"https:\/\/www.kilimall.co.ke\/item-1175216-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-navy-blue-xl.html","storage":"100"},{"sign":"143815|143827","url":"https:\/\/www.kilimall.co.ke\/item-1175217-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-navy-blue-xxl.html","storage":"100"},{"sign":"143816|143827","url":"https:\/\/www.kilimall.co.ke\/item-1175218-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-navy-blue-xxxl.html","storage":"100"},{"sign":"143817|143827","url":"https:\/\/www.kilimall.co.ke\/item-1175219-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-navy-blue-4xl.html","storage":"100"},{"sign":"143812|143828","url":"https:\/\/www.kilimall.co.ke\/item-1175220-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-khaki-m.html","storage":"100"},{"sign":"143813|143828","url":"https:\/\/www.kilimall.co.ke\/item-1175221-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-khaki-l.html","storage":"100"},{"sign":"143814|143828","url":"https:\/\/www.kilimall.co.ke\/item-1175222-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-khaki-xl.html","storage":"100"},{"sign":"143815|143828","url":"https:\/\/www.kilimall.co.ke\/item-1175223-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-khaki-xxl.html","storage":"100"},{"sign":"143816|143828","url":"https:\/\/www.kilimall.co.ke\/item-1175224-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-khaki-xxxl.html","storage":"100"},{"sign":"143817|143828","url":"https:\/\/www.kilimall.co.ke\/item-1175225-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-khaki-4xl.html","storage":"100"},{"sign":"143812|143870","url":"https:\/\/www.kilimall.co.ke\/item-1175226-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-beige-m.html","storage":"100"},{"sign":"143813|143870","url":"https:\/\/www.kilimall.co.ke\/item-1175227-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-beige-l.html","storage":"100"},{"sign":"143814|143870","url":"https:\/\/www.kilimall.co.ke\/item-1175228-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-beige-xl.html","storage":"100"},{"sign":"143815|143870","url":"https:\/\/www.kilimall.co.ke\/item-1175229-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-beige-xxl.html","storage":"100"},{"sign":"143816|143870","url":"https:\/\/www.kilimall.co.ke\/item-1175230-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-beige-xxxl.html","storage":"100"},{"sign":"143817|143870","url":"https:\/\/www.kilimall.co.ke\/item-1175231-summer-men-cotton-shorts-elastic-waist-casual-beach-shorts-4-colors-m-4xl-beige-4xl.html","storage":"100"}];
var spec = new Array();
$('ul[nctyle="ul_sign"]').find('.hovered').each(function () {
var data_str = '';
eval('data_str =' + $(this).attr('data-param'));
spec.push(data_str.valid);
});
spec1 = spec.sort(function (a, b) { return a - b; });
var spec_sign = spec1.join('|');
$.each(spec_param, function (i, n) {
if (n.sign == spec_sign) {
window.location.href = n.url;
}
});
}
// 验证购买数量
function checkQuantity() {
var quantity = parseInt($("#quantity").val());
if (quantity < 1) {
alert("Please fill in the purchase quantity");
$("#quantity").val('1');
return false;
}
max = parseInt($('[nctype="goods_stock"]').text());
if (quantity > max) {
alert("Inventory shortage");
return false;
}
return quantity;
}
// 立即购买js 新增秒杀 add time 2016-10-13
function buynow_new(goods_id, quantity, url, data) {
login_dialog_new(url, data);
}
//新增,秒杀时以原价购买,加入购物车直接跳转
function flash_add_cart() {
addcart(1175208, 1);
location.href = "index.php?act=cart";
}
//进入购物车的方法
function buycart_new(url) {
login_dialog_new(url);
}
//登录后回调js
function submitbuynow(goods_id, quantity) {
if (!quantity) return;
$("#cart_id").val(goods_id + '|' + quantity);
$("#buynow_form").submit();
}
//单独拉出来的登录,增加了data,ref_url参数
function login_dialog_new(return_url, data) {
if(!data) { data=null; }
CUR_DIALOG = ajax_form("login", "Login", SITEURL + "/index.php?act=login&inajax=1&data=" + data + "&ref_url=" + encodeURI(return_url), 360, 1)
bind_close();
}
function bind_close(){
$('.dialog_close_button').unbind('click');
$('.dialog_close_button').click(function(){
$('#fwin_login,#dialog_manage_screen_locker').hide();
$('.dialog_content').remove();
})
}
// 立即购买js
function buynow(goods_id, quantity) {
login_dialog();
}
$(function () {
//选择地区查看运费
$('#transport_pannel>a').click(function () {
var id = $(this).attr('nctype');
if (id == 'undefined') return false;
var _self = this, tpl_id = '108';
var url = 'index.php?act=goods&op=calc&rand=' + Math.random();
$('#transport_price').css('display', 'none');
$('#loading_price').css('display', '');
$.getJSON(url, {'id': id, 'tid': tpl_id}, function (data) {
if (data == null) return false;
if (data != 'undefined') {
$('#nc_kd').html('Postage:' + data + 'KSh');
} else {
'Seller bear shipping amount';
}
$('#transport_price').css('display', '');
$('#loading_price').css('display', 'none');
$('#ncrecive').html($(_self).html());
});
});
$("#nc-bundling").load('index.php?act=goods&op=get_bundling&goods_id=1175208', function () {
if ($(this).html() != '') { $(this).show(); }
});
$("#consulting_demo").load('index.php?act=goods&op=consulting&goods_id=1175208&store_id=2126');
/** goods.php **/
// 商品内容部分折叠收起侧边栏控制
$('#fold').click(function () {
$('.ncs-goods-layout').toggleClass('expanded');
});
// 商品内容介绍Tab样式切换控制
$('#categorymenu').find("li").click(function () {
$('#categorymenu').find("li").removeClass('current');
$(this).addClass('current');
});
// 商品详情默认情况下显示全部
$('#tabGoodsIntro').click(function () {
$('.bd').css('display', '');
$('.hd').css('display', '');
});
// 点击地图隐藏其他以及其标题栏
$('#tabStoreMap').click(function () {
$('.bd').css('display', 'none');
$('#ncStoreMap').css('display', '');
$('.hd').css('display', 'none');
});
// 点击评价隐藏其他以及其标题栏
$('#tabGoodsRate').click(function () {
$('.bd').css('display', 'none');
$('#ncGoodsRate').css('display', '');
$('.hd').css('display', 'none');
});
// 点击成交隐藏其他以及其标题
$('#tabGoodsTraded').click(function () {
$('.bd').css('display', 'none');
$('#ncGoodsTraded').css('display', '');
$('.hd').css('display', 'none');
});
// 点击咨询隐藏其他以及其标题
$('#tabGuestbook').click(function () {
$('.bd').css('display', 'none');
$('#ncGuestbook').css('display', '');
$('.hd').css('display', 'none');
});
// 商品排行Tab切换
$(".ncs-top-tab > li > a").mouseover(function (e) {
if (e.target == this) {
var tabs = $(this).parent().parent().children("li");
var panels = $(this).parent().parent().parent().children(".ncs-top-panel");
var index = $.inArray(this, $(this).parent().parent().find("a"));
if (panels.eq(index)[0]) {
tabs.removeClass("current ").eq(index).addClass("current ");
panels.addClass("hide").eq(index).removeClass("hide");
}
}
});
// 信用评价动态评分打分人次Tab切换
$(".ncs-rate-tab > li > a").mouseover(function (e) {
if (e.target == this) {
var tabs = $(this).parent().parent().children("li");
var panels = $(this).parent().parent().parent().children(".ncs-rate-panel");
var index = $.inArray(this, $(this).parent().parent().find("a"));
if (panels.eq(index)[0]) {
tabs.removeClass("current ").eq(index).addClass("current ");
panels.addClass("hide").eq(index).removeClass("hide");
}
}
});
// 触及显示缩略图
$('.goods-pic > .thumb').hover(
function () {
$(this).next().css('display', 'block');
},
function () {
$(this).next().css('display', 'none');
}
);
/* 商品购买数量增减js */
// 增加
$('a[nctype="increase"]').click(function () {
num = parseInt($('#quantity').val());
max = parseInt($('[nctype="goods_stock"]').text());
if (num < max) {
$('#quantity').val(num + 1);
}
});
// 减少
$('a[nctype="decrease"]').click(function () {
num = parseInt($('#quantity').val());
if (num > 1) {
$('#quantity').val(num - 1);
}
});
// 评价列表
$('#comment_tab').on('click', 'li', function () {
$('#comment_tab li').removeClass('current');
$(this).addClass('current');
load_goodseval($(this).attr('data-type'));
});
load_goodseval('all');
function load_goodseval(type) {
var url = 'https://www.kilimall.co.ke/index.php?act=goods&op=comments&goods_id=1175208';
url += '&type=' + type;
$("#goodseval").load(url);
}
// 记录浏览历史(添加)
$.get("index.php?act=goods&op=addbrowse", {gid:1175208});
// 初始化对比按钮
initCompare();
// 满即送、加价购显示隐藏
$('[nctype="show-rule"]').click(function () {
$(this).parent().find('[nctype="rule-content"]').show();
});
$('[nctype="hide-rule"]').click(function () {
$(this).parents('[nctype="rule-content"]:first').hide()
});
});
/* 加入购物车后的效果函数 */
function addcart_callback(data) {
$('#bold_num').html(data.num);
$('#bold_mly').html(price_format(data.amount));
$('.ncs-cart-popup').fadeIn('fast');
}
var $cur_area_list, $cur_tab, next_tab_id = 0, cur_select_area = [], calc_area_id = '', calced_area = [], cur_select_area_ids = [];
$(document).ready(function () {
$("#ncs-freight-selector").hover(function () {
//如果店铺没有设置默认显示区域,马上异步请求
if (typeof nc_a === "undefined") {
$.getJSON(SITEURL + "/index.php?act=index&op=json_area&callback=?", function (data) {
nc_a = data;
$cur_tab = $('#ncs-stock').find('li[data-index="0"]');
_loadArea(0);
});
}
$(this).addClass("hover");
$(this).on('mouseleave', function () {
$(this).removeClass("hover");
});
});
$('ul[class="area-list"]').on('click', 'a', function () {
$('#ncs-freight-selector').unbind('mouseleave');
var tab_id = parseInt($(this).parents('div[data-widget="tab-content"]:first').attr('data-area'));
if (tab_id == 0) {
cur_select_area = [];
cur_select_area_ids = []
}
;
if (tab_id == 1 && cur_select_area.length > 1) {
cur_select_area.pop();
cur_select_area_ids.pop();
if (cur_select_area.length > 1) {
cur_select_area.pop();
cur_select_area_ids.pop();
}
}
next_tab_id = tab_id + 1;
var area_id = $(this).attr('data-value');
$cur_tab = $('#ncs-stock').find('li[data-index="' + tab_id + '"]');
$cur_tab.find('em').html($(this).html());
$cur_tab.find('i').html(' ∨');
if (tab_id < 2) {
calc_area_id = area_id;
cur_select_area.push($(this).html());
cur_select_area_ids.push(area_id);
$cur_tab.find('a').removeClass('hover');
$cur_tab.nextAll().remove();
if (typeof nc_a === "undefined") {
$.getJSON(SITEURL + "/index.php?act=index&op=json_area&callback=?", function (data) {
nc_a = data;
_loadArea(area_id);
});
} else {
_loadArea(area_id);
}
} else {
//点击第三级,不需要显示子分类
if (cur_select_area.length == 3) {
cur_select_area.pop();
cur_select_area_ids.pop();
}
cur_select_area.push($(this).html());
cur_select_area_ids.push(area_id);
$('#ncs-freight-selector > div[class="text"] > div').html(cur_select_area.join('-'));
$('#ncs-freight-selector').removeClass("hover");
_calc();
}
$('#ncs-stock').find('li[data-widget="tab-item"]').on('click', 'a', function () {
var tab_id = parseInt($(this).parent().attr('data-index'));
if (tab_id < 2) {
$(this).parent().nextAll().remove();
$(this).addClass('hover');
$('#ncs-stock').find('div[data-widget="tab-content"]').each(function () {
if ($(this).attr("data-area") == tab_id) {
$(this).show();
} else {
$(this).hide();
}
});
}
});
});
function _loadArea(area_id) {
if (nc_a[area_id] && nc_a[area_id].length > 0) {
$('#ncs-stock').find('div[data-widget="tab-content"]').each(function () {
if ($(this).attr("data-area") == next_tab_id) {
$(this).show();
$cur_area_list = $(this).find('ul');
$cur_area_list.html('');
} else {
$(this).hide();
}
});
var areas = [];
areas = nc_a[area_id];
for (i = 0; i < areas.length; i++) {
if (areas[i][1].length > 15) {
$cur_area_list.append("" + areas[i][1] + "");
} else {
$cur_area_list.append("" + areas[i][1] + "");
}
}
if (area_id > 0) {
$cur_tab.after('Please Choose ∨');
}
} else {
//点击第一二级时,已经到了最后一级
$cur_tab.find('a').addClass('hover');
$('#ncs-freight-selector > div[class="text"] > div').html(cur_select_area.join('-'));
$('#ncs-freight-selector').removeClass("hover");
_calc();
}
}
//计算运费,是否配送
function _calc() {
$.cookie('dregion', cur_select_area_ids.join(' ') + '|' + cur_select_area.join(' '), {expires: 30});
var _args = '';
_args += "&tid=108";
if (_args != '') {
_args += '&area_id=' + calc_area_id;
if (typeof calced_area[calc_area_id] == 'undefined') {
//需要请求配送区域设置
$.getJSON(SITEURL + "/index.php?act=goods&op=calc&" + _args + "&myf=0.00&callback=?", function (data) {
allow_buy = data.total ? true : false;
calced_area[calc_area_id] = data.total;
if (data.total === false || 100 == '0') {
$('#ncs-freight-prompt > strong').html('No Stock').next().remove();
$('a[nctype="buynow_submit"]').addClass('no-buynow');
$('a[nctype="addcart_submit"]').addClass('no-buynow');
$('#store-free-time').hide();
} else {
$('#ncs-freight-prompt > strong').html('In Stock ').next().remove();
$('#ncs-freight-prompt > strong').after('' + data.total + '');
$('a[nctype="buynow_submit"]').removeClass('no-buynow');
$('a[nctype="addcart_submit"]').removeClass('no-buynow');
$('#store-free-time').show();
shippingDiscountNotice();
}
});
} else {
if (calced_area[calc_area_id] === false || 100 == '0') {
$('#ncs-freight-prompt > strong').html('No Stock').next().remove();
$('a[nctype="buynow_submit"]').addClass('no-buynow');
$('a[nctype="addcart_submit"]').addClass('no-buynow');
$('#store-free-time').hide();
} else {
$('#ncs-freight-prompt > strong').html('In Stock ').next().remove();
$('#ncs-freight-prompt > strong').after('' + calced_area[calc_area_id] + '');
$('a[nctype="buynow_submit"]').removeClass('no-buynow');
$('a[nctype="addcart_submit"]').removeClass('no-buynow');
$('#store-free-time').show();
shippingDiscountNotice()
}
}
}
}
//如果店铺设置默认显示配送区域
});
//googleSEO
var priceSTR = $('.ncs-meta .dl-price strong').html();
var currency = priceSTR.split(' ')[0];
var price = priceSTR.split(' ')[1];
var oHead = document.getElementsByTagName('head').item(0);
var oScript= document.createElement("script");
oScript.type = "application/ld+json";
var BrandName= 'test';
for(var i=0;i<$('#ncGoodsIntro .nc-goods-sort>li').length;i++){
if($('#ncGoodsIntro .nc-goods-sort>li').eq(i).html().split(' ')[0]=='Brand:'){
BrandName = $('#ncGoodsIntro .nc-goods-sort>li').eq(i).html().split(' ')[1]
}
}
var meta = document.getElementsByTagName('meta');
var share_desc = '';
for(i in meta){
if(typeof meta[i].name!="undefined"&&meta[i].name.toLowerCase()=="description"){
share_desc = meta[i].content;
}
}
//google SEO JSON包
var seoJSON = {
"@context": "http://schema.org/", //写死
"@type": "Product", //写死
"name":$('.goods-name').html(), //产品名
"image": [
$('#ncs-goods-picture .gallery img')[0].src
],
"description": share_desc, //获取网页产品描述
"mpn": 1175208, //sku号
"brand": {
"@type": "Thing", //写死
"name": BrandName //品牌名
},
"aggregateRating": {
"@type": "AggregateRating", //写死
"ratingValue": "100%", //评分
"reviewCount": "0"==0?1:"0" //评价人数
},
"offers": {
"@type": "Offer",
"priceCurrency": currency, //当地国家货币
"price": "1689", //商家价格
"priceValidUntil": new Date().getFullYear()+2+"-11-05", //每年变动一次,时间为距离当年2年
"itemCondition": "http://schema.org/UsedCondition", //写死
"availability": "http://schema.org/InStock", //InStock就是有库存,outstock就是没库存
"seller": {
"@type": "Organization", //写死
"name": "Kadison" //商家名
}
}
}
oScript.innerHTML = JSON.stringify(seoJSON);
oHead.appendChild( oScript);
if($('.g-body').find('embed').length>0){
var oScript2= document.createElement("script");
oScript2.type = "application/ld+json";
var seoJSON2 = {
"@context": "http://schema.org",
"@type" :"VideoObject",
"name" :$('.goods-name').html(),
"description": share_desc, //获取网页产品描述
"thumbnailUrl":$('#ncs-goods-picture .gallery img')[0].src,
"uploadDate" :"2015-02-05T080000+0800",
"publisher": {
"@type":"Organization",
"name": "Kilimall",
"logo": {
"@type": "ImageObject",
"url":$('#ncs-goods-picture .gallery img')[0].src,
"width": $('.g-body').find('embed')[0].width,
"height":$('.g-body').find('embed')[0].height,
}
},
"embedUrl": $('.g-body').find('embed')[0].src
}
oScript2.innerHTML = JSON.stringify(seoJSON2);
oHead.appendChild(oScript2);
}
}
.adtitle{
color:#666666;
margin-bottom: 4px;
font-size: 13px;
}
.appPromo{
width: 340px;
height: 190px;
padding:18px 28px 0;
background: #F5F5F5;
position: absolute;
left: 800px;
top: -200px;
}
.iconList{
height: 30px;
margin-bottom: 8px;
}
.iconList li{
margin-right: 6px;
width: 30px;
height: 30px;
float: left;
}
.iconList li a{
display:inline-block;
width:100%;
height:100%;
}
.iconList li:nth-of-type(1){
background: url(https://www.kilimall.co.ke/templates/en/images/footerappad/facebook.png);
}
.iconList li:nth-of-type(2){
background: url(https://www.kilimall.co.ke/templates/en/images/footerappad/twitter.png);
}
.iconList li:nth-of-type(3){
background: url(https://www.kilimall.co.ke/templates/en/images/footerappad/blog.png);
}
.googleplay{
width: 102px;
height: 30px;
background: url(https://www.kilimall.co.ke/templates/en/images/footerappad/google_play.png);
margin-bottom:8px;
}
.googleplay a{
display:inline-block;
width:100%;
height:100%;
}
.subemailbox{
width: 170px;
padding-left: 10px;
height: 30px;
outline: none;
left: 0;
top:0;
border:1px solid #DDDDDD;
}
.subemailwrapper{
width: 260px;
position: relative;
}
.subemailbutton{
position: absolute;
right: 0;
top:0;
width: 80px;
height: 30px;
background: #F87622;
font-size: 14px;
color: #fff;
cursor: pointer;
text-align: center;
line-height: 30px;
}
.emailWarning1{
color: #F87622;
font-size: 12px;
display: none;
}
.bigwrapper1{
width: 1200px;
height: 0;
margin:0 auto;
/*top:500px;*/
position: relative;
z-index: 999;
display: none;
}
.spwrapper1{
background: #f5f5f5;
padding-top: 1px;
border-top: 1px solid #e7e7e7;
border-bottom: 1px solid #e7e7e7;
}
.supportedPayment{
width: 1200px;
height: 100px;
margin:0 auto;
}
.spTitle1{
font-weight: bold;
color:#666666;
font-size: 14px;
margin:16px 0 15px 0;
}
.paymentICONLIST li{
width: 87px;
height: 43px;
border:1px solid #eee;
float: left;
margin-right: 10px;
}
.paymentICONLIST>li>img{
width: :100%;
}
.footerlipalpay{
height: 45px;
}
.footerlipalpay a{
display: inline-block;
height: 45px;
width: 100%;
}
.footerlipalpay li{
width: 90px;
height: 45px;
float: left;
margin:0 5px;
}
.footerlipalpay li:nth-of-type(1){
background: url(https://www.kilimall.co.ke/templates/en/images/footerlipalpay/M.png);
}
.footerlipalpay li:nth-of-type(2){
background: url(https://www.kilimall.co.ke/templates/en/images/footerlipalpay/T.png);
}
.footerlipalpay li:nth-of-type(3){
background: url(https://www.kilimall.co.ke/templates/en/images/footerlipalpay/S.png);
}
Stay Connected: Get Shopping App and Earn Millions of Cash Rewards: Subscribe for Special Offers, Promos & Deals:
Mall
| SELLER
| MOBILE APP
Copyright 2017 Kilimall, All rights reserved.
$(".s1 dd:nth-of-type(2)").css("font-weight","bold");
//footer添加app推广及
$('.subemailbutton').click(function(){
function isEmail(str){
var reEmail=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
return reEmail.test(str);
}
if(isEmail($('.subemailbox').val())){
$('.emailWarning1').hide()
$.ajax({
type:'POST',
url:'/index.php?act=black_friday&op=mail',
data:{mail:$('.subemailbox').val()},
// dataType: "json",
success:function(res){
res = JSON.parse(res)
$('.emailWarning1').html(res.msg).show()
},
error:function(res){
alert(res.msg)
}
})
}else{
$('.emailWarning1').html('Please enter a mailbox in the correct format').show()
}
})
switch(window.location.host){
case 'www.kilimall.co.ke':
$('.iconList li:nth-of-type(1) a').attr('href','https://www.facebook.com/kilimall/')
$('.iconList li:nth-of-type(2) a').attr('href','https://twitter.com/Kilimall')
$('.iconList li:nth-of-type(3) a').attr('href','https://www.kilimall.co.ke/blog/')
var str = ''
for(var i=1;i<12;i++){
var liSTR = ''
str+=liSTR
}
$('.paymentICONLIST').html(str)
break
case 'www.kilimall.co.ug':
$('.iconList li:nth-of-type(1) a').attr('href','https://www.facebook.com/kilimalluganda/')
$('.iconList li:nth-of-type(2) a').attr('href','https://twitter.com/kilimalluganda')
$('.iconList li:nth-of-type(3) a').attr('href','https://www.kilimall.co.ug/blog/')
var str = ''
for(var i=1;i<6;i++){
var liSTR = ''
str+=liSTR
}
$('.paymentICONLIST').html(str)
break
case 'www.kilimall.ng':
$('.iconList li:nth-of-type(1) a').attr('href','https://www.facebook.com/KilimallNigeria/')
$('.iconList li:nth-of-type(2) a').attr('href','https://twitter.com/kilimallNigeria')
$('.iconList li:nth-of-type(3) a').attr('href','https://www.kilimall.ng/blog/')
var str = ''
for(var i=1;i<12;i++){
var liSTR = ''
str+=liSTR
}
$('.paymentICONLIST').html(str)
break
case 'www.kili.com':
$('.iconList li:nth-of-type(1) a').attr('href','https://www.facebook.com/KilimallNigeria/')
$('.iconList li:nth-of-type(2) a').attr('href','https://twitter.com/kilimallNigeria')
$('.iconList li:nth-of-type(3) a').attr('href','https://www.kilimall.ng/blog/')
var str = ''
for(var i=1;i<12;i++){
var liSTR = ''
str+=liSTR
}
$('.paymentICONLIST').html(str)
break
case 'www.kili.co':
var str = ''
for(var i=1;i<12;i++){
var liSTR = ''
str+=liSTR
}
$('.paymentICONLIST').html(str)
break
}
if(getCookie('homeArticle')){
$('#faq').show().find('.faq-wrapper ul').html(getCookie('homeArticle'));
}else{
App.getJSON('/articles/home','',function (data) {
var dl = '{content}';
var dt = '{class_name}';
var dd = '{title}';
var html = '';
for(var i = 0; i < data.length; i++){
var class_name = data[i].title;
var tmpdl = dl.replace('{i}',i+1);
var tmp = '';
tmp += dt.replace('{class_name}',class_name);
if(data[i].articles){
for (var k = 0; k< data[i].articles.length; k++){
var tmp1 = '';
tmp1 = dd.replace(/{title}/g,data[i].articles[k].title);
if(data[i].articles[k].article_url){
tmp1 = tmp1.replace('{url}',data[i].articles[k].article_url);
}else{
tmp1 = tmp1.replace('{url}','/index.php?act=article&article_id='+data[i].articles[k].id);
}
tmp += tmp1;
}
}
tmpdl = tmpdl.replace('{content}',tmp);
html += tmpdl;
setCookie('homeArticle',html);
}
$('#faq').show().find('.faq-wrapper ul').html(html);
});
}
if(getCookie('homeArticle')){
$('.bigwrapper1').show();
}
|