Authored by weiqingting

添加linkjs

1 -{  
2 - "name": "yohobuy-portal",  
3 - "version": "0.3.2",  
4 - "description": "yohobuy-portal",  
5 - "keywords": [],  
6 - "homepage": "",  
7 - "author": "demo",  
8 - "repository": {  
9 - "type": "git",  
10 - "url": ""  
11 - },  
12 - "spm": {  
13 - "main": "index.js",  
14 - "dependencies": {  
15 - "jquery": "2.1.4",  
16 - "import-style": "1.0.0",  
17 - "yoho.handlebars": "3.0.3",  
18 - "yoho.bootstrap": "0.0.4"  
19 - },  
20 - "devDependencies": {  
21 - "expect.js": "0.3.1"  
22 - },  
23 - "buildArgs": "--idleading {{name}}"  
24 - },  
25 - "devDependencies": {  
26 - "crypto": "0.0.3",  
27 - "extract-text-webpack-plugin": "^1.0.1",  
28 - "gulp": "^3.9.1",  
29 - "gulp-autoprefixer": "^3.1.0",  
30 - "gulp-clean": "^0.3.1",  
31 - "gulp-concat": "^2.6.0",  
32 - "gulp-develop-server": "^0.5.0",  
33 - "gulp-ftp": "^1.1.0",  
34 - "gulp-md5": "^0.1.2",  
35 - "gulp-minify-css": "^1.2.4",  
36 - "gulp-plumber": "^1.1.0",  
37 - "gulp-rename": "^1.2.2",  
38 - "gulp-sass": "^2.0.4",  
39 - "gulp-uglify": "^1.5.2",  
40 - "gulp-util": "^3.0.7",  
41 - "webpack": "^1.12.13"  
42 - },  
43 - "scripts": {  
44 - "test": "spm test",  
45 - "build": "spm build"  
46 - },  
47 - "main": "app.js",  
48 - "directories": {  
49 - "example": "examples",  
50 - "test": "tests"  
51 - },  
52 - "license": "ISC"  
53 -}  
  1 +exports.domain =require('../config/common.js').domain;
  2 +// exports.domain="http://172.16.6.240:8088/platform";
  3 +// exports.domain = "http://172.16.6.227:8088/platform";
  4 +exports.res = [
  5 + {//基础商品列表
  6 + route:'/resource/manager/content',
  7 + method:'GET',
  8 + view:'pages/resource/content',
  9 + src: '/resource/content'
  10 + }
  11 +]
  1 +var request = require('request');
  2 +var _ = require('lodash');
  3 +var fs = require('fs');
  4 +var path=require('path');
  5 +var domain = require('../../config/common.js').domain;
  6 +
  7 +exports.linkFile = function(req, res) {
  8 + request.get(domain+"/common/"+req.params.name+".xlsx").pipe(res);
  9 +}
  1 +<div class="pageheader">
  2 + <div class="media">
  3 + <div class="pageicon pull-left">
  4 + <i class="fa fa-home"></i>
  5 + </div>
  6 + <div class="media-body">
  7 + <ul class="breadcrumb">
  8 + <li><a href="/"><i class="glyphicon glyphicon-home"></i></a></li>
  9 + <li>Dashboard</li>
  10 + </ul>
  11 + <h4>Dashboard</h4>
  12 + </div>
  13 + </div>
  14 +</div>
  15 +<div class="contentpanel">
  16 + <div class="rows">
  17 +
  18 + </div>
  19 +</div>