Commit b072204455d20cdc475a276b4a5730ea34a627a4

Authored by vking
1 parent d519d89b

painter

  1 +[submodule "components/painter"]
  2 + path = components/painter
  3 + url = https://github.com/Kujiale-Mobile/PainterCore.git
  1 +Subproject commit ef9e437398fb26868088b85a71dfc3076605cfd4
@@ -14,6 +14,27 @@ Page({ @@ -14,6 +14,27 @@ Page({
14 pagesHeight:'auto', 14 pagesHeight:'auto',
15 current:0, 15 current:0,
16 currentView:1, 16 currentView:1,
  17 + palette:{
  18 + background: '#fff',
  19 + width: '2rpx',
  20 + height: '2rpx',
  21 + views: [
  22 + {
  23 + type:'image',
  24 + url:'',
  25 + },
  26 + {
  27 + type: 'image',
  28 + url: '',
  29 + css: {
  30 + bottom: '48rpx',
  31 + right: '48rpx',
  32 + width: '192rpx',
  33 + height: '192rpx',
  34 + },
  35 + }
  36 + ],
  37 + }
17 }, 38 },
18 39
19 /** 40 /**
@@ -30,6 +51,27 @@ Page({ @@ -30,6 +51,27 @@ Page({
30 IsCollectionSeller:res.data, 51 IsCollectionSeller:res.data,
31 }) 52 })
32 }) 53 })
  54 + wx.request({
  55 + url:'https://cli.im/mina/generate_qrcode',
  56 + data:{
  57 + tpl_id: 25415,
  58 + code_type: 'wxcode',
  59 + 'param_value[0]':80
  60 + },
  61 + success:res=>{
  62 + console.log('cli.im.res:',res.data.data);
  63 + this.setData({
  64 + [`palette.width`]:getApp().system.windowWidth+'px',
  65 + [`palette.height`]:getApp().system.windowHeight+'px',
  66 + [`palette.views[0].url`]:'https://xt04.colorcun.com/sellerShare/Share_'+this.options.id+'.png',
  67 + [`palette.views[0].css.width`]:getApp().system.windowWidth+'px',
  68 + [`palette.views[0].css.height`]:(480*(getApp().system.windowWidth/600))+'px',
  69 + [`palette.views[0].css.mode`]:'aspectFill',
  70 +
  71 + [`palette.views[1].url`]:res.data.data,
  72 + })
  73 + }
  74 + })
33 }, 75 },
34 GetSellerDetail(){ 76 GetSellerDetail(){
35 let options=this.options 77 let options=this.options
@@ -219,4 +261,7 @@ Page({ @@ -219,4 +261,7 @@ Page({
219 currentView:e.detail.current+1 261 currentView:e.detail.current+1
220 }) 262 })
221 }, 263 },
  264 + onImgOK(e){
  265 + console.log('onImgOK',e)
  266 + },
222 }) 267 })
@@ -10,6 +10,7 @@ @@ -10,6 +10,7 @@
10 "as":"/components/actionSheet/index", 10 "as":"/components/actionSheet/index",
11 "nav":"/components/nav/nav", 11 "nav":"/components/nav/nav",
12 "getpos":"/components/userinfo/getpos", 12 "getpos":"/components/userinfo/getpos",
13 - "discount":"/components/reserve/discount" 13 + "discount":"/components/reserve/discount",
  14 + "painter":"/components/painter/painter"
14 } 15 }
15 } 16 }
@@ -160,4 +160,7 @@ @@ -160,4 +160,7 @@
160 </view> 160 </view>
161 <as id="as" items="{{seller.seller_tel}}" bindclick="reservePhone">拨打电话预订</as> 161 <as id="as" items="{{seller.seller_tel}}" bindclick="reservePhone">拨打电话预订</as>
162 <getpos bindpos="onpos" id="getpos"></getpos> 162 <getpos bindpos="onpos" id="getpos"></getpos>
163 -<discount id="discount" seller="{{seller}}" bindhide="discountHide" bindshow="discountShow"></discount>  
  163 +<discount id="discount" seller="{{seller}}" bindhide="discountHide" bindshow="discountShow"></discount>
  164 +<view>
  165 +<painter palette="{{palette}}" bind:imgOK="onImgOK" bind:imgErr="onImgOK"/>
  166 +</view>
1 { 1 {
2 "description": "项目配置文件。", 2 "description": "项目配置文件。",
3 "setting": { 3 "setting": {
4 - "urlCheck": true, 4 + "urlCheck": false,
5 "es6": true, 5 "es6": true,
6 - "enhance": false, 6 + "enhance": true,
7 "postcss": true, 7 "postcss": true,
8 "minified": true, 8 "minified": true,
9 "newFeature": true, 9 "newFeature": true,