导游中台-游客端
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
45 KiB

10 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["subPackages-order-orderDetail"],{"014c":function(t,e,n){n("f7a5"),n("7a76"),n("c9b5"),n("bf0f"),n("ab80");var i=n("7716"),r=n("addc"),o=n("4515"),a=n("59c1");function s(t,e,n,o,a){var s=[].slice.call(arguments,1),c=s.length,d="function"===typeof s[c-1];if(!d&&!i())throw new Error("Callback required as last argument");if(!d){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=e,e=o=void 0):2!==c||e.getContext||(o=n,n=e,e=void 0),new Promise((function(i,a){try{var s=r.create(n,o);i(t(s,e,o))}catch(c){a(c)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(a=n,n=e,e=o=void 0):3===c&&(e.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=e,e=void 0));try{var u=r.create(n,o);a(null,t(u,e,o))}catch(f){a(f)}}e.create=r.create,e.toCanvas=s.bind(null,o.render),e.toDataURL=s.bind(null,o.renderToDataURL),e.toString=s.bind(null,(function(t,e,n){return a.render(t,n)}))},"0a57":function(t,e,n){n("aa9c"),n("dc69");var i=n("bb75").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),o=[n-7],a=1;a<e-1;a++)o[a]=o[a-1]-r;return o.push(6),o.reverse()},e.getPositions=function(t){for(var n=[],i=e.getRowColCoords(t),r=i.length,o=0;o<r;o++)for(var a=0;a<r;a++)0===o&&0===a||0===o&&a===r-1||o===r-1&&0===a||n.push([i[o],i[a]]);return n}},"0ab0":function(t,e,n){"use strict";n.r(e);var i=n("7af8"),r=n("8d4b");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("7822");var a=n("828b"),s=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"00081390",null,!1,i["a"],void 0);e["default"]=s.exports},"0e22":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("4626");var r=i(n("014c")),o={data:function(){return{order_id:"",info:{},foodInfo:{},current:0,isQrcode:!1,remainNum:0,postInfo:[]}},onLoad:function(t){this.order_id=t.id,this.getDetail()},onShow:function(){},methods:{getDetail:function(){var t=this;this.Post({order_id:this.order_id,lon:uni.getStorageSync("location").lon||"110.43785794300781",lat:uni.getStorageSync("location").lat||"36.95286642085422"},"/api/order/orderDetail").then((function(e){if(t.info=e.data,["PAYMENT_SUCCESSFULLY","WAIT_REFUND","REFUND_SUCCESS","WAIT_COMMENT","COMPLETED"].includes(t.info.status)){t.isQrcode=!0;for(var n=0;n<t.info.order_child.length;n++)t.getCodeImg(t.info.order_child[n].third_order_id||t.info.order_child[n].child_id,n),"SUCCESS"==t.info.order_child[n].status&&(t.remainNum+=1)}else if(!["WAIT_PAYMENT","CLOSED"].includes(t.info.status))for(var i=0;i<t.info.order_child.length;i++)t.info.order_child[i].is_display_order_qrcode&&(t.isQrcode=!0,t.getCodeImg(t.info.order_child[i].third_order_id||t.info.order_child[i].child_id,i),"SUCCESS"==t.info.order_child[i].status&&(t.remainNum+=1))}))},getCodeImg:function(t,e){var n=this;r.default.toDataURL(t).then((function(t){n.$set(n.info.order_child[e],"qrcodeimg",t),n.$forceUpdate()})).catch((function(t){console.error(t)}))},swiperChange:function(t){var e=t.detail,n=e.current,i=e.source;"autoplay"!==i&&"touch"!==i||(this.current=n)},clickCopy:function(){uni.setClipboardData({data:this.info.order_id,success:function(){uni.showToast({title:"复制成功",icon:"none"})}})},refund:function(t){var e=this,n=this;uni.showModal({title:"提示",content:"是否申请退款?",success:function(i){i.confirm&&n.Post({order_id:t},"/api/order/applyRefund").then((function(t){1==t.code&&(uni.showToast({title:"申请成功",icon:"success"}),e.getDetail(),uni.$emit("updateDataByConnect",{msgType:"updateOrderTrades",data:{}}))}))}})},closeOrder:function(t,e){var n=this;uni.showModal({title:"提示",content:"确认关闭订单?",success:function(e){e.confirm&&n.Post({order_id:t},"/api/order/closeOrder").then((function(t){1==t.code&&(uni.showToast({title:"关闭成功",icon:"success"}),n.getDetail(),uni.$emit("updateDataByConnect",{msgType:"updateOrderTrades",data:{}}))}))}})},setOrderId:function(t