|
...
|
...
|
@@ -13,12 +13,16 @@ Page({ |
|
|
|
palette:null,
|
|
|
|
hasLoadData:false,
|
|
|
|
act:'',
|
|
|
|
hasActName:'',
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
*/
|
|
|
|
onLoad: function (options) {
|
|
|
|
this.options=options;
|
|
|
|
this.setData({
|
|
|
|
actType:options.act
|
|
|
|
})
|
|
|
|
this.GetSellerDetail();
|
|
|
|
},
|
|
|
|
|
|
...
|
...
|
@@ -142,8 +146,22 @@ Page({ |
|
|
|
},
|
|
|
|
onImgOK(e){
|
|
|
|
console.log('onImgOK',e.detail.path)
|
|
|
|
this.setData({
|
|
|
|
paletteImageSrc:e.detail.path,
|
|
|
|
wx.getImageInfo({
|
|
|
|
src:e.detail.path,
|
|
|
|
success:res=>{
|
|
|
|
let w=getApp().system.windowWidth
|
|
|
|
console.log('getImageInfo',res)
|
|
|
|
this.setData({
|
|
|
|
paletteImageWidth:w,
|
|
|
|
paletteImageHeight:w/res.width*res.height,
|
|
|
|
paletteImageSrc:e.detail.path,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
reviewImage(){
|
|
|
|
wx.previewImage({
|
|
|
|
urls:[this.data.paletteImageSrc],
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|