|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cart-cart~pages-cart-tabBarCart~pages-goods-list-index~pages-index-index"],{"0c0b":function(t,e,n){"use strict";n.r(e);var o=n("5b14"),i=n("cfb0");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("f02e");var r,s=n("f0c5"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"456296d4",null,!1,o["a"],r);e["default"]=u.exports},"115b":function(t,e,n){"use strict";n.r(e);var o=n("a2be"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"145b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApiGetCategoryTwoAndGoods=e.ApiGetCategoryOneList=e.ApiGetCategoryNav=e.ApiGetGoodsSkus=e.ApiGetGoodsDetail=e.ApiGetRecommendedGoodsList=e.ApiGetGoodsList=void 0;var o=n("5767"),i="/mall/product",a=function(t){return(0,o.ToAsyncAwait)(o.MsbRequest.get("".concat(i,"/app/product/page"),t))};e.ApiGetGoodsList=a;var r=function(t){return(0,o.ToAsyncAwait)(o.MsbRequest.get("".concat(i,"/app/product/recommended"),t))};e.ApiGetRecommendedGoodsList=r;var s=function(t){return(0,o.ToAsyncAwait)(o.MsbRequest.get("".concat(i,"/app/product/").concat(t.id)))};e.ApiGetGoodsDetail=s;var u=function(t){return(0,o.ToAsyncAwait)(o.MsbRequest.get("".concat(i,"/app/product/sku"),t))};e.ApiGetGoodsSkus=u;var c=function(){return(0,o.ToAsyncAwait)(o.MsbRequest.get("".concat(i,"/app/product/categoryNavigation")))};e.ApiGetCategoryNav=c;var d=function(){return(0,o.ToAsyncAwait)(o.MsbRequest.get("".concat(i,"/app/productCategory/levelOne")))};e.ApiGetCategoryOneList=d;var l=function(t){return(0,o.ToAsyncAwait)(o.MsbRequest.get("".concat(i,"/app/productCategory/listCategoryAndProduct/").concat(t.categoryId)))};e.ApiGetCategoryTwoAndGoods=l},"146a":function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.goods[data-v-456296d4]{padding:0 %?30?%;display:flex;justify-content:space-between;flex-flow:wrap}.goods--column[data-v-456296d4]{width:%?335?%}.goods-item[data-v-456296d4]{width:%?335?%;border-radius:%?8?%;background:#fff;margin-bottom:%?30?%;overflow:hidden;padding-bottom:%?20?%}.goods-item--img[data-v-456296d4]{width:100%}.goods-item--title[data-v-456296d4]{font-size:%?28?%;padding:%?20?% %?20?% %?24?%;line-height:%?36?%;font-weight:700}.goods-item--pirce-box[data-v-456296d4]{padding:0 %?20?%;display:flex;justify-content:space-between}.goods-item--original-pirce[data-v-456296d4]{color:#ccc;font-size:%?20?%;text-decoration:line-through;margin-left:%?15?%}.goods-item--icon[data-v-456296d4]{width:%?22?%;height:%?24?%}.goods-item--activity[data-v-456296d4]{height:%?40?%;line-height:%?40?%;margin:%?20?% %?20?% 0;background:#ffede9;border-radius:%?20?%;font-size:%?22?%;color:#ff512b;display:flex}.goods-item--activity-title[data-v-456296d4]{height:%?40?%;display:block;border-radius:%?20?%;padding:0 %?14?%;background:#ff512b;color:#fff}.goods-item--activity-desc[data-v-456296d4]{flex:1 1 auto;text-align:center}[data-v-456296d4] .goods-item--pirce uni-text{font-size:%?32?%;line-height:%?32?%;color:#ff512b;font-weight:700}[data-v-456296d4] .goods-item--pirce .ui-money--prefix{font-size:%?24?%}',""]),t.exports=e},"1eb4":function(t,e,n){"use strict";var o=n("b5ee"),i=n.n(o);i.a},3795:function(t,e,n){"use strict";n("a9e3"),n("d3b7"),n("ac1f"),n("25f0"),n("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={props:{money:{type:Number|String,default:"0"},float:{type:Boolean,default:!1},prefix:{type:Boolean,default:!1},suffix:{type:Boolean,default:!1}},computed:{moneyStr:function(){var t="",e=this.moneyArr[0],n=this.moneyArr[1];return t=this.prefix?e:"¥".concat(e),this.suffix||(t+=n?".".concat(n):""),t},moneyArr:function(){var t=(this.money||"0").toString().split(".");return this.float&&(t[1]?t[1]<10&&(t[1]="0".concat(t[1])):t[1]="00"),t}}};e.default=o},"453d":function(t,e,n){"use strict";n.r(e);var o=n("91a7"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"47e4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={data:function(){return{}},props:{icon:{type:String,default:n("7a1a")},tips:{type:String,default:"亲,暂无相关数据"}},mounted:function(){},methods:{}};e.default=o},5726:function(t,e,n){var o=n("fc54");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("ee1499be",o,!0,{sourceMap:!1,shadowMode:!1})},5871:function(t,e,n){var o=n("fe9e");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("3023f3a0",o,!0,{sourceMap:!1,shadowMode:!1})},"5b14":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"goods"},[n("v-uni-view",{staticClass:"goods--column"},t._l(t.goodsLeftData,(function(e){return n("v-uni-view",{key:e.id,staticClass:"goods-item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/goodsDetail?id="+e.id)}}},[n("v-uni-image",{staticClass:"goods-item--img",attrs:{src:e.mainPicture,mode:"widthFix"}}),n("v-uni-view",{staticClass:"goods-item--title"},[n("v-uni-text",[t._v(t._s(e.name))])],1),n("v-uni-view",{staticClass:"goods-item--pirce-box"},[n("UiMoney",{staticClass:"goods-item--pirce",attrs:{money:e.startingPrice,prefix:!0}})],1)],1)})),1),n("v-uni-view",{staticClass:"goods--column"},t._l(t.goodsRightData,(function(e){return n("v-uni-view",{key:e.id,staticClass:"goods-item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/goodsDetail?id="+e.id)}}},[n("v-uni-image",{staticClass:"goods-item--img",attrs:{src:e.mainPicture,mode:"widthFix"}}),n("v-uni-view",{staticClass:"goods-item--title"},[n("v-uni-text",[t._v(t._s(e.name))])],1),n("v-uni-view",{staticClass:"goods-item--pirce-box"},[n("UiMoney",{staticClass:"goods-item--pirce",attrs:{money:e.startingPrice,prefix:!0}})],1)],1)})),1)],1)},a=[]},"6b19":function(t,e,n){"use strict";n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={props:{status:{type:String,default:uni.$u.props.loadmore.status},bgColor:{type:String,default:uni.$u.props.loadmore.bgColor},icon:{type:Boolean,default:uni.$u.props.loadmore.icon},fontSize:{type:[String,Number],default:uni.$u.props.loadmore.fontSize},color:{type:String,default:uni.$u.props.loadmore.color},loadingIcon:{type:String,default:uni.$u.props.loadmore.loadingIcon},loadmoreText:{type:String,default:uni.$u.props.loadmore.loadmoreText},loadingText:{type:String,default:uni.$u.props.loadmore.loadingText},nomoreText:{type:String,default:uni.$u.props.loadmore.nomoreText},isDot:{type:Boolean,default:uni.$u.props.loadmore.isDot},iconColor:{type:String,default:uni.$u.props.loadmore.iconColor},marginTop:{type:[String,Number],default:uni.$u.props.loadmore.marginTop},marginBottom:{type:[String,Number],default:uni.$u.props.loadmore.marginBottom},height:{type:[String,Number],default:uni.$u.props.loadmore.height},line:{type:Boolean,default:uni.$u.props.loadmore.line}}};e.default=o},7985:function(t,e,n){"use strict";n.r(e);var o=n("47e4"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"7a1a":function(t,e,n){t.exports=n.p+"static/img/empty.bdec362e.png"},8832:function(t,e,n){"use strict";n.r(e);var o=n("b867"),i=n("7985");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("f35f");var r,s=n("f0c5"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"54c060f6",null,!1,o["a"],r);e["default"]=u.exports},"88cd":function(t,e,n){"use strict";var o=n("4ea4");n("4de4"),n("4160"),n("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("dd25")),a={components:{UiMoney:i.default},data:function(){return{}},props:{listData:{type:Array,defalut:[]}},computed:{goodsLeftData:function(){return this.listData.filter((function(t,e){return e%2===0}))},goodsRightData:function(){return this.listData.filter((function(t,e){return e%2!==0}))}},watch:{lisatData:function(t){console.log(t);var e=[],n=[];t.forEach((function(t,o){o%2===0?e.push(t):n.push(t)})),this.goodsLeftData=e,this.goodsRightData=n}},mounted:function(){},methods:{}};e.default=a},"91a7":function(t,e,n){"use strict";var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("6b19")),a={name:"u-loadmore",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{dotText:"●"}},computed:{loadTextStyle:function(){return{color:this.color,fontSize:uni.$u.addUnit(this.fontSize),lineHeight:uni.$u.addUnit(this.fontSize),backgroundColor:this.bgColor}},showText:function(){var t="";return t="loadmore"==this.status?this.loadmoreText:"loading"==this.status?this.loadingText:"nomore"==this.status&&this.isDot?this.dotText:this.nomoreText,t}},methods:{loadMore:function(){"loadmore"==this.status&&this.$emit("loadmore")}}};e.default=a},"91cc":function(t,e,n){"use strict";n.r(e);var o=n("f48c"),i=n("115b");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);var r,s=n("f0c5"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"04864761",null,!1,o["a"],r);e["default"]=u.exports},9444:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={uLine:n("3e06").default,uLoadingIcon:n("891e").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-loadmore",style:[t.$u.addStyle(t.customStyle),{backgroundColor:t.bgColor,marginBottom:t.$u.addUnit(t.marginBottom),marginTop:t.$u.addUnit(t.marginTop),height:t.$u.addUnit(t.height)}]},[t.line?n("u-line",{attrs:{length:"140rpx",color:"#E6E8EB",hairline:!1}}):t._e(),n("v-uni-view",{staticClass:"u-loadmore__content",class:"loadmore"==t.status||"nomore"==t.status?"u-more":""},["loading"===t.status&&t.icon?n("v-uni-view",{staticClass:"u-loadmore__content__icon-wrap"},[n("u-loading-icon",{attrs:{color:t.iconColor,size:"17",mode:t.loadingIcon}})],1):t._e(),n("v-uni-text",{staticClass:"u-line-1",class:["nomore"==t.status&&1==t.isDot?"u-loadmore__content__dot-text":"u-loadmore__content__text"],style:[t.loadTextStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.loadMore.apply(void 0,arguments)}}},[t._v(t._s(t.showText))])],1),t.line?n("u-line",{attrs:{length:"140rpx",color:"#E6E8EB",hairline:!1}}):t._e()],1)},a=[]},a2be:function(t,e,n){"use strict";var o=n("4ea4");n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("5530"));n("96cf");var a=o(n("1da1")),r=n("145b"),s=o(n("8832")),u=o(n("0c0b")),c={components:{BsEmpty:s.default,UiGoodsGroup:u.default},data:function(){return{loadingStatus:"loading",listData:[],params:{length:15,pageIndex:1}}},mounted:function(){this.getGoodsList()},methods:{getGoodsList:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loadingStatus="loading",t.$Route.query,e.next=4,(0,r.ApiGetGoodsList)((0,i.default)({},t.params));case 4:n=e.sent,n.error,o=n.result,t.listData=t.listData.concat(o.records),!o.records.length<t.params.length&&(t.loadingStatus="nomore");case 9:case"end":return e.stop()}}),e)})))()},next:function(){if("nomore"===this.loadingStatus)return!1;this.params.pageIndex++,this.getGoodsList()}}};e.default=c},ae89:function(t,e,n){var o=n("146a");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("7991d17b",o,!0,{sourceMap:!1,shadowMode:!1})},b5ee:function(t,e,n){var o=n("d158");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("73b96490",o,!0,{sourceMap:!1,shadowMode:!1})},b867:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"empty"},[t._t("icon",[n("v-uni-image",{staticClass:"empty--icon",attrs:{src:t.icon,mode:"widthFix"}})]),n("v-uni-view",{staticClass:"empty--tips"},[t._v(t._s(t.tips))]),t._t("btn")],2)},a=[]},c153:function(t,e,n){"use strict";n.r(e);var o=n("9444"),i=n("453d");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("c6b9");var r,s=n("f0c5"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"17ee0c9a",null,!1,o["a"],r);e["default"]=u.exports},c6b9:function(t,e,n){"use strict";var o=n("5871"),i=n.n(o);i.a},cc65:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"ui-money"},[t.prefix?n("v-uni-text",{staticClass:"ui-money--prefix"},[t._v("¥")]):t._e(),n("v-uni-text",{staticClass:"ui-money--price"},[t._v(t._s(t.moneyStr))]),t.float&&t.suffix?n("v-uni-text",{staticClass:"ui-money--suffix"},[t._v("."+t._s(t.moneyArr[1]))]):t._e()],1)},a=[]},cfb0:function(t,e,n){"use strict";n.r(e);var o=n("88cd"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},d158:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.ui-money[data-v-1939e820]{align-items:center}.ui-money uni-text[data-v-1939e820]{line-height:normal}',""]),t.exports=e},d4fb:function(t,e,n){"use strict";n.r(e);var o=n("3795"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},dd25:function(t,e,n){"use strict";n.r(e);var o=n("cc65"),i=n("d4fb");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("1eb4");var r,s=n("f0c5"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"1939e820",null,!1,o["a"],r);e["default"]=u.exports},f02e:function(t,e,n){"use strict";var o=n("ae89"),i=n.n(o);i.a},f35f:function(t,e,n){"use strict";var o=n("5726"),i=n.n(o);i.a},f48c:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={uLoadmore:n("c153").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("UiGoodsGroup",{attrs:{listData:t.listData}}),n("u-loadmore",{attrs:{status:t.loadingStatus,color:"#ccc",nomoreText:"我也是有底线的啦~"}})],1)},a=[]},fc54:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.empty[data-v-54c060f6]{box-sizing:border-box;padding:%?50?%;text-align:center;background:#fff;margin:%?20?% %?30?%;border-radius:%?16?%}.empty--tips[data-v-54c060f6]{font-size:%?26?%;color:#999;margin:%?30?% 0 %?50?%}.empty--icon[data-v-54c060f6]{width:%?380?%;height:%?240?%}',""]),t.exports=e},fe9e:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-view[data-v-17ee0c9a], uni-scroll-view[data-v-17ee0c9a], uni-swiper-item[data-v-17ee0c9a]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-loadmore[data-v-17ee0c9a]{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1}.u-loadmore__content[data-v-17ee0c9a]{margin:0 15px;display:flex;flex-direction:row;align-items:center;justify-content:center}.u-loadmore__content__icon-wrap[data-v-17ee0c9a]{margin-right:8px}.u-loadmore__content__text[data-v-17ee0c9a]{font-size:14px;color:#606266}.u-loadmore__content__dot-text[data-v-17ee0c9a]{font-size:15px;color:#909193}',""]),t.exports=e}}]); |