落地页图片改为使用游戏截图

master
liuweiwen 5 years ago
parent c31ae44f79
commit 14644b44a2

@ -333,7 +333,7 @@
</div>
</div>
</span>
<span class="notice-text">横版游戏建议尺寸1691280*720px及以上竖版游戏建议尺寸916720*1280px及以上用于游戏详情页内展示</span>
<span class="notice-text">建议尺寸750*1334图片大小不超过3M</span>
</td>
</tr>
@ -1562,6 +1562,7 @@
id:'#screenshot',
multiple:true
},
fileSingleSizeLimit:3*1024*1024, //设定单个文件大小
// dnd: false,
paste: document.body,
accept: {
@ -1655,6 +1656,15 @@
$percent.text( (percentage * 100).toFixed(0) + '%' );
});
/**
* 验证文件格式以及文件大小
*/
uploaderVideo.on("error",function (type){
if(type=="F_EXCEED_SIZE"){
layer.msg("视频大小不能超过3M");
}
});
uploaderImgScreen.on( 'uploadSuccess', function( file , response) {
imgListScreenData.push(Number(response.id));
console.log(imgListScreenData)

@ -209,6 +209,13 @@ class HomeController extends Controller
}
$game['flooring_page_imgs'] = $imageUrls;
$screenshotIds = explode(',', $game['screenshot']) ?? [];
$screenshotUrls = [];
foreach ($screenshotIds as $screenshotId) {
$screenshotUrls[] = get_cover($screenshotId, 'path');
}
$game['screenshot'] = $screenshotUrls;
$isNewIos = false;
if ($gameSource['is_new_sdk'] == 1) {
$isNewIos = true;

@ -113,7 +113,7 @@
</div>
<div class="slide_list">
<ul class="slide-box">
<volist name="game['flooring_page_imgs']" id="item">
<volist name="game['screenshot']" id="item">
<li class="slide-item">
<img src="{$item}" alt="">
</li>

Loading…
Cancel
Save