jasondu / wxa-plugin-canvas

小程序海报组件-生成朋友圈分享海报并生成图片
Apache License 2.0
3.08k stars 486 forks source link

Wepy 框架支持下 #73

Open benzun opened 5 years ago

benzun commented 5 years ago

Wepy 框架支持下

jasondu commented 5 years ago

好的

aetherwu commented 5 years ago

请求 wepy 支持…… 非常感激不尽……

jasondu commented 5 years ago

@aetherwu 先用这种办法解决 Issue #40

aetherwu commented 5 years ago

@aetherwu 先用这种办法解决 Issue #40

这个已经做好了。先感谢po主大大。

建议能否把 config 放一个 demo 在README?想了半天才想起要到源代码里找demo(😳)

aetherwu commented 5 years ago

UPDATE

onPosterSuccess(e) { var that = this const { detail } = e; that.pic = detail

//   wx.previewImage({
//     current: detail,
//     urls: [detail]
//   });

  this.$apply();
},

测试了一下,直接调用就可以了,完全跑通,感谢po主大人。

onShareAppMessage(e) { return { title: '1111', path: '/pages/2222', imageUrl: this.pic, } }