Showing
3 changed files
with
22 additions
and
53 deletions
@@ -5,10 +5,29 @@ | @@ -5,10 +5,29 @@ | ||
5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
6 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | 6 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> |
7 | <title>YOHO商铺管理平台</title> | 7 | <title>YOHO商铺管理平台</title> |
8 | + <style> | ||
9 | + .check-browers { | ||
10 | + display: none; | ||
11 | + } | ||
12 | + </style> | ||
8 | </head> | 13 | </head> |
9 | <body> | 14 | <body> |
10 | <div id="app"> | 15 | <div id="app"> |
11 | - 正在初始化 | 16 | + <div class="loading-init" id="loading-init">正在初始化...</div> |
17 | + <div class="check-browers" id="check-browers"> | ||
18 | + 检测到您的浏览器版本过低,请下载最新浏览器: | ||
19 | + <ul> | ||
20 | + <li><a href="http://browser.qq.com/mac/index.html">QQ浏览器</a></li> | ||
21 | + <li><a href="http://www.firefox.com.cn/">火狐浏览器</a></li> | ||
22 | + <li><a href="http://www.google.cn/intl/zh-CN/chrome/browser/desktop/index.html">Chrome浏览器</a></li> | ||
23 | + </ul> | ||
24 | + </div> | ||
12 | </div> | 25 | </div> |
26 | + <script> | ||
27 | + if (!Object.defineProperty) { | ||
28 | + document.getElementById('loading-init').style.display = 'none'; | ||
29 | + document.getElementById('check-browers').style.display = 'block'; | ||
30 | + } | ||
31 | + </script> | ||
13 | </body> | 32 | </body> |
14 | </html> | 33 | </html> |
1 | <template> | 1 | <template> |
2 | <div> | 2 | <div> |
3 | - 默认页 | ||
4 | - <div style=""> | ||
5 | - <Button v-purview="'opration'" @click="">我有权限吗?</Button> | ||
6 | - <editor :content="content" @change="updateData"></editor> | ||
7 | - <!--<Table ref="table" :data="data" :columns="columns"></Table> | ||
8 | - <Button @click="getTable">获得数据</Button> | ||
9 | - <Button @click="addRow">增加一列</Button> | ||
10 | - {{data}} | ||
11 | - <br /> | ||
12 | - <editor :content="content" @change="updateData"></editor> | ||
13 | - {{content}} | ||
14 | - <YohoUpload id="123" @on-success="uploadSuccess" @on-error="uploadError"></YohoUpload>--> | ||
15 | - </div> | 3 | + 默认页 |
16 | </div> | 4 | </div> |
17 | </template> | 5 | </template> |
18 | 6 | ||
19 | <script> | 7 | <script> |
20 | export default { | 8 | export default { |
21 | - created() { | ||
22 | - }, | ||
23 | - data() { | ||
24 | - return { | ||
25 | - content: '', | ||
26 | - columns: [ | ||
27 | - {title: '列', key: 'name', render(row, col, index) { | ||
28 | - return `<input type="text" v-model="row.name" />`; | ||
29 | - }} | ||
30 | - ], | ||
31 | - data: [ | ||
32 | - {name: '1'} | ||
33 | - ] | ||
34 | - }; | ||
35 | - }, | ||
36 | - methods: { | ||
37 | - getTable() { | ||
38 | - console.log(this.$refs.table.rebuildData); | ||
39 | - }, | ||
40 | - addRow() { | ||
41 | - this.data = this.$refs.table.rebuildData; | ||
42 | - this.data.push({name: '2'}) | ||
43 | - }, | ||
44 | - updateData(c) { | ||
45 | - this.content = c; | ||
46 | - }, | ||
47 | - uploadSuccess(id, files) { | ||
48 | - console.log(id, files) | ||
49 | - }, | ||
50 | - uploadError(id, error) { | ||
51 | - console.log(id, error) | ||
52 | - } | ||
53 | - } | ||
54 | }; | 9 | }; |
55 | </script> | 10 | </script> |
56 | 11 |
@@ -42,12 +42,7 @@ app.use(compression()); | @@ -42,12 +42,7 @@ app.use(compression()); | ||
42 | app.use(favicon(path.join(__dirname, '/favicon.ico'))); | 42 | app.use(favicon(path.join(__dirname, '/favicon.ico'))); |
43 | app.use(bodyParser.json()); | 43 | app.use(bodyParser.json()); |
44 | app.use(bodyParser.urlencoded({extended: false})); | 44 | app.use(bodyParser.urlencoded({extended: false})); |
45 | -app.use(cookieParser('', { | ||
46 | - decode(val) { | ||
47 | - console.log(val) | ||
48 | - return val; | ||
49 | - } | ||
50 | -})); | 45 | +app.use(cookieParser()); |
51 | 46 | ||
52 | const middleware = require('./middleware'); | 47 | const middleware = require('./middleware'); |
53 | const controllers = require('./controllers'); | 48 | const controllers = require('./controllers'); |
-
Please register or login to post a comment