recommend.js 2.5 KB

1
  1. (my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/index/recommend"],{"2d67":function(t,n,e){"use strict";e.r(n);var r=e("ed94"),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},"3c31":function(t,n,e){"use strict";var r=e("d383"),a=e.n(r);a.a},"3dd1":function(t,n,e){"use strict";(function(t){e("6f14");r(e("66fd"));var n=r(e("adff"));function r(t){return t&&t.__esModule?t:{default:t}}my.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("c11b")["createPage"])},adff:function(t,n,e){"use strict";e.r(n);var r=e("e40f"),a=e("2d67");for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("3c31");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},d383:function(t,n,e){},e40f: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=[]},ed94: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("c11b")["default"])}},[["3dd1","common/runtime","common/vendor"]]]);