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.

24 lines
432 B

  1. var app = getApp();
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. detail: '',
  8. contentType: '',
  9. remark: ''
  10. },
  11. onLoad: function (e) {
  12. console.log(decodeURI(e.remark))
  13. console.log(encodeURI(e.remark))
  14. let str = e.contentType == 0 ? e.remark : app.globalData.curHtml;
  15. this.setData({
  16. detail: e.detail,
  17. remark: str,
  18. contentType: e.contentType,
  19. })
  20. console.log(e)
  21. }
  22. })