answer.js 750 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import common from '../../utils/util';
  2. import server from '../../utils/main';
  3. const app = getApp()
  4. Page({
  5. data: {
  6. version: app.globalData.version,
  7. FileUrl: app.globalData.fileUrl,
  8. IsEdit:false,
  9. },
  10. onLoad: function () {
  11. this.setData({
  12. Containnerheight: server.getWindowHeight(),
  13. });
  14. },
  15. btnEdit:function(){
  16. var that=this;
  17. that.data.IsEdit=!that.data.IsEdit;
  18. that.setData({
  19. IsEdit: that.data.IsEdit,
  20. });
  21. },
  22. onShareAppMessage: function () {
  23. return {
  24. title: '',
  25. path: 'pages/index/index',
  26. success: function (res) {
  27. },
  28. fail: function (err) {
  29. console.log(err);
  30. },
  31. complete: function (res) {
  32. console.log(res);
  33. },
  34. }
  35. },
  36. })