Commit 56bb39e4 authored by yyh's avatar yyh

fix 一个模板多个上传

parent ed8c8c95
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
</video> </video>
<div style="text-align:right;color:#3175FF;" @click="del(index)">删除</div> <div style="text-align:right;color:#3175FF;" @click="del(index)">删除</div>
</div> </div>
<input type="file" @change="handleFileChange" id="uploader2" accept="video/*" style="display:none;"> <label class="uploader">
<label for="uploader2" class="uploader"> <input type="file" @change="handleFileChange" accept="video/*" style="display:none;">
<common-svg name="shipin" width="32px" height="32px"></common-svg> <common-svg name="shipin" width="32px" height="32px"></common-svg>
<div class="title" style="font-size:18px;font-weight:500;color:#929295">上传视频</div> <div class="title" style="font-size:18px;font-weight:500;color:#929295">上传视频</div>
<common-svg name="jinru" class="righticon"></common-svg> <common-svg name="jinru" class="righticon"></common-svg>
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
</audio> </audio>
<div style="text-align:right;color:#3175FF;" @click="del(index)">删除</div> <div style="text-align:right;color:#3175FF;" @click="del(index)">删除</div>
</div> </div>
<input type="file" @change="handleFileChange" id="uploader1" accept="audio/*" :value="file" style="display:none;"> <label class="uploader">
<label for="uploader1" class="uploader"> <input type="file" @change="handleFileChange" accept="audio/*" :value="file" style="display:none;">
<common-svg name="yinpin" width="32px" height="32px"></common-svg> <common-svg name="yinpin" width="32px" height="32px"></common-svg>
<div class="title" style="font-size:18px;font-weight:500;color:#929295">上传音频</div> <div class="title" style="font-size:18px;font-weight:500;color:#929295">上传音频</div>
<common-svg name="jinru" class="righticon"></common-svg> <common-svg name="jinru" class="righticon"></common-svg>
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
</a> </a>
<common-svg name="shanchu1" @click.native="del(index)"></common-svg> <common-svg name="shanchu1" @click.native="del(index)"></common-svg>
</div> </div>
<input type="file" @change="handleFileChange" id="uploader" accept=".pdf" :value="file" style="display:none;"> <label class="uploader">
<label for="uploader" class="uploader"> <input type="file" @change="handleFileChange" accept=".pdf" :value="file" style="display:none;">
<common-svg name="shangchuantupian1" width="32px" height="32px"></common-svg> <common-svg name="shangchuantupian1" width="32px" height="32px"></common-svg>
<div class="title" style="color:#929295;font-weight:500;font-size:18px;">上传文件</div> <div class="title" style="color:#929295;font-weight:500;font-size:18px;">上传文件</div>
<common-svg name="jinru" class="righticon"></common-svg> <common-svg name="jinru" class="righticon"></common-svg>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment