未验证 提交 117c6749 编写于 作者: Q QiuShuiBai 提交者: GitHub

docs(example): replace some images (#744)

上级 f58fd5bb
此差异已折叠。
...@@ -17,27 +17,27 @@ ...@@ -17,27 +17,27 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import CubePage from '../../components/cube-page.vue' import CubePage from '../../components/cube-page.vue'
export default{ export default {
data() { data() {
return { return {
items: [ items: [
{ {
url: 'http://www.didichuxing.com/', url: 'http://www.didichuxing.com/',
image: 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3978382133,2176310874&fm=27&gp=0.jpg' image: 'https://dpubstatic.udache.com/static/dpubimg/C9lKs8y0E6/IMG_4014.jpg'
}, { }, {
url: 'http://www.didichuxing.com/', url: 'http://www.didichuxing.com/',
image: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3780304411,1076045325&fm=15&gp=0.jpg' image: 'https://dpubstatic.udache.com/static/dpubimg/hD6agmm2ov/IMG_4012.jpg'
}, },
{ {
url: 'http://www.didichuxing.com/', url: 'http://www.didichuxing.com/',
image: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=56274798,4163877688&fm=27&gp=0.jpg' image: 'https://dpubstatic.udache.com/static/dpubimg/twV-VvZOA9/IMG_4011.jpg'
}, { }, {
url: 'http://www.didichuxing.com/', url: 'http://www.didichuxing.com/',
image: 'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3124201171,3290669243&fm=15&gp=0.jpg' image: 'https://dpubstatic.udache.com/static/dpubimg/eR_MahwRUT/IMG_4010.jpg'
}, },
{ {
url: 'http://www.didichuxing.com/', url: 'http://www.didichuxing.com/',
image: 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1309802367,1770965841&fm=27&gp=0.jpg' image: 'https://dpubstatic.udache.com/static/dpubimg/R3tKHhdZuK/IMG_4009.jpg'
} }
], ],
loop: true loop: true
...@@ -55,8 +55,9 @@ ...@@ -55,8 +55,9 @@
</script> </script>
<style lang="stylus" rel="stylesheet/stylus"> <style lang="stylus" rel="stylesheet/stylus">
.slide-view
.slide-container-v .slide-container-v
height: 380px height: 265px
margin-bottom: 15px margin-bottom: 15px
transform: translateZ(0px) transform: translateZ(0px)
border-radius: 2px border-radius: 2px
...@@ -69,4 +70,7 @@ ...@@ -69,4 +70,7 @@
background: none background: none
&.active &.active
color: #fc9153 color: #fc9153
.cube-slide-item > a > img
width: 100%
height: auto
</style> </style>
...@@ -26,19 +26,12 @@ ...@@ -26,19 +26,12 @@
const DATA_MAP = { const DATA_MAP = {
'全部': DATAS.ALL_HEROES, '全部': DATAS.ALL_HEROES,
'近战': DATAS.MELEE_HEROES, '法师': DATAS.MAGE_HEROES,
'远程': DATAS.REMOTE_HEROES, '战士': DATAS.FIGHTER_HEROES,
'辅助': DATAS.SUPPORT_HEROES,
'法师': DATAS.MAGIC_HEROES,
'打野': DATAS.JUNGLE_HEROES,
'坦克': DATAS.TANK_HEROES, '坦克': DATAS.TANK_HEROES,
'隐身': DATAS.INVISIBLE_HEROES, '刺客': DATAS.ASSASSIN_HEROES,
'后期': DATAS.CARRY_HEROES, '辅助': DATAS.SUPPORT_HEROES,
'闪烁': DATAS.BLINK_HEROES, '射手': DATAS.MARKSMAN_HEROES
'爆发': DATAS.HIGH_DAMAGE_HEROES,
'召唤': DATAS.INVOKE_HEROES,
'眩晕': DATAS.DIZZY_HEROES,
'治疗': DATAS.HEALER_HEROES
} }
const genTabLabels = Object.keys(DATA_MAP).map(label => ({ const genTabLabels = Object.keys(DATA_MAP).map(label => ({
label label
...@@ -75,22 +68,22 @@ ...@@ -75,22 +68,22 @@
} }
} }
</script> </script>
<style lang="stylus" rel="stylesheet/stylus" scoped> <style lang="stylus" rel="stylesheet/stylus">
.cube-scroll-list-wrapper .scroll-tab-view
.cube-tab-bar .cube-tab-bar
flex-wrap: wrap flex-wrap: wrap
.cube-tab .cube-tab
width: 100% width: 100%
flex-basis: unset flex-basis: unset
height: 40px height: 40px
line-height: 40px line-height: 40px
font-size: 14px font-size: 14px
color: #db8931 color: #db8931
transition: all .3s ease-in transition: all .3s ease-in
&.cube-tab_active &.cube-tab_active
color: #fff color: #fff
font-size: 16px font-size: 16px
background-color: #a74b00 background-color: #a74b00
.left-panel .left-panel
position: absolute position: absolute
...@@ -108,7 +101,7 @@ ...@@ -108,7 +101,7 @@
bottom: 0 bottom: 0
background-color: #171819 background-color: #171819
li li
height: 80px height: 102px
display: flex display: flex
align-items: center align-items: center
background-color: #171819 background-color: #171819
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册