家政小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425
  1. const WxParse = require('../../wxParse/wxParse.js')
  2. const $ = global
  3. new $.Page({
  4. onLoad(options) {
  5. const id = options.id;
  6. if (id) {
  7. $.request('classifies', 'GET', {
  8. id
  9. }).then((res) => {
  10. var article = '<div>我是富文本</div>'
  11. /**
  12. * WxParse.wxParse(bindName , type, data, target,imagePadding)
  13. * 1.bindName绑定的数据名(必填)
  14. * 2.type可以为html或者md(必填)
  15. * 3.data为传入的具体数据(必填)
  16. * 4.target为Page对象,一般为this(必填)
  17. * 5.imagePadding为当图片自适应是左右的单一padding(默认为0,可选)
  18. */
  19. WxParse.wxParse('article', 'html', article, this, 5)
  20. });
  21. }
  22. },
  23. bookServer() {}
  24. })