王总上门按摩后台代码
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.
shangmenanmo/public/h5/static/js/technician-pages-order-list...

1 line
24 KiB

5 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["technician-pages-order-list"],{"0796":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("c975"),n("d3b7"),n("159b"),n("14d9"),n("3ca3"),n("ddb0"),n("2b3d"),n("9861"),n("d401"),n("25f0"),n("a434"),n("acd8");var i={data:function(){return{isUserMedia:!1,stream:null,audio:null,recorder:null,chunks:[],startTime:0}},mounted:function(){if(-1===origin.indexOf("https"))throw this.$emit("error","100"),"请在 https 环境中使用本插件。";if(!navigator.mediaDevices||!window.MediaRecorder)throw this.$emit("error","101"),"当前浏览器不支持";this.getRecorderManager()},methods:{getRecorderManager:function(){var e=this;this.audio=document.createElement("audio"),navigator.mediaDevices.getUserMedia({audio:!0}).then((function(t){e.isUserMedia=!0,t.getTracks().forEach((function(e){e.stop()}))})).catch((function(t){e.onErrorHandler(t)}))},start:function(){var e=this;if(!this.isUserMedia)return console.log("设备不支持");navigator.mediaDevices.getUserMedia({audio:!0}).then((function(t){e.startTime=(new Date).getTime(),e.stream=t,e.recorder=new MediaRecorder(t),e.recorder.ondataavailable=e.getRecordingData,e.recorder.onstop=e.saveRecordingData,e.recorder.start()})).catch((function(t){e.onErrorHandler(t)}))},stop:function(){this.recorder.stop(),this.stream.getTracks().forEach((function(e){e.stop()}))},getRecordingData:function(e){this.chunks.push(e.data)},saveRecordingData:function(){var e=new Blob(this.chunks,{type:"audio/mpeg"}),t=URL.createObjectURL(e),n=(new Date).getTime(),i=(n-this.startTime).toString().split("");i.splice(i.length-2),i.splice(i.length-1,0,"."),i=parseFloat(i.join(""));var a={data:e,duration:i,localUrl:t};this.$emit("success",a)},onErrorHandler:function(e){if(console.log(e,"========onErrorHandler"),"NotAllowedError"===e.name)throw this.$emit("error","201"),"用户拒绝了当前的浏览器实例的访问请求";if("NotReadableError"===e.name)throw this.$emit("error","101"),"当前浏览器不支持";throw this.$emit("error","500"),"调用失败,原因不详"}},destroyed:function(){this.stop()},clear:function(){}};t.default=i},5092:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"recorder"})},a=[]},"8a7c":function(e,t,n){"use strict";n.r(t);var i=n("da97"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a},bc99:function(e,t,n){"use strict";n.r(t);var i=n("e5de"),a=n("8a7c");for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);var o=n("f0c5"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"1764e1b5",null,!1,i["a"],void 0);t["default"]=s.exports},da97:function(e,t,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("99af"),n("e25e"),n("ac1f"),n("5319"),n("caad"),n("a434"),n("14d9"),n("c740");var a=i(n("3835")),r=i(n("5530")),o=i(n("c7eb")),s=i(n("1da1")),c=n("26cb"),l=i(n("f8f9")),u={components:{MumuRecorder:l.default},data:function(){return{options:{},activeIndex:0,tabList:[{title:"待接单",id:2,number:0},{title:"待服务",id:5,number:0},{title:"服务中",id:6,number:0},{title:"已完成",id:7,number:0}],statusType:{2:"待接单",3:"已接单",4:"已出发",5:"已到达",6:"服务中",7:"已完成",8:"待转单"},param:{page:1,pay_type:0},list:{data:[]},loading:!0,index:-1,coach_refund_text:"",lockTap:!1,popupInfo:{title:"",index:"",type:"",param:{},imgs:[],location:{lat:0,lng:0,address:""}},unix_list:[]}},computed:(0,c.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},configInfo:function(e){return e.config.configInfo},recorder:function(e){return e.order.recorder},recorder_status:function(e){return e.order.recorder_status},recorder_order_id:function(e){return