index.js 466 B

1234567891011121314
  1. var sceneReadyBehavior = require('../../behavior-scene/scene-ready');
  2. var handleDecodedXML = require('../../behavior-scene/util').handleDecodedXML;
  3. var xmlCode = ``;
  4. Page({
  5. behaviors: [sceneReadyBehavior],
  6. data: {
  7. xmlCode: '<div class="codeWrap">' + handleDecodedXML(xmlCode) + '</div>',
  8. gesture: undefined,
  9. score: undefined
  10. },
  11. handleInfo: function({detail}) {
  12. this.setData({gesture: detail.gesture, score: detail.score.toFixed(2)});
  13. },
  14. });