pages-index-more.e5fb8865.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-more"],{"1df3":function(e,i,t){"use strict";t.r(i);var n=t("e07a"),a=t("20db");for(var o in a)"default"!==o&&function(e){t.d(i,e,(function(){return a[e]}))}(o);t("ded4");var r,s=t("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"7f474f14",null,!1,n["a"],r);i["default"]=c.exports},"20db":function(e,i,t){"use strict";t.r(i);var n=t("7b42"),a=t.n(n);for(var o in n)"default"!==o&&function(e){t.d(i,e,(function(){return n[e]}))}(o);i["default"]=a.a},2909:function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=c;var n=s(t("6005")),a=s(t("db90")),o=s(t("06c5")),r=s(t("3427"));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return(0,n.default)(e)||(0,a.default)(e)||(0,o.default)(e)||(0,r.default)()}},3427:function(e,i,t){"use strict";function n(){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=n},4292:function(e,i,t){var n=t("6f6a");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=t("4f06").default;a("b2a48770",n,!0,{sourceMap:!1,shadowMode:!1})},6005:function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=o;var n=a(t("6b75"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e))return(0,n.default)(e)}},"6f6a":function(e,i,t){var n=t("24fb");i=n(!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-7f474f14],\r\nuni-page-body[data-v-7f474f14]{min-height:100%;height:auto;background:#fff6f7}.screen[data-v-7f474f14]{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-7f474f14]{padding:%?30?% %?20?% 0 %?30?%}.screen .screen_box .screen_name[data-v-7f474f14]{font-size:%?28?%;margin-bottom:%?24?%}.screen .screen_box .screen_head .screen_ipt[data-v-7f474f14]{width:%?168?%;height:%?64?%;padding:0 %?30?%;background:#f5f5f5;border-radius:%?32?%}.screen .screen_box .screen_head .screen_ipt uni-input[data-v-7f474f14]{font-size:%?26?%;text-align:center}.screen .screen_box .screen_head .screen_head_line[data-v-7f474f14]{width:%?27?%;height:%?3?%;margin:0 %?20?%;background:#999}.screen .screen_box .screen_ul[data-v-7f474f14]{flex-wrap:wrap}.screen .screen_box .screen_ul .screen_li[data-v-7f474f14]{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-7f474f14]:nth-child(3n){margin-right:0}.screen .screen_box .screen_ul .active[data-v-7f474f14]{color:#fff;background:#f6af32}.screen .screen_footer[data-v-7f474f14]{width:100%;bottom:0;position:absolute}.screen .screen_footer .screen_footer_li[data-v-7f474f14]{width:%?260?%;height:%?68?%;color:#666;font-size:%?32?%;background:#f5f5f5}.screen .screen_footer .screen_footer_li[data-v-7f474f14]:last-child{color:#fff;background:#f6af32}.marking[data-v-7f474f14]{position:fixed;bottom:0;right:0;width:100%;height:calc(100vh - 88px);background:rgba(0,0,0,.5)}.banner[data-v-7f474f14]{width:%?715?%;height:%?317?%;margin:0 auto}.banner uni-image[data-v-7f474f14]{width:100%;height:100%}.small[data-v-7f474f14]{margin-top:%?24?%;width:100%;display:flex;justify-content:space-around;align-items:center}.small .small-item[data-v-7f474f14]{width:25%;display:flex;flex-direction:column;justify-content:center;align-items:center;line-height:1}.small .small-item .small-image[data-v-7f474f14]{width:%?64?%;height:%?64?%}.small .small-item .small-image uni-image[data-v-7f474f14]{width:100%;height:100%}.small .small-item .small-font[data-v-7f474f14]{margin-top:%?16?%;font-size:%?22?%;font-family:PingFang SC;font-weight:700;color:#333}.more_head[data-v-7f474f14]{width:100%;height:%?88?%;z-index:20;margin-bottom:%?30?%;justify-content:start;margin-top:%?20?%}.more_head .more_head_li[data-v-7f474f14]{margin:0 %?30?%;padding-bottom:%?10?%}.more_head .more_head_li uni-text[data-v-7f474f14]{font-size:%?30?%}.more_head .more_head_li uni-image[data-v-7f474f14]{width:%?22?%;height:%?22?%;transition:all .2s ease;margin-left:%?10?%}.more_head .more_head_li .handstand[data-v-7f474f14]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.more_head .more_head_li.active[data-v-7f474f14]{border-bottom:2px solid #6087f6}.more_head .more_head_li.active uni-text[data-v-7f474f14]{color:#6087f6}.home_recommend_ul[data-v-7f474f14]{flex-wrap:wrap;padding:0 %?28?%}.home_recommend_ul .home_recommend_li[data-v-7f474f14]{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-7f474f14]{width:%?190?%;height:%?190?%}.home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_box uni-image[data-v-7f474f14]{width:%?190?%;height:%?190?%;border-radius:%?6?%}.home_recommend_ul .home_recommend_li .home_recommend_li_main[data-v-7f474f14]{padding-left:%?10?%}.home_recommend_ul .home_recommend_li .home_recommend_li_price[data-v-7f474f14]{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-7f474f14]{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-7f474f14]{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-7f474f14]{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-7f474f14]{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-7f474f14]{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-7f474f14]{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-7f474f14]{justify-content:flex-start;align-items:center;margin-top:%?22?%}.home_recommend_ul .home_recommend_li .home_recommend_li_glod uni-image[data-v-7f474f14]{width:%?32?%;height:%?32?%}.home_recommend_ul .home_recommend_li .home_recommend_li_glod .home_recommend_li_glod_font[data-v-7f474f14]{font-size:%?24?%;font-family:PingFang SC;font-weight:700;color:#ff281e;margin-left:%?10?%}.home_recommend_shop[data-v-7f474f14]{margin-top:%?10?%;display:flex;align-items:flex-end}.home_recommend_shop uni-text[data-v-7f474f14]{font-size:%?16?%;font-family:PingFang SC;font-weight:700;color:#999}.home_recommend_li_img_right[data-v-7f474f14]{display:flex;align-items:center}.home_recommend_li_img_right uni-image[data-v-7f474f14]{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-7f474f14]:last-child{margin-right:0}.home_recommend_li_img_right .home_recommend_li_img_bot[data-v-7f474f14]{display:flex;align-items:center}.home_recommend_li_img_right .home_recommend_li_img_bot uni-image[data-v-7f474f14]{width:%?50?%;height:%?50?%;background:#fff;border:1px solid #e2e2e2;border-radius:%?5?%;margin-right:%?10?%}body.?%PAGE?%[data-v-7f474f14]{background:#fff6f7}',""]),e.exports=i},"7b42":function(e,i,t){"use strict";var n=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=n(t("2909")),o={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=o},db90:function(e,i,t){"use strict";function n(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=n},ded4:function(e,i,t){"use strict";var n=t("4292"),a=t.n(n);a.a},e07a:function(e,i,t){"use strict";var n;t.d(i,"b",(function(){return a})),t.d(i,"c",(function(){return o})),t.d(i,"a",(function(){return n}));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://chaomd.liuniu946.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://chaomd.liuniu946.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://chaomd.liuniu946.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://chaomd.liuniu946.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://chaomd.liuniu946.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,n){return t("v-uni-view",{key:n,staticClass:"more_head_li flexs",class:{active:n==e.i},on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.changeHead(n)}}},[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,n){return t("v-uni-view",{key:n,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://chaomd.liuniu946.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://chaomd.liuniu946.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,n){return t("v-uni-view",{key:n,staticClass:"screen_li center",class:{active:n==e.selectPrice},on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.selectprice(n)}}},[e._v(e._s(i))])})),1)],1),t("v-uni-view",{staticClass:"screen_footer flex"},e._l(2,(function(i,n){return t("v-uni-view",{key:n,staticClass:"screen_footer_li center",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.reset(n)}}},[e._v(e._s(0==n?"重置":"确定"))])})),1)],1),e.isShow?t("v-uni-view",{staticClass:"marking"}):e._e()],1)},o=[]}}]);