canyin-project/ybcy/views/mobile/static/js/yb_wm-index-order-index.3c97dcf9.js
2024-11-01 16:07:54 +08:00

1 line
30 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["yb_wm-index-order-index"],{"1ce6":function(t,e,a){"use strict";var i=a("4ea4");a("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var n=i(a("1da1")),s=i(a("5530")),r=a("2f62"),o=a("4789"),c=i(a("8bb1")),u=i(a("9d64")),l={name:"tabbar",components:{bkB:u.default},props:{co:{type:Object,default:function(){return{}}}},data:function(){return{stateArr:["","等待支付","已付款","已接单","配送中","已完成","已评价","已取消","门店已拒单","申请退款中","退款已通过","退款已拒绝"],ztstateArr:["","等待支付","已付款","已接单","待取货","已完成","已评价","已取消","门店已拒单","申请退款中","退款已通过","退款已拒绝"],stime:""}},mixins:[o.utilMixins],computed:(0,s.default)({},(0,r.mapState)({orderset:function(t){return t.config.orderset}})),methods:{onClick:function(){this.$emit("click")},getState:function(){return 10!=this.co.deliveryMode?this.stateArr[+this.co.state]:this.ztstateArr[+this.co.state]},stateColor:function(){var t="";switch(+this.co.state){case 1:t=this.tColor;break;default:t="#999"}return t},djs:function(t){var e=this;if(1==this.co.state&&1==this.orderset.autoClose){var a=this.dateToTime(),i=+t+60*this.orderset.closeTime;if(i>a){var s=c.default.countDownTime(i-a);this.stime=",剩余 ".concat(s[2],":").concat(s[3]),this.dsq=setInterval((0,n.default)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:i-=1,i==a&&(clearInterval(e.dsq),e.$emit("operation",{t:"qxdd",co:e.co})),n=c.default.countDownTime(i-a),e.stime=",剩余 ".concat(n[2],":").concat(n[3]);case 4:case"end":return t.stop()}}),t)}))),1e3)}}}},created:function(){var t=this;return(0,n.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.djs(t.co.createdAt);case 1:case"end":return e.stop()}}),e)})))()},destroyed:function(){clearInterval(this.dsq)}};e.default=l},2999:function(t,e,a){var i=a("ad66");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("70455db4",i,!0,{sourceMap:!1,shadowMode:!1})},"2b5f":function(t,e,a){"use strict";a.r(e);var i=a("825d"),n=a("ea82");for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("5317");var r,o=a("f0c5"),c=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"ba8774e8",null,!1,i["a"],r);e["default"]=c.exports},"2dc3":function(t,e,a){"use strict";a.r(e);var i=a("81f9"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"347a":function(t,e,a){"use strict";var i=a("5756"),n=a.n(i);n.a},3862:function(t,e,a){"use strict";var i=a("2999"),n=a.n(i);n.a},"3d9b":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-radio-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.radioChange.apply(void 0,arguments)}},model:{value:t.radioVal,callback:function(e){t.radioVal=e},expression:"radioVal"}},[1==t.rtype?a("v-uni-view",{staticClass:"f-raw"},t._l(t.arr,(function(e,i){return a("v-uni-label",{key:i,staticClass:"weui-cell mr-r1i noafter",style:[t.rsname]},[a("v-uni-view",{staticClass:"mr10"},[a("v-uni-radio",{staticClass:"weui-check",attrs:{value:e.value,checked:e.value==t.radioVal}}),a("v-uni-text",{staticClass:"iconfont f40",class:e.value==t.radioVal?"icongx":"iconwgx",style:{color:e.value==t.radioVal?t.color||t.tColor:""}})],1),a("v-uni-view",[t._v(t._s(e.name))])],1)})),1):2==t.rtype?a("v-uni-view",t._l(t.arr,(function(e,i){return a("v-uni-label",{key:i},[a("mg-cell",{attrs:{isr:"1",btt:e.name,bttc:"c3 "+t.bttc,cname:"p253",last:t.last||i==t.arr.length-1}},[1==t.ranktype?[a("v-uni-view",{staticClass:"f-y-c",attrs:{slot:"ft"},slot:"ft"},[a("v-uni-radio",{staticClass:"weui-check",attrs:{value:e.value,checked:e.value==t.radioVal}}),a("v-uni-text",{staticClass:"iconfont f40",class:e.value==t.radioVal?"icongx":"iconwgx",style:{color:e.value==t.radioVal?t.color||t.tColor:""}})],1)]:[a("v-uni-view",{staticClass:"f-y-c mr30",attrs:{slot:"hd"},slot:"hd"},[a("v-uni-radio",{staticClass:"weui-check",attrs:{value:e.value,checked:e.value==t.radioVal}}),a("v-uni-text",{staticClass:"iconfont f40",class:e.value==t.radioVal?"icongx":"iconwgx",style:{color:e.value==t.radioVal?t.color||t.tColor:""}})],1)]],2)],1)})),1):t._e()],1)},s=[]},"44d8":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"bf bs20 mb20 p-r",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.go({t:1,url:"/yb_wm/order/order-dl?id="+t.co.id})}}},[10==t.co.deliveryMode||1==t.co.appointment?[a("v-uni-view",{staticClass:"posi-a molta cf",class:{yd:1==t.co.appointment}}),a("v-uni-view",{staticClass:"posi-a moltat cf f22 t-c"},[t._v(t._s(1==t.co.appointment?"预":"自"))])]:t._e(),a("mg-cell",{attrs:{cname:"p23",noc:"1",last:"1",img:t.co.storeIcon,w:"84",h:"84",brs:"8rpx"}},[a("template",{slot:"bd"},[a("v-uni-view",{staticClass:"f-bt"},[a("v-uni-view",{staticClass:"f-g-1 f30 f-y-c"},[a("v-uni-text",{staticClass:"t-o-e f32"},[t._v(t._s(t.co.storeName)),1==t.orderset.oIdOpen?[t._v("("),a("v-uni-text",{style:{color:t.tColor}},[t._v("#"+t._s(10==t.co.deliveryMode?t.co.mId:t.co.oId))]),t._v(")")]:t._e()],2)],1),a("v-uni-view",{staticClass:"f-g-0",style:{color:t.stateColor()}},[t._v(t._s(""+t.getState()+t.stime))])],1),a("v-uni-view",{staticClass:"mt5 f-x-bt f22 c9"},[a("v-uni-text",[t._v("下单时间:"+t._s(t.timeToDate(t.co.createdAt)))]),t.co.takeNo?a("v-uni-text",[t._v(t._s(t.system.custom.orderNumber)+"#"+t._s(t.co.takeNo))]):t._e(),7==t.co.state?a("v-uni-text",[t._v("订单超时未支付")]):t._e()],1),a("v-uni-view",{staticClass:"f-row mt20 p-r"},[a("v-uni-scroll-view",{staticClass:"f-1 ws-n f26",attrs:{"scroll-x":"true"}},[t._l(t.co.goodsArr,(function(e,i){return a("v-uni-view",{key:i,staticClass:"dis-in mobdli mr20"},[a("v-uni-view",{staticClass:"img bs10"},[a("mg-img",{attrs:{src:e.icon}})],1),a("v-uni-view",{staticClass:"mt10 f26 t-o-e"},[t._v(t._s(e.name))])],1)})),a("v-uni-view",{staticClass:"dis-in mobdli mr20"})],2),a("v-uni-view",{staticClass:"p-a r0 t0 mobdrc f-c-xc t-r",class:{zbyy:t.co.goodsArr.length>2}},[a("v-uni-view",{staticClass:"f34 wbba l-n"},[a("v-uni-text",{staticClass:"f24"},[t._v(t._s(t.co.symbol||t.sl))]),t._v(t._s(Number(t.co.money)))],1),a("v-uni-view",{staticClass:"f26 c9 mt5"},[t._v("共"+t._s(t.co.num)+"件")])],1)],1)],1)],2),10==t.co.deliveryMode&&4==t.co.state?a("v-uni-view",{staticClass:"t-r p03"},[t._v("取货码:"),a("v-uni-text",{staticClass:"wei",style:{color:t.tColor}},[t._v(t._s(t.co.selfCode))])],1):t._e(),a("v-uni-view",{staticClass:"p23 f-y-c"},[a("v-uni-view",{staticClass:"f-1"}),a("v-uni-view",{staticClass:"f-x-e"},[1==t.co.state?a("v-uni-view",{staticClass:"obtn",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$emit("operation",{t:"qxdd",co:t.co,tip:1})}}},[t._v("取消订单")]):t._e(),1==t.co.state?a("v-uni-view",{staticClass:"obtn cf",style:{color:t.tColor,borderColor:t.tColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$emit("operation",{t:"ljzf",co:t.co})}}},[t._v("立即支付")]):t._e(),1==t.co.isTk?a("v-uni-view",{staticClass:"obtn",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$emit("operation",{t:"sqtk",co:t.co})}}},[t._v(t._s((t.co.state,"取消订单")))]):t._e(),2!=t.co.state&&3!=t.co.state&&4!=t.co.state||10==t.co.deliveryMode?t._e():a("v-uni-view",{staticClass:"obtn cf",style:{color:t.tColor,borderColor:t.tColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$emit("operation",{t:"cd",co:t.co})}}},[t._v("催单")]),3==t.co.state||7==t.co.state?a("v-uni-view",{staticClass:"obtn",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$emit("operation",{t:"lxsj",co:t.co})}}},[t._v("联系商家")]):t._e(),4==t.co.state?a("v-uni-view",{staticClass:"obtn cf",style:{color:t.tColor,borderColor:t.tColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$emit("operation",{t:"qrsh",co:t.co})}}},[t._v("确认收货")]):t._e(),5==t.co.state&&"1"==t.orderset.orderEvaluate?a("v-uni-view",{staticClass:"obtn cf",style:{color:t.tColor,borderColor:t.tColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$emit("operation",{t:"pj",co:t.co})}}},[t._v("评价")]):t._e(),9==t.co.state?a("v-uni-view",{staticClass:"obtn cf",style:{color:t.tColor,borderColor:t.tColor}},[t._v("退款中")]):t._e(),10==t.co.state?a("v-uni-view",{staticClass:"obtn"},[t._v("已退款")]):t._e(),11==t.co.state?a("v-uni-view",{staticClass:"obtn c9"},[t._v("已拒绝")]):t._e()],1)],1)],2)},s=[]},"46d9":function(t,e,a){"use strict";a.r(e);var i=a("44d8"),n=a("6c6c");for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("67aa");var r,o=a("f0c5"),c=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"a10502fe",null,!1,i["a"],r);e["default"]=c.exports},4788:function(t,e,a){var i=a("8cbd");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("6c6fb8e8",i,!0,{sourceMap:!1,shadowMode:!1})},5317:function(t,e,a){"use strict";var i=a("996d"),n=a.n(i);n.a},5756:function(t,e,a){var i=a("cf85");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("5e47a0b3",i,!0,{sourceMap:!1,shadowMode:!1})},"5ebf":function(t,e,a){"use strict";var i=a("4788"),n=a.n(i);n.a},"67aa":function(t,e,a){"use strict";var i=a("8ea0"),n=a.n(i);n.a},"6c6c":function(t,e,a){"use strict";a.r(e);var i=a("1ce6"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"771f":function(t,e,a){"use strict";a.r(e);var i=a("e102"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"81f9":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("f3fc")),s={components:{MgCell:n.default},props:{arr:"",value:"",color:"",rtype:{type:String,default:"1"},rsname:Object,ranktype:{type:String,default:"1"},bttc:{type:String,default:""},last:{type:String,default:""}},data:function(){return{items:[],current:""}},computed:{radioVal:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},methods:{radioChange:function(t){this.radioVal=t.detail.value,this.$emit("change",t.detail.value)}}};e.default=s},"825d":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"pb115",class:t.showCoupon||t.showCancel?"bgfix":""},[a("v-uni-view",{staticClass:"fixedtop"},[a("uni-nav-bar",{attrs:{id:"uninavbar",uropcity:1,uriconopcity:0,fixed:!1,ispr:!1,border:!1,statusBar:!0,isleft:!1,custommore:!0},on:{"on-more":function(e){arguments[0]=e=t.$handleEvent(e),t.onmore.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"hdsy bsf f-c",attrs:{slot:"left"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.go({t:6,url:"/yb_wm/index/index"})}},slot:"left"},[a("v-uni-text",{staticClass:"iconfont iconjiayuan c0 f38"})],1),a("v-uni-view",{staticClass:"oi1c be f-y-c bs15"},[t._l(t.tarr,(function(e,i){return[e.show?a("v-uni-view",{key:i+"_0",staticClass:"item f-c bs10 f26 wei",class:{bf:i==t.taIdx},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tClick(i)}}},[t._v(t._s(e.name))]):t._e()]}))],2)],1),0==t.taIdx&&"1"==t.system.powerList.takeout?a("nav-tab",{attrs:{cname:"",ifsize:"32",tabs:t.tabs},on:{changeTab:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}},model:{value:t.aIdx,callback:function(e){t.aIdx=e},expression:"aIdx"}}):1==t.taIdx&&t.tntabs.length?a("v-uni-view",{staticClass:"f-row bf"},[a("v-uni-view",{staticClass:"f-1 b-r-d"},[a("nav-tab",{attrs:{cname:"",ifsize:"32",tabs:t.tntabs},on:{changeTab:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}},model:{value:t.aIdx,callback:function(e){t.aIdx=e},expression:"aIdx"}})],1),a("v-uni-view",{staticClass:"f-y-c p03",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.go({url:"/yb_wm/shop/in/indd"})}}},[a("v-uni-text",{staticClass:"iconfont icondndc c0 mr10 f38"}),a("v-uni-text",{staticClass:"f32 c0"},[t._v("堂食")])],1)],1):t._e()],1),a("v-uni-view",{staticClass:"mt90 p2",style:{marginTop:t.toph}},[t.isLogin?["1"==t.system.powerList.takeout||"1"==t.system.powerList.instore?[0==t.taIdx?t._l(t.dataList,(function(e,i){return a("my-order",{key:i,attrs:{co:e},on:{operation:function(e){arguments[0]=e=t.$handleEvent(e),t.operation.apply(void 0,arguments)}}})})):[a("dn-order",{attrs:{ltop:t.toph,labelarr:t.labelArr,otype:t.tntabs[t.aIdx].type,datalist:t.dataList},on:{refresh:function(e){arguments[0]=e=t.$handleEvent(e),t.dnrefresh.apply(void 0,arguments)}},model:{value:t.laIdx,callback:function(e){t.laIdx=e},expression:"laIdx"}})],a("jzz",{attrs:{bgcolor:"transparent",nodata:0==t.dataList.length&&t.isget,mygd:t.mygd,otext:"您今天还没有下单",ttext:"快去选择喜欢的商品吧"}}),a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:0==t.dataList.length&&t.isget,expression:"dataList.length==0&&isget"}],staticClass:"oiqdd bs5 f-c f34 cf ma",style:{background:t.tColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.go({t:6,url:"goods"})}}},[t._v("去点单")])]:t._e()]:a("v-uni-view",{staticClass:"f-c-c"},[a("v-uni-view",{staticClass:"wdlimg"},[a("mg-img",{attrs:{src:t.onImgurl+"zwdd.png"}})],1),a("v-uni-view",{staticClass:"c6"},[t._v("登录后才能查看订单哦")]),a("v-uni-view",{staticClass:"ljdl bs15 cf",style:{background:t.tColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.checkLogin.apply(void 0,arguments)}}},[t._v("立即登录")])],1),a("footc")],2),a("tab-bar"),a("mg-modal",{attrs:{ismr:!0,width:"630rpx","z-index":3e3},model:{value:t.showCoupon,callback:function(e){t.showCoupon=e},expression:"showCoupon"}},[t.tcCoupon.couponInfo?t._e():a("v-uni-view",{staticClass:"bf bs10"},[a("v-uni-view",{},[a("v-uni-view",{staticClass:"p330 f-c-c"},[a("v-uni-image",{staticClass:"payimg",attrs:{mode:"widthFix",src:"/static/pay/payok.png"}}),a("v-uni-view",{staticClass:"mt20 f30 wei"},[t._v("支付成功")]),a("v-uni-view",{staticClass:"mt5 f50 wei"},[t._v(t._s(t.sl+t.tcCoupon.paymoney))])],1),a("mg-cell",{attrs:{last:"1"}},[a("v-uni-view",{staticClass:"f-y-c c6",attrs:{slot:"bd"},slot:"bd"},[a("v-uni-view",{staticClass:"f-g-0 c3 mr30"},[t._v("返赠")]),a("v-uni-view",{staticClass:"f-g-1 c9 f26"},[t._v("恭喜你获得1张优惠券共"+t._s(t.tcCoupon.money)+"元")])],1)],1)],1),a("v-uni-view",{staticClass:"p25 hlt",style:{background:"linear-gradient(45deg,rgba("+t.cTR(t.tColor)+",0.5),"+t.tColor+")"}},t._l(t.tcCoupon.couponInfo,(function(e,i){return a("v-uni-view",{key:i},[a("mg-coupon",{attrs:{ptype:"5",color:t.color,cname:"",co:e}})],1)})),1),a("v-uni-view",{staticClass:"f-row hlt",staticStyle:{height:"100rpx"}},[a("v-uni-button",{staticClass:"btn f-1 bf f30 h100 f-c c9",attrs:{"hover-class":"be"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showCoupon=!1}}},[t._v("关闭")]),a("v-uni-button",{staticClass:"btn f-1 bf f30 h100 f-c hll",style:{color:t.tColor},attrs:{"hover-class":"be"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.ljck.apply(void 0,arguments)}}},[t._v("立即查看")])],1)],1)],1),a("mg-popup",{attrs:{position:"bottom"},model:{value:t.showCancel,callback:function(e){t.showCancel=e},expression:"showCancel"}},[a("v-uni-view",{staticClass:"bf bs3000",style:{paddingBottom:t.isIpx?"155rpx":"115rpx"}},[a("v-uni-view",{staticClass:"p3 c0 t-c wei"},[t._v("取消订单")]),a("v-uni-view",{staticClass:"p20 o-y-s",staticStyle:{"max-height":"600rpx"}},[a("v-uni-view",{staticClass:"bs10 p23 bf5 f24 m03"},[a("v-uni-view",{staticClass:"mb20"},[t._v("温馨提示")]),a("v-uni-view",[t._v("1.限时特价、预约资格等购买优惠可能一并取消")]),a("v-uni-view",[t._v("2.支付券不予返还;支付优惠一并取消")]),a("v-uni-view",[t._v("3.订单一旦取消,无法恢复")])],1),a("v-uni-view",{staticClass:"mt30 c0 wei p03"},[t._v("请选择取消订单的原因(必选):")]),a("mg-radio",{attrs:{rtype:"2",ranktype:"2",last:"1",bttc:"f24",arr:t.yyArr},model:{value:t.yyradio,callback:function(e){t.yyradio=e},expression:"yyradio"}})],1),a("v-uni-view",{staticClass:"foot-btnc p-r hlt"},[a("v-uni-button",{staticClass:"foot-btn bd6",style:{background:""==t.yyradio?"":t.tColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.qdyy.apply(void 0,arguments)}}},[t._v("确定")])],1)],1)],1)],1)},s=[]},"83a8":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;a("2f62");var i={name:"footc",props:{bottom:{type:String,default:""}},data:function(){return{}}};e.default=i},"884b":function(t,e,a){"use strict";a.r(e);var i=a("9fce"),n=a("aaba");for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("5ebf");var r,o=a("f0c5"),c=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"2bb62d64",null,!1,i["a"],r);e["default"]=c.exports},"8cbd":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".bfooter[data-v-2bb62d64]{padding:%?20?% %?20?% %?20?%}.footimg[data-v-2bb62d64]{width:%?40?%;height:%?40?%}",""]),t.exports=e},"8ea0":function(t,e,a){var i=a("9875");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("540a83da",i,!0,{sourceMap:!1,shadowMode:!1})},9875:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".mobdli[data-v-a10502fe]{width:%?158?%}.mobdli .img[data-v-a10502fe]{width:100%;height:%?120?%}.mobdrc[data-v-a10502fe]{height:100%;min-width:%?118?%;padding-bottom:%?40?%;padding-left:%?10?%;background:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,.85)),color-stop(hsla(0,0%,100%,.95)),to(#fff));background:-webkit-linear-gradient(left,hsla(0,0%,100%,.85),hsla(0,0%,100%,.95),#fff);background:linear-gradient(90deg,hsla(0,0%,100%,.85),hsla(0,0%,100%,.95),#fff)}.molta[data-v-a10502fe]{top:%?-50?%;left:%?-50?%;width:%?100?%;height:%?100?%;background:-webkit-gradient(linear,left top,left bottom,from(#96e666),to(#08c37d));background:-webkit-linear-gradient(#96e666,#08c37d);background:linear-gradient(#96e666,#08c37d);-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.moltat[data-v-a10502fe]{width:%?40?%;height:%?40?%;line-height:%?40?%;top:0}.yd[data-v-a10502fe]{background:-webkit-gradient(linear,left top,left bottom,from(#f57e55),to(#f05d2c));background:-webkit-linear-gradient(#f57e55,#f05d2c);background:linear-gradient(#f57e55,#f05d2c)}.zbyy[data-v-a10502fe]{-webkit-box-shadow:%?-18?% 0 %?18?% %?-16?% rgba(13,13,13,.1);box-shadow:%?-18?% 0 %?18?% %?-16?% rgba(13,13,13,.1)}",""]),t.exports=e},9951:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".hdsy[data-v-ba8774e8]{width:%?64?%;height:%?64?%;border:.5px solid #ddd}.btn[data-v-ba8774e8]{-webkit-border-radius:0;border-radius:0}.btn[data-v-ba8774e8]::after{-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-border-radius:0;border-radius:0}.oi1c[data-v-ba8774e8]{height:%?68?%;padding:0 %?6?%}.oi1c .item[data-v-ba8774e8]{padding:0 %?10?%;min-width:%?152?%;height:%?56?%}.oiqdd[data-v-ba8774e8]{width:%?360?%;height:%?88?%;margin-top:%?40?%}.payimg[data-v-ba8774e8]{width:%?153?%;height:%?155?%}.pt60[data-v-ba8774e8]{padding-top:%?50?%}.p25[data-v-ba8774e8]{padding:%?20?% %?50?%}.wdlimg[data-v-ba8774e8]{margin:%?170?% 0 0;width:%?340?%;height:%?340?%}.ljdl[data-v-ba8774e8]{margin-top:%?70?%;padding:%?16?% %?48?%}",""]),t.exports=e},"996d":function(t,e,a){var i=a("9951");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("30fa8e8d",i,!0,{sourceMap:!1,shadowMode:!1})},"9fce":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.system&&t.system.copyright?a("v-uni-view",{staticClass:"bfooter f-c-c c9 f26 t-c"},[a("v-uni-view",{staticClass:"f-c",on:{click:function(e){arguments[0]=e=t.$handleEvent(e)}}},[t.system.copyright.support?a("v-uni-view",{},[t._v(t._s(t.system.copyright.support))]):t._e()],1)],1):t._e()},s=[]},aaba:function(t,e,a){"use strict";a.r(e);var i=a("83a8"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},ad66:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".i-modal-mask[data-v-26ec3b67]{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);z-index:1000;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;opacity:0;visibility:hidden}.i-modal-mask-show[data-v-26ec3b67]{opacity:1;visibility:visible}.i-modal[data-v-26ec3b67]{position:fixed;top:50%;left:50%;\n /* width: 85%; */z-index:1000;overflow:hidden;-webkit-transition:all .2s;transition:all .2s;-webkit-transform:translate3d(-50%,-50%,0) scale(.6);transform:translate3d(-50%,-50%,0) scale(.6);opacity:0;visibility:hidden}.i-modal-show[data-v-26ec3b67]{visibility:visible;-webkit-transform:translate3d(-50%,-50%,0) scale(1);transform:translate3d(-50%,-50%,0) scale(1);opacity:1}",""]),t.exports=e},cf85:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".mr-r1i[data-v-5baf4707]{padding:%?30?% %?40?% %?30?% 0}",""]),t.exports=e},d7e2:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:!t.vs||t.value,expression:"vs?value:true"}]},[a("v-uni-view",{staticClass:"i-modal-mask",class:{"i-modal-mask-show":t.value},style:{zIndex:t.zIndex},on:{touchmove:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.maskTap.apply(void 0,arguments)}}}),a("v-uni-view",{staticClass:"i-modal",class:{"i-modal-show":t.value},style:{width:""+t.width,zIndex:t.zIndex},on:{touchmove:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e)}}},[t.ismr?t._t("default"):a("v-uni-view",{staticClass:"f-c-c p23 bf"},[t._t("default")],2)],2)],1)},s=[]},ddfd:function(t,e,a){"use strict";a.r(e);var i=a("d7e2"),n=a("771f");for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("3862");var r,o=a("f0c5"),c=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"26ec3b67",null,!1,i["a"],r);e["default"]=c.exports},e102:function(t,e,a){"use strict";a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"popup",props:{className:{type:String,default:""},vs:{type:Boolean,default:!1},value:{type:Boolean,default:!1},width:{type:String,default:"70%"},ismr:{type:Boolean,default:!1},zIndex:{type:Number,default:999},close:{type:Boolean,default:!0}},data:function(){return{}},computed:{},methods:{maskTap:function(){this.close&&this.$emit("input",!1)}}};e.default=i},e169:function(t,e,a){"use strict";a.r(e);var i=a("3d9b"),n=a("2dc3");for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("347a");var r,o=a("f0c5"),c=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"5baf4707",null,!1,i["a"],r);e["default"]=c.exports},ea82:function(t,e,a){"use strict";a.r(e);var i=a("fa56"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},fa56:function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("7db0"),a("c740"),a("4160"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("5530"));a("96cf");var s=i(a("1da1")),r=a("2f62"),o=i(a("d2b9")),c=i(a("ceaf")),u=i(a("46d9")),l=i(a("c3df2")),d=i(a("3db1")),f=i(a("4ad0")),v=i(a("ddfd")),p=i(a("6ba4")),m=i(a("f3fc")),h=i(a("6b80")),b=i(a("e169")),w=i(a("884b")),g=i(a("8bb1")),y=a("4789"),x=getApp().globalData,C={name:"orderIndex",components:{uniNavBar:o.default,navTab:c.default,myOrder:u.default,dnOrder:l.default,jzz:d.default,TabBar:f.default,mgModal:v.default,mgCoupon:p.default,MgCell:m.default,mgPopup:h.default,mgRadio:b.default,footc:w.default},data:function(){return{toph:0,taIdx:0,aIdx:0,tabs:[{name:"当前订单"},{name:"历史订单"}],tntabs:[{name:"快餐",type:4},{name:"当面付",type:2}],labelArr:[],laIdx:0,dataList:[],isget:!1,mygd:!1,params:{size:10,page:1},tcCoupon:{},showCoupon:!1,showCancel:!1,yyArr:[],yyradio:""}},onLoad:function(t){var e=this;return(0,s.default)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.getSystem().then((function(){e.toph=e.util.getSb().customNavh+uni.upx2px("96")+"px"})),t.next=3,e.getLoginInfo();case 3:return t.next=5,e.getConfig({key:"orderset",api:"ddsz"});case 5:return e.util.setNT("我的订单"),e.taIdx="1"==e.system.powerList.takeout&&"1"==e.system.powerList.instore||"1"==e.system.powerList.takeout&&"2"==e.system.powerList.instore?0:1,1==e.system.powerList.queuing&&e.tntabs.push({name:"排队",type:5}),1==e.system.powerList.reserve&&e.tntabs.push({name:"预约",type:3}),e.xgIdx(),e.changeTab(e.aIdx),e.getLayout(),e.isload=!0,t.abrupt("return");case 16:case"end":return t.stop()}}),t)})))()},onReachBottom:g.default.debounce((function(t){!this.mygd&&this.isget&&(this.isget=!1,this.getList())}),300),onHide:function(){x.ddquery=""},onShow:function(){var t=this;return(0,s.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.isload&&(t.xgIdx(),t.refresh());case 1:case"end":return e.stop()}}),e)})))()},mixins:[y.utilMixins],computed:(0,n.default)((0,n.default)({},(0,r.mapState)({orderset:function(t){return t.config.orderset}})),{},{tarr:function(){return[{show:1==this.system.powerList.takeout,name:this.system.custom.takeOut+"订单",type:1},{show:1==this.system.powerList.instore,name:this.system.custom.inStore+"订单",type:2}]}}),methods:(0,n.default)((0,n.default)({},(0,r.mapActions)(["getConfig"])),{},{xgIdx:function(){x.ddquery&&(this.taIdx=x.ddquery.nt,this.aIdx=this.tntabs.findIndex((function(t){return t.type==x.ddquery.t})))},tClick:function(t){t!=this.taIdx&&(this.taIdx=t,this.aIdx=0,this.refresh())},ljck:function(){this.showCoupon=!1,this.go({t:1,url:"/yb_wm/my/coupon/my"})},qdyy:function(){var t=this;this.showCancel=!1,"qxdd"==this.operationt?(this.qxyy=this.qxyyArr.find((function(e){return e.value==t.yyradio})).name,this.qxdd(1)):(this.qxyy=this.tkyyArr.find((function(e){return e.value==t.yyradio})).name,this.operation({t:"tk",co:this.orderInfo}))},operation:function(t){var e=this;return(0,s.default)(regeneratorRuntime.mark((function a(){var i,n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:e.orderInfo=t.co,e.operationt=t.t,i={},a.t0=t.t,a.next="qxdd"===a.t0?6:"sqtk"===a.t0?15:"cd"===a.t0?19:"qrsh"===a.t0?21:"scdd"===a.t0?23:"lxsj"===a.t0?25:"pj"===a.t0?26:"ljzf"===a.t0?27:29;break;case 6:if(!t.tip){a.next=14;break}return a.abrupt("return",e.qxdd(1));case 14:return a.abrupt("return",e.qxdd());case 15:if(2!=t.co.state){a.next=17;break}return a.abrupt("return",e.qxdd(1));case 17:return i={title:"您确认取消订单吗?",url:"wmddtk",params:{orderId:t.co.id,note:e.qxyy||""}},a.abrupt("break",29);case 19:return i={title:"您确认催单吗?",url:"wmddcd",params:{userId:e.user.userId,orderId:t.co.id}},a.abrupt("break",29);case 21:return i={title:"您确认已收到货吗?",url:"wmddsh",params:{orderId:t.co.id}},a.abrupt("break",29);case 23:return i={title:"您确认删除订单吗?",url:"wmddsc",params:{orderId:t.co.id}},a.abrupt("break",29);case 25:return a.abrupt("return",e.util.makeTel(t.co.storeTel));case 26:return a.abrupt("return",e.go({t:1,url:"/yb_wm/order/pl?orderId="+t.co.id+"&storeName="+t.co.storeName+"&storeId="+t.co.storeId}));case 27:return e.go({t:1,url:"/yb_wm/other/mg-pay?payObj="+encodeURIComponent(JSON.stringify({orderId:e.orderInfo.id,orderType:1,info:{money:e.orderInfo.money,storeName:e.orderInfo.storeName,type:"下单支付",cancel:1,go:{t:4}}}))}),a.abrupt("return");case 29:return a.prev=29,a.next=32,e.util.modal(i.title);case 32:a.next=37;break;case 34:return a.prev=34,a.t1=a["catch"](29),a.abrupt("return");case 37:return a.next=39,e.util.request({url:e.api[i.url],method:"POST",mask:1,data:i.params});case 39:n=a.sent,n&&(e.refresh(),e.util.message("操作成功",1));case 41:case"end":return a.stop()}}),a,null,[[29,34]])})))()},qxdd:function(t){var e=this;return(0,s.default)(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!t){a.next=9;break}return a.prev=1,a.next=4,e.util.modal("您确认取消订单吗?");case 4:a.next=9;break;case 6:return a.prev=6,a.t0=a["catch"](1),a.abrupt("return");case 9:return a.next=11,e.util.request({url:e.api.wmddqx,method:"POST",mask:"取消订单中",data:{orderId:e.orderInfo.id,note:t&&e.qxyy||""}});case 11:i=a.sent,i&&(e.refresh(),e.util.message("操作成功",1));case 13:case"end":return a.stop()}}),a,null,[[1,6]])})))()},refresh:function(){this.changeTab(this.aIdx)},changeTab:function(t){if(this.laIdx=0,this.isget=this.mygd=!1,this.params.page=1,0==this.taIdx){var e="";switch(t){case 0:e="1";break;case 1:e="2";break}this.params.api="ddlb",this.iparams={type:e}}else switch(this.tntabs[t].type){case 1:this.labelArr=["全部","待付款","已支付","已关闭"],this.params.api="MyInOrder",this.iparams={state:""};break;case 2:this.labelArr=[],this.params.api="dmlb",this.iparams={};break;case 4:this.labelArr=["全部","制作中","已完成"],this.params.api="kclb",this.iparams={state:""};break;case 3:this.labelArr=[],this.params.api="wdyy",this.iparams={};break;case 5:this.labelArr=[],this.params.api="pdlb",this.iparams={};break}this.dataList=[],this.getList()},dnrefresh:function(t){t.hasOwnProperty("state")?(this.iparams.state=t.state,this.isget=this.mygd=!1,this.params.page=1,this.dataList=[],this.getList()):this.refresh()},getList:function(){var t=this;return(0,s.default)(regeneratorRuntime.mark((function e(){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.util.request({url:t.api[t.params.api],method:"POST",data:(0,n.default)((0,n.default)({},t.params),t.iparams)});case 2:a=e.sent,i=a.data,t.dataList=t.dataList.concat(i),t.isget=!0,t.mygd=t.params.size>i.length,t.params.page++;case 8:case"end":return e.stop()}}),e)})))()},onmore:function(){}})};e.default=C}}]);