企微图

This commit is contained in:
老叶
2022-12-20 17:50:14 +08:00
parent 71267c64e3
commit 509bd02299
2 changed files with 16 additions and 6 deletions
+2 -2
View File
@@ -777,8 +777,8 @@ Page({
}
else if(e.currentTarget.dataset.type=='wx_img'){
wx.previewImage({
current:this.data.imgInfo.imgs.insurance_img.img,
urls:[this.data.imgInfo.imgs.insurance_img.img],
current:this.data.imgInfo.imgs.wx_img.img,
urls:[this.data.imgInfo.imgs.wx_img.img],
})
}
else if(e.currentTarget.dataset.type=='mut_wx_img'){
+14 -4
View File
@@ -29,8 +29,8 @@ Page({
})
if(res.data.img_status == 1){
this.setData({
wx_img:res.data.imgs.insurance_img.length==0?{}:res.data.imgs.wx_img,
mut_wx_img:res.data.imgs.insurance_img.length==0?{}:res.data.imgs.mut_wx_img,
wx_img:res.data.imgs.wx_img.length==0?{}:res.data.imgs.wx_img,
mut_wx_img:res.data.imgs.mut_wx_img.length==0?{}:res.data.imgs.mut_wx_img,
})
}
wx.stopPullDownRefresh()
@@ -69,6 +69,11 @@ Page({
that.getAppCusorderdata()
}).catch(res2=>{
wx.hideLoading();
wx.showToast({
title: '提交失败',
icon: 'none',
duration: 2000
})
});
}else{
wx.hideLoading();
@@ -119,6 +124,11 @@ Page({
that.getAppCusorderdata()
}).catch(res2=>{
wx.hideLoading();
wx.showToast({
title: '提交失败',
icon: 'none',
duration: 2000
})
});
}else{
wx.hideLoading();
@@ -147,8 +157,8 @@ Page({
previewImage: function (e) {
if(e.currentTarget.dataset.type=='wx_img'){
wx.previewImage({
current:this.data.imgInfo.imgs.insurance_img.img,
urls:[this.data.imgInfo.imgs.insurance_img.img],
current:this.data.imgInfo.imgs.wx_img.img,
urls:[this.data.imgInfo.imgs.wx_img.img],
})
}
else if(e.currentTarget.dataset.type=='mut_wx_img'){