[mod] aspectMode 從cover改為fit

This commit is contained in:
建喵 2023-11-15 17:22:44 +08:00
parent f6b10993cc
commit af628a14bd

View File

@ -7,11 +7,11 @@ window.onload = function (_0xe315c8) {
if (!liff.isLoggedIn()) {
liff.login({ redirectUri: location.href });
} else {
getP();
getParameter();
}
});
};
function getP() {
function getParameter() {
var type = getParameterByName("type");
if (!type) {
document.getElementById("textx").addEventListener("click", function () {
@ -62,7 +62,7 @@ function getP() {
makeAudio();
makeSticker();
meProfile();
// makeTest();
makeTest();
// makeDouDou();
makeBW();
}
@ -167,7 +167,7 @@ function makeSticker() {
"type": "image",
"url": "https://stickershop.line-scdn.net/stickershop/v1/sticker/85913166/IOS/sticker_animation@2x.png",
"size": "full",
"aspectMode": "cover",
"aspectMode": "fit",
"animated": true,
"backgroundColor": "#FFFFFF00"
}
@ -199,7 +199,7 @@ function makeSticker() {
"type": "image",
"url": "https://stickershop.line-scdn.net/stickershop/v1/sticker/" + sid + pngtype,
"size": "full",
"aspectMode": "cover",
"aspectMode": "fit",
"animated": true,
"backgroundColor": "#FFFFFF00"
}
@ -277,26 +277,52 @@ function makeTest() {
{
"type": "bubble",
"size": "mega",
"hero": {
"type": "image",
"url": "https://i.imgur.com/BNF0CiC.png",
"size": "full",
"aspectRatio": "20:13",
"aspectMode": "cover",
"action": {
"type": "uri",
"uri": "https://liff.line.me/1656796140-BaDWXE29?GameId=147&Promotion=36tNMgn&RefAccount=BeH7585"
}
},
"body": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "image",
"url": "https://i.imgur.com/BNF0CiC.png",
"size": "full",
"aspectRatio": "20:13",
"aspectMode": "cover",
"animated": false,
"backgroundColor": "#FFFFFF00"
"type": "text",
"text": "剛剛不小心在金爸爸尻到100倍大獎",
"weight": "bold",
"size": "md"
},
{
"type": "text",
"text": "實力不允許我低調",
"align": "center",
"weight": "bold"
}
]
},
"footer": {
"type": "box",
"layout": "vertical",
"spacing": "sm",
"contents": [
{
"type": "button",
"style": "link",
"height": "sm",
"action": {
"type": "uri",
"label": "點進來一起領獎金",
"uri": "https://liff.line.me/1656796140-BaDWXE29?GameId=147&Promotion=36tNMgn&RefAccount=BeH7585"
}
}
],
"paddingAll": "none"
},
"action": {
"type": "uri",
"label": "action",
"uri": "https://i.imgur.com/BNF0CiC.png"
"flex": 0
}
}
}];