"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var promise_wx_api_1 = require("../../../../utils/promise-wx-api"); Page({ data: { toDetail: false, current: 0, currentStatus: 0, tabsList: [ { name: '需求大厅', id: 0, }, { name: '我的需求', id: 1, } ], commonStatus: [ { name: '未处理', status: 'unprocessed', id: 0, url: 'heart/residemand/list-hall' }, { name: '处理中', status: 'processing', id: 1, url: 'heart/residemand/list-hall' }, { name: '已完成', status: 'finished', id: 2, url: 'heart/residemand/list-hall' } ], myDemand: [ { name: '未处理', status: 'unprocessed', id: 0, url: 'heart/residemand/mydemand' }, { name: '处理中', status: 'processing', id: 1, url: 'heart/residemand/mydemand' }, { name: '已完成', status: 'finished', id: 2, url: 'heart/residemand/mydemand' }, { name: '已取消', status: 'canceled', id: 3, url: 'heart/residemand/mydemand' } ], }, onLoad: function (options) { }, onReady: function () { }, onShow: function () { }, handleSwiperChange: function (e) { var _a = e.detail, current = _a.current, source = _a.source; if (source == "touch") { this.setData({ current: current }); } }, handleTabs: function (e) { var id = e.currentTarget.dataset.id; this.setData({ current: id }); }, handleTo: function () { console.log('tooo----'); promise_wx_api_1.wxNavigateTo('/subpages/points/pages/demand/list'); }, onHide: function () { }, onUnload: function () { }, onPullDownRefresh: function () { }, onReachBottom: function () { }, onShareAppMessage: function () { } });