(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"029e":function(e,t,n){"use strict";n.r(t);var o=n("f417"),r=n("98ee");for(var c in r)"default"!==c&&function(e){n.d(t,e,(function(){return r[e]}))}(c);n("2f5c");var i,a=n("f0c5"),u=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);t["default"]=u.exports},"2f5c":function(e,t,n){"use strict";var o=n("7fbe"),r=n.n(o);r.a},"38ba":function(e,t,n){"use strict";(function(e){n("e27b");o(n("66fd"));var t=o(n("029e"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},"7fbe":function(e,t,n){},"98ee":function(e,t,n){"use strict";n.r(t);var o=n("da0d"),r=n.n(o);for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=r.a},da0d:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("a34a")),r=n("095e"),c=n("26cb"),i=n("a978");function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n,o,r,c,i){try{var a=e[c](i),u=a.value}catch(s){return void n(s)}a.done?t(u):Promise.resolve(u).then(o,r)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var c=e.apply(t,n);function i(e){u(c,o,r,i,a,"next",e)}function a(e){u(c,o,r,i,a,"throw",e)}i(void 0)}))}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d={data:function(){return{carouselList:[],swiperCurrent:0,dataList:[],text:"Zjxwcm",swiperLength:1}},onLoad:function(t){t.scene&&e.setStorage({key:"spread_code",data:t.scene})},computed:l(l({},(0,c.mapState)("user",["userInfo","orderInfo","hasLogin"])),(0,c.mapState)(["baseURL"])),onShow:function(){this.hasLogin||e.showModal({title:"登录",content:"您未登录，是否马上登陆?",success:function(e){e.confirm&&(0,i.interceptor)()},fail:function(e){console.log(e)}}),this.loadData()},onPullDownRefresh:function(){this.loadData()},methods:{listChange:function(e){this.checkid=e.detail.current},clickSearch:function(){e.navigateTo({url:"/pages/product/search"})},nav:function(t){e.navigateTo({url:t,fail:function(){console.log(1),e.switchTab({url:t})}})},showPopup:function(){this.$refs.popup.open()},cancel:function(){this.$refs.popup.close()},swiperChange:function(e){var t=e.detail.current;this.swiperCurrent=t},uniCopy:function(t){e.setClipboardData({data:t,success:function(){return console.log("success"),!0}})},comfirm:function(t){console.log(t);var n=this.uniCopy(t);!1===n?e.showToast({title:"不支持"}):e.showToast({title:"复制成功",icon:"none"}),this.$refs.popup.close()},loadData:function(){var t=this;return s(o.default.mark((function n(){return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:(0,r.loadIndexs)({}).then((function(n){var o=n.data;console.log(o),t.carouselList=o.banner,t.swiperLength=t.carouselList.length,t.dataList=o.likeInfo,e.stopPullDownRefresh()})).catch((function(t){e.stopPullDownRefresh()}));case 1:case"end":return n.stop()}}),n)})))()},navToDetailPage:function(t){var n=t.id;e.navigateTo({url:"/pages/product/product?id="+n})}}};t.default=d}).call(this,n("543d")["default"])},f417:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return o}));var o={uniPopup:function(){return n.e("components/uni-popup/uni-popup").then(n.bind(null,"bf97"))}},r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.dataList,(function(t,n){var o=e.__get_orig(t),r=(t.ot_price-t.price).toFixed(2);return{$orig:o,g0:r}})));e.$mp.data=Object.assign({},{$root:{l0:n}})},c=[]}},[["38ba","common/runtime","common/vendor"]]]);