<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8 ?>">
    <title>商品详情</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
</head>
<body>
<div>
    <?php
        $str = \Our\Common::is_https() ? str_replace('http://','https://',$commonInfo['goods_youku_url']) : $commonInfo['goods_youku_url'];
        if($str) {
//            preg_match('/iframe((?!src).)*src[\s]*=[\s]*[\'"](?<src>[^\'"]*)[\'"]/i',$str,$match);
//            if($match) {
//                echo "<iframe height=auto width=100% src='{$match['src']}' frameborder=0 'allowfullscreen'></iframe>";
//            }
            echo htmlspecialchars_decode($str);
        }
    ?>
    <?php echo $commonInfo['goods_body']; ?>
</div>
</body>
</html>
<style>
    *{
        margin:0;
        padding: 0;
    }
    img{
        max-width:100%;
        height:auto;
    }
</style>
<script>
    window.onload=function (){
        document.getElementsByTagName("iframe")[0].style.width=document.body.clientWidth+'px';
        document.getElementsByTagName("iframe")[0].style.height=(document.body.clientWidth*480/510)+'px';
    }
</script>
