This commit is contained in:
Weilanwl
2019-03-28 23:08:35 +08:00
parent 89817a88e8
commit bb889509c0
108 changed files with 3446 additions and 4082 deletions

View File

@@ -1,4 +1,7 @@
Component({
options: {
addGlobalClass: true,
},
data: {
elements: [
{ title: '操作条', name: 'bar', color: 'purple', icon: 'vipcard' },
@@ -13,16 +16,4 @@ Component({
{ title: '步骤条', name: 'steps', color: 'cyan', icon: 'roundcheckfill' },
],
},
onLoad: function () {
},
pageLifetimes: {
show() {
if (typeof this.getTabBar === 'function' &&
this.getTabBar()) {
this.getTabBar().setData({
selected: 1
})
}
}
}
})

View File

@@ -1,3 +1,3 @@
{
"usingComponents": {}
"component": true
}

View File

@@ -1,9 +1,11 @@
<image src='/images/componentBg.png' mode='widthFix' class='response'></image>
<view class='nav-list'>
<navigator hover-class='none' url="../{{item.name}}/{{item.name}}" class="nav-li bg-{{item.color}}" style='animation: show {{(index+1)*0.2+1}}s 1;-webkit-animation: show {{(index+1)*0.2+1}}s 1;' wx:for="{{elements}}" wx:key>
<view class="nav-title">{{item.title}}</view>
<view class="nav-name">{{item.name}}</view>
<text class='icon-{{item.icon}}'></text>
</navigator>
</view>
<view class='cu-tabbar-height'></view>
<scroll-view scroll-y class="scrollPage">
<image src='/images/componentBg.png' mode='widthFix' class='response'></image>
<view class='nav-list'>
<navigator hover-class='none' url="/pages/component/{{item.name}}/{{item.name}}" class="nav-li bg-{{item.color}}" wx:for="{{elements}}" wx:key>
<view class="nav-title">{{item.title}}</view>
<view class="nav-name">{{item.name}}</view>
<text class='icon-{{item.icon}}'></text>
</navigator>
</view>
<view class='cu-tabbar-height'></view>
</scroll-view>