(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-annex-special-index"],{"1f21":function(t,i,e){"use strict";e.r(i);var o=e("a293"),a=e.n(o);for(var n in o)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(n);i["default"]=a.a},7267:function(t,i,e){"use strict";e.d(i,"b",(function(){return o})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var o=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.pageShow?e("v-uni-view",{staticClass:"page",class:2==t.bgTabVal?"fullsize noRepeat":1==t.bgTabVal?"repeat ysize":"noRepeat ysize",style:"background-color:"+t.bgColor+";background-image: url("+t.bgPic+");min-height:"+t.windowHeight+"px;"},[t.errorNetwork?e("v-uni-view",[e("v-uni-view",{staticClass:"error-network"},[e("v-uni-image",{attrs:{src:t.imgHost+"/statics/images/error-network.png"}}),e("v-uni-view",{staticClass:"title"},[t._v(t._s(t.$t("网络连接断开")))]),e("v-uni-view",{staticClass:"con"},[e("v-uni-view",{staticClass:"label"},[t._v(t._s(t.$t("请检查情况:"))+":")]),e("v-uni-view",{staticClass:"item"},[t._v("· "+t._s(t.$t("在设置中是否已开启网络权限:")))]),e("v-uni-view",{staticClass:"item"},[t._v("· "+t._s(t.$t("当前是否处于弱网环境")))]),e("v-uni-view",{staticClass:"item"},[t._v("· "+t._s(t.$t("版本是否过低,升级试试吧")))])],1),e("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.reconnect.apply(void 0,arguments)}}},[t._v(t._s(t.$t("重新连接")))])],1)],1):e("v-uni-view",{style:t.colorStyle},[e("skeleton",{ref:"skeleton",attrs:{show:t.showSkeleton,isNodes:t.isNodes,loading:"chiaroscuro",selector:"skeleton",bgcolor:"#FFF"}}),e("v-uni-view",{staticClass:"index skeleton",style:{visibility:t.showSkeleton?"hidden":"visible"}},[t._l(t.styleConfig,(function(i,o){return e("v-uni-view",{key:o},[e(i.name,{tag:"component",attrs:{index:o,dataConfig:i,tempArr:t.tempArr,iSshowH:t.iSshowH,isSortType:t.isSortType,isFixed:t.isFixed,isSpe:1},on:{changeBarg:function(i){arguments[0]=i=t.$handleEvent(i),t.changeBarg.apply(void 0,arguments)},changeTab:function(i){arguments[0]=i=t.$handleEvent(i),t.changeTab.apply(void 0,arguments)},detail:function(i){arguments[0]=i=t.$handleEvent(i),t.goDetail.apply(void 0,arguments)},bindSortId:function(i){arguments[0]=i=t.$handleEvent(i),t.bindSortId.apply(void 0,arguments)},bindHeight:function(i){arguments[0]=i=t.$handleEvent(i),t.bindHeight.apply(void 0,arguments)}}})],1)})),1==t.isSortType?e("v-uni-view",{staticClass:"sort-product",style:{marginTop:t.sortMpTop+"px"}},[e("v-uni-scroll-view",{staticStyle:{background:"#fff"},attrs:{"scroll-x":"true"}},[t.sortList.children&&t.sortList.children.length?e("v-uni-view",{staticClass:"sort-box"},t._l(t.sortList.children,(function(i,o){return e("v-uni-view",{key:o,staticClass:"sort-item",class:{on:t.curSort==o},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeSort(i,o)}}},[i.pic?e("v-uni-image",{attrs:{src:i.pic,mode:""}}):e("v-uni-image",{attrs:{src:"/static/images/sort-img.png",mode:""}}),e("v-uni-view",{staticClass:"txt"},[t._v(t._s(t.$t(i.cate_name)))])],1)})),1):t._e()],1),t.goodList.length?e("v-uni-view",{staticClass:"product-list"},t._l(t.goodList,(function(i,o){return e("v-uni-view",{staticClass:"product-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goGoodsDetail(i)}}},[e("v-uni-image",{attrs:{src:i.image}}),i.activity&&"1"===i.activity.type&&t.$permission("seckill")?e("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("秒杀")))]):t._e(),i.activity&&"2"===i.activity.type&&t.$permission("bargain")?e("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("砍价")))]):t._e(),i.activity&&"3"===i.activity.type&&t.$permission("combination")?e("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("拼团")))]):t._e(),i.checkCoupon?e("span",{staticClass:"pictrue_log_big pictrue_log_class"},[t._v(t._s(t.$t("券")))]):t._e(),e("v-uni-view",{staticClass:"info"},[e("v-uni-view",{staticClass:"title line2"},[t._v(t._s(i.store_name))]),e("v-uni-view",{staticClass:"price-box"},[e("v-uni-text",[t._v(t._s(t.$t("¥")))]),t._v(t._s(i.price))],1)],1)],1)})),1):t._e(),e("Loading",{attrs:{loaded:t.loaded,loading:t.loading}}),0==t.goodList.length&&t.loaded?e("v-uni-view",{},[e("v-uni-view",{staticClass:"emptyBox"},[e("v-uni-image",{attrs:{src:t.imgHost+"/statics/images/no-thing.png"}}),e("v-uni-view",{staticClass:"tips"},[t._v(t._s(t.$t("暂无数据")))])],1),e("recommend",{attrs:{hostProduct:t.hostProduct}})],1):t._e()],1):t._e(),e("couponWindow",{attrs:{window:t.isCouponShow,couponImage:t.couponObj.image,couponList:t.couponObj.list},on:{onColse:function(i){arguments[0]=i=t.$handleEvent(i),t.couponClose.apply(void 0,arguments)}}}),t.site_config.record_No?e("v-uni-view",{staticClass:"site-config",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goICP(1)}}},[t._v(t._s(t.site_config.record_No))]):t._e(),t.site_config.network_security?e("v-uni-view",{staticClass:"site-config",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goICP(2)}}},[t._v(t._s(t.site_config.network_security))]):t._e(),e("v-uni-view",{staticClass:"uni-p-b-98"})],2)],1)],1):t._e()},a=[]},a293:function(t,i,e){"use strict";e("7a82");var o=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("99af"),e("d3b7"),e("159b"),e("4d63"),e("c607"),e("ac1f"),e("2c3e"),e("25f0"),e("466d"),e("841c"),e("b64b"),e("d81d"),e("4e82");var a,n=o(e("ade3")),s=o(e("5530")),r=o(e("19b6")),c=o(e("64ec")),d=e("5743"),u=o(e("fa8a")),l=e("26cb"),g=e("2a39"),p=e("6557"),b=(e("39ed"),e("86eb")),f=e("00a0"),h=o(e("605de")),v=o(e("c986")),w=o(e("7992")),m=(getApp(),a={computed:(0,l.mapGetters)(["isLogin","uid"]),mixins:[r.default],components:(0,s.default)({recommend:w.default,Loading:v.default,pageFoot:h.default,couponWindow:c.default},u.default)},(0,n.default)(a,"computed",(0,l.mapGetters)(["isLogin","cartNum"])),(0,n.default)(a,"data",(function(){return{imgHost:f.HTTP_REQUEST_URL,showSkeleton:!0,isNodes:0,styleConfig:[],tempArr:[],goodType:3,loading:!1,page:1,limit:this.$config.LIMIT,iSshowH:!1,numConfig:0,code:"",isCouponShow:!1,couponObj:{},couponObjs:{show:!1},shareInfo:{},footConfig:{},isSortType:0,sortList:"",sortAll:[],goodPage:1,goodList:[],newData:{},sid:0,curSort:0,sortMpTop:0,loaded:!1,hostProduct:[],hotScroll:!1,hotPage:1,hotLimit:10,domOffsetTop:50,isFixed:!1,site_config:"",errorNetwork:!1,privacyStatus:!1,isHeaderSerch:!1,bgColor:"",bgPic:"",bgTabVal:"",pageShow:!0,windowHeight:0,activeRouter:"",countNum:0}})),(0,n.default)(a,"onPullDownRefresh",(function(){this.diyData()})),(0,n.default)(a,"onLoad",(function(t){var i=this;this.$nextTick((function(){uni.getSystemInfo({success:function(t){i.windowHeight=t.windowHeight}})}));t.state,t.scope;this.pageId=t.id,uni.setNavigationBarTitle({title:this.$t("专题栏")}),uni.getLocation({type:"wgs84",success:function(t){try{uni.setStorageSync("user_latitude",t.latitude),uni.setStorageSync("user_longitude",t.longitude)}catch(i){}}}),this.diyData(),this.getIndexData();var e=getCurrentPages(),o=e[e.length-1].route;this.activeRouter="/"+o+"?id="+this.pageId})),(0,n.default)(a,"watch",{isLogin:{deep:!0,handler:function(t,i){var e=(new Date).toLocaleDateString();if(t){try{var o=uni.getStorageSync("oldDate")||""}catch(a){}o!=e&&this.getCoupon()}}}}),(0,n.default)(a,"onReady",(function(){})),(0,n.default)(a,"methods",{reconnect:function(){uni.showLoading({title:this.$t("加载中")}),this.diyData(),this.getIndexData()},goICP:function(t){var i=1==t?this.site_config.icp_url:this.site_config.network_security_url;window.open(i)},bindHeighta:function(t){},bindHeight:function(t){uni.hideLoading(),this.domOffsetTop=t.top},goGoodsDetail:function(t){(0,p.goShopDetail)(t,this.uid).then((function(i){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id)})}))},get_host_product:function(){var t=this;t.hotScroll||(0,g.getProductHot)(t.hotPage,t.hotLimit).then((function(i){t.hotPage++,t.hotScroll=i.data.length0?(this.sortAll.forEach((function(e,o){e.id==t&&(i.$set(i,"sortList",e),i.sid=e.children.length?e.children[0].id:"")})),this.goodList=[],this.goodPage=1,this.$nextTick((function(){""!=i.sortList&&i.getGoodsList()}))):(0,g.getCategoryList)().then((function(e){i.sortAll=e.data,e.data.forEach((function(e,o){e.id==t&&(i.sortList=e,i.sid=e.children.length?e.children[0].id:"")})),i.goodList=[],i.goodPage=1,i.$nextTick((function(){""!=i.sortList&&i.getGoodsList()}))}))},getGoodsList:function(){var t=this;this.loading||this.loaded||(this.loading=!0,(0,g.getProductslist)({sid:this.sid,keyword:"",priceOrder:"",salesOrder:"",news:0,page:this.goodPage,limit:10,cid:this.sortList.id}).then((function(i){t.loading=!1,t.loaded=i.data.length<10,t.goodPage++,t.goodList=t.goodList.concat(i.data)})))},getNewCoupon:function(){var t=this,i=uni.getStorageSync("oldUser")||0;i||(0,d.getCouponNewUser)().then((function(i){var e=i.data;e.show?e.list.length&&(t.isCouponShow=!0,t.couponObj=e,uni.setStorageSync("oldUser",1)):uni.setStorageSync("oldUser",1)}))},getCoupon:function(){var t=this,i=uni.getStorageSync("tagDate")||"",e=(new Date).toLocaleDateString();i===e?this.getNewCoupon():(0,d.getCouponV2)().then((function(i){var e=i.data;e.list.length?(t.isCouponShow=!0,t.couponObj=e,uni.setStorageSync("tagDate",(new Date).toLocaleDateString())):t.getNewCoupon()}))},couponClose:function(){this.isCouponShow=!1,uni.getStorageSync("oldUser")||this.getNewCoupon()},onLoadFun:function(){},getQueryString:function(t){var i=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),e=new RegExp("(^|/)"+t+"/([^/]*)(/|$)","i"),o=window.location.search.substr(1).match(i),a=window.location.pathname.substr(1).match(e);return null!=o?unescape(o[2]):null!=a?unescape(a[2]):null},objToArr:function(t){var i=Object.keys(t),e=i.map((function(i){return t[i]}));return e},diyData:function(){var t=this,i=this;(0,d.getDiy)(this.pageId).then((function(e){uni.hideLoading(),uni.setStorageSync("DIY_DATA",e.data),setTimeout((function(){t.isNodes++}),0),t.errorNetwork=!1;var o=e.data;o.is_bg_color&&(t.bgColor=o.color_picker),o.is_bg_pic&&(t.bgPic=o.bg_pic,t.bgTabVal=o.bg_tab_val),t.pageShow=o.is_show,uni.setNavigationBarTitle({title:t.$t(e.data.title)});var a=[],n=i.objToArr(e.data.value);n.forEach((function(e,o,n){"headerSerch"==e.name&&(t.isHeaderSerch=!0),"promotionList"==e.name&&(i.numConfig=e.numConfig.val,i.goodType=e.tabConfig.list[0].link.activeVal,i.getGroomList()),a=n})),a.sort((function(t,i){return t.timestamp-i.timestamp})),i.styleConfig=a,setTimeout((function(){t.showSkeleton=!1}),300),uni.stopPullDownRefresh({success:function(t){}})})).catch((function(t){}))},getIndexData:function(){},changeBarg:function(t){this.isLogin?uni.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(t.id,"&bargain=").concat(this.$store.state.app.uid)}):(0,b.toLogin)()},changeTab:function(t){this.goodType=t,this.page=1;this.getGroomList(!0)},getGroomList:function(t){var i=this,e=i.goodType;return!i.loadend&&(!i.loading&&(t&&i.$set(i,"iSshowH",!0),void(0,g.getGroomList)(e,{page:i.page,limit:this.numConfig}).then((function(t){var e=t.data;i.$set(i,"iSshowH",!1);e.list;i.$set(i,"tempArr",e.list),i.loading=!1})).catch((function(t){}))))},goRouter:function(t){var i=getCurrentPages(),e=i[i.length-1].$page.fullPath;t.link!=e&&uni.switchTab({url:t.link,fail:function(i){uni.redirectTo({url:t.link})}})},goDetail:function(t){(0,p.goShopDetail)(t,this.$store.state.app.uid).then((function(i){uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id)})}))},onsollBotton:function(){0==this.isSortType||this.getGoodsList()}}),(0,n.default)(a,"onReachBottom",(function(){})),(0,n.default)(a,"onPageScroll",(function(t){var i=this;uni.$emit("scroll"),this.isHeaderSerch?(t.scrollTop>this.domOffsetTop&&(this.isFixed=!0),t.scrollTop