|
|
(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 i=n("5b14"),o=n("cfb0");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("f02e");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"456296d4",null,!1,i["a"],r);e["default"]=c.exports},"115b":function(t,e,n){"use strict";n.r(e);var i=n("a2be"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.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 i=n("5767"),o="/mall/product",a=function(t){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(o,"/app/product/page"),t))};e.ApiGetGoodsList=a;var r=function(t){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(o,"/app/product/recommended"),t))};e.ApiGetRecommendedGoodsList=r;var s=function(t){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(o,"/app/product/").concat(t.id)))};e.ApiGetGoodsDetail=s;var c=function(t){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(o,"/app/product/sku"),t))};e.ApiGetGoodsSkus=c;var u=function(){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(o,"/app/product/categoryNavigation")))};e.ApiGetCategoryNav=u;var d=function(){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(o,"/app/productCategory/levelOne")))};e.ApiGetCategoryOneList=d;var f=function(t){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(o,"/app/productCategory/listCategoryAndProduct/").concat(t.categoryId)))};e.ApiGetCategoryTwoAndGoods=f},"146a":function(t,e,n){var i=n("24fb");e=i(!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 i=n("b5ee"),o=n.n(i);o.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 i={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=i},"47e4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{}},props:{icon:{type:String,default:n("7a1a")},tips:{type:String,default:"亲,暂无相关数据"}},mounted:function(){},methods:{}};e.default=i},5726:function(t,e,n){var i=n("fc54");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("ee1499be",i,!0,{sourceMap:!1,shadowMode:!1})},"5b14":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=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=[]},7985:function(t,e,n){"use strict";n.r(e);var i=n("47e4"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.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 i=n("b867"),o=n("7985");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("f35f");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"54c060f6",null,!1,i["a"],r);e["default"]=c.exports},"88cd":function(t,e,n){"use strict";var i=n("4ea4");n("4de4"),n("4160"),n("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("dd25")),a={components:{UiMoney:o.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,i){i%2===0?e.push(t):n.push(t)})),this.goodsLeftData=e,this.goodsRightData=n}},mounted:function(){},methods:{}};e.default=a},"91cc":function(t,e,n){"use strict";n.r(e);var i=n("f48c"),o=n("115b");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);var r,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"04864761",null,!1,i["a"],r);e["default"]=c.exports},a2be:function(t,e,n){"use strict";var i=n("4ea4");n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("5530"));n("96cf");var a=i(n("1da1")),r=n("145b"),s=i(n("8832")),c=i(n("0c0b")),u={components:{BsEmpty:s.default,UiGoodsGroup:c.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,i;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,o.default)({},t.params));case 4:n=e.sent,n.error,i=n.result,t.listData=t.listData.concat(i.records),!i.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=u},ae89:function(t,e,n){var i=n("146a");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("7991d17b",i,!0,{sourceMap:!1,shadowMode:!1})},b5ee:function(t,e,n){var i=n("d158");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("73b96490",i,!0,{sourceMap:!1,shadowMode:!1})},b867:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=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=[]},cc65:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=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 i=n("88cd"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},d158:function(t,e,n){var i=n("24fb");e=i(!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 i=n("3795"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},dd25:function(t,e,n){"use strict";n.r(e);var i=n("cc65"),o=n("d4fb");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("1eb4");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"1939e820",null,!1,i["a"],r);e["default"]=c.exports},f02e:function(t,e,n){"use strict";var i=n("ae89"),o=n.n(i);o.a},f35f:function(t,e,n){"use strict";var i=n("5726"),o=n.n(i);o.a},f48c:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uLoadmore:n("c153").default},o=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 i=n("24fb");e=i(!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}}]); |