mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-23 02:00:27 +00:00
1 line
9.1 KiB
JavaScript
1 line
9.1 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/annex/special/index"],{"0f00":function(e,n,t){"use strict";(function(e){t("62f9");o(t("66fd"));var n=o(t("4ee3"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},"4d6e":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var i=function(){var e=this,n=e.$createElement;e._self._c},a=[]},"4ee3":function(e,n,t){"use strict";t.r(n);var o=t("4d6e"),i=t("7c6a");for(var a in i)"default"!==a&&function(e){t.d(n,e,(function(){return i[e]}))}(a);t("5a5a");var c,r=t("f0c5"),u=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);n["default"]=u.exports},"5a5a":function(e,n,t){"use strict";var o=t("c82f"),i=t.n(o);i.a},"7c6a":function(e,n,t){"use strict";t.r(n);var o=t("db34"),i=t.n(o);for(var a in o)"default"!==a&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=i.a},c82f:function(e,n,t){},db34:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=t("f44a"),a=t("6fe3"),c=t("09f0"),r=t("26cb"),u=t("5019"),s=t("1754"),l=t("858e");function d(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}getApp();var g=function(){Promise.all([t.e("common/vendor"),t.e("components/couponWindow/index")]).then(function(){return resolve(t("06cf"))}.bind(null,t)).catch(t.oe)},f=function(){t.e("components/Authorize").then(function(){return resolve(t("0cda"))}.bind(null,t)).catch(t.oe)},h=function(){t.e("pages/index/diy/components/activeParty").then(function(){return resolve(t("2dfd"))}.bind(null,t)).catch(t.oe)},p=function(){t.e("pages/index/diy/components/headerSerch").then(function(){return resolve(t("c68b"))}.bind(null,t)).catch(t.oe)},m=function(){t.e("pages/index/diy/components/swipers").then(function(){return resolve(t("2ef9"))}.bind(null,t)).catch(t.oe)},v=function(){t.e("pages/index/diy/components/coupon").then(function(){return resolve(t("9cae"))}.bind(null,t)).catch(t.oe)},b=function(){t.e("pages/index/diy/components/articleList").then(function(){return resolve(t("a3b3"))}.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("eb44"))}.bind(null,t)).catch(t.oe)},S=function(){t.e("pages/index/diy/components/blankPage").then(function(){return resolve(t("5503"))}.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("258a"))}.bind(null,t)).catch(t.oe)},x=function(){t.e("pages/index/diy/components/customerService").then(function(){return resolve(t("1dca"))}.bind(null,t)).catch(t.oe)},_=function(){t.e("pages/index/diy/components/goodList").then(function(){return resolve(t("752d"))}.bind(null,t)).catch(t.oe)},C=function(){t.e("pages/index/diy/components/guide").then(function(){return resolve(t("793a"))}.bind(null,t)).catch(t.oe)},L=function(){t.e("pages/index/diy/components/liveBroadcast").then(function(){return resolve(t("0621"))}.bind(null,t)).catch(t.oe)},T=function(){t.e("pages/index/diy/components/menus").then(function(){return resolve(t("c9ff"))}.bind(null,t)).catch(t.oe)},I=function(){t.e("pages/index/diy/components/news").then(function(){return resolve(t("a461"))}.bind(null,t)).catch(t.oe)},P=function(){t.e("pages/index/diy/components/promotionList").then(function(){return resolve(t("688e"))}.bind(null,t)).catch(t.oe)},D=function(){t.e("pages/index/diy/components/richText").then(function(){return resolve(t("9477"))}.bind(null,t)).catch(t.oe)},O=function(){Promise.all([t.e("common/vendor"),t.e("pages/index/diy/components/seckill")]).then(function(){return resolve(t("02fa"))}.bind(null,t)).catch(t.oe)},k=function(){t.e("pages/index/diy/components/swiperBg").then(function(){return resolve(t("2c5d"))}.bind(null,t)).catch(t.oe)},A=function(){t.e("pages/index/diy/components/tabNav").then(function(){return resolve(t("21b1"))}.bind(null,t)).catch(t.oe)},B=function(){t.e("pages/index/diy/components/titles").then(function(){return resolve(t("9126"))}.bind(null,t)).catch(t.oe)},j=function(){t.e("pages/index/diy/components/pictureCube").then(function(){return resolve(t("1599"))}.bind(null,t)).catch(t.oe)},U=function(){Promise.all([t.e("common/vendor"),t.e("components/pageFooter/index")]).then(function(){return resolve(t("9123"))}.bind(null,t)).catch(t.oe)},$=(o={computed:(0,r.mapGetters)(["isLogin","uid"]),components:{pageFooter:U,couponWindow:g,authorize:f,activeParty:h,headerSerch:p,swipers:m,coupon:v,articleList:b,bargain:y,blankPage:S,combination:w,customerService:x,goodList:_,guide:C,liveBroadcast:L,menus:T,news:I,promotionList:P,richText:D,seckill:O,swiperBg:k,tabNav:A,titles:B,pictureCube:j}},d(o,"computed",(0,r.mapGetters)(["isLogin"])),d(o,"data",(function(){return{styleConfig:[],tempArr:[],goodType:3,loading:!1,loadend:!1,loadTitle:"加载更多",page:1,limit:this.$config.LIMIT,iSshowH:!1,numConfig:0,code:"",isCouponShow:!1,couponObj:{},couponObjs:{},shareInfo:{},footConfig:{},pageId:"",sortMpTop:0,newData:{},activeRouter:"",footerStatus:!1,bgColor:"",bgPic:"",bgTabVal:"",pageShow:!0,windowHeight:0}})),d(o,"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:"专题栏"}),e.getLocation({type:"wgs84",success:function(n){try{e.setStorageSync("user_latitude",n.latitude),e.setStorageSync("user_longitude",n.longitude)}catch(t){}}}),this.diyData(),this.getIndexData(),this.getTemlIds(),(0,a.getShare)().then((function(e){t.shareInfo=e.data}));var c=getCurrentPages(),r=c[c.length-1].route;this.activeRouter="/"+r+"?id="+this.pageId})),d(o,"watch",{isLogin:{deep:!0,handler:function(n,t){var o=(new Date).toLocaleDateString();if(n){try{var i=e.getStorageSync("oldDate")||""}catch(a){}i!=o&&this.getCoupon()}}}}),d(o,"mounted",(function(){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()}})),d(o,"mounted",(function(){})),d(o,"methods",{goRouter:function(n){var t=getCurrentPages(),o=t[t.length-1].$page.fullPath;n.link!=o&&e.switchTab({url:n.link,fail:function(t){e.redirectTo({url:n.link})}})},getCouponOnce:function(){var e=this;(0,i.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,i.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){}},onLoadFun:function(){},getTemlIds:function(){var e=wx.getStorageSync(c.SUBSCRIBE_MESSAGE);e||(0,i.getTemlIds)().then((function(e){e.data&&wx.setStorageSync(c.SUBSCRIBE_MESSAGE,JSON.stringify(e.data))}))},objToArr:function(e){if(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}},diyData:function(){var n=this,t=this;(0,i.getDiy)(this.pageId).then((function(o){var i=o.data;if(0==o.data.length)return n.$util.Tips({title:"暂无数据"},{tab:3});i.is_bg_color&&(n.bgColor=i.color_picker),i.is_bg_pic&&(n.bgPic=i.bg_pic,n.bgTabVal=i.bg_tab_val),n.pageShow=i.is_show,e.setNavigationBarTitle({title:o.data.title});var a=[],c=t.objToArr(o.data.value);c.forEach((function(o,i,c){"pageFoot"==o.name&&(e.setStorageSync("pageFoot",o),t.$store.commit("FOOT_UPLOAD",o),c.splice(i,1),n.newData=o,n.footerStatus=o.status.status),"promotionList"==o.name&&(t.numConfig=o.numConfig.val,t.getGroomList()),a=c})),t.styleConfig=a}))},getIndexData:function(){},changeBarg:function(n){this.isLogin?e.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(n.id,"&bargain=").concat(this.uid)}):(0,l.toLogin)()},changeTab:function(e){this.goodType=e,this.tempArr=[],this.page=1,this.loadend=!1;var n=!0;this.getGroomList(n)},getGroomList:function(e){var n=this,t=this,o=t.goodType;return!t.loadend&&(!t.loading&&(e&&t.$set(t,"iSshowH",!0),void(0,u.getGroomList)(o,{page:t.page,limit:t.limit}).then((function(e){var o=e.data;t.$set(t,"iSshowH",!1);var i=Math.ceil(n.numConfig/n.limit),a=o.list,c=a.length<t.limit||t.page>=i,r=t.$util.SplitArray(a,t.tempArr);t.$set(t,"tempArr",r.slice(0,n.numConfig)),t.loadend=c,t.loadTitle=c?"没有更多内容啦~":"加载更多",t.page=t.page+1,t.loading=!1})).catch((function(e){t.loading=!1,t.loadTitle="加载更多"}))))},goDetail:function(n){(0,s.goShopDetail)(n,this.uid).then((function(t){e.navigateTo({url:"/pages/goods_details/index?id=".concat(n.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);n.default=$}).call(this,t("543d")["default"])}},[["0f00","common/runtime","common/vendor"]]]); |