记得上下班打卡 | git大法好,push需谨慎

Commit 8ead07d4 authored by zhouhuan's avatar zhouhuan

图片点击放大

parent 824b4c94
...@@ -395,15 +395,10 @@ ...@@ -395,15 +395,10 @@
// 点击图片放大 // 点击图片放大
function click_big(url){ function click_big(url){
// console.log(url)
var img_url = url var img_url = url
// var AA = 'https://img.zhengzai.tv/other/2021/09/19/668fe5a0ee4246d48137601baba47dd9.jpg?x-oss-process=image/resize,s_200'
// console.log('1',AA.indexOf("x-oss-process"))
// console.log('2',AA.split("?"))
if(url.indexOf("x-oss-process") != "-1"){ if(url.indexOf("x-oss-process") != "-1"){
img_url = url.split("?")[0] img_url = url.split("?")[0]
} }
// console.log("3",img_url)
var json = { var json = {
"data": [ //相册包含的图片,数组格式 "data": [ //相册包含的图片,数组格式
{ {
...@@ -417,7 +412,7 @@ ...@@ -417,7 +412,7 @@
closeBtn: 1, //右上角按钮,可通过配置1和2来展示,如果不显示,则closeBtn: 0 closeBtn: 1, //右上角按钮,可通过配置1和2来展示,如果不显示,则closeBtn: 0
anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数) anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
}); });
}; }
</script> </script>
</body> </body>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment