12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- "use strict";
- var _page = _interopRequireDefault(require("../../common/page"));
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
- (0, _page["default"])({
- data: {
- switchTitle1: "包邮",
- switchTitle2: "团购",
- itemTitle: "筛选",
- option1: [{
- text: "全部商品",
- value: 0
- }, {
- text: "新款商品",
- value: 1
- }, {
- text: "活动商品",
- value: 2
- }],
- option2: [{
- text: "默认排序",
- value: "a"
- }, {
- text: "好评排序",
- value: "b"
- }, {
- text: "销量排序",
- value: "c"
- }],
- switch1: true,
- switch2: false,
- value1: 0,
- value2: "a"
- },
- onConfirm: function onConfirm() {
- this.selectComponent("#item").toggle();
- },
- onSwitch1Change: function onSwitch1Change(_ref) {
- var detail = _ref.detail;
- this.setData({
- switch1: detail
- });
- },
- onSwitch2Change: function onSwitch2Change(_ref2) {
- var detail = _ref2.detail;
- this.setData({
- switch2: detail
- });
- }
- });
|