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.
11 lines
3.3 KiB
11 lines
3.3 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tab/md5"],{2772:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var s=function(){var e=this,t=e.$createElement;e._self._c},a=[]},"2dfe":function(e,t,n){},"371a":function(e,t,n){"use strict";n.r(t);var i=n("732e"),s=n.n(i);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=s.a},"732e":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n("d4d8"));function s(e){return e&&e.__esModule?e:{default:e}}var a={data:function(){return{xiugaistate:1,urldata:"",oldmd5:"",newmd5:"",durationtime:"",videosize:"",videoAdid:e.getStorageSync("videoAdid")}},methods:{saveImageToPhotosAlbum:function(){e.saveImageToPhotosAlbum({filePath:this.images,success:function(){e.showToast({title:"海报已保存到相册",icon:"success",duration:2500})}})},resetvideo:function(){var t=this;e.getFileSystemManager().unlink({filePath:wx.env.USER_DATA_PATH+"/test.mp4",success:function(e){"unlink:ok"==e.errMsg&&t.setData({xiugaistate:1})}})},savevideo:function(){var e=this,t=wx.getFileSystemManager();wx.saveVideoToPhotosAlbum({filePath:wx.env.USER_DATA_PATH+"/test.mp4",success:function(n){"saveVideoToPhotosAlbum:ok"==n.errMsg&&t.unlink({filePath:wx.env.USER_DATA_PATH+"/test.mp4",success:function(t){"unlink:ok"==t.errMsg&&e.setData({xiugaistate:1,tishitext:"视频保存成功,请到手机相册中查看"})}})},fail:function(t){"saveVideoToPhotosAlbum:fail auth deny"==t.errMsg?wx.showModal({title:"保存失败",content:"你需要设置授权保存到相册",cancelText:"不设置",confirmText:"去设置",success:function(e){e.confirm?wx.openSetting({success:function(e){}}):e.cancel}}):"saveVideoToPhotosAlbum:fail invalid video"==t.errMsg&&e.setData({tishitext:"视频保存失败,联系客服修复"})}})},addvideobutton:function(){var t=this;e.chooseVideo({sourceType:["album"],success:function(n){var s=i.default.duration(n.duration),a=i.default.kb(n.size),o=e.getFileSystemManager();e.getFileInfo({filePath:n.tempFilePath,success:function(e){t.setData({oldmd5:e.digest,durationtime:s,videosize:a})}}),o.saveFile({tempFilePath:n.tempFilePath,filePath:wx.env.USER_DATA_PATH+"/test.mp4",success:function(n){console.log(n),o.appendFile({filePath:wx.env.USER_DATA_PATH+"/test.mp4",data:"01",success:function(n){e.getFileInfo({filePath:wx.env.USER_DATA_PATH+"/test.mp4",success:function(e){"getFileInfo:ok"==e.errMsg&&t.setData({newmd5:e.digest,urldata:wx.env.USER_DATA_PATH+"/test.mp4",xiugaistate:2})}})}})}})}})}}};t.default=a}).call(this,n("543d")["default"])},"76c5":function(e,t,n){"use strict";var i=n("2dfe"),s=n.n(i);s.a},c924:function(e,t,n){"use strict";n.r(t);var i=n("2772"),s=n("371a");for(var a in s)"default"!==a&&function(e){n.d(t,e,(function(){return s[e]}))}(a);n("76c5");var o,u=n("f0c5"),c=Object(u["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],o);t["default"]=c.exports}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'pages/tab/md5-create-component',
|
|
{
|
|
'pages/tab/md5-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('543d')['createComponent'](__webpack_require__("c924"))
|
|
})
|
|
},
|
|
[['pages/tab/md5-create-component']]
|
|
]);
|