下载按钮修改
This commit is contained in:
@@ -47,28 +47,31 @@
|
|||||||
不同主题,不同惊喜,每次打开<br />都有新的故事发生。
|
不同主题,不同惊喜,每次打开<br />都有新的故事发生。
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 按机型只留对应平台的下载按钮:iOS 只显示苹果,安卓只显示安卓主/备用 -->
|
||||||
<div class="downloadRow">
|
<div class="downloadRow">
|
||||||
<button type="button" class="dlBtn" @click.stop="onApple">
|
<button v-if="isIos" type="button" class="dlBtn" @click.stop="onApple">
|
||||||
<img class="dlIcon" :src="downloadWhiteIcon" alt="" />
|
<img class="dlIcon" :src="downloadWhiteIcon" alt="" />
|
||||||
<span class="dlText">
|
<span class="dlText">
|
||||||
<span class="dlMain">苹果下载</span>
|
<span class="dlMain">苹果下载</span>
|
||||||
<span class="dlSub">iOS 版本</span>
|
<span class="dlSub">iOS 版本</span>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="dlBtn" @click.stop="onAndroid">
|
<template v-else>
|
||||||
<img class="dlIcon" :src="downloadWhiteIcon" alt="" />
|
<button type="button" class="dlBtn" @click.stop="onAndroid">
|
||||||
<span class="dlText">
|
<img class="dlIcon" :src="downloadWhiteIcon" alt="" />
|
||||||
<span class="dlMain">安卓下载</span>
|
<span class="dlText">
|
||||||
<span class="dlSub">Android 版本</span>
|
<span class="dlMain">安卓下载</span>
|
||||||
</span>
|
<span class="dlSub">Android 版本</span>
|
||||||
</button>
|
</span>
|
||||||
<button type="button" class="dlBtn" @click.stop="onAndroidSpare">
|
</button>
|
||||||
<img class="dlIcon" :src="downloadWhiteIcon" alt="" />
|
<button type="button" class="dlBtn" @click.stop="onAndroidSpare">
|
||||||
<span class="dlText">
|
<img class="dlIcon" :src="downloadWhiteIcon" alt="" />
|
||||||
<span class="dlMain">安卓备用</span>
|
<span class="dlText">
|
||||||
<span class="dlSub">备用线路下载</span>
|
<span class="dlMain">安卓备用</span>
|
||||||
</span>
|
<span class="dlSub">备用线路下载</span>
|
||||||
</button>
|
</span>
|
||||||
|
</button>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -657,7 +660,10 @@ $page: #0b0b0d;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dlBtn {
|
.dlBtn {
|
||||||
width: 110px;
|
// 按机型只剩 1~2 个按钮,等分剩余宽度(封顶 170px),不要还挤在 110px
|
||||||
|
flex: 1 1 0;
|
||||||
|
min-width: 110px;
|
||||||
|
max-width: 170px;
|
||||||
height: 44px;
|
height: 44px;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 11px;
|
border-radius: 11px;
|
||||||
|
|||||||
Reference in New Issue
Block a user