goods
@ -347,25 +347,11 @@ class CommonController extends Controller
|
||||
{
|
||||
if(isset($_FILES[$post_name]['error']))
|
||||
{
|
||||
// 文件上传校验
|
||||
$error = FileUploadError($post_name);
|
||||
if($error !== true)
|
||||
$file_obj = new \Library\FileUpload(['root_path'=>ROOT_PATH, 'path'=>$path]);
|
||||
$ret = $file_obj->Save($post_name);
|
||||
if($ret['status'] === true)
|
||||
{
|
||||
$this->ajaxReturn($error, -1);
|
||||
}
|
||||
|
||||
// 文件类型
|
||||
list($type, $suffix) = explode('/', $_FILES[$post_name]['type']);
|
||||
$path = 'Public'.DS.'Upload'.DS.$dir.DS.'images'.DS;
|
||||
if(!is_dir($path))
|
||||
{
|
||||
mkdir(ROOT_PATH.$path, 0777, true);
|
||||
}
|
||||
$filename = date('YmdHis').'.'.$suffix;
|
||||
$file = $path.$filename;
|
||||
if(move_uploaded_file($_FILES[$post_name]['tmp_name'], ROOT_PATH.$file))
|
||||
{
|
||||
$_POST[$field] = DS.$file;
|
||||
$_POST[$field] = $ret['data']['url'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -437,11 +437,10 @@ class GoodsController extends CommonController
|
||||
if(!empty($data))
|
||||
{
|
||||
// 定义图片目录
|
||||
$root_path = ROOT_PATH;
|
||||
$path = DS.'Public'.DS.'Upload'.DS.'goods_video'.DS.date('Y').DS.date('m').DS.date('d').DS;
|
||||
|
||||
// 类库
|
||||
$file_obj = new \Library\FileUpload(['root_path'=>$root_path, 'path'=>$path]);
|
||||
$file_obj = new \Library\FileUpload(['root_path'=>ROOT_PATH, 'path'=>$path]);
|
||||
foreach($data as $field)
|
||||
{
|
||||
if(!empty($_FILES[$field]))
|
||||
|
||||
@ -188,11 +188,10 @@
|
||||
<i class="am-icon-trash-o am-icon-sm original-images-url-delete" data-input-tag="input.original-video-images-url" data-video-tag="#form-view-video" data-tips-tag="#form-video-tips" data-file-tag="input.file_video-tag"></i>
|
||||
<input type="file" name="file_video" multiple data-validation-message="{{:L('common_select_images_tips')}}" accept=".mp4" class="js-choice-one video-file-event file_video-tag" data-choice-one-to=".original-video-images-url" data-tips-tag="#form-video-tips" data-video-tag="#form-view-video" />
|
||||
<div id="form-video-tips" class="m-t-5"></div>
|
||||
<video src="<if condition="!empty($data['video'])">{{$image_host}}{{$data.video}}</if>" id="form-view-video" class="block m-t-5 am-img-thumbnail am-radius" width="150" height="150" data-default="<if condition="!empty($data['video'])">{{$image_host}}{{$data.video}}</if>" controls>
|
||||
<video src="<if condition="!empty($data['video'])">{{$image_host}}{{$data.video}}</if>" id="form-view-video" class="block m-t-5 am-img-thumbnail am-radius" width="200" data-default="<if condition="!empty($data['video'])">{{$image_host}}{{$data.video}}</if>" controls>
|
||||
your browser does not support the video tag
|
||||
</video>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="goods-nav-attribute" class="division-block">
|
||||
<label class="block nav-detail-title">{{:L('goods_nav_attribute_name')}}</label>
|
||||
|
||||
@ -134,12 +134,11 @@ color: #F5F5F2;font-size: 14px;cursor:pointer;border-radius:0px 0px ;}
|
||||
.nav-search .logo-big{ display:block;float:left;height:40px;width:135px; margin:0px auto; margin-left:5px; margin-right: 5px;}
|
||||
.nav-search .logo-big img{width:100%;}
|
||||
.search-bar {height: 40px; width: calc(100% - 146px);}
|
||||
#ai-topsearch {height: 36px;}
|
||||
.search-bar input {width: 80%;height:36px;}
|
||||
.classified{display:none;}
|
||||
.mobile-navigation{display:none;}
|
||||
.nav-search{ position:relative;top:0px;z-index:0;margin-bottom: 5px;margin-top: 5px;}
|
||||
#ai-topsearch{ font-size:18px;height: 36px;}
|
||||
#ai-topsearch{ font-size:14px;height: 36px;line-height: 26px;}
|
||||
/*底部*/
|
||||
.am-footer {text-align:center; display:block;position: relative;margin: 0px auto; padding: 7px 0px 9px; margin-top:20px;}
|
||||
.am-footer .footer-bd p, .footer .footer-hd p {margin-bottom: 8px;line-height: 27px;border-bottom: 1px solid #DDD; text-align:left;}
|
||||
@ -155,17 +154,15 @@ color: #F5F5F2;font-size: 14px;cursor:pointer;border-radius:0px 0px ;}
|
||||
|
||||
@media only screen and (min-width: 1025px) {
|
||||
.am-container { padding-left:0rem;padding-right:0rem;max-width: 1000px;}
|
||||
.shop-nav{margin:0px;border-bottom: 2px solid #d2364c; height: 49px;}
|
||||
.shop-nav{margin:0px;border-bottom: 2px solid #d2364c; height: 59px;}
|
||||
|
||||
.mui-mbar-tabs{ display:block;}
|
||||
.nav-search{padding-left:0px; max-width:1000px; margin:0px auto;padding: 20px 0;}
|
||||
.nav-search .logo{display:none;}
|
||||
.nav-search .logo-big { display: -webkit-inline-box; float:left;height:60px; width:230px; margin:0px;}
|
||||
.search-bar{height:50px; margin:auto;display: -webkit-inline-box;width: calc(60%);padding-left: 8%;}
|
||||
#ai-topsearch {height: 47px;}
|
||||
.search-bar{margin:auto;display: -webkit-inline-box;width: calc(60%);padding-left: 8%;}
|
||||
.shopMain{margin:0px 0px 0px 5px;}
|
||||
.shopCon li{width:20%;padding:10px;}
|
||||
.search-bar input { height: 46px;}
|
||||
.tip{display:block;}
|
||||
|
||||
|
||||
@ -174,9 +171,9 @@ color: #F5F5F2;font-size: 14px;cursor:pointer;border-radius:0px 0px ;}
|
||||
.goods-category-s, .goods-category-title { z-index: 100; }
|
||||
.nav-table{max-width:1000px;margin: 0px auto;height: 45px;position: relative;overflow: hidden;}
|
||||
.all-goods{font-size: 16px;}
|
||||
.goods-category-title{background:#d2364c;color:#fff ;height: 45px;line-height: 45px;display:block;position: absolute;width:150px ;text-align: center;font-size:16px ;top:0px;z-index: 6;cursor: pointer;}
|
||||
.nav-cont{position: absolute;padding-left:150px;display:block;width:100% ;top:4px}
|
||||
.nav-cont li{float: left;height: 45px;line-height: 45px;}
|
||||
.goods-category-title{background:#d2364c;color:#fff ;height: 40px;line-height: 40px;display:block;position: absolute;width:150px ;text-align: center;font-size:16px ;top:3px;z-index: 6;cursor: pointer;}
|
||||
.nav-cont{position: absolute;padding-left:150px;display:block;width:100% ;top:20px}
|
||||
.nav-cont li{float: left;height: 40px;line-height: 40px;}
|
||||
.nav-cont li::before{content: '\20';display: inline-block;height: 16px;border-right: 1px solid #d9d9d9;width: 0;vertical-align: middle;margin-left: -1px;}
|
||||
.nav-cont li a {font-size: 16px;color: #333;line-height: 36px;margin-left: -1px;padding: 0 25px;text-decoration: none;font-weight: 700;display: inline-block;vertical-align: middle;}
|
||||
.nav-cont li a:hover { color:#d2364c; }
|
||||
|
||||
BIN
service/Public/Upload/goods_category/images/20181019141018.png
Normal file
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 330 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 165 KiB |
|
After Width: | Height: | Size: 506 KiB |
|
After Width: | Height: | Size: 290 KiB |
|
After Width: | Height: | Size: 341 KiB |
|
After Width: | Height: | Size: 348 KiB |
|
After Width: | Height: | Size: 291 KiB |
|
After Width: | Height: | Size: 227 KiB |
|
After Width: | Height: | Size: 283 KiB |
|
After Width: | Height: | Size: 340 KiB |
|
After Width: | Height: | Size: 172 KiB |
|
After Width: | Height: | Size: 478 KiB |
|
After Width: | Height: | Size: 167 KiB |
|
After Width: | Height: | Size: 378 KiB |
|
After Width: | Height: | Size: 133 KiB |
|
After Width: | Height: | Size: 142 KiB |
|
After Width: | Height: | Size: 200 KiB |
|
After Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 207 KiB |
|
After Width: | Height: | Size: 800 KiB |
|
After Width: | Height: | Size: 624 KiB |
|
After Width: | Height: | Size: 136 KiB |
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 476 KiB |
|
After Width: | Height: | Size: 602 KiB |
|
After Width: | Height: | Size: 319 KiB |
|
After Width: | Height: | Size: 705 KiB |
|
After Width: | Height: | Size: 458 KiB |
|
After Width: | Height: | Size: 627 KiB |
|
After Width: | Height: | Size: 675 KiB |
|
After Width: | Height: | Size: 528 KiB |
|
After Width: | Height: | Size: 271 KiB |
|
After Width: | Height: | Size: 378 KiB |
|
After Width: | Height: | Size: 230 KiB |
|
After Width: | Height: | Size: 122 KiB |
|
After Width: | Height: | Size: 591 KiB |
|
After Width: | Height: | Size: 233 KiB |
|
After Width: | Height: | Size: 727 KiB |
|
After Width: | Height: | Size: 734 KiB |
|
After Width: | Height: | Size: 85 KiB |
|
After Width: | Height: | Size: 486 KiB |
|
After Width: | Height: | Size: 536 KiB |
|
After Width: | Height: | Size: 43 B |
|
After Width: | Height: | Size: 532 KiB |
|
After Width: | Height: | Size: 539 KiB |
|
After Width: | Height: | Size: 530 KiB |
|
After Width: | Height: | Size: 542 KiB |
|
After Width: | Height: | Size: 532 KiB |
|
After Width: | Height: | Size: 473 KiB |
|
After Width: | Height: | Size: 246 KiB |
|
After Width: | Height: | Size: 306 KiB |
|
After Width: | Height: | Size: 547 KiB |
|
After Width: | Height: | Size: 311 KiB |
|
After Width: | Height: | Size: 529 KiB |
|
After Width: | Height: | Size: 540 KiB |
|
After Width: | Height: | Size: 533 KiB |
|
After Width: | Height: | Size: 544 KiB |
|
After Width: | Height: | Size: 546 KiB |
|
After Width: | Height: | Size: 441 KiB |
|
After Width: | Height: | Size: 340 KiB |
|
After Width: | Height: | Size: 396 KiB |
|
After Width: | Height: | Size: 316 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 329 KiB |
|
After Width: | Height: | Size: 217 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 43 B |
|
After Width: | Height: | Size: 234 KiB |
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 464 KiB |
|
After Width: | Height: | Size: 363 KiB |
|
After Width: | Height: | Size: 273 KiB |
|
After Width: | Height: | Size: 483 KiB |
|
After Width: | Height: | Size: 465 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 43 B |
|
After Width: | Height: | Size: 338 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 37 KiB |