You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
12 KiB
1 lines
12 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/annex/special/index"],{"1f2c":function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("7561");o(t("3240"));var i=o(t("cd9b"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},7435:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){}));var o=function(){var e=this,n=e.$createElement,t=(e._self._c,e.pageShow?e.__get_style([e.pageStyle]):null),o=e.pageShow?e.sortList.children&&e.sortList.children.length:null,i=e.pageShow&&o?0==e.goodList.length&&e.loaded:null;e.$mp.data=Object.assign({},{$root:{s0:t,g0:o,g1:i}})},i=[]},9603:function(e,n,t){"use strict";var o=t("f80f"),i=t.n(o);i.a},aff9:function(e,n,t){"use strict";t.r(n);var o=t("cedc"),i=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=i.a},cd9b:function(e,n,t){"use strict";t.r(n);var o=t("7435"),i=t("aff9");for(var c in i)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(c);t("9603");var r=t("828b"),s=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=s.exports},cedc:function(e,n,t){"use strict";(function(e,o){var i=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c=i(t("7ca3")),r=i(t("cef6")),s=t("a230"),a=t("6975"),l=t("93e7"),u=t("8f59"),d=t("ce7e"),h=t("4bab"),g=t("7ba4"),f=t("bad7");function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}getApp();var m={computed:function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,c.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({pageStyle:function(){return{backgroundColor:this.bgColor,backgroundImage:this.bgPic?"url(".concat(this.bgPic,")"):"",minHeight:this.windowHeight+"px"}}},(0,u.mapGetters)(["isLogin","uid"])),mixins:[r.default],components:{recommend:function(){Promise.all([t.e("common/vendor"),t.e("components/recommend/index")]).then(function(){return resolve(t("6af4"))}.bind(null,t)).catch(t.oe)},Loading:function(){t.e("components/Loading/index").then(function(){return resolve(t("b025"))}.bind(null,t)).catch(t.oe)},pageFooter:function(){Promise.all([t.e("common/vendor"),t.e("components/pageFooter/index")]).then(function(){return resolve(t("9dbb"))}.bind(null,t)).catch(t.oe)},couponWindow:function(){t.e("components/couponWindow/index").then(function(){return resolve(t("a79f"))}.bind(null,t)).catch(t.oe)},homeComb:function(){Promise.all([t.e("common/vendor"),t.e("pages/index/components/homeComb")]).then(function(){return resolve(t("7ea6"))}.bind(null,t)).catch(t.oe)},newVip:function(){t.e("pages/index/components/newVip").then(function(){return resolve(t("be47"))}.bind(null,t)).catch(t.oe)},userInfor:function(){t.e("pages/index/components/userInfor").then(function(){return resolve(t("22cd"))}.bind(null,t)).catch(t.oe)},shortVideo:function(){Promise.all([t.e("common/vendor"),t.e("pages/index/components/shortVideo")]).then(function(){return resolve(t("610b"))}.bind(null,t)).catch(t.oe)},headerSerch:function(){Promise.all([t.e("common/vendor"),t.e("pages/index/components/headerSerch")]).then(function(){return resolve(t("d995"))}.bind(null,t)).catch(t.oe)},swipers:function(){t.e("pages/index/components/swipers").then(function(){return resolve(t("3a66"))}.bind(null,t)).catch(t.oe)},coupon:function(){t.e("pages/index/components/coupon").then(function(){return resolve(t("df3a"))}.bind(null,t)).catch(t.oe)},articleList:function(){t.e("pages/index/components/articleList").then(function(){return resolve(t("676e"))}.bind(null,t)).catch(t.oe)},bargain:function(){Promise.all([t.e("common/vendor"),t.e("pages/index/components/bargain")]).then(function(){return resolve(t("d83a"))}.bind(null,t)).catch(t.oe)},blankPage:function(){t.e("pages/index/components/blankPage").then(function(){return resolve(t("9cb6"))}.bind(null,t)).catch(t.oe)},combination:function(){Promise.all([t.e("common/vendor"),t.e("pages/index/components/combination")]).then(function(){return resolve(t("6c7d"))}.bind(null,t)).catch(t.oe)},customerService:function(){t.e("pages/index/components/customerService").then(function(){return resolve(t("d858"))}.bind(null,t)).catch(t.oe)},goodList:function(){Promise.all([t.e("common/vendor"),t.e("pages/index/components/goodList")]).then(function(){return resolve(t("ad80"))}.bind(null,t)).catch(t.oe)},guide:function(){t.e("pages/index/components/guide").then(function(){return resolve(t("be9c"))}.bind(null,t)).catch(t.oe)},liveBroadcast:function(){t.e("pages/index/components/liveBroadcast").then(function(){return resolve(t("63c5"))}.bind(null,t)).catch(t.oe)},menus:function(){t.e("pages/index/components/menus").then(function(){return resolve(t("41b4"))}.bind(null,t)).catch(t.oe)},pictureCube:function(){t.e("pages/index/components/pictureCube").then(function(){return resolve(t("8fe5"))}.bind(null,t)).catch(t.oe)},news:function(){t.e("pages/index/components/news").then(function(){return resolve(t("47b6"))}.bind(null,t)).catch(t.oe)},promotionList:function(){t.e("pages/index/components/promotionList").then(function(){return resolve(t("41265"))}.bind(null,t)).catch(t.oe)},richText:function(){t.e("pages/index/components/richText").then(function(){return resolve(t("10a5"))}.bind(null,t)).catch(t.oe)},seckill:function(){Promise.all([t.e("common/vendor"),t.e("pages/index/components/seckill")]).then(function(){return resolve(t("20e1"))}.bind(null,t)).catch(t.oe)},swiperBg:function(){t.e("pages/index/components/swiperBg").then(function(){return resolve(t("d4bc"))}.bind(null,t)).catch(t.oe)},tabNav:function(){t.e("pages/index/components/tabNav").then(function(){return resolve(t("9c24"))}.bind(null,t)).catch(t.oe)},titles:function(){t.e("pages/index/components/titles").then(function(){return resolve(t("91ad"))}.bind(null,t)).catch(t.oe)},ranking:function(){Promise.all([t.e("common/vendor"),t.e("pages/index/components/ranking")]).then(function(){return resolve(t("d573"))}.bind(null,t)).catch(t.oe)},presale:function(){Promise.all([t.e("common/vendor"),t.e("pages/index/components/presale")]).then(function(){return resolve(t("874b"))}.bind(null,t)).catch(t.oe)},pointsMall:function(){Promise.all([t.e("common/vendor"),t.e("pages/index/components/pointsMall")]).then(function(){return resolve(t("4f5b"))}.bind(null,t)).catch(t.oe)},videos:function(){t.e("pages/index/components/videos").then(function(){return resolve(t("ef65"))}.bind(null,t)).catch(t.oe)},signIn:function(){t.e("pages/index/components/signIn").then(function(){return resolve(t("fdb6"))}.bind(null,t)).catch(t.oe)},hotspot:function(){t.e("pages/index/components/hotspot").then(function(){return resolve(t("5d34"))}.bind(null,t)).catch(t.oe)},follow:function(){t.e("pages/index/components/follow").then(function(){return resolve(t("1290"))}.bind(null,t)).catch(t.oe)},waterfallsFlow:function(){t.e("components/WaterfallsFlow/WaterfallsFlow").then(function(){return resolve(t("4975"))}.bind(null,t)).catch(t.oe)}},data:function(){return{styleConfig:[],loading:!1,loadend:!1,loadTitle:"加载更多",page:1,limit:this.$config.LIMIT,numConfig:0,code:"",isCouponShow:!1,couponObj:{},couponObjs:{},shareInfo:{},footConfig:{},pageId:"",sortMpTop:0,bgColor:"",bgPic:"",bgTabVal:"",pageShow:!0,windowHeight:0,isShowAuth:!1,isScrolled:!1,sortList:"",sortAll:[],isSortType:0,hostProduct:[],hotScroll:!1,hotPage:1,hotLimit:10,curSort:0,loaded:!1,goodPage:1,goodList:[],sid:0,imgHost:f.HTTP_REQUEST_URL,product_video_status:!1}},onLoad:function(n){var t=this,o=this;this.$nextTick((function(){e.getSystemInfo({success:function(e){o.windowHeight=e.windowHeight}})}));n.state,n.scope;if(this.pageId=n.id,n.scene){var i=o.$util.getUrlParams(decodeURIComponent(n.scene));this.pageId=i.id}e.setNavigationBarTitle({title:"专题栏"}),this.diyData(),this.getTemlIds(),(0,a.getShare)().then((function(e){t.shareInfo=e.data}))},onUnload:function(){e.$off("activeFn")},watch:{isLogin:{deep:!0,handler:function(n,t){var o=(new Date).toLocaleDateString();if(n){try{var i=e.getStorageSync("oldDate")||""}catch(c){}i!=o&&this.getCoupon()}}}},onShow:function(){e.removeStorageSync("form_type_cart");var n=(new Date).toLocaleDateString();if(this.isLogin){try{var t=e.getStorageSync("oldDate")||""}catch(i){}t!=n&&this.getCoupon();var o=e.getStorageSync("oldUser")||0;o||this.getCouponOnce()}},mounted:function(){},methods:{changeSort:function(e,n){this.curSort!=n&&(this.curSort=n,this.sid=e.id,this.goodList=[],this.goodPage=1,this.loaded=!1,this.getGoodsList())},bindSortId:function(e){this.styleConfig=[],1==e.type?this.getProductList(e.classPage):(this.sortList=[],this.getMicroPage(e.microPage,!0))},getMicroPage:function(n,t){var o=this;o.styleConfig=[],e.showLoading({title:"加载中..."}),(0,s.getDiy)(n).then((function(n){e.hideLoading();n.data;o.styleConfig=o.objToArr(n.data.value),o.styleConfig.forEach((function(e,n){["headerSerch","homeComb"].includes(e.name)&&o.styleConfig.splice(n,1)}))})).catch((function(e){return o.$util.Tips({title:e})}))},getProductList:function(e){var n=this;this.curSort=0,this.loaded=!1,this.sortAll.length>0?(this.sortAll.forEach((function(t,o){t.id==e&&(n.$set(n,"sortList",t),n.sid=t.children.length?t.children[0].id:"")})),this.goodList=[],this.goodPage=1,this.$nextTick((function(){""!=n.sortList&&n.getGoodsList()}))):(0,d.getCategoryList)().then((function(t){n.sortAll=t.data,t.data.forEach((function(t,o){t.id==e&&(n.sortList=t,n.sid=t.children.length?t.children[0].id:"")})),n.goodList=[],n.goodPage=1,n.$nextTick((function(){""!=n.sortList&&n.getGoodsList()}))}))},getGoodsList:function(){var e=this;this.loading||this.loaded||(this.loading=!0,(0,d.getProductslist)({sid:this.sid,keyword:"",priceOrder:"",salesOrder:"",news:0,page:this.goodPage,limit:10,cid:this.sortList.id}).then((function(n){e.loading=!1,e.loaded=n.data.length<10,e.goodPage++,e.goodList=e.goodList.concat(n.data)})))},get_host_product:function(){var e=this;e.hotScroll||(0,d.getProductHot)(e.hotPage,e.hotLimit).then((function(n){e.hotPage++,e.hotScroll=n.data.length<e.hotLimit,e.hostProduct=e.hostProduct.concat(n.data)}))},getCouponOnce:function(){var e=this;(0,s.getCouponNewUser)().then((function(n){e.couponObjs=n.data}))},couponCloses:function(){this.couponObjs.show=!1;try{e.setStorageSync("oldUser",1)}catch(n){}},getCoupon:function(){var e=this;(0,s.getCouponV2)().then((function(n){e.couponObj=n.data,n.data.list.length>0&&(e.isCouponShow=!0)}))},couponClose:function(){this.isCouponShow=!1;try{e.setStorageSync("oldDate",(new Date).toLocaleDateString())}catch(n){}},getTemlIds:function(){var e=o.getStorageSync(l.SUBSCRIBE_MESSAGE);e||(0,s.getTemlIds)().then((function(e){e.data&&o.setStorageSync(l.SUBSCRIBE_MESSAGE,JSON.stringify(e.data))}))},objToArr:function(e){var n=Object.keys(e);n.sort((function(e,n){return e-n}));var t=n.map((function(n){return e[n]}));return t},setDiyData:function(n){if(0==n.length)return this.$util.Tips({title:"暂无数据"},{tab:3});n.is_bg_color&&(this.bgColor=n.color_picker),n.is_bg_pic&&(this.bgPic=n.bg_pic,this.bgTabVal=n.bg_tab_val),this.pageShow=n.is_show,e.setNavigationBarTitle({title:n.title});var t=[],o=this.objToArr(n.value);o.forEach((function(e,n,o){"1"!==e.isHide&&t.push(e)})),this.styleConfig=t},getDiyData:function(){var n=this;(0,s.getDiy)(this.pageId).then((function(t){e.setStorageSync("specialDiyData",JSON.stringify(t.data)),n.setDiyData(t.data)}))},diyData:function(){var n=this,t=e.getStorageSync("specialDiyData");t?(0,s.getDiyVersion)(this.pageId).then((function(o){var i=e.getStorageSync("specialDiyVersion");o.data.version+n.pageId===i?n.setDiyData(JSON.parse(t)):(e.setStorageSync("specialDiyVersion",o.data.version+n.pageId),n.getDiyData())})):this.getDiyData()},changeBarg:function(n){this.isLogin?e.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(n.id,"&spid=").concat(this.uid)}):(0,g.toLogin)()},goDetail:function(n){(0,h.goShopDetail)(n,this.uid).then((function(t){e.navigateTo({url:"/pages/goods_details/index?id=".concat(n.id)})}))}},onReachBottom:function(){},onPageScroll:function(n){n.scrollTop>10?this.isScrolled=!0:this.isScrolled=!1,e.$emit("scroll")},onShareAppMessage:function(){return{title:this.shareInfo.title,path:"/pages/index/index",imageUrl:this.storeInfo.img}}};n.default=m}).call(this,t("df3c")["default"],t("3223")["default"])},f80f:function(e,n,t){}},[["1f2c","common/runtime","common/vendor"]]]); |