海报生成

main
shuxiaoquan 8 months ago
parent 9f29108806
commit f63de31031
  1. 26
      pages/invite/index.vue

@ -5,7 +5,7 @@
</view>
<view class="invite-hd">
<!-- <image :src="$picUrl+'/static/news/invite-bg.png'"></image> -->
<view class="btn" @click="createImge">
<view class="btn" @click="openPage(3)">
</view>
<view class="rule" @click="openPage(4)"></view>
</view>
@ -154,17 +154,17 @@
success: function(res) {
// H5tempFilePath base64
console.log(res.tempFilePath)
// uni.saveImageToPhotosAlbum({
// filePath: res.tempFilePath,
// success(data) {
// that.$success('')
// },
// fail(err) {
// if (err.errMsg === 'saveImageToPhotosAlbum:fail auth deny') {
// that.$toast('访 ( - - )', 3000)
// }
// }
// })
uni.saveImageToPhotosAlbum({
filePath: res.tempFilePath,
success(data) {
that.$success('保存成功')
},
fail(err) {
if (err.errMsg === 'saveImageToPhotosAlbum:fail auth deny') {
that.$toast('请允许访问相册后重试 (右上角菜单 - 设置 - 相册)', 3000)
}
}
})
}
})
@ -229,7 +229,7 @@
if(type == 1){
return ;
}else{
this.createImge();
}
return ;
uni.showLoading({

Loading…
Cancel
Save