微信小程序编译
All checks were successful
Plugin Library CI / publish (00.BuildOriginality) (push) Successful in 13s
Plugin Library CI / publish (00.StaryEvo) (push) Successful in 17s
Plugin Library CI / publish (00.StaryEvoTools) (push) Successful in 35s
Plugin Library CI / publish (01.HybridCLR) (push) Successful in 15s
Plugin Library CI / publish (02.InformationSave) (push) Successful in 3s
Plugin Library CI / publish (03.YooAsset) (push) Successful in 33s
Plugin Library CI / publish (04.AudioCore) (push) Successful in 3s
Plugin Library CI / publish (05.TableTextConversion) (push) Successful in 5s
Plugin Library CI / publish (06.UIFarme) (push) Successful in 15s
Plugin Library CI / publish (07.RKTools) (push) Successful in 2s
Plugin Library CI / publish (08.UniTask) (push) Successful in 3s
Plugin Library CI / publish (09.CodeChecker) (push) Successful in 16s
Plugin Library CI / publish (10.StoryEditor) (push) Successful in 3s
Plugin Library CI / publish (10.XNode) (push) Successful in 3s
Plugin Library CI / publish (11.PointCloudTools) (push) Successful in 2s
Plugin Library CI / publish (12.WeixinMinigame) (push) Successful in 2m32s
All checks were successful
Plugin Library CI / publish (00.BuildOriginality) (push) Successful in 13s
Plugin Library CI / publish (00.StaryEvo) (push) Successful in 17s
Plugin Library CI / publish (00.StaryEvoTools) (push) Successful in 35s
Plugin Library CI / publish (01.HybridCLR) (push) Successful in 15s
Plugin Library CI / publish (02.InformationSave) (push) Successful in 3s
Plugin Library CI / publish (03.YooAsset) (push) Successful in 33s
Plugin Library CI / publish (04.AudioCore) (push) Successful in 3s
Plugin Library CI / publish (05.TableTextConversion) (push) Successful in 5s
Plugin Library CI / publish (06.UIFarme) (push) Successful in 15s
Plugin Library CI / publish (07.RKTools) (push) Successful in 2s
Plugin Library CI / publish (08.UniTask) (push) Successful in 3s
Plugin Library CI / publish (09.CodeChecker) (push) Successful in 16s
Plugin Library CI / publish (10.StoryEditor) (push) Successful in 3s
Plugin Library CI / publish (10.XNode) (push) Successful in 3s
Plugin Library CI / publish (11.PointCloudTools) (push) Successful in 2s
Plugin Library CI / publish (12.WeixinMinigame) (push) Successful in 2m32s
This commit is contained in:
@@ -0,0 +1,142 @@
|
||||
export default function getStyle(data) {
|
||||
return {
|
||||
container: {
|
||||
width: data.width,
|
||||
height: data.height,
|
||||
borderRadius: 12,
|
||||
paddingLeft: data.width * 0.03,
|
||||
paddingRight: data.width * 0.03,
|
||||
},
|
||||
rankList: {
|
||||
width: Math.ceil(data.width * 0.94),
|
||||
height: data.height,
|
||||
},
|
||||
list: {
|
||||
width: Math.ceil(data.width * 0.94),
|
||||
height: data.height,
|
||||
},
|
||||
listItem: {
|
||||
position: 'relative',
|
||||
width: Math.ceil(data.width * 0.94),
|
||||
height: data.height / 2 / 3,
|
||||
flexDirection: 'row',
|
||||
alignItems: 'center',
|
||||
marginTop: 2,
|
||||
},
|
||||
rankBg: {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
left: 0,
|
||||
width: Math.ceil(data.width * 0.94),
|
||||
height: data.height / 2 / 3,
|
||||
},
|
||||
rankAvatarBg: {
|
||||
position: 'absolute',
|
||||
top: (data.height / 2 / 3) * 0.1,
|
||||
left: data.width * 0.08,
|
||||
width: (data.height / 2 / 3) * 0.8,
|
||||
height: (data.height / 2 / 3) * 0.8,
|
||||
},
|
||||
rankAvatar: {
|
||||
borderRadius: data.width * 0.06,
|
||||
marginLeft: data.width * 0.08 + (data.height / 2 / 3) * 0.1,
|
||||
width: (data.height / 2 / 3) * 0.6,
|
||||
height: (data.height / 2 / 3) * 0.6,
|
||||
},
|
||||
rankNameView: {
|
||||
position: 'relative',
|
||||
marginLeft: data.width * 0.06,
|
||||
width: data.width * 0.35,
|
||||
height: data.height / 2 / 3,
|
||||
},
|
||||
rankNameBg: {
|
||||
position: 'absolute',
|
||||
top: (data.height / 2 / 3) * 0.14,
|
||||
left: 0,
|
||||
width: data.width * 0.35,
|
||||
height: (data.height / 2 / 3) * 0.4,
|
||||
},
|
||||
rankName: {
|
||||
position: 'absolute',
|
||||
top: (data.height / 2 / 3) * 0.14,
|
||||
left: 0,
|
||||
width: data.width * 0.35,
|
||||
height: (data.height / 2 / 3) * 0.4,
|
||||
textAlign: 'center',
|
||||
verticalAlign: 'center',
|
||||
fontSize: data.width * 0.043,
|
||||
textOverflow: 'ellipsis',
|
||||
whiteSpace: 'nowrap',
|
||||
color: '#fff',
|
||||
},
|
||||
rankScoreTip: {
|
||||
position: 'absolute',
|
||||
bottom: (data.height / 2 / 3) * 0.1,
|
||||
left: 0,
|
||||
width: data.width * 0.15,
|
||||
height: (data.height / 2 / 3) * 0.3,
|
||||
lineHeight: (data.height / 2 / 3) * 0.3,
|
||||
fontSize: data.width * 0.042,
|
||||
color: '#fff',
|
||||
},
|
||||
rankScoreVal: {
|
||||
position: 'absolute',
|
||||
bottom: (data.height / 2 / 3) * 0.1,
|
||||
left: data.width * 0.15,
|
||||
width: data.width * 0.18,
|
||||
height: (data.height / 2 / 3) * 0.3,
|
||||
lineHeight: (data.height / 2 / 3) * 0.3,
|
||||
fontSize: data.width * 0.042,
|
||||
color: '#fff',
|
||||
},
|
||||
shareNameView: {
|
||||
position: 'relative',
|
||||
marginLeft: data.width * 0.06,
|
||||
width: data.width * 0.35,
|
||||
height: (data.height / 2 / 3) * 0.4,
|
||||
},
|
||||
shareNameBg: {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
left: 0,
|
||||
width: data.width * 0.35,
|
||||
height: (data.height / 2 / 3) * 0.4,
|
||||
},
|
||||
shareName: {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
left: 0,
|
||||
width: data.width * 0.35,
|
||||
height: (data.height / 2 / 3) * 0.4,
|
||||
textAlign: 'center',
|
||||
lineHeight: (data.height / 2 / 3) * 0.4,
|
||||
fontSize: data.width * 0.043,
|
||||
textOverflow: 'ellipsis',
|
||||
color: '#fff',
|
||||
},
|
||||
shareToBtn: {
|
||||
position: 'relative',
|
||||
marginLeft: data.width * 0.08,
|
||||
width: data.width * 0.21,
|
||||
height: data.height * 0.16,
|
||||
},
|
||||
shareBtnBg: {
|
||||
position: 'absolute',
|
||||
right: 0,
|
||||
top: data.height * 0.16 * 0.25,
|
||||
width: data.width * 0.21,
|
||||
height: data.height * 0.16 * 0.5,
|
||||
},
|
||||
shareText: {
|
||||
position: 'absolute',
|
||||
right: 0,
|
||||
top: data.height * 0.16 * 0.25,
|
||||
width: data.width * 0.21,
|
||||
height: data.height * 0.16 * 0.5,
|
||||
lineHeight: data.height * 0.16 * 0.5,
|
||||
textAlign: 'center',
|
||||
fontSize: data.width * 0.043,
|
||||
color: '#fff',
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user