chenjingyu
4 years ago
9 changed files with 345 additions and 20 deletions
@ -0,0 +1,28 @@
|
||||
<!-- |
||||
* @Descripttion: |
||||
* @version: |
||||
* @Author: sueRimn |
||||
* @Date: 2020-11-06 14:39:10 |
||||
* @LastEditors: sueRimn |
||||
* @LastEditTime: 2020-11-06 15:39:13 |
||||
--> |
||||
<div class="box"> |
||||
<div class="topadd"> |
||||
<button>新增</button> |
||||
</div> |
||||
<div class="center"> |
||||
<div class="one"> |
||||
<span>问题1:</span> |
||||
<div class="upload"> |
||||
<div class="uploadingimg"> |
||||
<img [src]="imgsrc" alt="" style="width: 199px; height: 70px;" > |
||||
</div> |
||||
</div> |
||||
<div class="image" > |
||||
<input id="selectedfile" type="file" name="imgFile" accept=".jpg,.png,.jpeg,.gif,.webp"> |
||||
</div> |
||||
<textarea name="" id="" cols="30" rows="3"></textarea> |
||||
<button>删除</button> |
||||
</div> |
||||
</div> |
||||
</div> |
@ -0,0 +1,76 @@
|
||||
.box{ |
||||
width: 100%; |
||||
height: 100%; |
||||
.topadd{ |
||||
width: 100%; |
||||
margin: 0.488281rem 0.097656rem; |
||||
button{ |
||||
background-color: #008CBA; /* Green */ |
||||
border: none; |
||||
border-radius: 8px; |
||||
color: white; |
||||
padding: 0.097656rem 0.488281rem; |
||||
text-align: center; |
||||
text-decoration: none; |
||||
display: inline-block; |
||||
font-size: 0.146484rem; |
||||
margin-left: 0.488281rem; |
||||
cursor: pointer; |
||||
} |
||||
} |
||||
.center{ |
||||
width: 100%; |
||||
height: 100%; |
||||
display: flex; |
||||
flex-direction:column; |
||||
span{ |
||||
font-size: 0.097656rem; |
||||
margin-left: 0.195313rem; |
||||
} |
||||
textarea{ |
||||
position: relative; |
||||
left: 60%; |
||||
} |
||||
.one{ |
||||
width: 100%; |
||||
} |
||||
} |
||||
.upload{ |
||||
width: 20%; |
||||
height: 20%; |
||||
.uploadingimg{ |
||||
width: 20%; |
||||
height: 10%; |
||||
// background: url('../../../assets/images/upload2.png') no-repeat center center; |
||||
|
||||
position: absolute; |
||||
left: 0.390625rem; |
||||
bottom: 80px; |
||||
//border: 1px dashed gray; |
||||
border-radius:3px; |
||||
img{ |
||||
margin-left: 0.195313rem; |
||||
margin-top: 0.048828rem; |
||||
} |
||||
} |
||||
} |
||||
.image{ |
||||
// position: absolute; |
||||
// top: 199px; |
||||
// left: 160px; |
||||
// width: 299px; |
||||
// height: 170px; |
||||
input{ |
||||
width: 0.976563rem; |
||||
height: 0.683594rem; |
||||
position: absolute; |
||||
left: 60px; |
||||
bottom: 0.244141rem; |
||||
opacity: 0; |
||||
margin-top: 0.048828rem; |
||||
cursor: pointer; |
||||
} |
||||
// opacity:0; |
||||
|
||||
} |
||||
} |
@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
||||
|
||||
import { FindProblemComponent } from './find-problem.component'; |
||||
|
||||
describe('FindProblemComponent', () => { |
||||
let component: FindProblemComponent; |
||||
let fixture: ComponentFixture<FindProblemComponent>; |
||||
|
||||
beforeEach(async(() => { |
||||
TestBed.configureTestingModule({ |
||||
declarations: [ FindProblemComponent ] |
||||
}) |
||||
.compileComponents(); |
||||
})); |
||||
|
||||
beforeEach(() => { |
||||
fixture = TestBed.createComponent(FindProblemComponent); |
||||
component = fixture.componentInstance; |
||||
fixture.detectChanges(); |
||||
}); |
||||
|
||||
it('should create', () => { |
||||
expect(component).toBeTruthy(); |
||||
}); |
||||
}); |
@ -0,0 +1,24 @@
|
||||
/* |
||||
* @Descripttion:
|
||||
* @version:
|
||||
* @Author: sueRimn |
||||
* @Date: 2020-11-06 14:39:10 |
||||
* @LastEditors: sueRimn |
||||
* @LastEditTime: 2020-11-06 15:15:22 |
||||
*/ |
||||
import { Component, OnInit } from '@angular/core'; |
||||
|
||||
@Component({ |
||||
selector: 'app-find-problem', |
||||
templateUrl: './find-problem.component.html', |
||||
styleUrls: ['./find-problem.component.scss'] |
||||
}) |
||||
export class FindProblemComponent implements OnInit { |
||||
|
||||
constructor() { } |
||||
|
||||
ngOnInit(): void { |
||||
} |
||||
imgsrc = "../../../assets/images/upload.jpg" //没有上传图片时显示的图片,当上传后就会被替换,即保存时需要传的图片地址参数
|
||||
|
||||
} |
Loading…
Reference in new issue