pages-index-newBox.33e406e2.js 6.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-newBox"],{"0f22":function(e,i,o){"use strict";o.r(i);var m=o("ac2a"),n=o("41c5");for(var t in n)"default"!==t&&function(e){o.d(i,e,(function(){return n[e]}))}(t);o("fe88");var r,a=o("f0c5"),_=Object(a["a"])(n["default"],m["b"],m["c"],!1,null,"8fee787a",null,!1,m["a"],r);i["default"]=_.exports},3204:function(e,i,o){"use strict";o("4160"),o("159b"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var m={data:function(){return{shopList:[]}},methods:{goMessage:function(e,i){uni.navigateTo({url:"/pages/index/details?id="+e.box_id+"&type="+i})},getNewbox:function(){var e=this;this.$api.newestOpen().then((function(i){1===i.code&&(i.data.forEach((function(e){e.image=e.goods_images[0],e.right=[],e.bot=[],e.goods_images.forEach((function(i,o){o>0&&o<3&&e.right.push(i),o>2&&e.bot.push(i)}))})),e.shopList=i.data)}))}},onLoad:function(){this.getNewbox()}};i.default=m},"41c5":function(e,i,o){"use strict";o.r(i);var m=o("3204"),n=o.n(m);for(var t in m)"default"!==t&&function(e){o.d(i,e,(function(){return m[e]}))}(t);i["default"]=n.a},"9fb0":function(e,i,o){var m=o("24fb");i=m(!1),i.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/* 文章场景相关 */.home_recommend_ul[data-v-8fee787a]{flex-wrap:wrap;padding:0 %?28?%;padding-top:%?30?%}.home_recommend_ul .home_recommend_li[data-v-8fee787a]{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-8fee787a]{height:%?295?%}.home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_top[data-v-8fee787a]{align-items:flex-start}.home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_bot[data-v-8fee787a]{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-8fee787a]{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-8fee787a]:first-child{margin-left:0}.home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_box uni-image[data-v-8fee787a]{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-8fee787a]{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-8fee787a]:first-child{margin-bottom:%?20?%}.home_recommend_ul .home_recommend_li .home_recommend_li_price[data-v-8fee787a]{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-8fee787a]{font-size:%?28?%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:%?76?%}.home_recommend_ul .home_recommend_li .home_recommend_li_glod[data-v-8fee787a]{margin-top:%?30?%}.home_recommend_ul .home_recommend_li .home_recommend_li_glod uni-text[data-v-8fee787a]{color:#cf271b;font-size:26tpx}.home_recommend_ul .home_recommend_li .home_recommend_li_glod uni-text[data-v-8fee787a]:last-child{color:#666;font-size:%?24?%}',""]),e.exports=i},a3b2:function(e,i,o){var m=o("9fb0");m.__esModule&&(m=m.default),"string"===typeof m&&(m=[[e.i,m,""]]),m.locals&&(e.exports=m.locals);var n=o("4f06").default;n("cf5ce9bc",m,!0,{sourceMap:!1,shadowMode:!1})},ac2a:function(e,i,o){"use strict";var m;o.d(i,"b",(function(){return n})),o.d(i,"c",(function(){return t})),o.d(i,"a",(function(){return m}));var n=function(){var e=this,i=e.$createElement,o=e._self._c||i;return o("v-uni-view",{staticClass:"newBox"},[o("v-uni-view",{staticClass:"home_recommend_ul flex"},e._l(e.shopList,(function(i,m){return o("v-uni-view",{key:m,staticClass:"home_recommend_li",on:{click:function(o){arguments[0]=o=e.$handleEvent(o),e.goMessage(i,0)}}},[o("v-uni-view",{staticClass:"home_recommend_li_img"},[o("v-uni-view",{staticClass:"home_recommend_li_img_top flex"},[o("v-uni-view",{staticClass:"home_recommend_li_img_box"},[o("v-uni-image",{attrs:{src:i.image,mode:"aspectFill"}})],1),0!=i.right.length?o("v-uni-view",{staticClass:"home_recommend_li_img_right"},e._l(i.right,(function(e,i){return o("v-uni-image",{key:i,attrs:{src:e,mode:"aspectFill"}})})),1):e._e()],1),o("v-uni-view",{staticClass:"home_recommend_li_img_bot"},e._l(i.bot,(function(e,i){return o("v-uni-image",{key:i,attrs:{src:e,mode:"aspectFill"}})})),1)],1),o("v-uni-view",{staticClass:"home_recommend_li_main"},[o("v-uni-view",{staticClass:"home_recommend_li_price"},[e._v("价值:¥"+e._s(i.price_min)+"~¥"+e._s(i.price_max))]),o("v-uni-view",{staticClass:"home_recommend_li_name"},[e._v(e._s(i.box_name))]),o("v-uni-view",{staticClass:"home_recommend_li_glod flex"},[o("v-uni-text",[e._v(e._s(i.coin_price)+"金币")]),o("v-uni-text",[e._v("共"+e._s(i.goods_num)+"款商品")])],1)],1)],1)})),1)],1)},t=[]},fe88:function(e,i,o){"use strict";var m=o("a3b2"),n=o.n(m);n.a}}]);