index.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. "use strict";
  2. var _page = _interopRequireDefault(require("../../common/page"));
  3. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  4. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  5. var _my = require("../../__antmove/api/index.js")(my);
  6. var wx = _my;
  7. (0, _page["default"])({
  8. data: {
  9. active: 0,
  10. active2: "home",
  11. active3: 0,
  12. active4: 0,
  13. active5: 0,
  14. active6: 0,
  15. icon: {
  16. normal: "https://img.yzcdn.cn/vant/user-inactive.png",
  17. active: "https://img.yzcdn.cn/vant/user-active.png"
  18. }
  19. },
  20. onChange: function onChange(event) {
  21. var key = event.currentTarget.dataset.key;
  22. this.setData(_defineProperty({}, key, event.detail));
  23. },
  24. handleChange: function handleChange(event) {
  25. var key = event.currentTarget.dataset.key;
  26. this.setData(_defineProperty({}, key, event.detail));
  27. wx.showToast({
  28. title: "\u70B9\u51FB\u6807\u7B7E ".concat(event.detail + 1),
  29. icon: "none"
  30. });
  31. }
  32. });