Commit 9afa03dd authored by 毛线's avatar 毛线

no message

parent f4b5e7fe
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<img v-if="tabIndex === index" class="tab-img" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rounded%20Rectangle%2019.png" alt=""> <img v-if="tabIndex === index" class="tab-img" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rounded%20Rectangle%2019.png" alt="">
<img v-else class="tab-img" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/last_game%20%E6%8B%B7%E8%B4%9D%202.png" alt=""> <img v-else class="tab-img" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/last_game%20%E6%8B%B7%E8%B4%9D%202.png" alt="">
<div class="text">{{ text }}</div> <div class="text">{{ text }}</div>
<div v-if="index === 0" class="version">{{ `1.0.015` }}</div> <div v-if="index === 0" class="version">{{ `1.0.016` }}</div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -124,21 +124,21 @@ export default { ...@@ -124,21 +124,21 @@ export default {
playStyle: () => { playStyle: () => {
const { is_mobile, hideHeader } = this const { is_mobile, hideHeader } = this
const imgWidth = 560 // 图片原本宽度 const imgWidth = 560 // 图片原本宽度
const pt = 28 const pt = 1.6
const pb = 12 const px = 1.1
const px = 14 const pb = 0.84
const width = this.$refs?.livePlay?.offsetWidth || 0 const width = this.$refs?.livePlay?.offsetWidth || 0
let spt = pt let spt = pt
let spb = pb let spb = pb
let spx = px let spx = px
let padding = '30px 18px 16px' let padding = '1.6rem 1.1rem 0.84rem'
if (is_mobile || hideHeader) { if (is_mobile || hideHeader) {
spt = pt * width / imgWidth spt = pt * width / imgWidth
spb = pb * width / imgWidth spb = pb * width / imgWidth
spx = px * width / imgWidth spx = px * width / imgWidth
} }
padding = `${spt}px ${spx}px ${spb}px` padding = `${spt}rem ${spx}rem ${spb}rem`
console.log('padding', padding) console.log('padding', padding)
const style = { const style = {
padding, padding,
......
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