Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
q289089000
nclient
提交
6c32e80e
N
nclient
项目概览
q289089000
/
nclient
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nclient
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6c32e80e
编写于
6月 01, 2021
作者:
q289089000
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6-1
上级
6af996e6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
28 addition
and
32 deletion
+28
-32
src/app/pages/page-home/page-item/page-item.component.html
src/app/pages/page-home/page-item/page-item.component.html
+21
-31
src/app/pages/page-home/page-item/page-item.component.ts
src/app/pages/page-home/page-item/page-item.component.ts
+7
-1
未找到文件。
src/app/pages/page-home/page-item/page-item.component.html
浏览文件 @
6c32e80e
<div
class=
"item-box"
style=
"display: flex;height: 100%;"
>
<div
class=
"item-box"
style=
"display: flex;height: 100%;"
>
<div
style=
"flex:0 0 140px;"
>
<div
style=
"flex:0 0 140px;"
>
<nz-card
class=
"block"
style=
"width:200px"
>
<nz-card
class=
"block"
style=
"width:200px"
>
<button
nz-button
nzBlock
nzType=
"primary"
>
Add
</button>
<button
nz-button
nzBlock
nzType=
"primary"
>
Add
</button>
...
@@ -14,40 +14,30 @@
...
@@ -14,40 +14,30 @@
<div
class=
"block"
>
<div
class=
"block"
>
<!-- datalist -->
<!-- datalist -->
<nz-card
style=
"width:100%;"
>
<nz-card
style=
"width:100%;"
>
<div>
<div
class=
"item"
style=
"height:120px;;width: 100%; display:flex"
>
<div
*ngFor=
"let i of listdata"
class=
"item"
style=
"height:120px;;width: 100%; display:flex;border-bottom: solid 1px #ccc;padding-bottom: 8px;"
>
<div
style=
"flex: 1 0 0; margin-right:6px "
>
<div
style=
"flex: 1 0 0; margin-right:6px "
>
<nz-descriptions
nzBordered
nzSize=
"small"
>
<div
nz-row
>
<nz-descriptions-item
nzTitle=
" 编号"
>
0000000
</nz-descriptions-item>
<div
nz-col
nzSpan=
"8"
>
L00000000
</div>
<nz-descriptions-item
nzTitle=
"货号"
>
00000000
</nz-descriptions-item>
<div
nz-col
nzSpan=
"16"
>
玩具/童车/益智玩具/卡牌
</div>
<nz-descriptions-item
nzTitle=
"装箱"
>
4800ps
</nz-descriptions-item>
</div>
<nz-descriptions-item
nzTitle=
"品名"
[nzSpan]=
"3"
>
11111111
</nz-descriptions-item>
<div
nz-row
>
<nz-descriptions-item
nzTitle=
"分类"
[nzSpan]=
"2"
>
玩具/童车/益智玩具/卡牌
</nz-descriptions-item>
<div
nz-col
nzSpan=
"8"
>
{{i.no}}
</div>
<nz-descriptions-item
nzTitle=
"热门"
>
是
</nz-descriptions-item>
<div
nz-col
nzSpan=
"16"
>
{{i.name}}
</div>
</div>
<nz-descriptions-item
nzTitle=
"标签"
[nzSpan]=
"2"
>
<div
nz-row
>
<nz-tag
[nzColor]=
"'magenta'"
>
magenta
</nz-tag>
<div
nz-col
>
{{i.qty}} PCS
</div>
<nz-tag
[nzColor]=
"'red'"
>
red
</nz-tag>
<div
nz-col
>
分类
</div>
<nz-tag
[nzColor]=
"'volcano'"
>
volcano
</nz-tag>
</div>
<nz-tag
[nzColor]=
"'orange'"
>
orange
</nz-tag>
</div>
</nz-descriptions-item>
<div
style=
"flex:0 0 220px;border-radius: 4px; border:solid 1px #ccc "
>
<img
src=
"assets/turtle.png"
style=
"width:100%;height:100%;"
/>
<nz-descriptions-item
nzTitle=
"置顶"
>
</div>
是
</nz-descriptions-item>
<nz-descriptions-item
nzTitle=
"描述"
>
000000000000000000
</nz-descriptions-item>
</nz-descriptions>
</div>
<div
style=
"flex:0 0 220px;border-radius: 4px; border:solid 1px #ccc "
>
<img
src=
"assets/turtle.png"
style=
"width:100%;height:100%;"
/>
</div>
</div>
</div>
</div>
</nz-card>
</nz-card>
</div>
</div>
</div>
</div>
...
...
src/app/pages/page-home/page-item/page-item.component.ts
浏览文件 @
6c32e80e
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
Item
}
from
'
src/app/_model/Item
'
;
import
{
ItemService
}
from
'
src/app/_service/item.service
'
;
@
Component
({
@
Component
({
templateUrl
:
'
./page-item.component.html
'
,
templateUrl
:
'
./page-item.component.html
'
,
...
@@ -6,9 +8,13 @@ import { Component, OnInit } from '@angular/core';
...
@@ -6,9 +8,13 @@ import { Component, OnInit } from '@angular/core';
})
})
export
class
PageItemComponent
implements
OnInit
{
export
class
PageItemComponent
implements
OnInit
{
constructor
()
{
}
listdata
:
Item
[]
constructor
(
private
_item
:
ItemService
)
{
}
ngOnInit
():
void
{
ngOnInit
():
void
{
this
.
_item
.
Get
({}).
then
(
docs
=>
{
this
.
listdata
=
docs
;
})
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录