index.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. value: ""
  9. },
  10. onChange: function onChange(e) {
  11. this.setData({
  12. value: e.detail
  13. });
  14. },
  15. onSearch: function onSearch() {
  16. if (this.data.value) {
  17. wx.showToast({
  18. title: "搜索:" + this.data.value,
  19. icon: "none"
  20. });
  21. }
  22. },
  23. onClick: function onClick() {
  24. if (this.data.value) {
  25. wx.showToast({
  26. title: "搜索:" + this.data.value,
  27. icon: "none"
  28. });
  29. }
  30. },
  31. onCancel: function onCancel() {
  32. wx.showToast({
  33. title: "取消",
  34. icon: "none"
  35. });
  36. },
  37. onClear: function onClear() {
  38. wx.showToast({
  39. title: "清空",
  40. icon: "none"
  41. });
  42. },
  43. antmoveAction: function antmoveAction() {//执行时动态赋值,请勿删除
  44. }
  45. });