Authored by weiqingting

添加linkjs

{
"name": "yohobuy-portal",
"version": "0.3.2",
"description": "yohobuy-portal",
"keywords": [],
"homepage": "",
"author": "demo",
"repository": {
"type": "git",
"url": ""
},
"spm": {
"main": "index.js",
"dependencies": {
"jquery": "2.1.4",
"import-style": "1.0.0",
"yoho.handlebars": "3.0.3",
"yoho.bootstrap": "0.0.4"
},
"devDependencies": {
"expect.js": "0.3.1"
},
"buildArgs": "--idleading {{name}}"
},
"devDependencies": {
"crypto": "0.0.3",
"extract-text-webpack-plugin": "^1.0.1",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^3.1.0",
"gulp-clean": "^0.3.1",
"gulp-concat": "^2.6.0",
"gulp-develop-server": "^0.5.0",
"gulp-ftp": "^1.1.0",
"gulp-md5": "^0.1.2",
"gulp-minify-css": "^1.2.4",
"gulp-plumber": "^1.1.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.0.4",
"gulp-uglify": "^1.5.2",
"gulp-util": "^3.0.7",
"webpack": "^1.12.13"
},
"scripts": {
"test": "spm test",
"build": "spm build"
},
"main": "app.js",
"directories": {
"example": "examples",
"test": "tests"
},
"license": "ISC"
}
exports.domain =require('../config/common.js').domain;
// exports.domain="http://172.16.6.240:8088/platform";
// exports.domain = "http://172.16.6.227:8088/platform";
exports.res = [
{//基础商品列表
route:'/resource/manager/content',
method:'GET',
view:'pages/resource/content',
src: '/resource/content'
}
]
\ No newline at end of file
... ...
var request = require('request');
var _ = require('lodash');
var fs = require('fs');
var path=require('path');
var domain = require('../../config/common.js').domain;
exports.linkFile = function(req, res) {
request.get(domain+"/common/"+req.params.name+".xlsx").pipe(res);
}
\ No newline at end of file
... ...
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-home"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href="/"><i class="glyphicon glyphicon-home"></i></a></li>
<li>Dashboard</li>
</ul>
<h4>Dashboard</h4>
</div>
</div>
</div>
<div class="contentpanel">
<div class="rows">
</div>
</div>
\ No newline at end of file
... ...