Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
exam-commond-oldPro
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangzhongjie
exam-commond-oldPro
Commits
e43f050e
Commit
e43f050e
authored
Dec 11, 2019
by
zhangzhongjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页面部分规范示例
parent
824fe907
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
196 additions
and
5 deletions
+196
-5
input.PNG
iview-admin-pro-template/src/assets/images/input.PNG
+0
-0
details.js
iview-admin-pro-template/src/menu/modules/details.js
+14
-0
list.js
iview-admin-pro-template/src/menu/modules/list.js
+1
-1
sider.js
iview-admin-pro-template/src/menu/sider.js
+4
-3
index.vue
...n-pro-template/src/pages/details/details-module/index.vue
+147
-0
details.js
iview-admin-pro-template/src/router/modules/details.js
+27
-0
routes.js
iview-admin-pro-template/src/router/routes.js
+3
-1
No files found.
iview-admin-pro-template/src/assets/images/input.PNG
0 → 100644
View file @
e43f050e
9.88 KB
iview-admin-pro-template/src/menu/modules/details.js
0 → 100644
View file @
e43f050e
const
pre
=
'/details/'
;
export
default
{
path
:
'/details'
,
title
:
'详情页面'
,
header
:
'home'
,
icon
:
'ios-list'
,
children
:
[
{
path
:
`
${
pre
}
details-module`
,
title
:
'详情模块'
}
]
}
iview-admin-pro-template/src/menu/modules/list.js
View file @
e43f050e
...
@@ -4,7 +4,7 @@ export default {
...
@@ -4,7 +4,7 @@ export default {
path
:
'/list'
,
path
:
'/list'
,
title
:
'列表页面'
,
title
:
'列表页面'
,
header
:
'home'
,
header
:
'home'
,
custom
:
'i-icon-demo i-icon-demo-list
'
,
icon
:
'ios-list-box-outline
'
,
children
:
[
children
:
[
{
{
path
:
`
${
pre
}
list-search`
,
path
:
`
${
pre
}
list-search`
,
...
...
iview-admin-pro-template/src/menu/sider.js
View file @
e43f050e
// 菜单,侧边栏
// 菜单,侧边栏
import
dashboard
from
'./modules/dashboard'
;
import
dashboard
from
'./modules/dashboard'
;
import
list
from
'./modules/list'
import
list
from
'./modules/list'
;
import
details
from
'./modules/details'
// 系统
// 系统
import
log
from
'./modules/log'
;
import
log
from
'./modules/log'
;
export
default
[
export
default
[
dashboard
,
dashboard
,
list
,
list
,
log
log
,
details
];
];
iview-admin-pro-template/src/pages/details/details-module/index.vue
0 → 100644
View file @
e43f050e
<
template
>
<div>
<div>
<p>
1.详情页尽量采用这样的排版,输入框给定长度,最好统一长度,cart模板如Ebay分类处,分类题目等文字放到头部和条件筛选分隔开,左右分隔好
</p>
<p>
2.类似标题的输入直接用maxlength和show-word-limit显示和限制输入字数
</p>
</div>
<div
class=
"form"
>
<Form
:model=
"formItem"
:label-width=
"100"
>
<FormItem
label=
"Title"
>
<Input
v-model=
"formItem.input1"
placeholder=
"主标题"
style=
"width:500px"
maxlength=
"80"
show-word-limit
></Input>
</FormItem>
<FormItem
label=
"sub Title"
>
<Input
v-model=
"formItem.input2"
placeholder=
"副标题"
style=
"width:500px"
maxlength=
"80"
show-word-limit
></Input>
</FormItem>
<FormItem
label=
"内部商品编码"
>
<Input
v-model=
"formItem.input3"
placeholder=
"enter something...."
style=
"width:500px"
disabled
></Input>
</FormItem>
<FormItem
label=
"环球SKU"
>
<Input
v-model=
"formItem.input4"
placeholder=
"环球SKU"
style=
"width:500px"
disabled
></Input>
</FormItem>
<FormItem
label=
"平台SKU"
>
<Input
v-model=
"formItem.input5"
placeholder=
"平台SKU"
style=
"width:500px"
disabled
></Input>
</FormItem>
<FormItem
label=
"* Ebay分类"
>
<Card
dis-hover
>
<Row>
当前类目名称:Health
&
Beauty - > Nail Care, Manicure
&
Pedicure - > Gel Nails
</Row>
<Row>
原爬虫类目:(178961),原爬虫类目名称:()
</Row>
<Row
class-name=
"row-mar-bot"
>
<Col
span=
"12"
>
<Cascader
:data=
"data4"
:load-data=
"loadData"
placeholder=
"选择Ebay类目"
style=
"width:300px"
></Cascader>
</Col>
<Col
span=
"12"
>
<div
class=
"sort"
>
<Input
v-model=
"formItem.input4"
style=
"width:300px"
></Input>
<Button>
载入分类
</Button>
</div>
</Col>
</row>
<row>
<Col
span=
"12"
>
<Select
v-model=
"formItem.select"
style=
"width:300px"
>
<Option
value=
"beijing"
>
New York
</Option>
<Option
value=
"shanghai"
>
London
</Option>
<Option
value=
"shenzhen"
>
Sydney
</Option>
</Select>
</Col>
<Col
span=
"12"
>
<div
class=
"sort"
>
<Input
v-model=
"formItem.input4"
placeholder=
"搜索类目"
style=
"width:300px"
></Input>
<Button>
搜索
</Button>
</div>
</Col>
</Row>
</Card>
</FormItem>
<FormItem
label=
"UPC"
>
<Input
v-model=
"formItem.input6"
placeholder=
"UPC"
style=
"width:500px"
></Input>
</FormItem>
<FormItem
label=
"物品状况"
>
<Select
v-model=
"formItem.select2"
style=
"width:500px"
placeholder=
"New"
>
<Option
value=
"beijing"
>
new
</Option>
<Option
value=
"shanghai"
>
used
</Option>
</Select>
</FormItem>
</Form>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'details-details-module'
,
data
()
{
return
{
formItem
:
{
input1
:
''
,
input2
:
''
,
input3
:
''
,
input4
:
''
,
input5
:
''
,
input6
:
''
,
select
:
''
,
select2
:
''
},
data4
:
[
{
value
:
'beijing'
,
label
:
'北京'
,
children
:
[],
loading
:
false
},
{
value
:
'hangzhou'
,
label
:
'杭州'
,
children
:
[],
loading
:
false
}
]
}
},
methods
:
{
loadData
(
item
,
callback
)
{
item
.
loading
=
true
;
setTimeout
(()
=>
{
if
(
item
.
value
===
'beijing'
)
{
item
.
children
=
[
{
value
:
'talkingdata'
,
label
:
'TalkingData'
},
{
value
:
'baidu'
,
label
:
'百度'
},
{
value
:
'sina'
,
label
:
'新浪'
}
];
}
else
if
(
item
.
value
===
'hangzhou'
)
{
item
.
children
=
[
{
value
:
'ali'
,
label
:
'阿里巴巴'
},
{
value
:
'163'
,
label
:
'网易'
}
];
}
item
.
loading
=
false
;
callback
();
},
1000
);
}
}
}
</
script
>
<
style
lang=
"less"
>
.form
{
.sort{
display
:
flex
;
}
.row-mar-bot
{
margin-bottom
:
10px
;
}
}
</
style
>
iview-admin-pro-template/src/router/modules/details.js
0 → 100644
View file @
e43f050e
import
BasicLayout
from
'@/layouts/basic-layout'
;
const
meta
=
{
auth
:
true
};
const
pre
=
'details-'
export
default
{
path
:
'/details'
,
name
:
'/details'
,
redirect
:
{
name
:
`
${
pre
}
details-module`
},
meta
,
component
:
BasicLayout
,
children
:
[
{
path
:
'details-module'
,
name
:
`
${
pre
}
details-module`
,
meta
:
{
title
:
'详情模块'
},
component
:
()
=>
import
(
'@/pages/details/details-module'
)
}
]
}
iview-admin-pro-template/src/router/routes.js
View file @
e43f050e
import
dashboard
from
'./modules/dashboard'
;
import
dashboard
from
'./modules/dashboard'
;
import
BasicLayout
from
'@/layouts/basic-layout'
;
import
BasicLayout
from
'@/layouts/basic-layout'
;
import
list
from
'./modules/list'
;
import
list
from
'./modules/list'
;
import
details
from
'./modules/details'
;
/**
/**
* 在主框架内显示
* 在主框架内显示
*/
*/
...
@@ -56,7 +57,8 @@ const frameIn = [
...
@@ -56,7 +57,8 @@ const frameIn = [
]
]
},
},
dashboard
,
dashboard
,
list
list
,
details
];
];
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment