28 lines
		
	
	
		
			830 B
		
	
	
	
		
			HTML
		
	
	
		
		
			
		
	
	
			28 lines
		
	
	
		
			830 B
		
	
	
	
		
			HTML
		
	
	
| 
								 | 
							
								<div class="upload">
							 | 
						||
| 
								 | 
							
								    <div id="list" class="upload_img">
							 | 
						||
| 
								 | 
							
								        {if file_exists('.'.$src)&&!empty($src)}
							 | 
						||
| 
								 | 
							
								        <div class="">
							 | 
						||
| 
								 | 
							
								            <img src="{$src}" width="150" />
							 | 
						||
| 
								 | 
							
								        </div>
							 | 
						||
| 
								 | 
							
								        {/if}
							 | 
						||
| 
								 | 
							
								    </div>
							 | 
						||
| 
								 | 
							
								    <div type="button">
							 | 
						||
| 
								 | 
							
								        <span id="picker" class="filepond">上传图片</span>
							 | 
						||
| 
								 | 
							
								    </div>
							 | 
						||
| 
								 | 
							
								</div>
							 | 
						||
| 
								 | 
							
								<script type="text/javascript">
							 | 
						||
| 
								 | 
							
								    $(document).ready(function(){
							 | 
						||
| 
								 | 
							
								        FilePond.registerPlugin(FilePondPluginImagePreview);
							 | 
						||
| 
								 | 
							
								        //上传插件
							 | 
						||
| 
								 | 
							
								        if($('.filepond').length){
							 | 
						||
| 
								 | 
							
								            $('.filepond').filepond({
							 | 
						||
| 
								 | 
							
								                labelIdle: `请选择或者拖动要上传的图片`,
							 | 
						||
| 
								 | 
							
								                allowImagePreview:true,
							 | 
						||
| 
								 | 
							
								                name: "img",
							 | 
						||
| 
								 | 
							
								                server:{
							 | 
						||
| 
								 | 
							
								                    process:"{:url('manager.upload/mark')}"
							 | 
						||
| 
								 | 
							
								                }
							 | 
						||
| 
								 | 
							
								            });
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								    });
							 | 
						||
| 
								 | 
							
								</script>
							 |