| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-hot"],{"1a97":function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.hot_swiper[data-v-547c7618]{height:%?320?%}.swiper[data-v-547c7618]{height:%?320?%;margin-bottom:%?30?%}.home_recommend_ul[data-v-547c7618]{flex-wrap:wrap;padding:0 %?28?%}.home_recommend_ul .home_recommend_li[data-v-547c7618]{width:%?332?%;padding:%?20?%;margin-bottom:%?30?%;background:#fff;box-shadow:%?0?% %?0?% %?10?% %?0?% hsla(0,0%,60%,.1);border-radius:%?10?%}.home_recommend_ul .home_recommend_li .home_recommend_li_img[data-v-547c7618]{height:%?295?%}.home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_top[data-v-547c7618]{align-items:flex-start}.home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_bot[data-v-547c7618]{display:flex;margin-top:%?20?%;justify-content:flex-end}.home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_bot uni-image[data-v-547c7618]{width:%?85?%;height:%?85?%;margin-left:%?20?%;border-radius:%?6?%}.home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_bot uni-image[data-v-547c7618]:first-child{margin-left:0}.home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_box uni-image[data-v-547c7618]{width:%?190?%;height:%?190?%;border-radius:%?6?%}.home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_right uni-image[data-v-547c7618]{width:%?85?%;height:%?85?%;border-radius:%?6?%}.home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_right uni-image[data-v-547c7618]:first-child{margin-bottom:%?20?%}.home_recommend_ul .home_recommend_li .home_recommend_li_price[data-v-547c7618]{height:%?40?%;color:#fff;margin:%?20?% 0;font-size:%?26?%;line-height:%?40?%;padding-left:%?18?%;background:#f6af32;border-radius:%?20?%}.home_recommend_ul .home_recommend_li .home_recommend_li_name[data-v-547c7618]{font-size:%?28?%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:%?76?%;line-height:%?76?%}.home_recommend_ul .home_recommend_li .home_recommend_li_glod[data-v-547c7618]{margin-top:%?30?%}.home_recommend_ul .home_recommend_li .home_recommend_li_glod uni-text[data-v-547c7618]{color:#cf271b;font-size:26tpx}.home_recommend_ul .home_recommend_li .home_recommend_li_glod uni-text[data-v-547c7618]:last-child{color:#666;font-size:%?24?%}',""]),e.exports=t},"1dca":function(e,t,i){"use strict";i.r(t);var o=i("cad4"),n=i("5318");for(var m in n)"default"!==m&&function(e){i.d(t,e,(function(){return n[e]}))}(m);i("d4e6");var r,a=i("f0c5"),d=Object(a["a"])(n["default"],o["b"],o["c"],!1,null,"547c7618",null,!1,o["a"],r);t["default"]=d.exports},2909:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var o=a(i("6005")),n=a(i("db90")),m=a(i("06c5")),r=a(i("3427"));function a(e){return e&&e.__esModule?e:{default:e}}function d(e){return(0,o.default)(e)||(0,n.default)(e)||(0,m.default)(e)||(0,r.default)()}},3427:function(e,t,i){"use strict";function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},3584:function(e,t,i){var o=i("1a97");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var n=i("4f06").default;n("7c05af4e",o,!0,{sourceMap:!1,shadowMode:!1})},5318:function(e,t,i){"use strict";i.r(t);var o=i("ba07"),n=i.n(o);for(var m in o)"default"!==m&&function(e){i.d(t,e,(function(){return o[e]}))}(m);t["default"]=n.a},6005:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var o=n(i("6b75"));function n(e){return e&&e.__esModule?e:{default:e}}function m(e){if(Array.isArray(e))return(0,o.default)(e)}},ba07:function(e,t,i){"use strict";var o=i("4ea4");i("99af"),i("4160"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(i("2909")),m={data:function(){return{type:0,image:"",page:1,pages:null,hotList:[]}},methods:{goMessage:function(e,t){uni.navigateTo({url:"/pages/index/details?id="+e.box_id+"&type="+t})},getHotList:function(){var e=this;this.$api[0==this.type?"hotBox":"cheapBox"]({page:this.page,msg:"数据加载中"}).then((function(t){1===t.code&&(t.data.list.data.forEach((function(e){e.image=e.goods_images[0],e.right=[],e.bot=[],e.goods_images.forEach((function(t,i){i>0&&i<3&&e.right.push(t),i>2&&e.bot.push(t)}))})),e.image=t.data.banner,e.hotList=1==e.page?t.data.list.data:[e.hotList].concat((0,n.default)(t.data.list.data)),e.pages=t.data.list.last_page)}))}},onLoad:function(e){var t=e.type;this.type=t,this.getHotList()}};t.default=m},cad4:function(e,t,i){"use strict";var o;i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return m})),i.d(t,"a",(function(){return o}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"hot"},[i("v-uni-view",{staticClass:"hot_swiper"},[i("v-uni-image",{attrs:{src:e.image,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"home_recommend_ul flex"},e._l(e.hotList,(function(t,o){return i("v-uni-view",{key:o,staticClass:"home_recommend_li",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.goMessage(t,0)}}},[i("v-uni-view",{staticClass:"home_recommend_li_img"},[i("v-uni-view",{staticClass:"home_recommend_li_img_top flex"},[i("v-uni-view",{staticClass:"home_recommend_li_img_box"},[i("v-uni-image",{attrs:{src:t.image,mode:"aspectFill"}})],1),0!=t.right.length?i("v-uni-view",{staticClass:"home_recommend_li_img_right"},e._l(t.right,(function(e,t){return i("v-uni-image",{key:t,attrs:{src:e,mode:"aspectFill"}})})),1):e._e()],1),i("v-uni-view",{staticClass:"home_recommend_li_img_bot"},e._l(t.bot,(function(e,t){return i("v-uni-image",{key:t,attrs:{src:e,mode:"aspectFill"}})})),1)],1),i("v-uni-view",{staticClass:"home_recommend_li_main"},[i("v-uni-view",{staticClass:"home_recommend_li_price"},[e._v("价值:¥"+e._s(t.price_min)+"~¥"+e._s(t.price_max))]),i("v-uni-view",{staticClass:"home_recommend_li_name"},[e._v(e._s(t.box_name))]),i("v-uni-view",{staticClass:"home_recommend_li_glod flex"},[i("v-uni-text",[e._v(e._s(t.coin_price)+"金币")]),i("v-uni-text",[e._v("共"+e._s(t.goods_num)+"款商品")])],1)],1)],1)})),1)],1)},m=[]},d4e6:function(e,t,i){"use strict";var o=i("3584"),n=i.n(o);n.a},db90:function(e,t,i){"use strict";function o(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}i("a4d3"),i("e01a"),i("d28b"),i("a630"),i("d3b7"),i("3ca3"),i("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o}}]);
|