index.js 417 B

12345678910111213
  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. score: undefined
  9. },
  10. handleInfo: function({detail}) {
  11. this.setData({score: detail.score.toFixed(2)});
  12. },
  13. });