|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cart-cart~pages-cart-tabBarCart~pages-index-index"],{"0c0b":function(t,e,n){"use strict";n.r(e);var a=n("c416"),i=n("cfb0");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("72e0");var s,r=n("f0c5"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"55a23ce9",null,!1,a["a"],s);e["default"]=c.exports},"115b":function(t,e,n){"use strict";n.r(e);var a=n("a2be"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);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 a=n("5767"),i="/mall/product",o=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(i,"/app/product/page"),t))};e.ApiGetGoodsList=o;var s=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(i,"/app/product/recommended"),t))};e.ApiGetRecommendedGoodsList=s;var r=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(i,"/app/product/").concat(t.id)))};e.ApiGetGoodsDetail=r;var c=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(i,"/app/product/sku"),t))};e.ApiGetGoodsSkus=c;var u=function(){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(i,"/app/product/categoryNavigation")))};e.ApiGetCategoryNav=u;var d=function(){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(i,"/app/productCategory/levelOne")))};e.ApiGetCategoryOneList=d;var f=function(t){return(0,a.ToAsyncAwait)(a.MsbRequest.get("".concat(i,"/app/productCategory/listCategoryAndProduct/").concat(t.categoryId)))};e.ApiGetCategoryTwoAndGoods=f},"1a19":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));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)},o=[]},"1d05":function(t,e,n){var a=n("577d");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("0db382b4",a,!0,{sourceMap:!1,shadowMode:!1})},"23b3":function(t,e,n){var a=n("ee72");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("073f447a",a,!0,{sourceMap:!1,shadowMode:!1})},"3a1e":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={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,nomoreText:"我也是有底线的啦~"}})],1)},o=[]},"47e4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{}},props:{icon:{type:String,default:n("7a1a")},tips:{type:String,default:"亲,暂无相关数据"}},mounted:function(){},methods:{}};e.default=a},"577d":function(t,e,n){var a=n("24fb");e=a(!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-55a23ce9]{padding:0 %?30?%;display:flex;justify-content:space-between;flex-flow:wrap}.goods--column[data-v-55a23ce9]{width:%?335?%}.goods-item[data-v-55a23ce9]{width:%?335?%;border-radius:%?8?%;background:#fff;margin-bottom:%?30?%;overflow:hidden;padding-bottom:%?20?%}.goods-item--img[data-v-55a23ce9]{width:100%}.goods-item--title[data-v-55a23ce9]{font-size:%?28?%;padding:%?20?% %?20?%;line-height:%?36?%}.goods-item--pirce-box[data-v-55a23ce9]{padding:0 %?20?%;display:flex;justify-content:space-between}.goods-item--pirce[data-v-55a23ce9]{font-size:%?32?%;color:#ff512b}.goods-item--original-pirce[data-v-55a23ce9]{color:#ccc;font-size:%?20?%;text-decoration:line-through;margin-left:%?15?%}.goods-item--icon[data-v-55a23ce9]{width:%?22?%;height:%?24?%}.goods-item--activity[data-v-55a23ce9]{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-55a23ce9]{height:%?40?%;display:block;border-radius:%?20?%;padding:0 %?14?%;background:#ff512b;color:#fff}.goods-item--activity-desc[data-v-55a23ce9]{flex:1 1 auto;text-align:center}',""]),t.exports=e},"72e0":function(t,e,n){"use strict";var a=n("1d05"),i=n.n(a);i.a},7985:function(t,e,n){"use strict";n.r(e);var a=n("47e4"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);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 a=n("1a19"),i=n("7985");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("b44b");var s,r=n("f0c5"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"012c6a88",null,!1,a["a"],s);e["default"]=c.exports},"88cd":function(t,e,n){"use strict";n("4de4"),n("4160"),n("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={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,a){a%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 a=n("3a1e"),i=n("115b");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s,r=n("f0c5"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"d412ea92",null,!1,a["a"],s);e["default"]=c.exports},a2be:function(t,e,n){"use strict";var a=n("4ea4");n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("5530"));n("96cf");var o=a(n("1da1")),s=n("145b"),r=a(n("8832")),c=a(n("0c0b")),u={components:{BsEmpty:r.default,UiGoodsGroup:c.default},data:function(){return{loadingStatus:"loading",listData:[],params:{length:10,pageIndex:1}}},mounted:function(){this.getGoodsList()},methods:{getGoodsList:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){var n,a;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,s.ApiGetGoodsList)((0,i.default)({},t.params));case 4:n=e.sent,n.error,a=n.result,t.listData=t.listData.concat(a.records),!a.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},b44b:function(t,e,n){"use strict";var a=n("23b3"),i=n.n(a);i.a},c416:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));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("v-uni-view",[n("v-uni-text",{staticClass:"goods-item--pirce"},[t._v("¥"+t._s(e.startingPrice))])],1)],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("v-uni-view",[n("v-uni-text",{staticClass:"goods-item--pirce"},[t._v("¥"+t._s(e.startingPrice))])],1)],1)],1)})),1)],1)},o=[]},cfb0:function(t,e,n){"use strict";n.r(e);var a=n("88cd"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},ee72:function(t,e,n){var a=n("24fb");e=a(!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-012c6a88]{box-sizing:border-box;width:100%;padding:%?50?%;text-align:center;background:#fff}.empty--tips[data-v-012c6a88]{font-size:%?26?%;color:#999;margin:%?30?% 0 %?50?%}.empty--icon[data-v-012c6a88]{width:%?280?%}',""]),t.exports=e}}]); |