| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/recommend"],{"32dc":function(t,n,e){},"42df":function(t,n,e){"use strict";var r=e("32dc"),a=e.n(r);a.a},"91e0":function(t,n,e){"use strict";var r;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return r}));var a=function(){var t=this,n=t.$createElement;t._self._c},o=[]},bf13:function(t,n,e){"use strict";(function(t){function e(t){return i(t)||o(t)||a(t)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,n){if(t){if("string"===typeof t)return u(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,n):void 0}}function o(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function i(t){if(Array.isArray(t))return u(t)}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c={data:function(){return{page:1,pages:0,shopList:[]}},methods:{goMessage:function(n,e){t.navigateTo({url:"/pages/index/details?id="+n.box_id+"&type="+e})},getShopList:function(){var t=this;this.$api.recommend().then((function(n){1===n.code&&(n.data.data.forEach((function(t){t.image=t.goods_images[0],t.right=[],t.bot=[],t.goods_images.forEach((function(n,e){e>0&&e<3&&t.right.push(n),e>2&&t.bot.push(n)}))})),t.shopList=1==t.page?n.data.data:[].concat(e(t.shopList),e(n.data.data)),t.pages=n.data.last_page)}))}},onLoad:function(){this.getShopList()}};n.default=c}).call(this,e("543d")["default"])},bf1f:function(t,n,e){"use strict";e.r(n);var r=e("bf13"),a=e.n(r);for(var o in r)"default"!==o&&function(t){e.d(n,t,(function(){return r[t]}))}(o);n["default"]=a.a},d99b:function(t,n,e){"use strict";e.r(n);var r=e("91e0"),a=e("bf1f");for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("42df");var i,u=e("f0c5"),c=Object(u["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],i);n["default"]=c.exports},db8c:function(t,n,e){"use strict";(function(t){e("a940");r(e("66fd"));var n=r(e("d99b"));function r(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])}},[["db8c","common/runtime","common/vendor"]]]);
|