Banner图上传

多图

<?php think_vue_media_button('home_banner','form',$click_image='')?>  
think_vue_media($vue," 
        console.log(this.media_name);
		if(!this.form.home_banner){
			this.form.home_banner = [];
		}
	    for(let i in dd){
	        if(dd[i] && dd[i].url){
	            this.form.home_banner.push(dd[i].url);    
	        } 
	    }"," 
	    this.selected_media_use_muit = false; 
	");
	$vue->method("remove_home_banner(index)","
	    this.form.home_banner.splice(index,1); 
	");

单图

<?php think_vue_media_one_button('image')?>  
think_vue_media($vue,"  
        console.log(this.media_name);
		this.form.image = ''; 
	    for(let i in dd){
	        if(dd[i] && dd[i].url){
	            this.form.image = dd[i].url;    
	        } 
	    }"," 
	    this.selected_media_use_muit = false; 
	");
	$vue->method("remove_image()"," 
	    this.form.image = ''; 
	    this.\$forceUpdate();
	");

表格图片

<table class="pure-table pure-table-bordered" style="width:80%">
    <thead>
        <tr>
            <th>图片</th>
            <th>地址</th>
            <th>操作</th> 
        </tr>
    </thead>
    <tbody>
    	<?php for($i=1;$i<5;$i++){?>
	        <tr >
	            <td>
	            	<?php think_vue_media_one_button('banner_url_'.$i,'form',$show_del = true)?>   
	            </td>
	            <td>
	            	
	            </td>
	            <td>

	            </td> 
	        </tr> 
	    <?php }?>
    </tbody>
</table>
think_vue_media($vue,"   
    for(let i in dd){
        if(dd[i] && dd[i].url){
            this.\$set(this.form,this.media_name, dd[i].url);    
        } 
    }"," 
    this.selected_media_use_muit = false; 
");
$vue->method("remove_media_one(name)","  
    this.\$set(this.form , name, '');    
    this.\$forceUpdate();
");