|
...
|
...
|
@@ -14,27 +14,8 @@ Page({ |
|
|
|
pagesHeight:'auto',
|
|
|
|
current:0,
|
|
|
|
currentView:1,
|
|
|
|
palette:{
|
|
|
|
background: '#fff',
|
|
|
|
width: '2rpx',
|
|
|
|
height: '2rpx',
|
|
|
|
views: [
|
|
|
|
{
|
|
|
|
type:'image',
|
|
|
|
url:'',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'image',
|
|
|
|
url: '',
|
|
|
|
css: {
|
|
|
|
bottom: '48rpx',
|
|
|
|
right: '48rpx',
|
|
|
|
width: '192rpx',
|
|
|
|
height: '192rpx',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
}
|
|
|
|
paletteImageSrc:'',
|
|
|
|
palette:null,
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -61,14 +42,55 @@ Page({ |
|
|
|
success:res=>{
|
|
|
|
console.log('cli.im.res:',res.data.data);
|
|
|
|
this.setData({
|
|
|
|
[`palette.width`]:getApp().system.windowWidth+'px',
|
|
|
|
[`palette.height`]:getApp().system.windowHeight+'px',
|
|
|
|
[`palette.views[0].url`]:'https://xt04.colorcun.com/sellerShare/Share_'+this.options.id+'.png',
|
|
|
|
[`palette.views[0].css.width`]:getApp().system.windowWidth+'px',
|
|
|
|
[`palette.views[0].css.height`]:(480*(getApp().system.windowWidth/600))+'px',
|
|
|
|
[`palette.views[0].css.mode`]:'aspectFill',
|
|
|
|
|
|
|
|
[`palette.views[1].url`]:res.data.data,
|
|
|
|
palette:{
|
|
|
|
background: '#fff',
|
|
|
|
width: getApp().system.windowWidth+'px',
|
|
|
|
height: getApp().system.windowHeight+'px',
|
|
|
|
views: [
|
|
|
|
{
|
|
|
|
type:'image',
|
|
|
|
url:'https://xt04.colorcun.com/sellerShare/Share_'+this.options.id+'.png',
|
|
|
|
css:{
|
|
|
|
width:getApp().system.windowWidth+'px',
|
|
|
|
height:(480*(getApp().system.windowWidth/600))+'px',
|
|
|
|
mode:'aspectFill'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type:'text',
|
|
|
|
text: "陕西风味面馆",
|
|
|
|
css:{
|
|
|
|
fontSize:'14px',
|
|
|
|
color:'#f00',
|
|
|
|
background:'#ff0',
|
|
|
|
padding:'8px 20px',
|
|
|
|
top:(480*(getApp().system.windowWidth/600)+20)+'px',
|
|
|
|
left:'16px',
|
|
|
|
lineHeight:'18px'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type:'rect',
|
|
|
|
css:{
|
|
|
|
color:'rgba(0,0,0,0.5)',
|
|
|
|
top:(480*(getApp().system.windowWidth/600)+12)+'px',
|
|
|
|
left:'0px',
|
|
|
|
width:'320px',
|
|
|
|
height:'34px'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'image',
|
|
|
|
url: res.data.data,
|
|
|
|
css: {
|
|
|
|
bottom: '48rpx',
|
|
|
|
right: '48rpx',
|
|
|
|
width: '192rpx',
|
|
|
|
height: '192rpx',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
...
|
...
|
@@ -254,7 +276,8 @@ Page({ |
|
|
|
})
|
|
|
|
},
|
|
|
|
shareUserinfo(){
|
|
|
|
util.toast('授权成功,请继续分享','none');
|
|
|
|
//util.toast('授权成功,请继续分享','none');
|
|
|
|
this.selectComponent('#share').show()
|
|
|
|
},
|
|
|
|
bindtransition(e){
|
|
|
|
this.setData({
|
|
...
|
...
|
@@ -262,6 +285,9 @@ Page({ |
|
|
|
})
|
|
|
|
},
|
|
|
|
onImgOK(e){
|
|
|
|
console.log('onImgOK',e)
|
|
|
|
console.log('onImgOK',e.detail.path)
|
|
|
|
this.setData({
|
|
|
|
paletteImageSrc:e.detail.path
|
|
|
|
})
|
|
|
|
},
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|