index.js 163 B

123456789101112
  1. var t = getApp();
  2. Component({
  3. data: {
  4. isIpx: false
  5. },
  6. attached: function () {
  7. t.globalData.isIpx && this.setData({
  8. isIpx: true
  9. });
  10. }
  11. });