连云港陪玩陪聊
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.
chunwan/unpackage/dist/build/web/static/js/pages-users-order-detail.ef...

1 line
29 KiB

1 month ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-order-detail"],{"05b5":function(t,i,a){"use strict";a("6a54");var e=a("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,a("d4b5");var n=e(a("2634")),s=e(a("2fdc")),o={data:function(){return{payIndex:-1,tabIndex:1,info:{},id:"",userType:1,payInfo:{},isClick:!0}},onLoad:function(t){this.id=t.id,this.userType=t.type,this.getInfo(),this.getConfigData()},methods:{toFuwu:function(){var t=this;uni.showModal({title:"温馨提示",content:"是否要完成该订单服务?",success:function(i){return(0,s.default)((0,n.default)().mark((function a(){var e,s,o;return(0,n.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!i.confirm){a.next=8;break}return a.next=3,t.$api.serviceCompleteOrder({orderId:t.info.id,delType:1,userId:uni.getStorageSync("userInfo").id});case 3:e=a.sent,s=e.code,e.data,o=e.msg,200==s?(uni.showToast({title:"提交成功"}),setTimeout((function(){t.getInfo()}),2e3)):uni.showToast({title:o,icon:"none",position:"bottom"});case 8:case"end":return a.stop()}}),a)})))()}})},toShengqing:function(){var t=this;uni.showModal({title:"温馨提示",content:"是否要申请退款?",success:function(i){return(0,s.default)((0,n.default)().mark((function a(){var e,s,o;return(0,n.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!i.confirm){a.next=8;break}return a.next=3,t.$api.refundOrder({orderId:t.info.id,delType:1,userId:uni.getStorageSync("userInfo").id});case 3:e=a.sent,s=e.code,e.data,o=e.msg,200==s?(uni.showToast({title:"申请成功"}),setTimeout((function(){t.getInfo()}),2e3)):uni.showToast({title:o,icon:"none",position:"bottom"});case 8:case"end":return a.stop()}}),a)})))()}})},toDel:function(){var t=this;uni.showModal({title:"温馨提示",content:"是否要删除该订单?",success:function(i){return(0,s.default)((0,n.default)().mark((function a(){var e,s,o;return(0,n.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!i.confirm){a.next=8;break}return a.next=3,t.$api.deleteOrder({orderId:t.info.id,delType:1,userId:uni.getStorageSync("userInfo").id});case 3:e=a.sent,s=e.code,e.data,o=e.msg,200==s?(uni.showToast({title:"删除成功"}),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)):uni.showToast({title:o,icon:"none",position:"bottom"});case 8:case"end":return a.stop()}}),a)})))()}})},toCancle:function(){var t=this;uni.showModal({title:"温馨提示",content:"是否要取消该订单?",success:function(i){return(0,s.default)((0,n.default)().mark((function a(){var e,s,o;return(0,n.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!i.confirm){a.next=8;break}return a.next=3,t.$api.cancelOrder({orderId:t.info.id,userId:uni.getStorageSync("userInfo").id});case 3:e=a.sent,s=e.code,e.data,o=e.msg,200==s?(uni.showToast({title:"取消成功"}),setTimeout((function(){t.getInfo()}),2e3)):uni.showToast({title:o,icon:"none",position:"bottom"});case 8:case"end":return a.stop()}}),a)})))()}})},getConfigData:function(){var t=this;return(0,s.default)((0,n.default)().mark((function i(){var a,e;return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=t,i.next=3,a.$api.getConfigData({dictType:"CONFIG_PAY_STATUS"});case 3:e=i.sent,e.data.content&&(t.payInfo=e.data.content.split(","));case 5:case"end":return i.stop()}}),i)})))()},toPay:function(){var t=this;return(0,s.default)((0,n.default)().mark((function i(){var a,e,s,o,r;return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=t,-1!=a.payIndex){i.next=4;break}return uni.showToast({icon:"none",position:"bottom",title:"请选择支付方式"}),i.abrupt("return");case 4:if(0!=a.isClick){i.next=6;break}return i.abrupt("return");case 6:return i.next=8,a.$api.paymentOrder({payType:"wx-1"==a.payType?1:2,outTradeNo:a.info.orderno});case 8:e=i.sent,s=e.code,o=e.data,r=e.msg,200==s?(a.isClick=!0,uni.hideLoading(),uni.requestPayment({provider:"ali-1"==a.payType?"alipay":"wxpay",orderInfo:"ali-1"==a.payType?o.orderInfo:JSON.parse(o.orderInfo),success: