图片保存修改

This commit is contained in:
GaoHao
2024-12-16 16:50:15 +08:00
parent aa7f7f3392
commit 2d61ed447f
2 changed files with 36 additions and 24 deletions

View File

@@ -379,11 +379,14 @@
uni.hideLoading();
},
successH5(haibaoImg) {
this.haibaoImgH5 = haibaoImg
uni.previewImage({
urls: [haibaoImg],
current: 1,
})
if ( haibaoImg ) {
this.haibaoImgH5 = haibaoImg
uni.previewImage({
urls: [haibaoImg],
current: 1,
})
}
},
showModal() {
// #ifndef H5
@@ -396,6 +399,7 @@
this.modalName = 'Image';
}
// #endif
// #ifdef H5
let ua = navigator.userAgent.toLowerCase();
if (ua.indexOf('micromessenger') !== -1) {
@@ -420,7 +424,6 @@
current: 1,
})
}
}
// #endif
},
@@ -476,6 +479,7 @@
//获取背景图
getBgImg() {
this.$u.get('app/banner/selectBannerList?classify=5').then(res => {
console.log(res)
if (res.code == 0) {
this.bgImg = res.data[0].imageUrl
this.tuiguang = res.data[0].describes
@@ -691,6 +695,7 @@
// 保存图片
async onSaveImg() {
this.showModal();
return
// #ifndef MP-WEIXIN
this.showModal();