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
+8 -15
View File
@@ -1,45 +1,38 @@
const app = getApp();
Component({
options: {
addGlobalClass: true,
},
data: {
StatusBar: app.globalData.StatusBar,
CustomBar: app.globalData.CustomBar,
list: [{
title: '索引列表',
img: 'https://image.weilanwl.com/color2.0/plugin/sylb2244.jpg',
url: '../indexes/indexes'
url: '/indexes/indexes'
},
{
title: '微动画',
img: 'https://image.weilanwl.com/color2.0/plugin/wdh2236.jpg',
url: '../animation/animation'
url: '/animation/animation'
},
{
title: '全屏抽屉',
img: 'https://image.weilanwl.com/color2.0/plugin/qpct2148.jpg',
url: '../drawer/drawer'
url: '/drawer/drawer'
},
{
title: '垂直导航',
img: 'https://image.weilanwl.com/color2.0/plugin/qpczdh2307.jpg',
url: '../verticalnav/verticalnav'
url: '/verticalnav/verticalnav'
}
]
},
methods: {
toChild(e) {
wx.navigateTo({
url: e.currentTarget.dataset.url
url: '/pages/plugin' + e.currentTarget.dataset.url
})
},
},
pageLifetimes: {
show() {
if (typeof this.getTabBar === 'function' &&
this.getTabBar()) {
this.getTabBar().setData({
selected: 2
})
}
}
}
});
+3 -1
View File
@@ -1 +1,3 @@
{}
{
"component": true
}
+13 -13
View File
@@ -1,15 +1,15 @@
<view class="cu-custom" style="height:{{CustomBar}}px;">
<view class="cu-bar fixed none-bg text-white bg-img" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;background-image:url(https://image.weilanwl.com/color2.0/plugin/cjkz2329.jpg);">
<view class='content' style='top:{{StatusBar}}px;'>
<image src="/images/cjkz.png" mode='widthFix'></image>
<scroll-view scroll-y class="scrollPage">
<cu-custom bgImage="https://image.weilanwl.com/color2.0/plugin/cjkz2329.jpg">
<view slot="content">
<image src="/images/cjkz.png" mode="widthFix"></image>
</view>
</cu-custom>
<view class="cu-card">
<view class="cu-item bg-img shadow-blur" style="background-image:url({{item.img}})" bindtap="toChild" data-url="{{item.url}}" wx:for="{{list}}" wx:key>
<view class="cardTitle">
{{item.title}}
</view>
</view>
</view>
</view>
<view class="cu-card">
<view class="cu-item bg-img shadow-blur" style="background-image:url({{item.img}})" bindtap="toChild" data-url="{{item.url}}" wx:for="{{list}}" wx:key>
<view class="cardTitle">
{{item.title}}
</view>
</view>
</view>
<view class='cu-tabbar-height'></view>
<view class="cu-tabbar-height"></view>
</scroll-view>