作者 jinglong
1 个管道 的构建 通过 耗费 0 秒

修改晒单上传视频

... ... @@ -30,7 +30,7 @@
<label class="control-label col-xs-12 col-sm-2">{:__('Files')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-files" data-rule="required" class="form-control" size="50" name="row[files]" type="text">
<input id="c-files" class="form-control" size="50" name="row[files]" type="text">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="plupload-files" class="btn btn-danger plupload" data-input-id="c-files" data-multiple="true" data-preview-id="p-files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-files" class="btn btn-primary fachoose" data-input-id="c-files" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
... ...
... ... @@ -30,7 +30,7 @@
<label class="control-label col-xs-12 col-sm-2">{:__('Files')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-files" data-rule="required" class="form-control" size="50" name="row[files]" type="text" value="{$row.files}">
<input id="c-files" class="form-control" size="50" name="row[files]" type="text" value="{$row.files}">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="plupload-files" class="btn btn-danger plupload" data-input-id="c-files" data-multiple="true" data-preview-id="p-files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-files" class="btn btn-primary fachoose" data-input-id="c-files" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
... ...
... ... @@ -283,8 +283,18 @@ class Index extends Api
$res = Common::findSoftWhereData('ulist',['id'=>$u_list_id],'createtime,updatetime,deletetime',true);
if($res){
$res['images1'] = [];
$res['image'] = $this->auth->absolutionUrlOne($res['image']);
$res['images'] = $this->auth->absolutionUrl($res['images']);
$res['images1'] = $this->auth->absolutionUrl($res['images']);
if(!empty($res['files'])){
$res['files'] = $this->auth->absolutionUrl($res['files']);
}else{
$res['files'] = [];
}
$res['images'] = array_merge($res['images1'],$res['files']);
unset($res['images1']);
unset($res['files']);
$res_goods = Common::findSoftWhereData('goods',['id'=>$res['g_id']],'image,name,introduce');
$res['goods'] = '';
if($res_goods){
... ...