123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/user/share" ], {
- 331: function(n, e, t) {
- (function(n) {
- function e(n) {
- return n && n.__esModule ? n : {
- default: n
- };
- }
- t(4), e(t(2)), n(e(t(332)).default);
- }).call(this, t(1).createPage);
- },
- 332: function(n, e, t) {
- t.r(e);
- var o = t(333), i = t(335);
- for (var r in i) "default" !== r && function(n) {
- t.d(e, n, function() {
- return i[n];
- });
- }(r);
- t(338);
- var s = t(13), a = Object(s.default)(i.default, o.render, o.staticRenderFns, !1, null, null, null, !1, o.components, void 0);
- a.options.__file = "pages/user/share.vue", e.default = a.exports;
- },
- 333: function(n, e, t) {
- t.r(e);
- var o = t(334);
- t.d(e, "render", function() {
- return o.render;
- }), t.d(e, "staticRenderFns", function() {
- return o.staticRenderFns;
- }), t.d(e, "recyclableRender", function() {
- return o.recyclableRender;
- }), t.d(e, "components", function() {
- return o.components;
- });
- },
- 334: function(n, e, t) {
- t.r(e), t.d(e, "render", function() {
- return o;
- }), t.d(e, "staticRenderFns", function() {
- return r;
- }), t.d(e, "recyclableRender", function() {
- return i;
- }), t.d(e, "components", function() {});
- var o = function() {
- var n = this;
- n.$createElement;
- n._self._c;
- }, i = !1, r = [];
- o._withStripped = !0;
- },
- 335: function(n, e, t) {
- t.r(e);
- var o = t(336), i = t.n(o);
- for (var r in o) "default" !== r && function(n) {
- t.d(e, n, function() {
- return o[n];
- });
- }(r);
- e.default = i.a;
- },
- 336: function(n, e, t) {
- (function(n) {
- Object.defineProperty(e, "__esModule", {
- value: !0
- }), e.default = void 0;
- var o = t(337), i = (t(27), {
- data: function() {
- return {
- shareList: [],
- swiperIndex: 0,
- poster: ""
- };
- },
- onLoad: function() {
- this.loadData();
- },
- methods: {
- bindchange: function(n) {
- var e = this.shareList;
- this.swiperIndex = n.detail.current, this.poster = e[this.swiperIndex].poster, console.log(this.poster);
- },
- savePosterPath: function() {
- var e = this;
- "" == e.poster && (e.poster = e.shareList[0].poster), n.downloadFile({
- url: e.poster,
- success: function(t) {
- if (200 !== t.statusCode) return e.$api.msg(t.errMsg);
- n.getSetting({
- success: function(o) {
- o.authSetting["scope.writePhotosAlbum"] ? n.saveImageToPhotosAlbum({
- filePath: t.tempFilePath,
- success: function(n) {
- return e.$api.msg("保存成功");
- },
- fail: function(n) {
- return e.$api.msg(n.errMsg);
- },
- complete: function(n) {}
- }) : n.authorize({
- scope: "scope.writePhotosAlbum",
- success: function() {
- n.saveImageToPhotosAlbum({
- filePath: t.tempFilePath,
- success: function(n) {
- return e.$api.msg("保存成功");
- },
- fail: function(n) {
- return e.$api.msg(n.errMsg);
- },
- complete: function(n) {}
- });
- },
- fail: function() {
- n.showModal({
- title: "您已拒绝获取相册权限",
- content: "是否进入权限管理,调整授权?",
- success: function(t) {
- if (t.confirm) n.openSetting({
- success: function(n) {
- console.log(n.authSetting);
- }
- }); else if (t.cancel) return e.$api.msg("已取消!");
- }
- });
- }
- });
- },
- fail: function(n) {}
- });
- },
- fail: function(n) {
- return e.$api.msg(n.errMsg);
- }
- });
- },
- seav: function(e) {
- n.showLoading({
- title: "生成中...",
- mask: !0
- }), n.saveImageToPhotosAlbum({
- filePath: this.poster,
- complete: function(e) {
- n.hideLoading(), console.log(e), n.showToast({
- title: "保存图片成功!",
- duration: 2e3,
- icon: "none"
- });
- }
- });
- },
- loadData: function() {
- var e = this;
- n.showLoading({
- title: "获取中",
- mask: !0
- }), (0, o.spreadBanner)({
- type: 1
- }).then(function(t) {
- n.hideLoading(), e.shareList = t.data;
- }).catch(function(e) {
- n.hideLoading();
- });
- }
- }
- });
- e.default = i;
- }).call(this, t(1).default);
- },
- 338: function(n, e, t) {
- t.r(e);
- var o = t(339), i = t.n(o);
- for (var r in o) "default" !== r && function(n) {
- t.d(e, n, function() {
- return o[n];
- });
- }(r);
- e.default = i.a;
- },
- 339: function(n, e, t) {}
- }, [ [ 331, "common/runtime", "common/vendor" ] ] ]);
|