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.
1 lines
7.0 KiB
1 lines
7.0 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-cart"],{"25f8":function(t,e,n){var i=n("e2e0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("a70305ca",i,!0,{sourceMap:!1,shadowMode:!1})},"37ae":function(t,e,n){"use strict";n.r(e);var i=n("69b9"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"39f2":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(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"pages-technician"},[t._l(t.carList.list,(function(e,i){return n("v-uni-view",{key:i,staticClass:"list-item flex-center pd-lg fill-base radius-16",class:[{"b-1px-t":0!=i}]},[n("v-uni-image",{staticClass:"avatar lg radius-16",attrs:{mode:"aspectFill",src:e.cover}}),n("v-uni-view",{staticClass:"flex-1 ml-md"},[n("v-uni-view",{staticClass:"f-title c-title max-510 ellipsis"},[t._v(t._s(e.title))]),n("v-uni-view",{staticClass:"f-caption c-caption mt-sm mb-sm ellipsis"},[t._v(t._s(e.total_sale)+"人选择")]),n("v-uni-view",{staticClass:"flex-between"},[n("v-uni-view",{staticClass:"flex-y-center f-desc c-caption max-350 ellipsis"},[n("v-uni-view",{staticClass:"f-title c-warning mr-sm"},[t._v("¥"+t._s(e.price))]),t._v("/ "+t._s(e.time_long)+"分钟")],1),n("v-uni-view",{staticClass:"flex-warp"},[e.num?[n("v-uni-button",{staticClass:"reduce",style:{borderColor:t.primaryColor,color:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.changeNum(-1,i)}}},[n("i",{staticClass:"iconfont icon-jian-bold"})]),n("v-uni-button",{staticClass:"addreduce clear-btn"},[t._v(t._s(e.num||0))])]:t._e(),n("v-uni-button",{staticClass:"add",style:{background:t.primaryColor,borderColor:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.changeNum(1,i)}}},[n("i",{staticClass:"iconfont icon-jia-bold"})])],2)],1)],1)],1)})),!t.loading&&t.carList.list.length<=0?n("abnor"):t._e(),n("v-uni-view",{staticClass:"space-max-footer"}),n("v-uni-view",{staticClass:"fix fill-base pd-lg b-1px-t",staticStyle:{bottom:"0"}},[n("v-uni-view",{staticClass:"flex-between"},[n("v-uni-view",{staticClass:"flex-center"},[t._v("合计:"),n("v-uni-view",{staticClass:"f-title c-warning text-bold ml-sm"},[t._v("¥"+t._s(t.carList.car_price))])],1),n("v-uni-view",{staticClass:"order-btn flex-center f-desc c-base radius",style:{background:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:"/user/pages/order?id="+t.options.id})}}},[t._v("提交订单")])],1),n("v-uni-view",{staticClass:"space-safe"})],1)],2)},a=[]},"69b9":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("c7eb")),r=i(n("1da1")),s=i(n("5530")),c=n("26cb"),o={components:{},data:function(){return{options:{},param:{},loading:!0,lockTap:!1}},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},userInfo:function(t){return t.user.userInfo},carList:function(t){return t.order.carList}}),onLoad:function(t){this.options=t,this.initIndex()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},methods:(0,s.default)((0,s.default)({},(0,c.mapActions)(["getCarList"])),{},{initIndex:function(){var t=arguments,e=this;return(0,r.default)((0,a.default)().mark((function n(){var i;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],i||!e.$jweixin.isWechat()){n.next=5;break}return n.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:return n.next=7,e.getList();case 7:e.$util.setNavigationBarColor({bg:e.primaryColor});case 8:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.initIndex(!0)},getList:function(){var t=this;return(0,r.default)((0,a.default)().mark((function e(){var n,i;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.list,n=t.param,i=t.options,n.coach_id=i.id,t.getCarList(n),t.loading=!1,t.$util.hideAll();case 5:case"end":return e.stop()}}),e)})))()},changeNum:function(t,e){var n=this;return(0,r.default)((0,a.default)().mark((function i(){var r,s,c,o,u,l;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(r=n.carList.list[e],s=r.id,c=r.service_id,o=n.options.id,!n.lockTap){i.next=4;break}return i.abrupt("return");case 4:return n.lockTap=!0,u=t>0?"addCar":"delCar",l=t>0?{service_id:c,coach_id:o,num:1}:{id:s,num:1},i.prev=7,i.next=10,n.$api.order[u](l);case 10:return i.sent,n.lockTap=!1,i.next=14,n.getCarList({coach_id:o});case 14:i.next=19;break;case 16:i.prev=16,i.t0=i["catch"](7),n.lockTap=!1;case 19:case"end":return i.stop()}}),i,null,[[7,16]])})))()}})};e.default=o},8509:function(t,e,n){"use strict";var i=n("25f8"),a=n.n(i);a.a},ddac:function(t,e,n){"use strict";n.r(e);var i=n("39f2"),a=n("37ae");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("8509");var s=n("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"6ae0f640",null,!1,i["a"],void 0);e["default"]=c.exports},e2e0:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.pages-technician .item-avatar[data-v-6ae0f640]{width:%?88?%;height:%?88?%;background:#f4f6f8}.pages-technician .icon-close[data-v-6ae0f640]{font-size:%?50?%}.pages-technician .list-content[data-v-6ae0f640]{max-height:60vh;overflow-y:auto}.pages-technician .list-content .list-message .item-avatar[data-v-6ae0f640]{width:%?52?%;height:%?52?%;background:#f4f6f8}.pages-technician .list-content .list-message .iconfont[data-v-6ae0f640]{font-size:%?28?%;margin-right:%?5?%}.pages-technician .order-btn[data-v-6ae0f640]{width:%?200?%;height:%?72?%}',""]),t.exports=e}}]); |