diff --git a/h5/index.html b/h5/index.html index adde880..065ba20 100644 --- a/h5/index.html +++ b/h5/index.html @@ -1,2 +1,2 @@ 马士兵严选
\ No newline at end of file + document.write('')
\ No newline at end of file diff --git a/h5/static/js/index.b4436d31.js b/h5/static/js/index.70a1a05c.js similarity index 99% rename from h5/static/js/index.b4436d31.js rename to h5/static/js/index.70a1a05c.js index 66fd314..496256a 100644 --- a/h5/static/js/index.b4436d31.js +++ b/h5/static/js/index.70a1a05c.js @@ -1 +1 @@ -(function(e){function a(a){for(var t,s,i=a[0],c=a[1],d=a[2],g=0,l=[];g1&&void 0!==arguments[1]?arguments[1]:"";e.token=a,uni.setStorageSync(s,a)},SET_USER_INFO:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.userInfo=a,uni.setStorageSync(i,JSON.stringify(a))},SET_ADDRESS:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.address=a,uni.setStorageSync(c,JSON.stringify(a))},SET_SESSION_DATA:function(e,a){e.sessionData=a},SET_SESSION_MSG_COUNT:function(e,a){e.sessionMsgCount=a}},actions:{}});a.default=d},"44b1":function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t={onLaunch:function(){},onShow:function(){},onHide:function(){}};a.default=t},"4e55":function(e,a,n){var t=n("24fb");a=t(!1),a.push([e.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/* 垂直间距 */\n/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */.u-line-1{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button::after{border:none}.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}uni-toast{z-index:10090}uni-toast .uni-toast{z-index:10090}::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}uni-view, uni-text, uni-textarea, uni-input{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:%?28?%;color:#333}body{padding-bottom:constant(safe-area-inset-bottom);\n /* 兼容 iOS < 11.2 */padding-bottom:env(safe-area-inset-bottom)\n /* 兼容 iOS >= 11.2 */}',""]),e.exports=a},"57b9":function(e,a,n){"use strict";n.r(a);var t=n("44b1"),r=n.n(t);for(var o in t)"default"!==o&&function(e){n.d(a,e,(function(){return t[e]}))}(o);a["default"]=r.a},"5a0b":function(e,a,n){"use strict";var t;n.d(a,"b",(function(){return r})),n.d(a,"c",(function(){return o})),n.d(a,"a",(function(){return t}));var r=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("App",{attrs:{keepAliveInclude:e.keepAliveInclude}})},o=[]},"75f8":function(e,a,n){"use strict";n.r(a);var t=n("5a0b"),r=n("57b9");for(var o in r)"default"!==o&&function(e){n.d(a,e,(function(){return r[e]}))}(o);n("04c0");var s,i=n("f0c5"),c=Object(i["a"])(r["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],s);a["default"]=c.exports},9187:function(e,a,n){"use strict";var t=n("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n("96cf");var r=t(n("1da1")),o={props:{content:{type:String,default:""},confirmText:{type:String,default:"确认"},confirm:{type:Function,default:function(){}},cancelText:{type:String,default:"取消"},cancel:{type:Function,default:function(){}}},data:function(){return{show:!0}},methods:{myConfirm:function(){var e=this;return(0,r.default)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.show=!1,a.next=3,e.confirm();case 3:document.body.removeChild(e.$el);case 4:case"end":return a.stop()}}),a)})))()},myCancel:function(){var e=this;return(0,r.default)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.show=!1,a.next=3,e.cancel();case 3:document.body.removeChild(e.$el);case 4:case"end":return a.stop()}}),a)})))()}}};a.default=o},"97c4":function(e,a,n){"use strict";n.r(a);var t=n("180f"),r=n("fca3");for(var o in r)"default"!==o&&function(e){n.d(a,e,(function(){return r[e]}))}(o);var s,i=n("f0c5"),c=Object(i["a"])(r["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],s);a["default"]=c.exports},a5e2:function(e,a,n){var t=n("4e55");"string"===typeof t&&(t=[[e.i,t,""]]),t.locals&&(e.exports=t.locals);var r=n("4f06").default;r("dcecdb5c",t,!0,{sourceMap:!1,shadowMode:!1})},f147:function(e,a,n){"use strict";var t=n("4ea4"),r=t(n("5530"));n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("3417"),n("1c31");var o=t(n("e143")),s=t(n("75f8")),i=n("3762"),c=t(n("06e9")),d=t(n("4308")),g=t(n("1a9b"));o.default.use(i.router),o.default.use(c.default),o.default.use(g.default),o.default.prototype.$store=d.default,o.default.config.productionTip=!1,s.default.mpType="app";var u=new o.default((0,r.default)({},s.default));(0,i.RouterMount)(u,i.router,"#app")},fca3:function(e,a,n){"use strict";n.r(a);var t=n("9187"),r=n.n(t);for(var o in t)"default"!==o&&function(e){n.d(a,e,(function(){return t[e]}))}(o);a["default"]=r.a}}); \ No newline at end of file +(function(e){function a(a){for(var t,s,i=a[0],c=a[1],d=a[2],g=0,l=[];g1&&void 0!==arguments[1]?arguments[1]:"";e.token=a,uni.setStorageSync(s,a)},SET_USER_INFO:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.userInfo=a,uni.setStorageSync(i,JSON.stringify(a))},SET_ADDRESS:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.address=a,uni.setStorageSync(c,JSON.stringify(a))},SET_SESSION_DATA:function(e,a){e.sessionData=a},SET_SESSION_MSG_COUNT:function(e,a){e.sessionMsgCount=a}},actions:{}});a.default=d},"44b1":function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t={onLaunch:function(){},onShow:function(){},onHide:function(){}};a.default=t},"4e55":function(e,a,n){var t=n("24fb");a=t(!1),a.push([e.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/* 垂直间距 */\n/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */.u-line-1{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button{padding:0;background-color:initial;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button::after{border:none}.u-hover-class{opacity:.7}.u-primary-light{color:#ecf5ff}.u-warning-light{color:#fdf6ec}.u-success-light{color:#f5fff0}.u-error-light{color:#fef0f0}.u-info-light{color:#f4f4f5}.u-primary-light-bg{background-color:#ecf5ff}.u-warning-light-bg{background-color:#fdf6ec}.u-success-light-bg{background-color:#f5fff0}.u-error-light-bg{background-color:#fef0f0}.u-info-light-bg{background-color:#f4f4f5}.u-primary-dark{color:#398ade}.u-warning-dark{color:#f1a532}.u-success-dark{color:#53c21d}.u-error-dark{color:#e45656}.u-info-dark{color:#767a82}.u-primary-dark-bg{background-color:#398ade}.u-warning-dark-bg{background-color:#f1a532}.u-success-dark-bg{background-color:#53c21d}.u-error-dark-bg{background-color:#e45656}.u-info-dark-bg{background-color:#767a82}.u-primary-disabled{color:#9acafc}.u-warning-disabled{color:#f9d39b}.u-success-disabled{color:#a9e08f}.u-error-disabled{color:#f7b2b2}.u-info-disabled{color:#c4c6c9}.u-primary{color:#3c9cff}.u-warning{color:#f9ae3d}.u-success{color:#5ac725}.u-error{color:#f56c6c}.u-info{color:#909399}.u-primary-bg{background-color:#3c9cff}.u-warning-bg{background-color:#f9ae3d}.u-success-bg{background-color:#5ac725}.u-error-bg{background-color:#f56c6c}.u-info-bg{background-color:#909399}.u-main-color{color:#303133}.u-content-color{color:#606266}.u-tips-color{color:#909193}.u-light-color{color:#c0c4cc}.u-safe-area-inset-top{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}uni-toast{z-index:10090}uni-toast .uni-toast{z-index:10090}::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}uni-view, uni-text, uni-textarea, uni-input{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:%?28?%;color:#333}body{padding-bottom:constant(safe-area-inset-bottom);\n /* 兼容 iOS < 11.2 */padding-bottom:env(safe-area-inset-bottom)\n /* 兼容 iOS >= 11.2 */}',""]),e.exports=a},"57b9":function(e,a,n){"use strict";n.r(a);var t=n("44b1"),r=n.n(t);for(var o in t)"default"!==o&&function(e){n.d(a,e,(function(){return t[e]}))}(o);a["default"]=r.a},"5a0b":function(e,a,n){"use strict";var t;n.d(a,"b",(function(){return r})),n.d(a,"c",(function(){return o})),n.d(a,"a",(function(){return t}));var r=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("App",{attrs:{keepAliveInclude:e.keepAliveInclude}})},o=[]},"75f8":function(e,a,n){"use strict";n.r(a);var t=n("5a0b"),r=n("57b9");for(var o in r)"default"!==o&&function(e){n.d(a,e,(function(){return r[e]}))}(o);n("04c0");var s,i=n("f0c5"),c=Object(i["a"])(r["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],s);a["default"]=c.exports},9187:function(e,a,n){"use strict";var t=n("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,n("96cf");var r=t(n("1da1")),o={props:{content:{type:String,default:""},confirmText:{type:String,default:"确认"},confirm:{type:Function,default:function(){}},cancelText:{type:String,default:"取消"},cancel:{type:Function,default:function(){}}},data:function(){return{show:!0}},methods:{myConfirm:function(){var e=this;return(0,r.default)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.show=!1,a.next=3,e.confirm();case 3:document.body.removeChild(e.$el);case 4:case"end":return a.stop()}}),a)})))()},myCancel:function(){var e=this;return(0,r.default)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.show=!1,a.next=3,e.cancel();case 3:document.body.removeChild(e.$el);case 4:case"end":return a.stop()}}),a)})))()}}};a.default=o},"97c4":function(e,a,n){"use strict";n.r(a);var t=n("180f"),r=n("fca3");for(var o in r)"default"!==o&&function(e){n.d(a,e,(function(){return r[e]}))}(o);var s,i=n("f0c5"),c=Object(i["a"])(r["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],s);a["default"]=c.exports},a5e2:function(e,a,n){var t=n("4e55");"string"===typeof t&&(t=[[e.i,t,""]]),t.locals&&(e.exports=t.locals);var r=n("4f06").default;r("dcecdb5c",t,!0,{sourceMap:!1,shadowMode:!1})},f147:function(e,a,n){"use strict";var t=n("4ea4"),r=t(n("5530"));n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("3417"),n("1c31");var o=t(n("e143")),s=t(n("75f8")),i=n("3762"),c=t(n("06e9")),d=t(n("4308")),g=t(n("1a9b"));o.default.use(i.router),o.default.use(c.default),o.default.use(g.default),o.default.prototype.$store=d.default,o.default.config.productionTip=!1,s.default.mpType="app";var u=new o.default((0,r.default)({},s.default));(0,i.RouterMount)(u,i.router,"#app")},fca3:function(e,a,n){"use strict";n.r(a);var t=n("9187"),r=n.n(t);for(var o in t)"default"!==o&&function(e){n.d(a,e,(function(){return t[e]}))}(o);a["default"]=r.a}}); \ No newline at end of file diff --git a/h5/static/js/pages-cart-cart~pages-cart-tabBarCart.60b27213.js b/h5/static/js/pages-cart-cart~pages-cart-tabBarCart.60b27213.js deleted file mode 100644 index 12a687c..0000000 --- a/h5/static/js/pages-cart-cart~pages-cart-tabBarCart.60b27213.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cart-cart~pages-cart-tabBarCart"],{"021b":function(t,e,n){var a=n("bf94");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("7db7a92e",a,!0,{sourceMap:!1,shadowMode:!1})},1014:function(t,e,n){"use strict";n.r(e);var a=n("5cdd"),i=n("f341");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("7848");var o,s=n("f0c5"),c=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"3be6e25e",null,!1,a["a"],o);e["default"]=c.exports},"23cb1":function(t,e,n){var a=n("7283");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("50984869",a,!0,{sourceMap:!1,shadowMode:!1})},"5a25":function(t,e,n){"use strict";var a;n.r(e);var i,r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"ui-white-box"},[t._t("default")],2)},o=[],s=(n("c557"),n("f0c5")),c={},d=Object(s["a"])(c,r,o,!1,null,"7e14885a",null,!1,a,i);e["default"]=d.exports},"5cdd":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"header"},[t.back?a("v-uni-image",{staticClass:"header--back",attrs:{src:n("df5e")},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.back()}}}):t._e(),t._t("custom",[a("v-uni-text",{staticClass:"header--title"},[t._v(t._s(t.title))]),a("v-uni-view",{staticClass:"header--operation"},[t._t("operation")],2)])],2)},r=[]},"63c2":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var a={uLoadmore:n("c153").default,uNumberBox:n("071b").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container"},[a("UiPageHeader",{class:"head__"+t.type,attrs:{back:"inner"==t.type}},[a("template",{slot:"custom"},[a("v-uni-view",{staticClass:"head--title"},[a("v-uni-text",[t._v("购物车")]),t.list.length?a("v-uni-text",[t._v("("+t._s(t.list.length)+")")]):t._e()],1),t.list.length?["normal"==t.mode?a("v-uni-view",{staticClass:"head--edit",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleToggleMode.apply(void 0,arguments)}}},[t._v("编辑")]):a("v-uni-view",{staticClass:"head--finish",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleToggleMode.apply(void 0,arguments)}}},[t._v("完成")])]:t._e()],2)],2),t.isLoading?a("u-loadmore",{attrs:{status:"loading"}}):t._e(),t.list.length||t.isLoading?t._l(t.list,(function(e,n){return a("UiWhiteBox",{key:n,staticClass:"cart-item"},[a("v-uni-label",{staticClass:"cart-item--radio",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.handleCheckItem(e.id)}}},[a("v-uni-radio",{staticClass:"radio",attrs:{color:"#FF875B",checked:!!t.checkedIds.length&&t.checkedIds.includes(e.id)}})],1),a("v-uni-image",{staticClass:"cart-item--image",attrs:{src:e.product.mainPicture,mode:"scaleToFill"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/goodsDetail?id="+e.productId)}}}),a("v-uni-view",{staticClass:"cart-item--content",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/goodsDetail?id="+e.productId)}}},[a("v-uni-view",{staticClass:"cart-item--title"},[t._v(t._s(e.product.name))]),a("v-uni-view",{staticClass:"cart-item--props"},[t._v(t._s(e.productSku.name))]),a("v-uni-view",{staticClass:"cart-item--footer"},[a("UiMoney",{staticClass:"cart-item--price",attrs:{money:e.productSku.sellPrice,prefix:!0}}),a("v-uni-view",{staticClass:"cart-item--stepper"},[a("u-number-box",{attrs:{min:1,"button-size":"40rpx",bgColor:"#F5F6FA",value:e.number,max:e.maxBuyNum},on:{change:function(n){arguments[0]=n=t.$handleEvent(n),t.onChangeStepper(n,e)}}},[a("v-uni-text",{staticClass:"cart-item--stepper-icon",attrs:{slot:"minus"},slot:"minus"},[t._v("-")]),a("v-uni-text",{staticClass:"cart-item--stepper-icon",attrs:{slot:"plus"},slot:"plus"},[t._v("+")])],1)],1)],1)],1)],1)})):a("BsEmpty",{staticClass:"empty",attrs:{tips:"去挑点喜欢的好货吧~"}},[a("v-uni-image",{staticClass:"empty--icon",attrs:{slot:"icon",src:n("d7da")},slot:"icon"}),a("v-uni-view",{staticClass:"empty--btn",attrs:{slot:"btn"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.push("/")}},slot:"btn"},[t._v("去逛逛")])],1),t.isLoading?t._e():[a("v-uni-view",{staticClass:"title"},[t._v("为您推荐")]),a("BsChoiceGoods")],t.list.length?a("v-uni-view",{class:"footer footer__"+t.type},[a("v-uni-label",{staticClass:"all-radio",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleCheckAll.apply(void 0,arguments)}}},[a("v-uni-radio",{staticClass:"radio",attrs:{color:"#FF875B",checked:t.checkedIds.length>0&&t.checkedIds.length===t.list.length}}),a("v-uni-text",[t._v("全选")])],1),a("v-uni-view",{staticClass:"total-info"},[a("v-uni-text",[t._v("合计:")]),a("UiMoney",{staticClass:"goods-price",attrs:{money:t.totalPrice,prefix:!0}})],1),a("v-uni-view",{staticClass:"cart-action"},["edit"==t.mode?a("UiButton",{attrs:{size:"max",disable:!t.checkedIds.length},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleDelete.apply(void 0,arguments)}}},[t._v("删除")]):a("UiButton",{attrs:{type:"gradual",size:"max",disable:!t.checkedIds.length},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleOrder.apply(void 0,arguments)}}},[t._v("去结算("+t._s(t.list.length)+")")])],1)],1):t._e()],2)},r=[]},"6d5d":function(t,e,n){"use strict";n.r(e);var a=n("7dbe"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},7283: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/* 垂直间距 */uni-page-body[data-v-5cd2e8a8]{background:#f8f8f8;padding-bottom:%?240?%}body.?%PAGE?%[data-v-5cd2e8a8]{background:#f8f8f8}',""]),t.exports=e},"734f":function(t,e,n){"use strict";n.r(e);var a=n("63c2"),i=n("6d5d");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("a1cf"),n("89ff");var o,s=n("f0c5"),c=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"5cd2e8a8",null,!1,a["a"],o);e["default"]=c.exports},7848:function(t,e,n){"use strict";var a=n("021b"),i=n.n(a);i.a},"7dbe":function(t,e,n){"use strict";var a=n("4ea4");n("4de4"),n("c740"),n("4160"),n("caad"),n("d81d"),n("a434"),n("2532"),n("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("5530"));n("96cf");var r=a(n("1da1")),o=n("5767"),s=a(n("8832")),c=a(n("91cc")),d=a(n("1014")),u=n("4abc"),l=a(n("dd25")),f=a(n("359f")),p=a(n("5a25")),h="CartIds",v={components:{BsEmpty:s.default,BsChoiceGoods:c.default,UiPageHeader:d.default,UiMoney:l.default,UiButton:f.default,UiWhiteBox:p.default},props:{type:{type:String,default:"inner"}},data:function(){return{isLoading:!0,mode:"normal",list:[],total:null,checkedIds:[]}},watch:{checkedIds:{handler:function(t){uni.setStorageSync(h,t)},immediate:!1}},computed:{totalPrice:function(){var t=this,e=this.list.filter((function(e){return t.checkedIds.includes(e.id)})),n=0;return e.forEach((function(t){var e=100*t.productSku.sellPrice;n+=e*t.number})),(n/100).toFixed(2)}},methods:{open:function(t){this.getCartList(),this.isLoading=!1,this.checkedIds=uni.getStorageSync(h)},getCartList:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.next=3,(0,u.ApiGetCartList)();case 3:if(n=e.sent,a=n.error,r=n.result,!a){e.next=9;break}return uni.$u.toast(a.message),e.abrupt("return",!1);case 9:t.list=r.map((function(t){var e=t.product.singleBuyLimit,n=t.productSku.stock,a=e?Math.min(e,n||1):n;return(0,i.default)((0,i.default)({},t),{},{maxBuyNum:a})})),t.onClearInvalidId(),t.isLoading=!1;case 12:case"end":return e.stop()}}),e)})))()},onClearInvalidId:function(){var t=this;this.checkedIds=this.checkedIds.filter((function(e){return t.list.findIndex((function(t){return t.id===e}))>-1}))},handleToggleMode:function(){this.mode="normal"==this.mode?"edit":"normal"},onChangeStepper:function(t,e){var n=t.value;if(e.number==n)return uni.$u.toast("数量不能再少了"),!1;e.debounceHandle||(e.oldValue=e.number,e.debounceHandle=(0,o.Debounce)(this.updateCartNum,500)),e.number=n,e.debounceHandle(e,e.oldValue,n)},updateCartNum:function(t,e,n){var a=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var n,i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,u.ApiPutCartNum)({id:t.id,number:t.number});case 2:if(n=e.sent,i=n.error,r=n.result,!i){e.next=9;break}return a.$toast(i.message),t.number=t.sku,e.abrupt("return",!1);case 9:if(!r.isBeyondMaxLimit){e.next=13;break}return uni.$u.toast("数量超出范围"),t.number=r.canSetShoppingCartNumber,e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e)})))()},handleCheckItem:function(t){var e=this.checkedIds,n=e.findIndex((function(e){return e===t}));n<0?e.push(t):e.splice(n,1)},handleCheckAll:function(){var t=this.checkedIds,e=this.list;this.checkedIds=t.length===e.length?[]:e.map((function(t){return t.id}))},handleOrder:function(){var t=this.checkedIds;t.length&&this.$Router.push({path:"/orderSubmit",query:{mode:"cart",ids:t.join(",")}})},handleDelete:function(){var t=this,e=this.checkedIds;if(!e.length)return!1;this.$msb.confirm({content:"您确定要删除该商品吗?",confirm:function(){var n=(0,r.default)(regeneratorRuntime.mark((function n(){var a,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,u.ApiDeleteCartGoods)({idList:e.join(",")});case 2:if(a=n.sent,i=a.error,!i){n.next=7;break}return uni.$u.toast(i.message),n.abrupt("return",!1);case 7:t.list=t.list.filter((function(t){return!e.includes(t.id)})),t.checkedIds=[],t.onClearInvalidId();case 10:case"end":return n.stop()}}),n)})));function a(){return n.apply(this,arguments)}return a}()})}}};e.default=v},"80b3":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{title:{type:String,default:""},back:{type:Boolean,default:!0}}};e.default=a},"89ff":function(t,e,n){"use strict";var a=n("e280"),i=n.n(a);i.a},a1cf:function(t,e,n){"use strict";var a=n("23cb1"),i=n.n(a);i.a},bf94: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/* 垂直间距 */.header[data-v-3be6e25e]{height:%?88?%;padding:0 %?40?%;display:flex;justify-content:space-between;align-items:center;background:#f8f8f8;position:-webkit-sticky;position:sticky;top:var(--window-top);z-index:999}.header--back[data-v-3be6e25e]{width:%?14?%;height:%?28?%;margin-right:%?36?%}.header--title[data-v-3be6e25e]{flex:1;text-align:center;font-size:%?36?%;font-weight:700}.header--operation[data-v-3be6e25e]{position:absolute;right:%?40?%;top:0}',""]),t.exports=e},c204: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/* 垂直间距 */.head[data-v-5cd2e8a8]{height:%?88?%;display:flex;justify-content:space-between;align-items:center;padding:0 %?30?%;background-color:#fff;position:-webkit-sticky;position:sticky;top:var(--window-top);z-index:999}.head--title uni-text[data-v-5cd2e8a8]{font-size:%?36?%;font-weight:700}.head--totla[data-v-5cd2e8a8]{font-size:%?36?%;color:#333}.head--edit[data-v-5cd2e8a8], .head--finish[data-v-5cd2e8a8]{font-size:%?28?%;color:#999}.head--finish[data-v-5cd2e8a8]{color:#ff512b}.head__tabBar[data-v-5cd2e8a8]{justify-content:center}.head__tabBar .head--edit[data-v-5cd2e8a8], .head__tabBar .head--finish[data-v-5cd2e8a8]{position:absolute;right:%?30?%}.cart-item[data-v-5cd2e8a8]{width:%?690?%;display:flex;align-items:center;padding:%?50?% %?40?% %?40?% %?24?%;margin:0 auto %?20?%}.cart-item--radio[data-v-5cd2e8a8]{width:%?56?%;height:%?80?%;line-height:%?80?%;margin-right:%?10?%;text-align:center}.cart-item--image[data-v-5cd2e8a8]{width:%?170?%;height:%?170?%;display:block;border-radius:%?12?%}.cart-item--content[data-v-5cd2e8a8]{flex:1;padding-left:%?24?%}.cart-item--title[data-v-5cd2e8a8]{font-size:%?28?%;line-height:%?36?%;font-weight:700;max-height:%?76?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.cart-item--props[data-v-5cd2e8a8]{margin-top:%?14?%;height:%?40?%;color:#999;font-size:%?24?%;overflow:hidden}.cart-item--props-item[data-v-5cd2e8a8]{display:inline-block;margin-right:%?14?%}.cart-item--footer[data-v-5cd2e8a8]{display:flex;justify-content:space-between;align-items:center;margin-top:%?20?%}.cart-item--stepper-icon[data-v-5cd2e8a8]{font-size:%?38?%;color:#ccc;margin:0 %?14?%}.cart-item--stepper-input[data-v-5cd2e8a8]{height:%?40?%;margin:0 %?14?%}.empty[data-v-5cd2e8a8]{background:#fff}.empty--btn[data-v-5cd2e8a8]{width:%?220?%;margin:0 auto %?10?% auto;font-size:%?28?%;height:%?64?%;line-height:%?64?%;text-align:center;color:#333;border-radius:%?50?%;border:1px solid #c0b9b9}.empty--icon[data-v-5cd2e8a8]{width:%?304?%;height:%?192?%}.title[data-v-5cd2e8a8]{font-size:%?32?%;text-align:center;margin:%?51?% auto %?30?% auto;display:flex;align-items:center;justify-content:space-between;width:%?500?%}.title[data-v-5cd2e8a8]::after, .title[data-v-5cd2e8a8]::before{display:inline-block;content:"";width:%?160?%;height:%?2?%;background:linear-gradient(90deg,#ccc,hsla(0,0%,80%,0))}.title[data-v-5cd2e8a8]::before{background:linear-gradient(270deg,#ccc,hsla(0,0%,80%,0))}.footer[data-v-5cd2e8a8]{display:flex;align-items:center;height:%?140?%;background:#fff;padding:0 %?30?%;position:fixed;bottom:%?120?%;left:0;right:0;z-index:11;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.footer__inner[data-v-5cd2e8a8]{bottom:0}.footer .all-radio[data-v-5cd2e8a8]{width:%?140?%;display:flex;align-items:center}.footer .all-radio uni-text[data-v-5cd2e8a8]{color:#666;font-size:%?28?%}.footer .all-radio .radio[data-v-5cd2e8a8]{margin-right:%?5?%}.footer .total-info[data-v-5cd2e8a8]{flex:1;display:flex;align-items:center;justify-content:flex-end;padding-right:%?30?%}.footer .total-info uni-text[data-v-5cd2e8a8]{font-size:%?28?%;color:#666}[data-v-5cd2e8a8] .cart-item--price uni-text{font-size:%?32?%;color:#ff512b;font-weight:700}[data-v-5cd2e8a8] .cart-item--price .ui-money--prefix{font-size:%?24?%}[data-v-5cd2e8a8] .uni-radio-input{width:%?36?%;height:%?36?%}[data-v-5cd2e8a8] .goods-price{margin-bottom:%?10?%}[data-v-5cd2e8a8] .goods-price uni-text{font-size:%?40?%;color:#ff512b;font-weight:700}[data-v-5cd2e8a8] .goods-price .ui-money--prefix{font-size:%?32?%}',""]),t.exports=e},c557:function(t,e,n){"use strict";var a=n("dd95"),i=n.n(a);i.a},c997: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/* 垂直间距 */.ui-white-box[data-v-7e14885a]{margin:%?20?% %?30?%;background:#fff;border-radius:%?20?%}',""]),t.exports=e},d7da:function(t,e,n){t.exports=n.p+"static/img/cart.5b9fd199.png"},dd95:function(t,e,n){var a=n("c997");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("36cf71ae",a,!0,{sourceMap:!1,shadowMode:!1})},df5e:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAA4CAMAAADZ7miGAAAAAXNSR0IArs4c6QAAADxQTFRFAAAAMDAwMDAwNTU1NDQ0MjIyMjIyMjIyNDQ0MzMzMzMzMzMzMzMzMzMzMjIyMzMzMzMzMzMzMzMzMzMzAGSrYgAAABN0Uk5TABAgMEBgcH+An6CvsL/Az9Dv8AptTWoAAADHSURBVDjLzdXRDoMgDIXhCtOhokDP+7/rLubAhLaJXph5+0fCh6ESic87YXVyohUAilxnAACi1KZvQxHaeDRw33z5xX5ZVxu6DQ2ptrF7castaAgAi4oAso5AHjpEbex1YN9MRGvTJUSobb+LcH+NeBkIijqCSEecYpFiXVa6Gm1Dqd/QibIJCy+1zkLNxvHRkI2DJ88WqH1sCTQ+AAr3QfBXuTaoXft0GbTfBznWx9sZFK2RWqxhzOIYX4wxfoBY+z0E5ujoAyE0JzXNCO3eAAAAAElFTkSuQmCC"},e280:function(t,e,n){var a=n("c204");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("edbdd32c",a,!0,{sourceMap:!1,shadowMode:!1})},f341:function(t,e,n){"use strict";n.r(e);var a=n("80b3"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a}}]); \ No newline at end of file diff --git a/h5/static/js/pages-cart-cart~pages-cart-tabBarCart.aecb1cb5.js b/h5/static/js/pages-cart-cart~pages-cart-tabBarCart.aecb1cb5.js new file mode 100644 index 0000000..0689f8d --- /dev/null +++ b/h5/static/js/pages-cart-cart~pages-cart-tabBarCart.aecb1cb5.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cart-cart~pages-cart-tabBarCart"],{"00d7":function(t,e,n){"use strict";var a=n("cbff"),i=n.n(a);i.a},"021b":function(t,e,n){var a=n("bf94");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("7db7a92e",a,!0,{sourceMap:!1,shadowMode:!1})},1014:function(t,e,n){"use strict";n.r(e);var a=n("5cdd"),i=n("f341");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("7848");var c,o=n("f0c5"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"3be6e25e",null,!1,a["a"],c);e["default"]=s.exports},"29fd":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/* 垂直间距 */.head[data-v-8282c8ec]{height:%?88?%;display:flex;justify-content:space-between;align-items:center;padding:0 %?30?%;background-color:#fff;position:-webkit-sticky;position:sticky;top:var(--window-top);z-index:999}.head--title uni-text[data-v-8282c8ec]{font-size:%?36?%;font-weight:700}.head--totla[data-v-8282c8ec]{font-size:%?36?%;color:#333}.head--edit[data-v-8282c8ec], .head--finish[data-v-8282c8ec]{font-size:%?28?%;color:#999}.head--finish[data-v-8282c8ec]{color:#ff512b}.head__tabBar[data-v-8282c8ec]{justify-content:center}.head__tabBar .head--edit[data-v-8282c8ec], .head__tabBar .head--finish[data-v-8282c8ec]{position:absolute;right:%?30?%}.cart-item[data-v-8282c8ec]{width:%?690?%;display:flex;align-items:center;padding:%?50?% %?40?% %?40?% %?24?%;margin:0 auto %?20?%}.cart-item--radio[data-v-8282c8ec]{width:%?56?%;height:%?80?%;line-height:%?80?%;margin-right:%?10?%;text-align:center}.cart-item--image[data-v-8282c8ec]{width:%?170?%;height:%?170?%;display:block;border-radius:%?12?%}.cart-item--content[data-v-8282c8ec]{flex:1;padding-left:%?24?%}.cart-item--title[data-v-8282c8ec]{font-size:%?28?%;line-height:%?36?%;font-weight:700;max-height:%?76?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.cart-item--props[data-v-8282c8ec]{margin-top:%?14?%;height:%?40?%;color:#999;font-size:%?24?%;overflow:hidden}.cart-item--props-item[data-v-8282c8ec]{display:inline-block;margin-right:%?14?%}.cart-item--footer[data-v-8282c8ec]{display:flex;justify-content:space-between;align-items:center;margin-top:%?20?%}.cart-item--stepper-icon[data-v-8282c8ec]{font-size:%?38?%;color:#ccc;margin:0 %?14?%}.cart-item--stepper-input[data-v-8282c8ec]{height:%?40?%;margin:0 %?14?%}.empty[data-v-8282c8ec]{background:#fff}.empty--btn[data-v-8282c8ec]{width:%?220?%;margin:0 auto %?10?% auto;font-size:%?28?%;height:%?64?%;line-height:%?64?%;text-align:center;color:#333;border-radius:%?50?%;border:1px solid #c0b9b9}.empty--icon[data-v-8282c8ec]{width:%?304?%;height:%?192?%}.title[data-v-8282c8ec]{font-size:%?32?%;text-align:center;margin:%?51?% auto %?30?% auto;display:flex;align-items:center;justify-content:space-between;width:%?500?%}.title[data-v-8282c8ec]::after, .title[data-v-8282c8ec]::before{display:inline-block;content:"";width:%?160?%;height:%?2?%;background:linear-gradient(90deg,#ccc,hsla(0,0%,80%,0))}.title[data-v-8282c8ec]::before{background:linear-gradient(270deg,#ccc,hsla(0,0%,80%,0))}.footer[data-v-8282c8ec]{display:flex;align-items:center;height:%?140?%;background:#fff;padding:0 %?30?%;position:fixed;bottom:%?120?%;left:0;right:0;z-index:11;margin-bottom:constant(safe-area-inset-bottom);margin-bottom:env(safe-area-inset-bottom)}.footer__inner[data-v-8282c8ec]{bottom:0}.footer .all-radio[data-v-8282c8ec]{width:%?140?%;display:flex;align-items:center}.footer .all-radio uni-text[data-v-8282c8ec]{color:#666;font-size:%?28?%}.footer .all-radio .radio[data-v-8282c8ec]{margin-right:%?5?%}.footer .total-info[data-v-8282c8ec]{flex:1;display:flex;align-items:center;justify-content:flex-end;padding-right:%?30?%}.footer .total-info uni-text[data-v-8282c8ec]{font-size:%?28?%;color:#666}[data-v-8282c8ec] .cart-item--price uni-text{font-size:%?32?%;color:#ff512b;font-weight:700}[data-v-8282c8ec] .cart-item--price .ui-money--prefix{font-size:%?24?%}[data-v-8282c8ec] .uni-radio-input{width:%?36?%;height:%?36?%}[data-v-8282c8ec] .goods-price{margin-bottom:%?10?%}[data-v-8282c8ec] .goods-price uni-text{font-size:%?40?%;color:#ff512b;font-weight:700}[data-v-8282c8ec] .goods-price .ui-money--prefix{font-size:%?32?%}',""]),t.exports=e},"5a25":function(t,e,n){"use strict";var a;n.r(e);var i,r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"ui-white-box"},[t._t("default")],2)},c=[],o=(n("c557"),n("f0c5")),s={},d=Object(o["a"])(s,r,c,!1,null,"7e14885a",null,!1,a,i);e["default"]=d.exports},"5cdd":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"header"},[t.back?a("v-uni-image",{staticClass:"header--back",attrs:{src:n("df5e")},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.back()}}}):t._e(),t._t("custom",[a("v-uni-text",{staticClass:"header--title"},[t._v(t._s(t.title))]),a("v-uni-view",{staticClass:"header--operation"},[t._t("operation")],2)])],2)},r=[]},"6b11":function(t,e,n){var a=n("29fd");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("498a49ab",a,!0,{sourceMap:!1,shadowMode:!1})},"6d5d":function(t,e,n){"use strict";n.r(e);var a=n("7dbe"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},"734f":function(t,e,n){"use strict";n.r(e);var a=n("8d89"),i=n("6d5d");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("00d7"),n("bef5");var c,o=n("f0c5"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"8282c8ec",null,!1,a["a"],c);e["default"]=s.exports},7848:function(t,e,n){"use strict";var a=n("021b"),i=n.n(a);i.a},"7dbe":function(t,e,n){"use strict";var a=n("4ea4");n("4de4"),n("c740"),n("4160"),n("caad"),n("d81d"),n("a434"),n("2532"),n("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("5530"));n("96cf");var r=a(n("1da1")),c=n("5767"),o=a(n("8832")),s=a(n("91cc")),d=a(n("1014")),u=n("4abc"),l=a(n("dd25")),f=a(n("359f")),p=a(n("5a25")),h="CartIds",v={components:{BsEmpty:o.default,BsChoiceGoods:s.default,UiPageHeader:d.default,UiMoney:l.default,UiButton:f.default,UiWhiteBox:p.default},props:{type:{type:String,default:"inner"}},data:function(){return{isLoading:!0,mode:"normal",list:[],total:null,checkedIds:[]}},watch:{checkedIds:{handler:function(t){uni.setStorageSync(h,t)},immediate:!1}},computed:{totalPrice:function(){var t=this,e=this.list.filter((function(e){return t.checkedIds.includes(e.id)})),n=0;return e.forEach((function(t){var e=100*t.productSku.sellPrice;n+=e*t.number})),(n/100).toFixed(2)}},methods:{open:function(t){this.getCartList(),this.isLoading=!1,this.checkedIds=uni.getStorageSync(h)||[]},getCartList:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.next=3,(0,u.ApiGetCartList)();case 3:if(n=e.sent,a=n.error,r=n.result,!a){e.next=9;break}return uni.$u.toast(a.message),e.abrupt("return",!1);case 9:t.list=r.map((function(t){var e=t.product.singleBuyLimit,n=t.productSku.stock,a=e?Math.min(e,n||1):n;return(0,i.default)((0,i.default)({},t),{},{maxBuyNum:a})})),t.onClearInvalidId(),t.isLoading=!1;case 12:case"end":return e.stop()}}),e)})))()},onClearInvalidId:function(){var t=this;this.checkedIds=this.checkedIds.filter((function(e){return t.list.findIndex((function(t){return t.id===e}))>-1}))},handleToggleMode:function(){this.mode="normal"==this.mode?"edit":"normal"},onChangeStepper:function(t,e){var n=t.value;if(e.number==n)return uni.$u.toast("数量不能再少了"),!1;e.debounceHandle||(e.oldValue=e.number,e.debounceHandle=(0,c.Debounce)(this.updateCartNum,500)),e.number=n,e.debounceHandle(e,e.oldValue,n)},updateCartNum:function(t,e,n){var a=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var n,i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,u.ApiPutCartNum)({id:t.id,number:t.number});case 2:if(n=e.sent,i=n.error,r=n.result,!i){e.next=9;break}return a.$toast(i.message),t.number=t.sku,e.abrupt("return",!1);case 9:if(!r.isBeyondMaxLimit){e.next=13;break}return uni.$u.toast("数量超出范围"),t.number=r.canSetShoppingCartNumber,e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e)})))()},handleCheckItem:function(t){var e=this.checkedIds,n=e.findIndex((function(e){return e===t}));n<0?e.push(t):e.splice(n,1)},handleCheckAll:function(){var t=this.checkedIds,e=this.list;this.checkedIds=t.length===e.length?[]:e.map((function(t){return t.id}))},handleOrder:function(){var t=this.checkedIds;t.length&&this.$Router.push({path:"/orderSubmit",query:{mode:"cart",ids:t.join(",")}})},handleDelete:function(){var t=this,e=this.checkedIds;if(!e.length)return!1;this.$msb.confirm({content:"您确定要删除该商品吗?",confirm:function(){var n=(0,r.default)(regeneratorRuntime.mark((function n(){var a,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,u.ApiDeleteCartGoods)({idList:e.join(",")});case 2:if(a=n.sent,i=a.error,!i){n.next=7;break}return uni.$u.toast(i.message),n.abrupt("return",!1);case 7:t.list=t.list.filter((function(t){return!e.includes(t.id)})),t.checkedIds=[],t.onClearInvalidId();case 10:case"end":return n.stop()}}),n)})));function a(){return n.apply(this,arguments)}return a}()})}}};e.default=v},"80b3":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{title:{type:String,default:""},back:{type:Boolean,default:!0}}};e.default=a},"8d89":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var a={uLoadmore:n("c153").default,uNumberBox:n("071b").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container"},[a("UiPageHeader",{class:"head__"+t.type,attrs:{back:"inner"==t.type}},[a("template",{slot:"custom"},[a("v-uni-view",{staticClass:"head--title"},[a("v-uni-text",[t._v("购物车")]),t.list.length?a("v-uni-text",[t._v("("+t._s(t.list.length)+")")]):t._e()],1),t.list.length?["normal"==t.mode?a("v-uni-view",{staticClass:"head--edit",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleToggleMode.apply(void 0,arguments)}}},[t._v("编辑")]):a("v-uni-view",{staticClass:"head--finish",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleToggleMode.apply(void 0,arguments)}}},[t._v("完成")])]:t._e()],2)],2),t.isLoading?a("u-loadmore",{attrs:{status:"loading"}}):t._e(),t.list.length||t.isLoading?t._l(t.list,(function(e,n){return a("UiWhiteBox",{key:n,staticClass:"cart-item"},[a("v-uni-label",{staticClass:"cart-item--radio",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.handleCheckItem(e.id)}}},[a("v-uni-radio",{staticClass:"radio",attrs:{color:"#FF875B",checked:!!t.checkedIds.length&&t.checkedIds.includes(e.id)}})],1),a("v-uni-image",{staticClass:"cart-item--image",attrs:{src:e.product.mainPicture,mode:"scaleToFill"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/goodsDetail?id="+e.productId)}}}),a("v-uni-view",{staticClass:"cart-item--content",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/goodsDetail?id="+e.productId)}}},[a("v-uni-view",{staticClass:"cart-item--title"},[t._v(t._s(e.product.name))]),a("v-uni-view",{staticClass:"cart-item--props"},[t._v(t._s(e.productSku.name))]),a("v-uni-view",{staticClass:"cart-item--footer"},[a("UiMoney",{staticClass:"cart-item--price",attrs:{money:e.productSku.sellPrice,prefix:!0}}),a("v-uni-view",{staticClass:"cart-item--stepper"},[a("u-number-box",{attrs:{min:1,"button-size":"40rpx",bgColor:"#F5F6FA",value:e.number,max:e.maxBuyNum},on:{change:function(n){arguments[0]=n=t.$handleEvent(n),t.onChangeStepper(n,e)}}},[a("v-uni-text",{staticClass:"cart-item--stepper-icon",attrs:{slot:"minus"},slot:"minus"},[t._v("-")]),a("v-uni-text",{staticClass:"cart-item--stepper-icon",attrs:{slot:"plus"},slot:"plus"},[t._v("+")])],1)],1)],1)],1)],1)})):a("BsEmpty",{staticClass:"empty",attrs:{tips:"去挑点喜欢的好货吧~"}},[a("v-uni-image",{staticClass:"empty--icon",attrs:{slot:"icon",src:n("d7da")},slot:"icon"}),a("v-uni-view",{staticClass:"empty--btn",attrs:{slot:"btn"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.push("/")}},slot:"btn"},[t._v("去逛逛")])],1),t.isLoading?t._e():[a("v-uni-view",{staticClass:"title"},[t._v("为您推荐")]),a("BsChoiceGoods")],t.list.length?a("v-uni-view",{class:"footer footer__"+t.type},[a("v-uni-label",{staticClass:"all-radio",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleCheckAll.apply(void 0,arguments)}}},[a("v-uni-radio",{staticClass:"radio",attrs:{color:"#FF875B",checked:t.checkedIds.length>0&&t.checkedIds.length===t.list.length}}),a("v-uni-text",[t._v("全选")])],1),a("v-uni-view",{staticClass:"total-info"},[a("v-uni-text",[t._v("合计:")]),a("UiMoney",{staticClass:"goods-price",attrs:{money:t.totalPrice,prefix:!0}})],1),a("v-uni-view",{staticClass:"cart-action"},["edit"==t.mode?a("UiButton",{attrs:{size:"max",disable:!t.checkedIds.length},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleDelete.apply(void 0,arguments)}}},[t._v("删除")]):a("UiButton",{attrs:{type:"gradual",size:"max",disable:!t.checkedIds.length},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleOrder.apply(void 0,arguments)}}},[t._v("去结算("+t._s(t.list.length)+")")])],1)],1):t._e()],2)},r=[]},9157: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/* 垂直间距 */uni-page-body[data-v-8282c8ec]{background:#f8f8f8;padding-bottom:%?240?%}body.?%PAGE?%[data-v-8282c8ec]{background:#f8f8f8}',""]),t.exports=e},bef5:function(t,e,n){"use strict";var a=n("6b11"),i=n.n(a);i.a},bf94: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/* 垂直间距 */.header[data-v-3be6e25e]{height:%?88?%;padding:0 %?40?%;display:flex;justify-content:space-between;align-items:center;background:#f8f8f8;position:-webkit-sticky;position:sticky;top:var(--window-top);z-index:999}.header--back[data-v-3be6e25e]{width:%?14?%;height:%?28?%;margin-right:%?36?%}.header--title[data-v-3be6e25e]{flex:1;text-align:center;font-size:%?36?%;font-weight:700}.header--operation[data-v-3be6e25e]{position:absolute;right:%?40?%;top:0}',""]),t.exports=e},c557:function(t,e,n){"use strict";var a=n("dd95"),i=n.n(a);i.a},c997: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/* 垂直间距 */.ui-white-box[data-v-7e14885a]{margin:%?20?% %?30?%;background:#fff;border-radius:%?20?%}',""]),t.exports=e},cbff:function(t,e,n){var a=n("9157");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("11017baa",a,!0,{sourceMap:!1,shadowMode:!1})},d7da:function(t,e,n){t.exports=n.p+"static/img/cart.5b9fd199.png"},dd95:function(t,e,n){var a=n("c997");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("36cf71ae",a,!0,{sourceMap:!1,shadowMode:!1})},df5e:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAA4CAMAAADZ7miGAAAAAXNSR0IArs4c6QAAADxQTFRFAAAAMDAwMDAwNTU1NDQ0MjIyMjIyMjIyNDQ0MzMzMzMzMzMzMzMzMzMzMjIyMzMzMzMzMzMzMzMzMzMzAGSrYgAAABN0Uk5TABAgMEBgcH+An6CvsL/Az9Dv8AptTWoAAADHSURBVDjLzdXRDoMgDIXhCtOhokDP+7/rLubAhLaJXph5+0fCh6ESic87YXVyohUAilxnAACi1KZvQxHaeDRw33z5xX5ZVxu6DQ2ptrF7castaAgAi4oAso5AHjpEbex1YN9MRGvTJUSobb+LcH+NeBkIijqCSEecYpFiXVa6Gm1Dqd/QibIJCy+1zkLNxvHRkI2DJ88WqH1sCTQ+AAr3QfBXuTaoXft0GbTfBznWx9sZFK2RWqxhzOIYX4wxfoBY+z0E5ujoAyE0JzXNCO3eAAAAAElFTkSuQmCC"},f341:function(t,e,n){"use strict";n.r(e);var a=n("80b3"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a}}]); \ No newline at end of file