mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-06-08 23:33:17 +08:00
v2.1.2
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -1 +1,3 @@
|
||||
{}
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user