|
|
@@ -14,8 +14,8 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="my-move">
|
|
|
- <div class="pre" @click.stop="switchPic('pre',item)" >上一张</div>
|
|
|
- <div class="next" @click.stop="switchPic('next',item)">下一张</div>
|
|
|
+ <div class="pre" @click.stop="switchPic('pre',item)" v-if="index!==0">上一张</div>
|
|
|
+ <div class="next" @click.stop="switchPic('next',item)" v-if="index!==dataList.length-1">下一张</div>
|
|
|
</div>
|
|
|
</li>
|
|
|
<li v-if="dataList.length < 5" @click="edit({}, 'add')">
|
|
|
@@ -27,8 +27,8 @@
|
|
|
</ul>
|
|
|
<div class="desc">
|
|
|
<p>
|
|
|
- 格式要求:支持png、jpg、gif和jpeg的图片格式,<br>
|
|
|
- 单张最大支持20M,建议尺寸1920*1080<br>
|
|
|
+ 格式要求:支持png、jpg和jpeg的图片格式,<br>
|
|
|
+ 单张最大支持10M,建议尺寸1920*1080<br>
|
|
|
数量:最多可上传5张图片。
|
|
|
</p>
|
|
|
|
|
|
@@ -211,7 +211,9 @@ export default {
|
|
|
}
|
|
|
.top-body {
|
|
|
ul {
|
|
|
+ display: flex;
|
|
|
width: 100%;
|
|
|
+ height: 303px;
|
|
|
li {
|
|
|
display: inline-block;
|
|
|
border: 10px solid gray;
|
|
|
@@ -243,14 +245,15 @@ export default {
|
|
|
width: 100%;
|
|
|
height: 40px;
|
|
|
margin-top: 10px;
|
|
|
- display: inline-block;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
.pre {
|
|
|
width: 45%;
|
|
|
line-height: 40px;
|
|
|
text-align: center;
|
|
|
background: dodgerblue;
|
|
|
cursor: pointer;
|
|
|
- float: left;
|
|
|
+ margin-right: 15px;
|
|
|
}
|
|
|
.next {
|
|
|
width: 45%;
|
|
|
@@ -258,9 +261,9 @@ export default {
|
|
|
text-align: center;
|
|
|
background: dodgerblue;
|
|
|
cursor: pointer;
|
|
|
- float: right;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|