diff --git a/manifest.json b/manifest.json index 48e8e2c..7e9ffd5 100644 --- a/manifest.json +++ b/manifest.json @@ -28,28 +28,22 @@ /* android打包配置 */ "android" : { "permissions" : [ - "", - "", - "", - "", - "", - "", + "", "", - "", + "", + "", "", + "", "", - "", - "", - "", - "", + "", "", - "", - "", "", - "", - "", - "", - "" + "", + "", + "", + "", + "", + "" ] }, /* ios打包配置 */ diff --git a/pages/activity/Poster/index.vue b/pages/activity/Poster/index.vue index 4b9cda3..866caa8 100644 --- a/pages/activity/Poster/index.vue +++ b/pages/activity/Poster/index.vue @@ -4,7 +4,7 @@ 提示:长按图片保存至手机相册 - + @@ -36,54 +36,56 @@ } }, methods: { - // 砍价海报 - getBargainPoster: function () { - var that = this; - let from = this.$deviceType - if (from == 'weixin' || this.$deviceType == 'weixinh5') { - from = 'uniappH5' - } - getBargainPoster({ - bargainId: that.id, - from - }) - .then(res => { - that.image = res.data.url; - that.status = false; - }) - .catch(res => { - uni.showToast({ - title: res.msg, - icon: "none", - duration: 2000 - }); - }); - }, - // 拼团海报 - getCombinationPoster: function () { - var that = this; - console.log(this.$deviceType) - let from = this.$deviceType - if (from == 'weixin' || this.$deviceType == 'weixinh5') { - from = 'uniappH5' - } - console.log(from) - getCombinationPoster({ - id: that.id, - from - }) - .then(res => { - that.image = res.data.url; - that.status = false; - }) - .catch(res => { - uni.showToast({ - title: res.msg, - icon: "none", - duration: 2000 - }); - }); - } + // 砍价海报 + getBargainPoster: function () { + var that = this; + let from = this.$deviceType + if (from == 'weixin' || this.$deviceType == 'weixinh5') { + from = 'uniappH5' + } + getBargainPoster({ + bargainId: that.id, + from + }) + .then(res => { + that.image = res.data.url; + that.status = false; + }) + .catch(res => { + uni.showToast({ + title: res.msg, + icon: "none", + duration: 2000 + }); + }); + }, + // 拼团海报 + getCombinationPoster: function () { + var that = this; + console.log(this.$deviceType) + let from = this.$deviceType + if (from == 'weixin' || this.$deviceType == 'weixinh5') { + from = 'uniappH5' + } + console.log(from) + getCombinationPoster({ + id: that.id, + from + }) + .then(res => { + that.image = res.data.url; + that.status = false; + }) + .catch(res => { + uni.showToast({ + title: res.msg, + icon: "none", + duration: 2000 + }); + }); + }, + // 长按保存图片 + longtap () {} } };