item.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. },
  9. onLoad: function() {
  10. this.setData({
  11. Containnerheight: server.getWindowHeight(),
  12. TestDivEquation1: [{ Type: 'number', Array: ['', '', '', '1', '2', '3'] },
  13. {
  14. Type: 'number',
  15. Array: ['×', '', '', '', '4', '5', '0', '0']
  16. },
  17. {
  18. Type: 'line',
  19. Array: ['1', '1', '1', '1', '1', '1', '1', '1']
  20. },
  21. { Type: 'number', Array: ['', '', '', '6', '1', '5'] },
  22. { Type: 'number', Array: ['', '', '4', '9', '2'] },
  23. {
  24. Type: 'line',
  25. Array: ['1', '1', '1', '1', '1', '1', '1', '1']
  26. },
  27. {
  28. Type: 'number',
  29. Array: ['', '', '5', '5', '3', '5', '0', '0']
  30. }],
  31. TestDivEquation2: [{
  32. Type: 'number',
  33. Array: ['', '', '', '', '0', '.', '6', '2', '5']
  34. },
  35. {
  36. Type: 'line',
  37. Array: ['', '', '0.5', '1', '1', '1', '1', '1', '1']
  38. },
  39. { Type: 'number', Array: ['5', '6', '√', '3', '5', '0'] },
  40. { Type: 'number', Array: ['', '', '', '3', '3', '6'] },
  41. { Type: 'line', Array: ['', '', '', '1', '1', '1'] },
  42. { Type: 'number', Array: ['', '', '', '', '1', '4', '0'] },
  43. { Type: 'number', Array: ['', '', '', '', '1', '1', '2'] },
  44. { Type: 'line', Array: ['', '', '', '', '1', '1', '1'] },
  45. { Type: 'number', Array: ['', '', '', '', '', '2', '8', '0'] },
  46. { Type: 'number', Array: ['', '', '', '', '', '2', '8', '0'] },
  47. { Type: 'line', Array: ['', '', '', '', '', '1', '1', '1'] },
  48. { Type: 'number', Array: ['', '', '', '', '', '', '', '0'] }]
  49. });
  50. },
  51. onShareAppMessage: function() {
  52. return {
  53. title: '',
  54. path: 'pages/index/index',
  55. success: function(res) {},
  56. fail: function(err) {
  57. console.log(err);
  58. },
  59. complete: function(res) {
  60. console.log(res);
  61. },
  62. }
  63. },
  64. })