2023-03-08 19:57:48 +08:00

11 lines
10 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/visualization/index"],{"6e1f":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=e("a9a5"),i=e("2038"),a=e("d322"),c=e("26cb"),s=e("1579"),u=e("2c78"),l=(e("666f"),e("989b")),r=d(e("66ca"));function d(n){return n&&n.__esModule?n:{default:n}}var f=function(){Promise.all([e.e("common/vendor"),e.e("components/couponWindow/index")]).then(function(){return resolve(e("4928"))}.bind(null,e)).catch(e.oe)},h=function(){e.e("components/indexGoods/index").then(function(){return resolve(e("46cd"))}.bind(null,e)).catch(e.oe)},g=function(){e.e("pages/index/visualization/components/headerSerch").then(function(){return resolve(e("c474"))}.bind(null,e)).catch(e.oe)},p=function(){e.e("pages/index/visualization/components/swiperBg").then(function(){return resolve(e("e622"))}.bind(null,e)).catch(e.oe)},v=function(){e.e("pages/index/visualization/components/menus").then(function(){return resolve(e("ff6c"))}.bind(null,e)).catch(e.oe)},m=function(){e.e("pages/index/visualization/components/news").then(function(){return resolve(e("f719"))}.bind(null,e)).catch(e.oe)},b=function(){e.e("pages/index/visualization/components/activity").then(function(){return resolve(e("82d7"))}.bind(null,e)).catch(e.oe)},S=function(){e.e("pages/index/visualization/components/scrollBox").then(function(){return resolve(e("44c3"))}.bind(null,e)).catch(e.oe)},x=function(){e.e("pages/index/visualization/components/recommend").then(function(){return resolve(e("d525"))}.bind(null,e)).catch(e.oe)},w=function(){e.e("pages/index/visualization/components/popular").then(function(){return resolve(e("ae22"))}.bind(null,e)).catch(e.oe)},T=function(){e.e("pages/index/visualization/components/mBanner").then(function(){return resolve(e("920a"))}.bind(null,e)).catch(e.oe)},B=function(){e.e("pages/index/visualization/components/newGoods").then(function(){return resolve(e("7846"))}.bind(null,e)).catch(e.oe)},y=function(){e.e("pages/index/visualization/components/promotion").then(function(){return resolve(e("21f6"))}.bind(null,e)).catch(e.oe)},L=function(){e.e("pages/index/visualization/components/alive").then(function(){return resolve(e("5f8f"))}.bind(null,e)).catch(e.oe)},z=function(){e.e("pages/index/visualization/components/adsRecommend").then(function(){return resolve(e("5587"))}.bind(null,e)).catch(e.oe)},C=function(){e.e("pages/index/visualization/components/coupon").then(function(){return resolve(e("5bd6"))}.bind(null,e)).catch(e.oe)},P=function(){e.e("pages/index/visualization/components/seckill").then(function(){return resolve(e("078f"))}.bind(null,e)).catch(e.oe)},I=function(){e.e("pages/index/visualization/components/combination").then(function(){return resolve(e("f24c"))}.bind(null,e)).catch(e.oe)},_=function(){e.e("pages/index/visualization/components/bargain").then(function(){return resolve(e("ddb9"))}.bind(null,e)).catch(e.oe)},D=function(){e.e("pages/index/visualization/components/goodList").then(function(){return resolve(e("a31d"))}.bind(null,e)).catch(e.oe)},N=function(){e.e("pages/index/visualization/components/picTxt").then(function(){return resolve(e("0c58"))}.bind(null,e)).catch(e.oe)},$=function(){e.e("pages/index/visualization/components/titles").then(function(){return resolve(e("4b97"))}.bind(null,e)).catch(e.oe)},k=function(){e.e("pages/index/visualization/components/customerService").then(function(){return resolve(e("74cf"))}.bind(null,e)).catch(e.oe)},O=function(){Promise.all([e.e("common/vendor"),e.e("pages/index/visualization/components/tabBar")]).then(function(){return resolve(e("673a"))}.bind(null,e)).catch(e.oe)},R=function(){e.e("pages/index/visualization/components/tabNav").then(function(){return resolve(e("2919"))}.bind(null,e)).catch(e.oe)},U=function(){e.e("components/update/app-update").then(function(){return resolve(e("c2ad"))}.bind(null,e)).catch(e.oe)},H=function(){e.e("components/Loading/index").then(function(){return resolve(e("9bda"))}.bind(null,e)).catch(e.oe)},E=function(){e.e("pages/index/visualization/components/skeleton").then(function(){return resolve(e("c331"))}.bind(null,e)).catch(e.oe)},G=getApp(),A=n.getSystemInfoSync().statusBarHeight,j={computed:(0,c.mapGetters)(["isLogin","uid"]),components:{couponWindow:f,headerSerch:g,swiperBg:p,menus:v,news:m,activity:b,scrollBox:S,recommend:x,popular:w,mBanner:T,newGoods:B,promotion:y,alive:L,adsRecommend:z,coupon:C,seckill:P,combination:I,bargain:_,goodList:D,picTxt:N,titles:$,customerService:k,tabBar:O,tabNav:R,Loading:H,skeletons:E,indexGoods:h,appUpdate:U},mixins:[r.default],data:function(){return{imgHost:l.HTTP_REQUEST_URL,showSkeleton:!0,isNodes:0,isSortType:0,sortList:{},sortAll:[],goodPage:1,goodLists:[],curSort:0,sortMpTop:0,loaded:!1,hostProduct:[],hotScroll:!1,hotPage:1,hotLimit:10,followHid:!0,followUrl:"",followCode:!1,navH:A,subscribe:!1,iShidden:!1,goodType:3,loading:!1,loadend:!1,loadTitle:this.$t("下拉加载更多"),page:1,limit:this.$config.LIMIT,numConfig:0,couponObj:{},isCouponShow:!1,shareInfo:{},site_config:"",isIframe:G.globalData.isIframe,headerSerch:{},swiperBg:{},menus:{},news:{},activity:{},alive:{},scrollBox:{},titles:{},goodList:{},tabBar:{},customerService:{},picTxt:{},bargain:{},combination:{},adsRecommend:{},seckill:{},coupon:{},tabNav:{},isBorader:"",domOffsetTop:50,isTop:0,privacyStatus:!1,isFixed:!1}},created:function(){var t=this;n.hideTabBar();this.diyData(),this.getIndexData(),this.$Cache.get(i.TIPS_KEY)&&(this.iShidden=!0),this.getTempIds(),(0,a.siteConfig)().then((function(n){t.site_config=n.data.record_No})).catch((function(n){return t.$util.Tips({title:n.msg})}));var e=n.createSelectorQuery().in(this);e.select(".mp-header").boundingClientRect((function(n){t.isTop=n.top})).exec(),G.globalData.isIframe||this.isLogin&&this.getCoupon()},methods:{bindEdit:function(n,t){G.globalData.isIframe&&window.parent.postMessage({name:n,dataName:t,params:{}},"*")},getFollow:function(){var n=this;(0,o.follow)().then((function(t){n.followUrl=t.data.path})).catch((function(t){return n.$util.Tips({title:t.msg})}))},followTap:function(){this.followCode=!0,this.followHid=!1},closeFollow:function(){this.followHid=!1},closeFollowCode:function(){this.followCode=!1,this.followHid=!0},closeTip:function(){this.$Cache.set(i.TIPS_KEY,!0),this.iShidden=!0},bindHeighta:function(n){this.domOffsetTop=n.top-110},getCoupon:function(){var t=this,e=n.getStorageSync("tagDate")||"",o=(new Date).toLocaleDateString();e===o?this.getNewCoupon():(0,a.getCouponV2)().then((function(e){var o=e.data;o.list.length?(t.isCouponShow=!0,t.couponObj=o,n.setStorageSync("tagDate",(new Date).toLocaleDateString())):t.getNewCoupon()}))},getNewCoupon:function(){var t=this,e=n.getStorageSync("oldUser")||0;e||(0,a.getCouponNewUser)().then((function(e){var o=e.data;o.show?o.list.length&&(t.isCouponShow=!0,t.couponObj=o,n.setStorageSync("oldUser",1)):n.setStorageSync("oldUser",1)}))},couponClose:function(){this.isCouponShow=!1,n.getStorageSync("oldUser")||this.getNewCoupon()},getTempIds:function(){(0,a.getTempIds)().then((function(n){n.data&&wx.setStorageSync(i.SUBSCRIBE_MESSAGE,JSON.stringify(n.data))}))},goICP:function(){n.navigateTo({url:"/pages/annex/web_view/index?url=https://beian.miit.gov.cn/"})},onLoadFun:function(){},reconnect:function(){this.diyData(),this.getIndexData()},diyData:function(){var t=this,e=this;(0,a.getDiy)().then((function(o){var i=o.data;e.headerSerch=i.headerSerch,e.swiperBg=i.swiperBg,e.menus=i.menus,e.news=i.news,e.activity=i.activity,e.alive=i.alive,e.scrollBox=i.scrollBox,e.titles=i.titles,e.goodList=i.goodList,e.tabNav=i.tabNav,e.tabBar=i.tabBar,e.customerService=i.customerService,e.picTxt=i.picTxt,e.bargain=i.bargain,e.combination=i.combination,e.adsRecommend=i.adsRecommend,e.seckill=i.seckill,e.coupon=i.coupon,t.$Cache.set("TAB_BAR",i.tabBar.default.tabBarList),setTimeout((function(){t.showSkeleton=!1}),300),n.setStorageSync("VIS_DATA",o.data)})).catch((function(n){}))},getIndexData:function(){var t=this;(0,a.getIndexData)().then((function(e){t.subscribe=e.data.subscribe,n.setNavigationBarTitle({title:e.data.site_name})}))},get_host_product:function(){var n=this;n.hotScroll||(0,s.getProductHot)(n.hotPage,n.hotLimit).then((function(t){n.hotPage++,n.hotScroll=t.data.length<n.hotLimit,n.hostProduct=n.hostProduct.concat(t.data)}))},bindSortId:function(n){this.isSortType=-99==n?0:1,this.getProductList(n)},getProductList:function(n){this.curSort=0,this.loaded=!1,this.goodPage=1,this.getGoodsList(n)},getGoodsList:function(n){var t=this;this.loading||this.loaded||(this.loading=!0,(0,s.getProductslist)({keyword:"",priceOrder:"",salesOrder:"",news:0,page:this.goodPage,limit:10,cid:n}).then((function(n){t.goodLists=n.data,t.loading=!1,t.loaded=n.data.length<10,t.goodPage++})))},goGoodsDetail:function(t){var e=this;(0,u.goPage)().then((function(o){(0,u.goShopDetail)(t,e.uid).then((function(e){n.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id)})}))}))}},onReachBottom:function(){},onPageScroll:function(n){}};t.default=j}).call(this,e("543d")["default"])},8601:function(n,t,e){"use strict";var o=e("92e3"),i=e.n(o);i.a},"92e3":function(n,t,e){},a0d0:function(n,t,e){"use strict";var o;e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return o}));var i=function(){var n=this,t=n.$createElement,e=(n._self._c,n.$t("点击")),o=n.$t("添加到我的小程序, 微信首页下拉即可访问商城。"),i=!n.isIframe&&n.tabNav.default&&n.tabNav.default.isShow.val&&0==n.goodLists.length?n.$t("暂无商品,去看点别的吧"):null;n.$mp.data=Object.assign({},{$root:{m0:e,m1:o,m2:i}})},a=[]},b31a:function(n,t,e){"use strict";e.r(t);var o=e("a0d0"),i=e("fc56");for(var a in i)"default"!==a&&function(n){e.d(t,n,(function(){return i[n]}))}(a);e("8601");var c,s=e("f0c5"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"34a9392c",null,!1,o["a"],c);t["default"]=u.exports},fc56:function(n,t,e){"use strict";e.r(t);var o=e("6e1f"),i=e.n(o);for(var a in o)"default"!==a&&function(n){e.d(t,n,(function(){return o[n]}))}(a);t["default"]=i.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/index/visualization/index-create-component',
{
'pages/index/visualization/index-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("b31a"))
})
},
[['pages/index/visualization/index-create-component']]
]);