tips.js 978 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import common from '../../utils/util';
  2. import main from '../../utils/main';
  3. const app = getApp();
  4. Page({
  5. data: {
  6. List: [],
  7. },
  8. onLoad: function (options) {
  9. var that = this;
  10. that.setData({
  11. Containnerheight: main.getWindowHeight(),
  12. });
  13. that.init();
  14. },
  15. init: function (e) {
  16. var that=this;
  17. main.getData("GetMiaoguoTipsList", function (data) {
  18. that.setData({
  19. List: data,
  20. });
  21. wx.setStorageSync("MiaoguoTipsList", data);
  22. });
  23. },
  24. goto: function (e) {
  25. var id = e.currentTarget.dataset.id;
  26. var idchild = e.currentTarget.dataset.idchild;
  27. wx.navigateTo({
  28. url: './help?id='+id+'&idchild='+idchild,
  29. });
  30. },
  31. onShareAppMessage: function () {
  32. return {
  33. title: app.globalData.ShareTitle,
  34. path: app.globalData.SharePath + '?type=tips&UserID=' + app.globalData.userInfo.UserID,
  35. imageUrl: app.globalData.uploadImageUrl +"web/program_screenshot_tips.png",
  36. }
  37. },
  38. })