You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-app/h5/static/js/pages-cart-cart~pages-cart-...

1 line
11 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(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 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},"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})},"27f6":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-de7c0c24]{box-sizing:border-box;padding:%?50?%;text-align:center;background:#fff;margin:%?20?% %?30?%;border-radius:%?16?%}.empty--tips[data-v-de7c0c24]{font-size:%?26?%;color:#999;margin:%?30?% 0 %?50?%}.empty--icon[data-v-de7c0c24]{width:%?280?%}',""]),t.exports=e},"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},"4ac0":function(t,e,n){"use strict";var a=n("75b3"),i=n.n(a);i.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},"645a":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=[]},"72e0":function(t,e,n){"use strict";var a=n("1d05"),i=n.n(a);i.a},"75b3":function(t,e,n){var a=n("27f6");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("102b55f5",a,!0,{sourceMap:!1,shadowMode:!1})},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("645a"),i=n("7985");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("4ac0");var s,r=n("f0c5"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"de7c0c24",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("bf15"),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,"4c4f370c",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:15,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},bf15: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=[]},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}}]);