1 line
5.0 KiB
JavaScript
1 line
5.0 KiB
JavaScript
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/afterSales/index"],{"00b6":function(o,e,t){},3986:function(o,e,t){"use strict";(function(o,e){var n=t("47a9");t("5e3a");n(t("3240"));var i=n(t("f232"));o.__webpack_require_UNI_MP_PLUGIN__=t,e(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},4368:function(o,e,t){"use strict";var n=t("00b6"),i=t.n(n);i.a},4516:function(o,e,t){"use strict";t.r(e);var n=t("bdfc"),i=t.n(n);for(var r in n)["default"].indexOf(r)<0&&function(o){t.d(e,o,(function(){return n[o]}))}(r);e["default"]=i.a},"5bba":function(o,e,t){"use strict";t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return r})),t.d(e,"a",(function(){return n}));var n={uPopup:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(t.bind(null,"e6bd"))},uRadioGroup:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-radio-group/u-radio-group")]).then(t.bind(null,"c3d1"))},uRadio:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-radio/u-radio")]).then(t.bind(null,"5901"))},"u-Textarea":function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u--textarea/u--textarea")]).then(t.bind(null,"d17b"))}},i=function(){var o=this,e=o.$createElement;o._self._c;o._isMounted||(o.e0=function(e){o.refundShow=!0})},r=[]},bdfc:function(o,e,t){"use strict";(function(o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={data:function(){return{refundShow:!1,radioValue:"",otherText:"",refuseShow:!1,fileList:[],list:"",id:0,info:{},infoRefund:"",myReason:"",radioList:["没有时间上课","课程内容不符合预期","位置不便","其他课程时间冲突","课程延期","其他"],classes_service_order_id:0,user_status:""}},onLoad:function(o){this.id=o.id,this.getOrderInfo()},methods:{refuseShowOpen:function(e){var t=this;this.user_status=e,(e="no")?this.refuseShow=!0:o.showModal({title:"提示",content:"确定要同意吗?",success:function(o){o.confirm&&t.userConfirmation()}})},userConfirmation:function(){var e=this;o.$u.http.post("/api/school.service_order/user_confirmation",{order_no:this.classes_service_order_id,status:this.user_status,reject_reason:this.otherText,reject_images:this.list}).then((function(t){console.log(t),1==t.code&&(o.showToast({title:"提交成功!",icon:"none",duration:2e3}),e.getOrderInfo())})).catch((function(e){o.showToast({title:"请求失败,请稍后再试",icon:"none",duration:2e3})}))},cancelOrder:function(){var e=this;o.showModal({title:"提示",content:"确定要撤销售后订单吗?",success:function(o){o.confirm&&e.cancelOrderDo()}})},cancelOrderDo:function(){var e=this;o.$u.http.post("/api/school.service_order/cancel",{order_no:this.classes_service_order_id}).then((function(t){console.log(t),1==t.code?(o.showToast({title:t.msg,icon:"none",duration:2e3}),e.infoRefund="",e.getOrderInfo()):o.showToast({title:t.msg,icon:"none",duration:2e3})})).catch((function(e){o.showToast({title:"请求失败,请稍后再试",icon:"none",duration:2e3})}))},chickRadio:function(){var e="";""!==this.radioValue?(e=5!=this.radioValue?this.radioList[this.radioValue]:this.otherText,this.refundShow=!1,this.myReason=e):o.showToast({title:"请选择原因!",icon:"none",duration:2e3})},submitAdd:function(){console.log(this.radioValue);var e="";""!==this.radioValue?(e=5!=this.radioValue?this.radioList[this.radioValue]:this.otherText,o.$u.http.post("/api/school.service_order/create",{classes_order_id:this.id,reason:e}).then((function(e){console.log(e),1==e.code?(o.showToast({title:e.msg,icon:"none",duration:2e3}),setTimeout((function(){o.redirectTo({url:"/pages/afterSales/info?id="+e.data.order_info.id})}),2e3)):o.showToast({title:e.msg,icon:"none",duration:2e3})})).catch((function(e){o.showToast({title:"请求失败,请稍后再试",icon:"none",duration:2e3})}))):o.showToast({title:"请选择原因!",icon:"none",duration:2e3})},getOrderInfo:function(){var e=this;o.$u.http.get("/api/school/
|