shareQrCode.js 3.5 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/shareQrCode"],{"00ee":function(t,e,o){},"0779":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},r=[]},2483:function(t,e,o){"use strict";o.r(e);var n=o("0779"),r=o("bd02");for(var c in r)["default"].indexOf(c)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(c);o("987e");var i=o("f0c5"),a=Object(i["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=a.exports},7325:function(t,e,o){"use strict";(function(t){var n=o("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(o("9523")),c=o("26cb"),i=o("5635"),a=o("7346");function s(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function u(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?s(Object(o),!0).forEach((function(e){(0,r.default)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var f={data:function(){return{rwmListArr:[],current:0,imgSrc:""}},onLoad:function(e){t.showLoading({title:"邀请图生成中",mask:!0}),this.loadCodeList(),t.authorize({scope:"scope.writePhotosAlbum",complete:function(){}})},onShow:function(){this.loginInterceptor&&!this.hasLogin&&((0,a.saveUrl)(),(0,a.interceptor)())},onPullDownRefresh:function(){var e=this;setTimeout((function(){e.loadCodeList(),t.stopPullDownRefresh()}),1e3)},computed:u(u({},(0,c.mapState)(["weichatObj","baseURL","urlFile"])),(0,c.mapState)("user",["userInfo","orderInfo","hasLogin"])),methods:{comfirm:function(e){console.log(e);var o=this.uniCopy(e);!1===o?t.showToast({title:"不支持"}):t.showToast({title:"复制成功",icon:"none"})},uniCopy:function(e){t.setClipboardData({data:e,success:function(){return console.log("success"),!0}})},loadCodeList:function(){var e=this;(0,i.spreadBanner)({type:1}).then((function(o){200==o.status&&(console.log(o.data),e.rwmListArr=o.data,e.imgSrc=e.rwmListArr[0].poster),t.hideLoading()}))},currentChange:function(t){this.current=t.detail.current},seav:function(){t.getImageInfo({src:this.imgSrc,complete:function(e){var o=e.path;t.getSetting({success:function(e){console.log(e),e.authSetting["scope.writePhotosAlbum"]?t.saveImageToPhotosAlbum({filePath:o,complete:function(e){t.showToast({title:"保存图片成功!",duration:2e3,icon:"none"})}}):t.authorize({scope:"scope.writePhotosAlbum",success:function(e){t.saveImageToPhotosAlbum({filePath:o,complete:function(t){}})},complete:function(e){t.showToast({title:"请先授权保存图片",duration:2e3,icon:"none"}),obj.seav()}})}})}})}}};e.default=f}).call(this,o("543d")["default"])},"987e":function(t,e,o){"use strict";var n=o("00ee"),r=o.n(n);r.a},aa4c:function(t,e,o){"use strict";(function(t,e){var n=o("4ea4");o("3e39");n(o("66fd"));var r=n(o("2483"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(r.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])},bd02:function(t,e,o){"use strict";o.r(e);var n=o("7325"),r=o.n(n);for(var c in n)["default"].indexOf(c)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(c);e["default"]=r.a}},[["aa4c","common/runtime","common/vendor"]]]);