Authored by whb

视频bug

... ... @@ -125,7 +125,7 @@ class Video extends \yii\db\ActiveRecord
$sql = "v.url <>''";
break;
case 0://未上传回看视频
$sql = "v.url =''";
$sql = "v.url ='' OR v.url IS NULL";
break;
case -1:
default:
... ...
... ... @@ -53,3 +53,16 @@ use backend\widgets\YHGImage\Common\Images as CommonImages;
</form>
</div>
<script>
$(function(){
$("#upload_button").on("click", function()
{
var pic = $("input[name=pic]").val();
if(pic == "")
{
alert("头图不能为空");
return false;
}
});
});
</script>
... ...