Commit b072204455d20cdc475a276b4a5730ea34a627a4

Authored by vking
1 parent d519d89b

painter

[submodule "components/painter"]
path = components/painter
url = https://github.com/Kujiale-Mobile/PainterCore.git
... ...
Subproject commit ef9e437398fb26868088b85a71dfc3076605cfd4
... ...
... ... @@ -14,6 +14,27 @@ 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',
},
}
],
}
},
/**
... ... @@ -30,6 +51,27 @@ Page({
IsCollectionSeller:res.data,
})
})
wx.request({
url:'https://cli.im/mina/generate_qrcode',
data:{
tpl_id: 25415,
code_type: 'wxcode',
'param_value[0]':80
},
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,
})
}
})
},
GetSellerDetail(){
let options=this.options
... ... @@ -219,4 +261,7 @@ Page({
currentView:e.detail.current+1
})
},
onImgOK(e){
console.log('onImgOK',e)
},
})
\ No newline at end of file
... ...
... ... @@ -10,6 +10,7 @@
"as":"/components/actionSheet/index",
"nav":"/components/nav/nav",
"getpos":"/components/userinfo/getpos",
"discount":"/components/reserve/discount"
"discount":"/components/reserve/discount",
"painter":"/components/painter/painter"
}
}
\ No newline at end of file
... ...
... ... @@ -160,4 +160,7 @@
</view>
<as id="as" items="{{seller.seller_tel}}" bindclick="reservePhone">拨打电话预订</as>
<getpos bindpos="onpos" id="getpos"></getpos>
<discount id="discount" seller="{{seller}}" bindhide="discountHide" bindshow="discountShow"></discount>
\ No newline at end of file
<discount id="discount" seller="{{seller}}" bindhide="discountHide" bindshow="discountShow"></discount>
<view>
<painter palette="{{palette}}" bind:imgOK="onImgOK" bind:imgErr="onImgOK"/>
</view>
\ No newline at end of file
... ...
{
"description": "项目配置文件。",
"setting": {
"urlCheck": true,
"urlCheck": false,
"es6": true,
"enhance": false,
"enhance": true,
"postcss": true,
"minified": true,
"newFeature": true,
... ...