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
4.4 KiB
11 lines
4.4 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tab/home"],{"667b":function(n,o,t){"use strict";t.r(o);var e=t("f85c"),i=t.n(e);for(var u in e)"default"!==u&&function(n){t.d(o,n,(function(){return e[n]}))}(u);o["default"]=i.a},"76dd":function(n,o,t){"use strict";var e=t("e035"),i=t.n(e);i.a},9936:function(n,o,t){"use strict";t.r(o);var e=t("fbee"),i=t("667b");for(var u in i)"default"!==u&&function(n){t.d(o,n,(function(){return i[n]}))}(u);t("76dd");var a,c=t("f0c5"),s=Object(c["a"])(i["default"],e["b"],e["c"],!1,null,"1489abbb",null,!1,e["a"],a);o["default"]=s.exports},e035:function(n,o,t){},f85c:function(n,o,t){"use strict";(function(n){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var e=i(t("d4d8"));function i(n){return n&&n.__esModule?n:{default:n}}var u={data:function(){return{value:"",type:"text",border:!0,status:!1,progress:0,mp4url:"",bannerid:n.getStorageSync("bannerid"),vidlkklkhjg:null}},onLoad:function(){},methods:{setInputValue:function(n){this.value=n},query:function(){n.showLoading({title:"正在解析",mask:!0});var o=this;o.status=!1,n.login({success:function(n){var t=n.code;o._get("",{url:e.default.handleUrl(o.value),js_code:t},(function(n){}))}})},onClick:function(o){o&&n.navigateTo({url:o})},copydownurl:function(){var o=this;n.setClipboardData({data:o.mp4url,success:function(o){n.showToast({title:"复制成功",icon:"success",duration:800}),setTimeout((function(){n.hideToast({})}),800)}})},guankanjili:function(){var o=this;n.createRewardedVideoAd&&null==o.vidlkklkhjg&&(o.vidlkklkhjg=n.createRewardedVideoAd({adUnitId:wx.getStorageSync("jiliAdid")}),o.vidlkklkhjg.onLoad((function(){})),o.vidlkklkhjg.onClose((function(t){t&&t.isEnded?o.downloads():n.showToast({icon:"none",title:"保存失败,中途关闭广告!"})})),o.vidlkklkhjg.onError((function(n){}))),n.showModal({title:"提示",content:"观看广告,才能解锁下载",success:function(n){n.confirm?o.vidlkklkhjg?o.vidlkklkhjg.show().catch((function(){o.vidlkklkhjg.load().then((function(){return o.vidlkklkhjg.show()})).catch((function(n){console.log("激励视频 广告显示失败"),o.downloads()}))})):o.downloads():n.cancel&&console.log("用户点击取消")}})},downloads:function(){var o=this;o.progress=0;var t=this;wx.authorize({scope:"scope.writePhotosAlbum",success:function(){t.setData({modalName:"downloadProcessModal"}),n.showToast({title:"开始下载!",icon:"loading",duration:1e3}),n.downloadFile({url:o.downloadvideo+encodeURIComponent(o.mp4url),success:function(o){200===o.statusCode&&(n.hideToast({}),n.saveVideoToPhotosAlbum({filePath:o.tempFilePath,success:function(o){n.showModal({title:"下载成功",content:"请在系统相册中查看!",confirmColor:"#ff9900",showCancel:!1,success:function(n){}})}}))},fail:function(t){console.log(t),n.hideToast({}),n.showModal({title:"下载失败",content:"失败",confirmColor:"#ff9900",showCancel:!1,success:function(n){o.setData({})}})}}).onProgressUpdate((function(t){console.log(t),"1"===o.progress?n.showToast({title:String(t.progress)+"%",icon:"loading",duration:8e4}):n.showToast({title:"下载中...",icon:"loading",duration:8e4})}))}})},_get:function(o,t,e,i,u,a){var c=this;t=t||{};var s=function(){n.request({url:c.watermarkUrl,header:{"content-type":"application/x-www-form-urlencoded"},method:"post",data:t,success:function(n){var o=JSON.parse(n.data);console.log(o),"200"!==o.code?(c.showError("解析失败"),c.status=!1):(c.mp4url=o.data.url,c.status=!0)},fail:function(n){c.status=!1},complete:function(o){n.hideNavigationBarLoading(),u&&u(o)}})};n.hideLoading(),s()}}};o.default=u}).call(this,t("543d")["default"])},fbee:function(n,o,t){"use strict";t.d(o,"b",(function(){return i})),t.d(o,"c",(function(){return u})),t.d(o,"a",(function(){return e}));var e={uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-input/u-input")]).then(t.bind(null,"f757"))},uButton:function(){return t.e("uview-ui/components/u-button/u-button").then(t.bind(null,"f63f"))},uIcon:function(){return t.e("uview-ui/components/u-icon/u-icon").then(t.bind(null,"a077"))}},i=function(){var n=this,o=n.$createElement;n._self._c},u=[]}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'pages/tab/home-create-component',
|
|
{
|
|
'pages/tab/home-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('543d')['createComponent'](__webpack_require__("9936"))
|
|
})
|
|
},
|
|
[['pages/tab/home-create-component']]
|
|
]);
|