"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var orderApi_1 = __importDefault(require("../../api/orderApi/orderApi")); var orderType = ['出校报备', '进校报备']; var reportStatus = ['通过', '院级审核', '校级审核', '退回']; Page({ data: {}, onLoad: function () { var _this = this; var qr_code = wx.getStorageSync("index/index"); orderApi_1.default.getOrderDetailByQrCode(qr_code).then(function (res) { res.reportStatus = reportStatus[res.reportStatus]; res.reportType = orderType[res.reportType]; _this.setData(res); }); }, onPass: function (event) { orderApi_1.default.passOrder(event.currentTarget.dataset.reportID); }, onDeny: function (event) { orderApi_1.default.denyOrder(event.currentTarget.dataset.reportID); }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { }, /** * 生命周期函数--监听页面隐藏 */ onHide: function () { }, /** * 生命周期函数--监听页面卸载 */ onUnload: function () { }, /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: function () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom: function () { }, /** * 用户点击右上角分享 */ onShareAppMessage: function () { } });