index.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. "use strict";
  2. var _page = _interopRequireDefault(require("../../common/page"));
  3. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  4. var _my = require("../../__antmove/api/index.js")(my);
  5. var wx = _my;
  6. (0, _page["default"])({
  7. data: {
  8. tabs2: [1, 2],
  9. tabs3: [1, 2, 3],
  10. tabs4: [1, 2, 3, 4],
  11. tabs6: [1, 2, 3, 4, 5, 6],
  12. tabsWithName: [{
  13. name: "a",
  14. index: 1
  15. }, {
  16. name: "b",
  17. index: 2
  18. }, {
  19. name: "c",
  20. index: 3
  21. }]
  22. },
  23. onClickDisabled: function onClickDisabled(event) {
  24. wx.showToast({
  25. title: "\u6807\u7B7E ".concat(event.detail.index + 1, " \u5DF2\u88AB\u7981\u7528"),
  26. icon: "none"
  27. });
  28. },
  29. onChange: function onChange(event) {
  30. wx.showToast({
  31. title: "\u5207\u6362\u5230\u6807\u7B7E ".concat(event.detail.index + 1),
  32. icon: "none"
  33. });
  34. },
  35. onClickNavRight: function onClickNavRight() {
  36. wx.showToast({
  37. title: "点击 right nav",
  38. icon: "none"
  39. });
  40. },
  41. onClick: function onClick(event) {
  42. wx.showToast({
  43. title: "\u70B9\u51FB\u6807\u7B7E ".concat(event.detail.index + 1),
  44. icon: "none"
  45. });
  46. }
  47. });