1 line
2.5 KiB
JavaScript
1 line
2.5 KiB
JavaScript
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/cameraContext/cameraContext"],{"14dd":function(t,e,n){"use strict";n.r(e);var o=n("ec81"),c=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);e["default"]=c.a},"1d01":function(t,e,n){"use strict";n.r(e);var o=n("a569"),c=n("14dd");for(var u in c)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return c[t]}))}(u);n("c513");var a=n("828b"),r=Object(a["a"])(c["default"],o["b"],o["c"],!1,null,"6e70d540",null,!1,o["a"],void 0);e["default"]=r.exports},2138:function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("9c5b");o(n("3240"));var c=o(n("1d01"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(c.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},a569:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return o}));var o={uCountDown:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-count-down/u-count-down")]).then(n.bind(null,"6238"))},uButton:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-button/u-button")]).then(n.bind(null,"82ae"))}},c=function(){var t=this.$createElement;this._self._c},u=[]},c513:function(t,e,n){"use strict";var o=n("f9b3"),c=n.n(o);c.a},ec81:function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=o(n("7eb4")),u=o(n("ee10")),a=n("5ffb"),r={data:function(){return{needPersonSecret:!1,isAnimate:!1,tempVideoPath:"",tips:"⚪录制",isEnd:!0}},onLoad:function(){var e=this;return(0,u.default)(c.default.mark((function n(){var o;return c.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,a.configFun)();case 2:o=n.sent,200===o.code&&(e.needPersonSecret=o.data.needPersonSecret),e.ctx=t.createCameraContext(),e.tips="⚪录制";case 6:case"end":return n.stop()}}),n)})))()},methods:{startRecord:function(){var e=this;this.ctx.startRecord({success:function(n){e.isAnimate=!0,e.tips="⚪录制中",setTimeout((function(){e.ctx.stopRecord({success:function(n){console.log("自动停止录像",n),e.isAnimate=!1,e.$common.msgToast("录制完成"),e.tempVideoPath=n.tempVideoPath,e.tips="⚪录制完成",e.isEnd=!1,t.setStorageSync("tempVideoPath",n.tempVideoPath)}})}),5e3)}})},back:function(){t.navigateBack({delta:2})}}};e.default=r}).call(this,n("df3c")["default"])},f9b3:function(t,e,n){}},[["2138","common/runtime","common/vendor"]]]);
|