mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-03-29 00:30:53 +00:00
1 line
9.1 KiB
JavaScript
1 line
9.1 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/annex/special/index"],{"07c2":function(n,e,t){"use strict";t.r(e);var o=t("b61a"),i=t.n(o);for(var c in o)"default"!==c&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=i.a},1597:function(n,e,t){"use strict";(function(n){t("7b91");o(t("66fd"));var e=o(t("61d6"));function o(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t("543d")["createPage"])},5341:function(n,e,t){"use strict";var o;t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return c})),t.d(e,"a",(function(){return o}));var i=function(){var n=this,e=n.$createElement;n._self._c},c=[]},"61d6":function(n,e,t){"use strict";t.r(e);var o=t("5341"),i=t("07c2");for(var c in i)"default"!==c&&function(n){t.d(e,n,(function(){return i[n]}))}(c);t("cb4d");var a,r=t("f0c5"),u=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);e["default"]=u.exports},b61a:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=t("a656"),c=t("18f5"),a=t("b2de"),r=t("26cb"),u=t("768b"),s=t("a43a"),l=t("a368");function d(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}getApp();var g=function(){Promise.all([t.e("common/vendor"),t.e("components/couponWindow/index")]).then(function(){return resolve(t("714c"))}.bind(null,t)).catch(t.oe)},f=function(){t.e("components/Authorize").then(function(){return resolve(t("cacf"))}.bind(null,t)).catch(t.oe)},h=function(){t.e("pages/index/diy/components/activeParty").then(function(){return resolve(t("bccd"))}.bind(null,t)).catch(t.oe)},p=function(){t.e("pages/index/diy/components/headerSerch").then(function(){return resolve(t("1fee"))}.bind(null,t)).catch(t.oe)},m=function(){t.e("pages/index/diy/components/swipers").then(function(){return resolve(t("aa90"))}.bind(null,t)).catch(t.oe)},b=function(){t.e("pages/index/diy/components/coupon").then(function(){return resolve(t("81c1"))}.bind(null,t)).catch(t.oe)},v=function(){t.e("pages/index/diy/components/articleList").then(function(){return resolve(t("4bc4"))}.bind(null,t)).catch(t.oe)},y=function(){Promise.all([t.e("common/vendor"),t.e("pages/index/diy/components/bargain")]).then(function(){return resolve(t("c059"))}.bind(null,t)).catch(t.oe)},S=function(){t.e("pages/index/diy/components/blankPage").then(function(){return resolve(t("af45"))}.bind(null,t)).catch(t.oe)},w=function(){Promise.all([t.e("common/vendor"),t.e("pages/index/diy/components/combination")]).then(function(){return resolve(t("b6a1"))}.bind(null,t)).catch(t.oe)},x=function(){Promise.all([t.e("common/vendor"),t.e("pages/index/diy/components/customerService")]).then(function(){return resolve(t("6c43"))}.bind(null,t)).catch(t.oe)},_=function(){t.e("pages/index/diy/components/goodList").then(function(){return resolve(t("df4a"))}.bind(null,t)).catch(t.oe)},C=function(){t.e("pages/index/diy/components/guide").then(function(){return resolve(t("50be"))}.bind(null,t)).catch(t.oe)},L=function(){t.e("pages/index/diy/components/liveBroadcast").then(function(){return resolve(t("acc3"))}.bind(null,t)).catch(t.oe)},T=function(){t.e("pages/index/diy/components/menus").then(function(){return resolve(t("9992"))}.bind(null,t)).catch(t.oe)},I=function(){t.e("pages/index/diy/components/news").then(function(){return resolve(t("13cf"))}.bind(null,t)).catch(t.oe)},P=function(){t.e("pages/index/diy/components/promotionList").then(function(){return resolve(t("29cd"))}.bind(null,t)).catch(t.oe)},D=function(){t.e("pages/index/diy/components/richText").then(function(){return resolve(t("7d8a"))}.bind(null,t)).catch(t.oe)},$=function(){Promise.all([t.e("common/vendor"),t.e("pages/index/diy/components/seckill")]).then(function(){return resolve(t("5567"))}.bind(null,t)).catch(t.oe)},O=function(){t.e("pages/index/diy/components/swiperBg").then(function(){return resolve(t("07c1"))}.bind(null,t)).catch(t.oe)},k=function(){t.e("pages/index/diy/components/tabNav").then(function(){return resolve(t("88d4"))}.bind(null,t)).catch(t.oe)},A=function(){t.e("pages/index/diy/components/titles").then(function(){return resolve(t("443c"))}.bind(null,t)).catch(t.oe)},B=function(){t.e("pages/index/diy/components/pictureCube").then(function(){return resolve(t("8be7"))}.bind(null,t)).catch(t.oe)},j=function(){Promise.all([t.e("common/vendor"),t.e("components/pageFooter/index")]).then(function(){return resolve(t("fa6b"))}.bind(null,t)).catch(t.oe)},U=(o={computed:(0,r.mapGetters)(["isLogin","uid"]),components:{pageFooter:j,couponWindow:g,authorize:f,activeParty:h,headerSerch:p,swipers:m,coupon:b,articleList:v,bargain:y,blankPage:S,combination:w,customerService:x,goodList:_,guide:C,liveBroadcast:L,menus:T,news:I,promotionList:P,richText:D,seckill:$,swiperBg:O,tabNav:k,titles:A,pictureCube:B}},d(o,"computed",(0,r.mapGetters)(["isLogin"])),d(o,"data",(function(){return{styleConfig:[],tempArr:[],goodType:3,loading:!1,loadend:!1,loadTitle:this.$t("加载更多"),page:1,limit:this.$config.LIMIT,iSshowH:!1,numConfig:0,code:"",isCouponShow:!1,couponObj:{},couponObjs:{},shareInfo:{},footConfig:{},pageId:"",sortMpTop:0,newData:{},activeRouter:"",bgColor:"",bgPic:"",bgTabVal:"",pageShow:!0,windowHeight:0}})),d(o,"onLoad",(function(e){var t=this,o=this;this.$nextTick((function(){n.getSystemInfo({success:function(n){o.windowHeight=n.windowHeight}})}));e.state,e.scope;if(this.pageId=e.id,e.scene){var i=o.$util.getUrlParams(decodeURIComponent(e.scene));this.pageId=i.id}n.setNavigationBarTitle({title:this.$t("专题栏")}),n.getLocation({type:"wgs84",success:function(e){try{n.setStorageSync("user_latitude",e.latitude),n.setStorageSync("user_longitude",e.longitude)}catch(t){}}}),this.diyData(),this.getIndexData(),this.getTempIds(),(0,c.getShare)().then((function(n){t.shareInfo=n.data}));var a=getCurrentPages(),r=a[a.length-1].route;this.activeRouter="/"+r+"?id="+this.pageId})),d(o,"watch",{isLogin:{deep:!0,handler:function(e,t){var o=(new Date).toLocaleDateString();if(e){try{var i=n.getStorageSync("oldDate")||""}catch(c){}i!=o&&this.getCoupon()}}}}),d(o,"mounted",(function(){var e=(new Date).toLocaleDateString();if(this.isLogin){try{var t=n.getStorageSync("oldDate")||""}catch(i){}t!=e&&this.getCoupon();var o=n.getStorageSync("oldUser")||0;o||this.getCouponOnce()}})),d(o,"mounted",(function(){})),d(o,"methods",{goRouter:function(e){var t=getCurrentPages(),o=t[t.length-1].$page.fullPath;e.link!=o&&n.switchTab({url:e.link,fail:function(t){n.redirectTo({url:e.link})}})},getCouponOnce:function(){var n=this;(0,i.getCouponNewUser)().then((function(e){n.couponObjs=e.data}))},couponCloses:function(){this.couponObjs.show=!1;try{n.setStorageSync("oldUser",1)}catch(e){}},getCoupon:function(){var n=this;(0,i.getCouponV2)().then((function(e){n.couponObj=e.data,e.data.list.length>0&&(n.isCouponShow=!0)}))},couponClose:function(){this.isCouponShow=!1;try{n.setStorageSync("oldDate",(new Date).toLocaleDateString())}catch(e){}},onLoadFun:function(){},getTempIds:function(){var n=wx.getStorageSync(a.SUBSCRIBE_MESSAGE);n||(0,i.getTempIds)().then((function(n){n.data&&wx.setStorageSync(a.SUBSCRIBE_MESSAGE,JSON.stringify(n.data))}))},objToArr:function(n){if(n){var e=Object.keys(n);e.sort((function(n,e){return n-e}));var t=e.map((function(e){return n[e]}));return t}},diyData:function(){var e=this,t=this;(0,i.getDiy)(this.pageId).then((function(o){var i=o.data;if(0==o.data.length)return e.$util.Tips({title:e.$t("暂无数据")},{tab:3});i.is_bg_color&&(e.bgColor=i.color_picker),i.is_bg_pic&&(e.bgPic=i.bg_pic,e.bgTabVal=i.bg_tab_val),e.pageShow=i.is_show,n.setNavigationBarTitle({title:o.data.title});var c=[],a=t.objToArr(o.data.value);a.forEach((function(o,i,a){"pageFoot"==o.name&&(n.setStorageSync("pageFoot",o),t.$store.commit("FOOT_UPLOAD",o),a.splice(i,1),e.newData=o),"promotionList"==o.name&&(t.numConfig=o.numConfig.val,t.getGroomList()),c=a})),t.styleConfig=c}))},getIndexData:function(){},changeBarg:function(e){this.isLogin?n.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(e.id,"&bargain=").concat(this.uid)}):(0,l.toLogin)()},changeTab:function(n){this.goodType=n,this.tempArr=[],this.page=1,this.loadend=!1;var e=!0;this.getGroomList(e)},getGroomList:function(n){var e=this,t=this,o=t.goodType;return!t.loadend&&(!t.loading&&(n&&t.$set(t,"iSshowH",!0),void(0,u.getGroomList)(o,{page:t.page,limit:t.limit}).then((function(n){var o=n.data;t.$set(t,"iSshowH",!1);var i=Math.ceil(e.numConfig/e.limit),c=o.list,a=c.length<t.limit||t.page>=i,r=t.$util.SplitArray(c,t.tempArr);t.$set(t,"tempArr",r.slice(0,e.numConfig)),t.loadend=a,t.loadTitle=a?t.$t("没有更多内容啦~"):t.$t("加载更多"),t.page=t.page+1,t.loading=!1})).catch((function(n){t.loading=!1,t.loadTitle=t.$t("加载更多")}))))},goDetail:function(e){(0,s.goShopDetail)(e,this.uid).then((function(t){n.navigateTo({url:"/pages/goods_details/index?id=".concat(e.id)})}))}}),d(o,"onReachBottom",(function(){this.getGroomList()})),d(o,"onShareAppMessage",(function(){return{title:this.shareInfo.title,path:"/pages/index/index",imageUrl:this.storeInfo.img}})),o);e.default=U}).call(this,t("543d")["default"])},c56d:function(n,e,t){},cb4d:function(n,e,t){"use strict";var o=t("c56d"),i=t.n(o);i.a}},[["1597","common/runtime","common/vendor"]]]); |