sjy-ecos/routes/intro.js

99 lines
1.9 KiB
JavaScript

var express = require('express');
var router = express.Router();
router.get('/', function (req, res, next) {
res.render('intro', {
page_title: '基本概况',
page_cont: null
});
});
router.get('/location', function (req, res, next) {
res.render('intro', {
page_title: '地理位置',
page_cont: 'inc',
inc_tag: 'location'
});
});
router.get('/topography', function (req, res, next) {
res.render('intro', {
page_title: '地形地貌',
page_cont: 'inc',
inc_tag: 'topography'
});
});
router.get('/climate', function (req, res, next) {
res.render('intro', {
page_title: '气候',
page_cont: 'inc',
inc_tag: 'climate'
});
});
router.get('/hydrology', function (req, res, next) {
res.render('intro', {
page_title: '水文水资源监测',
page_cont: 'inc',
inc_tag: 'hydrology'
});
});
router.get('/soil', function (req, res, next) {
res.render('intro', {
page_title: '土壤',
page_cont: 'inc',
inc_tag: 'soil'
});
});
router.get('/animals-plants', function (req, res, next) {
res.render('intro', {
page_title: '野生动植物',
page_cont: 'inc',
inc_tag: 'animals-plants'
});
});
router.get('/administrative-area', function (req, res, next) {
res.render('intro', {
page_title: '行政区划',
page_cont: 'inc',
inc_tag: '/administrative-area'
});
});
router.get('/population', function (req, res, next) {
res.render('intro', {
page_title: '人口及民族',
page_cont: 'inc',
inc_tag: 'population'
});
});
router.get('/land', function (req, res, next) {
res.render('intro', {
page_title: '土地',
page_cont: 'inc',
inc_tag: 'land'
});
});
router.get('/traffic', function (req, res, next) {
res.render('intro', {
page_title: '交通',
page_cont: 'inc',
inc_tag: 'traffic'
});
});
router.get('/economic', function (req, res, next) {
res.render('intro', {
page_title: '经济',
page_cont: 'inc',
inc_tag: 'economic'
});
});
module.exports = router;