export function getDrawImg(url, height = 0) { return { obj: [ { "type": "image", "url": url, // 确保路径正确 "css": { "top": "0", "width": 750 + "rpx", "height": height + 713 + "rpx", "display": "block", "borderRadius": "15rpx 15rpx 0 0" } }], height: height + 713 } } export function getCheckInInfo(talk,hotelname ="", roomname="",rscore_value= 0,dateStr='',height = 0) { let mr=48 return { obj: [ { "type": "image", "url": "../../subpages/images/painter/bg-1.png", "css": { "top": height+"rpx", width: "750rpx", height: "453rpx", "borderRadius": "0 0 15rpx 15rpx" } }, { "type": "text", "text": hotelname || "银弘辰悦酒店", "css": { "top":height+48+"rpx", "left": mr+"rpx", fontWeight: "800", fontSize: "43rpx", color: "#333333", lineHeight: "47rpx", textAlign: "center", fontStyle: "normal", textTransform: "none" } }, { "type": "image", "url": "../../subpages/images/painter/icon-2.png", // 确保路径正确 "css": { "top": height+124+"rpx", "left": mr+"rpx", "width": 34 + "rpx", "height": 34+ "rpx", "display": "block", } }, { "type": "text", "text": dateStr, "css": { "top":height+119+"rpx", "left": 100+"rpx", fontWeight: "500", fontSize: "31rpx", color: "#666666", lineHeight: "43rpx", textAlign: "center", fontStyle: "normal", textTransform: "none" } }, { "type": "image", "url": "../../subpages/images/painter/icon-1.png", // 确保路径正确 "css": { "top": height+122+"rpx", "left": 376+"rpx", "width": 34 + "rpx", "height": 34+ "rpx", "display": "block", } }, { "type": "text", "text": roomname, "css": { "top":height+119+"rpx", "left": 426+"rpx", fontWeight: "500", fontSize: "31rpx", color: "#666666", lineHeight: "43rpx", textAlign: "center", fontStyle: "normal", textTransform: "none" } }, { "type": "rect", "css": { "top":height+119+"rpx", "left": 347+"rpx", width: "2rpx", height: "35rpx", color: "#D8D8D8", // shadow: "20rpx 20rpx 8rpx rgba(219,225,231,0.2)", // borderRadius: '24rpx', } }, { "type": "text", "text": rscore_value, "css": { "top":height+40+"rpx", "left": 595+"rpx", fontWeight: "500", fontSize: "76rpx", color: "#333333", lineHeight: "71rpx", textAlign: "center", fontStyle: "normal", textTransform: "none" } }, { "type": "text", "text": "分", "css": { "top":height+83+"rpx", "left": 685+"rpx", fontWeight: "500", fontSize: "28rpx", color: "#666666", lineHeight: "71rpx", textAlign: "center", fontStyle: "normal", textTransform: "none" } }, { "type": "rect", "css": { "top":height+195+"rpx", "left": mr+"rpx", width: "655rpx", height: "0rpx", borderColor: "#CCCCCC", borderWidth:"2rpx", borderStyle: "dashed", } }, { "type": "text", "text": "\u3000\u3000"+ talk, "css": { "top":height+231+"rpx", "left": mr+"rpx", "width": "457rpx", "height": "216rpx", fontWeight: "500", fontSize: "28rpx", color: "#666666", lineHeight: "38rpx", fontStyle: "normal", textTransform: "none" } }, { "type": "image", "url": '../../subpages/images/painter/qr-code.png', // 默认显示“匿名用户” "css": { "top": height+230+"rpx", "left": "530rpx", "width": "171rpx", "height": "171rpx", } }, ], height: height + 453 } }