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

Commit fc403ec5 authored by zhouhuan's avatar zhouhuan

图片点击放大

parent 7bb11290
...@@ -390,19 +390,14 @@ ...@@ -390,19 +390,14 @@
// 点击图片放大 // 点击图片放大
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": [ //相册包含的图片,数组格式
{ {
"alt": "演出封面", "alt": "图片",
"src": img_url, //原图地址 "src": img_url, //原图地址
} }
] ]
......
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