You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
3.5 KiB
JavaScript

3 months ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/cameraContext/cameraContext"],{240:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(241));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},241:function(e,n,t){"use strict";t.r(n);var o=t(242),r=t(244);for(var c in r)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(c);t(246);var u,a=t(33),i=Object(a["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"0c0dc048",null,!1,o["components"],u);i.options.__file="pages/cameraContext/cameraContext.vue",n["default"]=i.exports},242:function(e,n,t){"use strict";t.r(n);var o=t(243);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},243:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return c})),t.d(n,"components",(function(){return o}));try{o={uCountDown:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-count-down/u-count-down")]).then(t.bind(null,430))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,347))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},c=!1,u=[];r._withStripped=!0},244:function(e,n,t){"use strict";t.r(n);var o=t(245),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},245:function(e,n,t){"use strict";(function(e){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(63)),c=o(t(65)),u=t(35),a={data:function(){return{needPersonSecret:!1,isAnimate:!1,tempVideoPath:"",tips:"⚪录制",isEnd:!0}},onLoad:function(){var n=this;return(0,c.default)(r.default.mark((function t(){var o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,u.configFun)();case 2:o=t.sent,200===o.code&&(n.needPersonSecret=o.data.needPersonSecret),n.ctx=e.createCameraContext(),n.tips="⚪录制";case 6:case"end":return t.stop()}}),t)})))()},methods:{startRecord:function(){var n=this;this.ctx.startRecord({success:function(t){n.isAnimate=!0,n.tips="⚪录制中",setTimeout((function(){n.ctx.stopRecord({success:function(t){console.log("自动停止录像",t),n.isAnimate=!1,n.$common.msgToast("录制完成"),n.tempVideoPath=t.tempVideoPath,n.tips="⚪录制完成",n.isEnd=!1,e.setStorageSync("tempVideoPath",t.tempVideoPath)}})}),5e3)}})},back:function(){e.navigateBack({delta:2})}}};n.default=a}).call(this,t(2)["default"])},246:function(e,n,t){"use strict";t.r(n);var o=t(247),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},247:function(e,n,t){}},[[240,"common/runtime","common/vendor"]]]);
11 months ago
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/cameraContext/cameraContext.js.map