| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-more"],{"002f":function(e,i,t){"use strict";var c;t.d(i,"b",(function(){return a})),t.d(i,"c",(function(){return n})),t.d(i,"a",(function(){return c}));var a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("v-uni-view",{staticClass:"more"},[t("v-uni-view",{staticClass:"banner"},[t("v-uni-image",{attrs:{src:"https://www.chaomangdao.com/image/home/banner@2x.png",mode:""}})],1),t("v-uni-view",{staticClass:"small"},[t("v-uni-view",{staticClass:"small-item"},[t("v-uni-view",{staticClass:"small-image"},[t("v-uni-image",{attrs:{src:"https://www.chaomangdao.com/image/home/small1.png",mode:""}})],1),t("v-uni-view",{staticClass:"small-font"},[e._v("新手帮助")])],1),t("v-uni-view",{staticClass:"small-item",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.navTo("/pages/me/recharge")}}},[t("v-uni-view",{staticClass:"small-image"},[t("v-uni-image",{attrs:{src:"https://www.chaomangdao.com/image/home/small2.png",mode:""}})],1),t("v-uni-view",{staticClass:"small-font"},[e._v("优惠充值")])],1),t("v-uni-view",{staticClass:"small-item",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.navTo("/pages/me/balance")}}},[t("v-uni-view",{staticClass:"small-image"},[t("v-uni-image",{attrs:{src:"https://www.chaomangdao.com/image/home/small3.png",mode:""}})],1),t("v-uni-view",{staticClass:"small-font"},[e._v("我的余额")])],1),t("v-uni-view",{staticClass:"small-item",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.navTo("/pages/tabbar/box")}}},[t("v-uni-view",{staticClass:"small-image"},[t("v-uni-image",{attrs:{src:"https://www.chaomangdao.com/image/home/small4.png",mode:""}})],1),t("v-uni-view",{staticClass:"small-font"},[e._v("我的盒柜")])],1)],1),t("v-uni-view",{staticClass:"more_head flex"},e._l(e.list,(function(i,c){return t("v-uni-view",{key:c,staticClass:"more_head_li flexs",class:{active:c==e.i},on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.changeHead(c)}}},[t("v-uni-text",[e._v(e._s(i.name))])],1)})),1),t("v-uni-view",{staticClass:"home_recommend_ul flex"},e._l(e.boxList,(function(i,c){return t("v-uni-view",{key:c,staticClass:"home_recommend_li",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goMessage(i,0)}}},[t("v-uni-view",{staticClass:"home_recommend_li_img"},[t("v-uni-view",{staticClass:"home_recommend_li_img_top flex"},[t("v-uni-view",{staticClass:"home_recommend_li_img_box"},[t("v-uni-image",{attrs:{src:i.image,mode:"aspectFill"}})],1)],1)],1),t("v-uni-view",{staticClass:"home_recommend_li_main"},[t("v-uni-view",{staticClass:"home_recommend_li_name"},[e._v(e._s(i.box_name))]),t("v-uni-view",{staticClass:"home_recommend_li_glod flex"},[t("v-uni-image",{attrs:{src:"https://www.chaomangdao.com/image/home/gold.png",mode:""}}),t("v-uni-view",{staticClass:"home_recommend_li_glod_font"},[e._v(e._s(i.coin_price)+"金币")])],1),t("v-uni-view",{staticClass:"home_recommend_li_price"},[t("v-uni-view",{staticClass:"home_recommend_li_price_icon"},[t("v-uni-view",{staticClass:"home_recommend_li_price_icon_bg"},[t("v-uni-image",{attrs:{src:"https://www.chaomangdao.com/image/home/bdbz.png",mode:""}})],1),t("v-uni-view",{staticClass:"home_recommend_li_price_icon_font"},[e._v("保底必中")])],1),t("v-uni-view",{staticClass:"home_recommend_li_price_font"},[e._v(e._s(i.price_min)+"元~"+e._s(i.price_max)+"元")])],1),t("v-uni-view",{staticClass:"home_recommend_shop"},[0!=i.right.length?t("v-uni-view",{staticClass:"home_recommend_li_img_right"},[t("v-uni-view",{staticClass:"home_recommend_li_img_bot"},e._l(i.bot,(function(e,i){return t("v-uni-image",{key:i,attrs:{src:e,mode:"aspectFill"}})})),1),e._l(i.right,(function(e,i){return t("v-uni-image",{key:i,attrs:{src:e,mode:"aspectFill"}})}))],2):e._e(),t("v-uni-text",[e._v("共"+e._s(i.goods_num)+"款商品")])],1)],1)],1)})),1),t("v-uni-view",{staticClass:"screen",style:{width:e.isShow?"600rpx":0}},[t("v-uni-view",{staticClass:"screen_box"},[t("v-uni-view",{staticClass:"screen_name"},[e._v("价格区间")]),t("v-uni-view",{staticClass:"screen_head flexs"},[t("v-uni-view",{staticClass:"screen_ipt center"},[t("v-uni-input",{attrs:{type:"number",placeholder:"最低价","placeholder-style":"color:#999999"},model:{value:e.minPrice,callback:function(i){e.minPrice=i},expression:"minPrice"}})],1),t("v-uni-view",{staticClass:"screen_head_line"}),t("v-uni-view",{staticClass:"screen_ipt center"},[t("v-uni-input",{attrs:{type:"number",placeholder:"最高价","placeholder-style":"color:#999999"},model:{value:e.maxPrice,callback:function(i){e.maxPrice=i},expression:"maxPrice"}})],1)],1),t("v-uni-view",{staticClass:"screen_ul flexs"},e._l(e.priceList,(function(i,c){return t("v-uni-view",{key:c,staticClass:"screen_li center",class:{active:c==e.selectPrice},on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.selectprice(c)}}},[e._v(e._s(i))])})),1)],1),t("v-uni-view",{staticClass:"screen_footer flex"},e._l(2,(function(i,c){return t("v-uni-view",{key:c,staticClass:"screen_footer_li center",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.reset(c)}}},[e._v(e._s(0==c?"重置":"确定"))])})),1)],1),e.isShow?t("v-uni-view",{staticClass:"marking"}):e._e()],1)},n=[]},"087e":function(e,i,t){var c=t("bad6");c.__esModule&&(c=c.default),"string"===typeof c&&(c=[[e.i,c,""]]),c.locals&&(e.exports=c.locals);var a=t("4f06").default;a("28dd2aae",c,!0,{sourceMap:!1,shadowMode:!1})},"1df3":function(e,i,t){"use strict";t.r(i);var c=t("002f"),a=t("20db");for(var n in a)"default"!==n&&function(e){t.d(i,e,(function(){return a[e]}))}(n);t("b5ba");var o,r=t("f0c5"),s=Object(r["a"])(a["default"],c["b"],c["c"],!1,null,"c5cc1fdc",null,!1,c["a"],o);i["default"]=s.exports},"20db":function(e,i,t){"use strict";t.r(i);var c=t("7b42"),a=t.n(c);for(var n in c)"default"!==n&&function(e){t.d(i,e,(function(){return c[e]}))}(n);i["default"]=a.a},2909:function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=s;var c=r(t("6005")),a=r(t("db90")),n=r(t("06c5")),o=r(t("3427"));function r(e){return e&&e.__esModule?e:{default:e}}function s(e){return(0,c.default)(e)||(0,a.default)(e)||(0,n.default)(e)||(0,o.default)()}},3427:function(e,i,t){"use strict";function c(){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(i,"__esModule",{value:!0}),i.default=c},6005:function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=n;var c=a(t("6b75"));function a(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e))return(0,c.default)(e)}},"7b42":function(e,i,t){"use strict";var c=t("4ea4");t("99af"),t("4160"),t("4e82"),t("ac1f"),t("841c"),t("1276"),t("159b"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=c(t("2909")),n={data:function(){return{i:0,page:1,pages:0,price:"",sort:"",list:[{name:"新品",type:0},{name:"综合",type:0},{name:"价格",type:0},{name:"筛选",type:0}],boxList:[],isShow:!1,selectPrice:-1,minPrice:"",maxPrice:"",priceList:[]}},methods:{goMessage:function(e,i){uni.navigateTo({url:"/pages/index/details?id="+e.box_id+"&type="+i})},reset:function(e){0==e?(this.minPrice="",this.maxPrice="",this.selectPrice=-1):(this.price=(0==this.minPrice||this.minPrice)&&this.maxPrice?this.minPrice+"-"+this.maxPrice:"",this.isShow=!1,this.list[3].type=0,this.getBoxListByCategory())},selectprice:function(e){this.selectPrice=e==this.selectPrice?-1:e,-1!=this.selectPrice&&(this.minPrice=this.priceList[e].split("-")[0],this.maxPrice=this.priceList[e].split("-")[1])},changeHead:function(e){this.page=1,this.i=e,this.getBoxListByCategory(this.list[e].category_id)},returnTop:function(){uni.navigateBack()},getBoxListByCategory:function(e){var i=this;this.$api.search({page:this.page,msg:"数据加载中",sort:this.sort,price:this.price,category_id:e}).then((function(e){1===e.code&&(e.data.data.forEach((function(e){e.image=e.goods_images[0],e.right=[],e.bot=[],e.goods_images.forEach((function(i,t){t>0&&t<3&&e.right.push(i),t>2&&e.bot.push(i)}))})),i.boxList=1==i.page?e.data.data:[].concat((0,a.default)(rhis.boxList),(0,a.default)(e.data.data)),i.pages=e.data.last_page)}))},getPriceList:function(){var e=this;this.$api.priceRange().then((function(i){1===i.code&&(e.priceList=i.data.range)}))},navTo:function(e){uni.navigateTo({url:e,fail:function(){uni.switchTab({url:e})}})},classify:function(){var e=this;this.$api.categoryList({page:1,limit:1e3}).then((function(i){var t=i.data;t.unshift({category_id:0,name:"全部"}),e.list=t,e.getBoxListByCategory(e.list[0].category_id)}))}},onLoad:function(){this.classify(),this.getPriceList()},onPullDownRefresh:function(){this.page=1,this.getBoxListByCategory()},onReachBottom:function(){this.page<this.pages&&(this.page++,this.getBoxListByCategory())}};i.default=n},b5ba:function(e,i,t){"use strict";var c=t("087e"),a=t.n(c);a.a},bad6:function(e,i,t){var c=t("24fb");i=c(!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/* 文章场景相关 */.more[data-v-c5cc1fdc],\r\nuni-page-body[data-v-c5cc1fdc]{min-height:100%;height:auto;background:#fff6f7}.screen[data-v-c5cc1fdc]{position:fixed;bottom:0;right:0;width:0;overflow:hidden;height:calc(100vh - 88px);background:#fff;z-index:2021;transition:all .2s ease}.screen .screen_box[data-v-c5cc1fdc]{padding:%?30?% %?20?% 0 %?30?%}.screen .screen_box .screen_name[data-v-c5cc1fdc]{font-size:%?28?%;margin-bottom:%?24?%}.screen .screen_box .screen_head .screen_ipt[data-v-c5cc1fdc]{width:%?168?%;height:%?64?%;padding:0 %?30?%;background:#f5f5f5;border-radius:%?32?%}.screen .screen_box .screen_head .screen_ipt uni-input[data-v-c5cc1fdc]{font-size:%?26?%;text-align:center}.screen .screen_box .screen_head .screen_head_line[data-v-c5cc1fdc]{width:%?27?%;height:%?3?%;margin:0 %?20?%;background:#999}.screen .screen_box .screen_ul[data-v-c5cc1fdc]{flex-wrap:wrap}.screen .screen_box .screen_ul .screen_li[data-v-c5cc1fdc]{width:%?166?%;height:%?64?%;margin:%?24?% %?24?% 0 0;font-size:%?26?%;background:#f5f5f5;border-radius:%?32?%}.screen .screen_box .screen_ul .screen_li[data-v-c5cc1fdc]:nth-child(3n){margin-right:0}.screen .screen_box .screen_ul .active[data-v-c5cc1fdc]{color:#fff;background:#f6af32}.screen .screen_footer[data-v-c5cc1fdc]{width:100%;bottom:0;position:absolute}.screen .screen_footer .screen_footer_li[data-v-c5cc1fdc]{width:%?260?%;height:%?68?%;color:#666;font-size:%?32?%;background:#f5f5f5}.screen .screen_footer .screen_footer_li[data-v-c5cc1fdc]:last-child{color:#fff;background:#f6af32}.marking[data-v-c5cc1fdc]{position:fixed;bottom:0;right:0;width:100%;height:calc(100vh - 88px);background:rgba(0,0,0,.5)}.banner[data-v-c5cc1fdc]{width:%?715?%;height:%?317?%;margin:0 auto}.banner uni-image[data-v-c5cc1fdc]{width:100%;height:100%}.small[data-v-c5cc1fdc]{margin-top:%?24?%;width:100%;display:flex;justify-content:space-around;align-items:center}.small .small-item[data-v-c5cc1fdc]{width:25%;display:flex;flex-direction:column;justify-content:center;align-items:center;line-height:1}.small .small-item .small-image[data-v-c5cc1fdc]{width:%?64?%;height:%?64?%}.small .small-item .small-image uni-image[data-v-c5cc1fdc]{width:100%;height:100%}.small .small-item .small-font[data-v-c5cc1fdc]{margin-top:%?16?%;font-size:%?22?%;font-family:PingFang SC;font-weight:700;color:#333}.more_head[data-v-c5cc1fdc]{width:100%;height:%?88?%;z-index:20;margin-bottom:%?30?%;justify-content:start;margin-top:%?20?%}.more_head .more_head_li[data-v-c5cc1fdc]{margin:0 %?30?%;padding-bottom:%?10?%}.more_head .more_head_li uni-text[data-v-c5cc1fdc]{font-size:%?30?%}.more_head .more_head_li uni-image[data-v-c5cc1fdc]{width:%?22?%;height:%?22?%;transition:all .2s ease;margin-left:%?10?%}.more_head .more_head_li .handstand[data-v-c5cc1fdc]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.more_head .more_head_li.active[data-v-c5cc1fdc]{border-bottom:2px solid #6087f6}.more_head .more_head_li.active uni-text[data-v-c5cc1fdc]{color:#6087f6}.home_recommend_ul[data-v-c5cc1fdc]{flex-wrap:wrap;padding:0 %?28?%}.home_recommend_ul .home_recommend_li[data-v-c5cc1fdc]{width:%?700?%;background:#fff;border-radius:%?15?%;padding:%?20?%;margin-bottom:%?30?%;background:#fff;box-shadow:%?0?% %?0?% %?10?% %?0?% hsla(0,0%,60%,.1);border-radius:%?10?%;display:flex;align-items:center}.home_recommend_ul .home_recommend_li .home_recommend_li_img[data-v-c5cc1fdc]{width:%?190?%;height:%?190?%}.home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_box uni-image[data-v-c5cc1fdc]{width:%?190?%;height:%?190?%;border-radius:%?6?%}.home_recommend_ul .home_recommend_li .home_recommend_li_main[data-v-c5cc1fdc]{padding-left:%?10?%}.home_recommend_ul .home_recommend_li .home_recommend_li_price[data-v-c5cc1fdc]{padding:0 %?8?% 0 0;margin:%?10?% 0 0;background:#fff1eb;display:flex;align-items:center;border-top-right-radius:%?14?%;border-bottom-right-radius:%?14?%}.home_recommend_ul .home_recommend_li .home_recommend_li_price .home_recommend_li_price_icon[data-v-c5cc1fdc]{position:relative;width:%?124?%;height:%?32?%;padding-left:%?36?%}.home_recommend_ul .home_recommend_li .home_recommend_li_price .home_recommend_li_price_icon .home_recommend_li_price_icon_bg[data-v-c5cc1fdc]{position:absolute;top:0;left:0;right:0;width:%?124?%;height:%?32?%}.home_recommend_ul .home_recommend_li .home_recommend_li_price .home_recommend_li_price_icon .home_recommend_li_price_icon_bg imgae[data-v-c5cc1fdc]{width:100%;height:100%}.home_recommend_ul .home_recommend_li .home_recommend_li_price .home_recommend_li_price_icon .home_recommend_li_price_icon_font[data-v-c5cc1fdc]{position:relative;z-index:2;font-size:%?18?%;font-family:PingFang SC;font-weight:700;color:#fff;line-height:%?32?%}.home_recommend_ul .home_recommend_li .home_recommend_li_price .home_recommend_li_price_font[data-v-c5cc1fdc]{font-size:%?24?%;font-family:PingFang SC;font-weight:700;color:#ff2829;line-height:%?32?%}.home_recommend_ul .home_recommend_li .home_recommend_li_name[data-v-c5cc1fdc]{font-family:PingFang SC;font-weight:700;color:#333;font-size:%?28?%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.home_recommend_ul .home_recommend_li .home_recommend_li_glod[data-v-c5cc1fdc]{justify-content:flex-start;align-items:center;margin-top:%?22?%}.home_recommend_ul .home_recommend_li .home_recommend_li_glod uni-image[data-v-c5cc1fdc]{width:%?32?%;height:%?32?%}.home_recommend_ul .home_recommend_li .home_recommend_li_glod .home_recommend_li_glod_font[data-v-c5cc1fdc]{font-size:%?24?%;font-family:PingFang SC;font-weight:700;color:#ff281e;margin-left:%?10?%}.home_recommend_shop[data-v-c5cc1fdc]{margin-top:%?10?%;display:flex;align-items:flex-end}.home_recommend_shop uni-text[data-v-c5cc1fdc]{font-size:%?16?%;font-family:PingFang SC;font-weight:700;color:#999}.home_recommend_li_img_right[data-v-c5cc1fdc]{display:flex;align-items:center}.home_recommend_li_img_right uni-image[data-v-c5cc1fdc]{width:%?50?%;height:%?50?%;background:#fff;border:1px solid #e2e2e2;border-radius:%?5?%;margin-right:%?10?%}.home_recommend_li_img_right uni-image[data-v-c5cc1fdc]:last-child{margin-right:0}.home_recommend_li_img_right .home_recommend_li_img_bot[data-v-c5cc1fdc]{display:flex;align-items:center}.home_recommend_li_img_right .home_recommend_li_img_bot uni-image[data-v-c5cc1fdc]{width:%?50?%;height:%?50?%;background:#fff;border:1px solid #e2e2e2;border-radius:%?5?%;margin-right:%?10?%}body.?%PAGE?%[data-v-c5cc1fdc]{background:#fff6f7}',""]),e.exports=i},db90:function(e,i,t){"use strict";function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}t("a4d3"),t("e01a"),t("d28b"),t("a630"),t("d3b7"),t("3ca3"),t("ddb0"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=c}}]);
|