手艺网
  • 商家入驻 登录 注册
  • 手艺限时购
    距离结束 {{left.hour | formatCountDown}} : {{left.minute | formatCountDown}} : {{left.seconds | formatCountDown}}
    • {{isToday(list.starttime)}}{{formatDate('H:i', list.starttime)}}
    • {{isToday(list.starttime)}}{{formatDate('H:i', list.starttime)}}
    • {{isToday(list.starttime)}}{{formatDate('H:i', list.starttime)}}

    扫描二维码立即带走

    好物首发

    首发价 ¥{{list.price}} 查看详情
    好物会搭这里总有一款套餐适合你 云顶娱乐官方网站套餐>

    扫描二维码,立即带走

    
                            
    组合价 {{formatMoney(bundle.bundle_price)}} 此套餐为您节省了{{formatMoney(bundle.price-bundle.bundle_price)}}
    好物推荐 全部 0 || vueApp.over_goods_list.list_count > 0 || vueApp.now_goods_list.list_count > 0) { Vue.prototype.qrcode(vueApp.makeUrl('w3g/Shop/goodsDetail', 'gid=' + vueApp.now_goods_list.list[0].goods.goods_id), '.limit_img .canvas') } }); vueApp.leftSeconds = parseInt(vueApp.now_goods_list.list[0].endtime) - parseInt(res.data.current_time); console.log(vueApp.formatTime(vueApp.now_goods_list.list[0].endtime)); vueApp.left.hour = Math.floor((vueApp.leftSeconds / 3600)); vueApp.left.minute = Math.floor((vueApp.leftSeconds / 60) % 60); vueApp.left.seconds = Math.floor(vueApp.leftSeconds % 60); var setTimer = setInterval(function () { if (vueApp.leftSeconds <= 0 || (vueApp.left.seconds == 0 && vueApp.left.minute == 0 && vueApp.left.hour == 0 )) { clearInterval(setTimer); vueApp.flag.showCountDown = false; } else { vueApp.left.seconds = vueApp.left.seconds - 1 >= 0 ? vueApp.left.seconds - 1 : 59; if (vueApp.left.hour > 0 && vueApp.left.seconds == 59 && vueApp.left.minute == 0) { vueApp.left.minute = 59; } else { vueApp.left.minute = vueApp.left.seconds == 59 && vueApp.left.minute - 1 >= 0 ? vueApp.left.minute - 1 : vueApp.left.minute; } vueApp.left.hour = vueApp.left.minute == 59 && vueApp.left.seconds == 59 && vueApp.left.hour >= 1 ? vueApp.left.hour - 1 : vueApp.left.hour; } }, 1000); } else {}} }) }, chose_time: function(type, index, el) { if(type == 'lately') { Vue.set(vueApp.now_goods_list.list, 0, vueApp.lately_goods_list.list[index]); vueApp.flag.showCountDown = false; } else if(type == 'now') { Vue.set(vueApp.now_goods_list.list, 0, vueApp.now_list.list[0]); vueApp.flag.showCountDown = true; } else if(type == 'over') { Vue.set(vueApp.now_goods_list.list, 0, vueApp.over_goods_list.list[index]); vueApp.flag.showCountDown = false; } if(el.target.tagName == 'LI') { $(el.target).siblings().removeClass('craft-active'); $(el.target).addClass('craft-active'); } else { $(el.target).parent().siblings().removeClass('craft-active'); $(el.target).parent().addClass('craft-active'); } Vue.nextTick(function() { Vue.prototype.qrcode(vueApp.makeUrl('w3g/Shop/goodsDetail', 'gid=' + vueApp.now_goods_list.list[0].goods.goods_id), '.limit_img .canvas') }) }, get_start: function() { var data = {}; var params = {}; data.requestType = 'get'; data.method = '/api/v1/initialGoods/index'; params.pn = 1; params.ps = 1; data.params = params; $.ajax({ url: U('api/FrontendApi/api'), type: 'post', dataType: 'json', data: data, success: function(res) { if(res.status == 1) { vueApp.start = res.data.list[0]; Vue.nextTick(function() { var Swiper1 = new Swiper('.swiper-start1', { pagination: '.swiper-paginationStart1', paginationClickable: true, autoplayDisableOnInteraction: false, loop: true, onlyExternal: true, autoplay: 3500 }) var Swiper2 = new Swiper('.swiper-start2', { pagination: '.swiper-paginationStart2', loop: true, }) Swiper1.params.control = Swiper2; //需要在Swiper2初始化后,Swiper1控制Swiper2 Swiper2.params.control = Swiper1; //需要在Swiper1初始化后,Swiper2控制Swiper1 // for(var i=0;ia:nth-of-type(' + (i + 1) + ') .canvas') } }) } } }) }, get_group: function() { var data = {}; data.requestType = 'get'; data.method = '/api/v1/goods/group/index'; var params = {}; params.pn = 1; params.ps = 4; data.params = params; $.ajax({ url: U('api/FrontendApi/api'), type: 'post', dataType: 'json', data: data, success: function(res) { if(res.status == 1) { vueApp.group = res.data.list; Vue.nextTick(function() { for(var i = 0; i < res.data.list.length; i++) { Vue.prototype.qrcode(vueApp.makeUrl('w3g/Shop/goodsDetail', 'gid=' + res.data.list[i].params.goods_id), '.tuan>a:nth-of-type(' + (i + 1) + ') .canvas') } }) } } }) }, get_bundle: function() { var data = {}; data.requestType = 'get'; data.method = '/api/v1/goods/bundle/index'; var params = {}; params.pn = 1; params.ps = 1; data.params = params; $.ajax({ url: U('api/FrontendApi/api'), type: 'post', dataType: 'json', data: data, success: function(res) { if(res.status == 1) { vueApp.bundle = res.data.list[0]; Vue.nextTick(function() { var swiper = new Swiper('.swiper-bundle', { preventClicks : false, spaceBetween: 28, slidesPerView: 3, nextButton: '.swiper-button-next', prevButton: '.swiper-button-prev', simulateTouch : false }); Vue.prototype.qrcode(vueApp.makeUrl('w3g/Shop/craft_bundleOrder', 'bundle_id=' + vueApp.bundle.id), '.matching .canvas') }) } } }) }, show_bundle_code:function(){ $('.matching .canvas').show(); }, hide_bundle_code:function(){ $('.matching .canvas').hide(); } } }) // vueEnd vueApp.get_banner(); vueApp.get_time_limit(); vueApp.get_crowdfunding(); vueApp.get_group(); vueApp.get_bundle(); vueApp.get_start(); vueApp.get_fine_goods(); vueApp.get_category() // 动态生成二维码 function utf16to8(str) { var out, i, len, c; out = ""; len = str.length; for(i = 0; i < len; i++) { c = str.charCodeAt(i); if((c >= 0x0001) && (c <= 0x007F)) { out += str.charAt(i); } else if(c > 0x07FF) { out += String.fromCharCode(0xE0 | ((c >> 12) & 0x0F)); out += String.fromCharCode(0x80 | ((c >> 6) & 0x3F)); out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F)); } else { out += String.fromCharCode(0xC0 | ((c >> 6) & 0x1F)); out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F)); } } return out; } var url = window.location.href; content = utf16to8(url); $('.tuan .canvas').qrcode({ width: 180, height: 180, render: "canvas", correctLevel: 0, text: content }); })() 博聚网