我的真棒字体没有出现,我无法弄清楚为什么

时间:2019-04-12 04:13:46

标签: font-awesome

我有一个字体超赞的图标,由于某种原因我不想使用它,但我无法弄清楚原因

app.get('/admin', function(req, res) {
    var sql =
        'SELECT events.id, name, description, MONTHNAME(start_time) AS month, DAY(start_time) AS day, ' +
        "YEAR(start_time) AS year, DATE_FORMAT(start_time, '%h:%i%p') AS start_time, HOUR(start_time) AS start_hour, MINUTE(start_time) AS start_minute, " +
        "DATE_FORMAT(end_time, '%h:%i%p') AS end_time, HOUR(end_time) AS end_hour, MINUTE(end_time) AS end_minute, location, max_capacity, hidden_sign_up, " +
        'eventleaders.first_name AS eventLeader FROM events LEFT JOIN eventleaders_has_events ON events.id = eventleaders_has_events.events_id ' +
        'LEFT JOIN eventleaders ON eventleaders_has_events.eventleaders_id = eventleaders.id;';
    var events = {};
    con.query(sql, function(err, results) {
        if (err) throw err;
        async.forEachOf(results, function(result, key, callback) {
            var date = result.month + ' ' + result.day + ', ' + result.year;
            var other = 'N/A';
            if (result.other !== null) {
                other = result.other;
            }
            if (typeof events[date] === 'undefined') {
                events[date] = {};
            }
            var studentAttendees = {};
            var sql =
                'SELECT * FROM students INNER JOIN students_has_events ON students.id = students_has_events.Students_id ' +
                'WHERE students_has_events.Events_id = ?';
            var values = [result.id];
            con.query(sql, values, function(err, results1) {
                if (err) throw err;
                async.forEachOf(results1, function(result1, key, callback) {
                    studentAttendees[result1.first_name + ' ' + result1.last_name] = {
                        netID: result1.netID,
                        phoneNumber: result1.phone,
                        email: result1.email
                    };
                });
                //still need to get the event leader attendees
                events[date][result.name] = {
                    startTime: result.start_time,
                    location: result.location,
                    endTime: result.end_time,
                    description: result.description,
                    eventLeader: result.eventLeader,
                    numberRegistered: result.hidden_sign_up,
                    maxCapacity: result.max_capacity,
                    poster: '/images/sample.jpg',
                    other: other,
                    attendees: studentAttendees
                };
            });
        });
    });
});

0 个答案:

没有答案