chunk-38429964.83fc5873.js 7.5 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-38429964"],{"1dad":function(t,e,a){"use strict";var s=a("b89a"),r=a.n(s);r.a},"258a":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"orderDetail"},[a("div",{staticClass:"white-box part-1"},[a("div",{staticClass:"stauts-box"},["1"==t.orderInfo.payStatus?a("span",{staticStyle:{color:"#ffb41f"}},[t._v("待支付")]):t._e(),"3"==t.orderInfo.payStatus?a("span",{staticStyle:{color:"#7238e7"}},[t._v("已取消")]):t._e(),"2"==t.orderInfo.payStatus&&"1"==t.orderInfo.eatStatus?a("span",{staticStyle:{color:"#f87a7a"}},[t._v("待取餐")]):t._e(),"2"==t.orderInfo.payStatus&&"2"==t.orderInfo.eatStatus?a("span",{staticStyle:{color:"#f87a7a"}},[t._v("已取餐")]):t._e(),"2"==t.orderInfo.payStatus&&"3"==t.orderInfo.eatStatus?a("span",{staticStyle:{color:"#f87a7a"}},[t._v("已失效")]):t._e()]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("订单号")]),a("p",{staticClass:"tit"},[t._v(t._s(t.orderInfo.orderNo))])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("下单时间")]),a("p",{staticClass:"tit"},[t._v(t._s(t.orderInfo.creationTime))])]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("用餐时间")]),a("p",{staticClass:"tit"},[t._v(t._s(t.orderInfo.eatTime))])]),t._m(0),t._l(t.storeList,function(e){return a("div",{key:e.id,staticClass:"cell-item flex-item"},[a("p",{staticClass:"label"},[t._v(t._s(e.store_name))]),a("p",{staticClass:"tit tel-box"},[a("span",[t._v(t._s(e.phone))]),a("TelNum",{attrs:{showTel:!1}})],1)])}),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("订餐人")]),a("p",{staticClass:"tit"},[t._v(t._s(t.orderInfo.contacts))])]),a("div",{staticClass:"cell-item flex-item"},[a("p",{staticClass:"label"},[t._v("联系号码")]),a("p",{staticClass:"tit tel-box"},[a("span",[t._v(t._s(t.orderInfo.phone))]),a("TelNum",{attrs:{showTel:!1}})],1)]),a("div",{staticClass:"cell-item"},[a("p",{staticClass:"label"},[t._v("取餐时间")]),a("p",{staticClass:"tit"},[t._v(t._s(t.orderInfo.takeTime))])])],2),a("div",{staticClass:"white-box part-2"},[t._m(1),a("div",{staticClass:"order-list-box"},[a("div",{staticClass:"order-item-box"},[a("p",{staticClass:"tit"},[t._v(t._s(t.orderInfo.goodsTypeName))]),t._l(t.itemList,function(e){return a("div",{key:e.id,staticClass:"part-item"},[a("div",{staticClass:"part-left"},[a("img",{attrs:{src:e.goodsImg,alt:""}})]),a("div",{staticClass:"part-right"},[a("p",{staticClass:"part-tit"},[t._v(t._s(e.goodsName))]),a("div",{staticClass:"part-foot"},[a("span",{staticClass:"num"},[t._v(" X "+t._s(e.number))]),a("span",{staticClass:"parice"},[t._v("¥"+t._s(e.price))])])])])})],2)]),a("div",{staticClass:"total-box"},[a("span",{staticClass:"total-left"},[t._v("小计")]),a("span",{staticClass:"total-right"},[t._v("¥"+t._s(t.orderInfo.orderPrice))])])]),a("div",{staticClass:"repair-bottom bottom-button"},[a("button",{staticClass:"btn",on:{click:t.submitOrder}},[t._v("确认取餐")])])])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-item-tit"},[a("div",{staticClass:"tit"},[t._v("联系商家")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bar-title"},[a("div",{staticClass:"text"},[t._v("餐品详情")])])}],o=a("3da4"),i=a("f7eb"),n=a("3089"),c={components:{TelNum:i["a"]},data:function(){return{orderId:"",orderInfo:{},itemList:[],storeList:[],submitStatus:!0}},mounted:function(){this.orderId=this.$route.query.orderId,this.getDetial()},methods:{getDetial:function(){var t=this,e={id:this.orderId};Object(o["f"])(e).then(function(e){t.orderInfo=e.data.orderInfo,t.orderInfo.goodsTypeName=e.data.goodsTypeName,t.itemList=e.data.itemList,t.storeList=e.data.storeList,t.initState(t.orderInfo),t.submitStatus||Object(n["Toast"])("该订单不能确认取餐!")})},initState:function(t){2==t.payStatus&&1==t.eatStatus?this.submitStatus=!0:this.submitStatus=!1},submitOrder:function(){var t=this;if(!this.submitStatus)return Object(n["Toast"])("该订单不能确认取餐!"),!1;var e={orderId:this.orderId};Object(o["j"])(e).then(function(e){500==e.code?Object(n["Toast"])(e.msg):(Object(n["Toast"])("取餐成功!"),t.goNavigator("meal-takeMeal-app"))})}}},d=c,l=(a("1dad"),a("2877")),u=Object(l["a"])(d,s,r,!1,null,"0615e3b8",null);e["default"]=u.exports},"3da4":function(t,e,a){"use strict";a.d(e,"d",function(){return i}),a.d(e,"e",function(){return n}),a.d(e,"i",function(){return c}),a.d(e,"a",function(){return d}),a.d(e,"b",function(){return l}),a.d(e,"h",function(){return u}),a.d(e,"g",function(){return f}),a.d(e,"f",function(){return p}),a.d(e,"j",function(){return m}),a.d(e,"c",function(){return h});var s=a("8982"),r="/industryParkApi",o="/wx/WxParkGoodsOrderController";function i(t){return Object(s["a"])({url:r+o+"/getGoodsList",method:"post",data:t})}function n(t){return Object(s["a"])({url:r+o+"/getGoodsTypeList",method:"post",data:t})}function c(t){return Object(s["a"])({url:r+o+"/operateGoodsState",method:"post",data:t})}function d(t){return Object(s["a"])({url:r+o+"/addGoods",method:"post",data:t})}function l(t){return Object(s["a"])({url:r+o+"/getEatOutList",method:"post",data:t})}function u(t){return Object(s["a"])({url:r+o+"/getStoreList",method:"post",data:t})}function f(t){return Object(s["a"])({url:r+o+"/getOrderList",method:"post",data:t})}function p(t){return Object(s["a"])({url:r+o+"/getOrderDetial",method:"post",data:t})}function m(t){return Object(s["a"])({url:r+o+"/orderConsume",method:"post",data:t})}function h(t){return Object(s["a"])({url:r+o+"/getGoodsDetial",method:"post",data:t})}},8982:function(t,e,a){"use strict";a.d(e,"a",function(){return p}),a.d(e,"b",function(){return m});var s=a("795b"),r=a.n(s),o=a("bc3a"),i=a.n(o),n=a("4328"),c=a.n(n),d=a("4360"),l=a("5cab"),u=a("a18c"),f=a("3089");function p(t,e){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var a={method:t.method,url:t.url,data:c.a.stringify(t.data)};return e&&(a.data=t.data),t.headers&&(a.headers=t.headers),new r.a(function(e,s){i()(a).then(function(t){if(t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(f["Toast"])(a.errmsg),setTimeout(function(){d["a"].dispatch("user/logout").then(function(){u["a"].push("/login")})},1500),s(a.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(f["Toast"])(a.errmsg),s(a.errmsg);break}e(a)}else console.log(t),s(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(f["Toast"])(e),s(e,a)})})}function m(t){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new r.a(function(a,s){i.a.defaults.withCredentials=!0,i()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(f["Toast"])(e.errmsg),setTimeout(function(){d["a"].dispatch("user/logout").then(function(){u["a"].push("/login")})},1500),s(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(f["Toast"])(e.errmsg),s(e.errmsg);break}a(e)}else console.log(t),s(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(f["Toast"])(e),s(e,a)})})}},b89a:function(t,e,a){}}]);