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 line
7.0 KiB
1 line
7.0 KiB
1 year ago
|
(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)})))()},initRefre
|