index.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. "use strict";
  2. var _page = _interopRequireDefault(require("../../common/page"));
  3. var _toast = _interopRequireDefault(require("../../dist/toast/toast"));
  4. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  5. 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; }
  6. (0, _page["default"])({
  7. data: {
  8. active1: [0],
  9. active2: 0,
  10. active3: [],
  11. active4: [],
  12. title1: "有赞微商城",
  13. title2: "有赞零售",
  14. title3: "有赞美业",
  15. content1: "提供多样店铺模板,快速搭建网上商城",
  16. content2: "网店吸粉获客、会员分层营销、一机多种收款,告别经营低效和客户流失",
  17. content3: "线上拓客,随时预约,贴心顺手的开单收银"
  18. },
  19. onChange: function onChange(event) {
  20. var key = event.currentTarget.dataset.key;
  21. this.setData(_defineProperty({}, key, event.detail));
  22. },
  23. onOpen: function onOpen(event) {
  24. (0, _toast["default"])("\u5C55\u5F00: ".concat(event.detail));
  25. },
  26. onClose: function onClose(event) {
  27. (0, _toast["default"])("\u5173\u95ED: ".concat(event.detail));
  28. }
  29. });