mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-06-08 23:33:17 +08:00
v2.1.3
This commit is contained in:
@@ -2,9 +2,24 @@ Page({
|
||||
data: {
|
||||
PageCur: 'basics'
|
||||
},
|
||||
NavChange(e){
|
||||
onLoad() {
|
||||
// 插屏广告
|
||||
|
||||
// let intersitialAd = wx.createInterstitialAd({
|
||||
// adUnitId: 'adunit-53f251ff1944e719'
|
||||
// })
|
||||
// intersitialAd.show().catch(err => console.log(err.errMsg))
|
||||
},
|
||||
NavChange(e) {
|
||||
this.setData({
|
||||
PageCur: e.currentTarget.dataset.cur
|
||||
})
|
||||
}
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: 'ColorUI-高颜值的小程序UI组件库',
|
||||
imageUrl: '/images/share.jpg',
|
||||
path: '/pages/index/index'
|
||||
}
|
||||
},
|
||||
})
|
||||
@@ -4,25 +4,25 @@
|
||||
<about wx:if="{{PageCur=='about'}}"></about>
|
||||
<view class="cu-bar tabbar bg-white shadow foot">
|
||||
<view class="action" bindtap="NavChange" data-cur="basics">
|
||||
<view class='icon-cu-image'>
|
||||
<view class='cuIcon-cu-image'>
|
||||
<image src="/images/tabbar/basics{{PageCur=='basics'?'_cur':''}}.png"></image>
|
||||
</view>
|
||||
<view class="{{PageCur=='basics'?'text-green':'text-gray'}}">元素</view>
|
||||
</view>
|
||||
<view class="action" bindtap="NavChange" data-cur="component">
|
||||
<view class='icon-cu-image'>
|
||||
<view class='cuIcon-cu-image'>
|
||||
<image src="/images/tabbar/component{{PageCur=='component'?'_cur':''}}.png"></image>
|
||||
</view>
|
||||
<view class="{{PageCur=='component'?'text-green':'text-gray'}}">组件</view>
|
||||
</view>
|
||||
<view class="action" bindtap="NavChange" data-cur="plugin">
|
||||
<view class='icon-cu-image'>
|
||||
<view class='cuIcon-cu-image'>
|
||||
<image src="/images/tabbar/plugin{{PageCur=='plugin'?'_cur':''}}.png"></image>
|
||||
</view>
|
||||
<view class="{{PageCur=='plugin'?'text-green':'text-gray'}}">扩展</view>
|
||||
</view>
|
||||
<view class="action" bindtap="NavChange" data-cur="about">
|
||||
<view class='icon-cu-image'>
|
||||
<view class='cuIcon-cu-image'>
|
||||
<image src="/images/tabbar/about{{PageCur=='about'?'_cur':''}}.png"></image>
|
||||
</view>
|
||||
<view class="{{PageCur=='about'?'text-green':'text-gray'}}">关于</view>
|
||||
|
||||
Reference in New Issue
Block a user