mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-06-08 15:23:17 +08:00
v2.1.2
This commit is contained in:
@@ -1,39 +1,43 @@
|
||||
Component({
|
||||
options: {
|
||||
addGlobalClass: true,
|
||||
},
|
||||
data: {
|
||||
starCount: 0,
|
||||
forksCount: 0,
|
||||
visitTotal: 0,
|
||||
},
|
||||
methods: {
|
||||
onLoad(options) {
|
||||
let that = this;
|
||||
wx.showLoading({
|
||||
title: '数据加载中',
|
||||
mask: true,
|
||||
})
|
||||
let i = 0;
|
||||
numDH();
|
||||
function numDH() {
|
||||
if (i < 20) {
|
||||
setTimeout(function() {
|
||||
that.setData({
|
||||
visitTotal: i,
|
||||
forksCount: i,
|
||||
visitTotal: i
|
||||
})
|
||||
i++
|
||||
numDH();
|
||||
}, 20)
|
||||
} else {
|
||||
attached() {
|
||||
console.log("success")
|
||||
let that = this;
|
||||
wx.showLoading({
|
||||
title: '数据加载中',
|
||||
mask: true,
|
||||
})
|
||||
let i = 0;
|
||||
numDH();
|
||||
function numDH() {
|
||||
if (i < 20) {
|
||||
setTimeout(function () {
|
||||
that.setData({
|
||||
starCount: that.coutNum(999),
|
||||
forksCount: that.coutNum(8888),
|
||||
visitTotal: that.coutNum(77777)
|
||||
starCount: i,
|
||||
forksCount: i,
|
||||
visitTotal: i
|
||||
})
|
||||
}
|
||||
i++
|
||||
numDH();
|
||||
}, 20)
|
||||
} else {
|
||||
that.setData({
|
||||
starCount: that.coutNum(999),
|
||||
forksCount: that.coutNum(8888),
|
||||
visitTotal: that.coutNum(77777)
|
||||
})
|
||||
}
|
||||
wx.hideLoading()
|
||||
},
|
||||
}
|
||||
wx.hideLoading()
|
||||
},
|
||||
methods: {
|
||||
coutNum(e) {
|
||||
if (e > 1000 && e < 10000) {
|
||||
e = (e / 1000).toFixed(1) + 'k'
|
||||
@@ -70,15 +74,5 @@ Component({
|
||||
current: 'https://image.weilanwl.com/color2.0/zanCode.jpg' // 当前显示图片的http链接
|
||||
})
|
||||
},
|
||||
},
|
||||
pageLifetimes: {
|
||||
show() {
|
||||
if (typeof this.getTabBar === 'function' &&
|
||||
this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
selected: 3
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -1 +1,3 @@
|
||||
{}
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
@@ -1,67 +1,68 @@
|
||||
<view class='UCenter-bg'>
|
||||
<image src='/images/logo.png' class='png' mode='widthFix'></image>
|
||||
<view class='text-xl'>ColorUI组件库
|
||||
<text class='text-df'>v2.0</text>
|
||||
</view>
|
||||
<view class='margin-top-sm'>
|
||||
<text>By:文晓港</text>
|
||||
</view>
|
||||
<image src='https://image.weilanwl.com/gif/wave.gif' mode='scaleToFill' class='gif-wave'></image>
|
||||
</view>
|
||||
<view class='padding flex text-center text-grey bg-white shadow-warp'>
|
||||
<view class='flex flex-sub flex-direction solid-right'>
|
||||
<view class="text-xxl text-orange">{{visitTotal}}</view>
|
||||
<scroll-view scroll-y class="scrollPage">
|
||||
<view class="UCenter-bg">
|
||||
<image src="/images/logo.png" class="png" mode="widthFix"></image>
|
||||
<view class="text-xl">ColorUI组件库
|
||||
<text class="text-df">v2.0</text>
|
||||
</view>
|
||||
<view class="margin-top-sm">
|
||||
<text class='icon-attentionfill'></text> View</view>
|
||||
<text>By:文晓港</text>
|
||||
</view>
|
||||
<image src="https://image.weilanwl.com/gif/wave.gif" mode="scaleToFill" class="gif-wave"></image>
|
||||
</view>
|
||||
<view class='flex flex-sub flex-direction solid-right'>
|
||||
<view class="text-xxl text-blue">{{starCount}}</view>
|
||||
<view class="margin-top-sm">
|
||||
<text class='icon-favorfill'></text> Star</view>
|
||||
</view>
|
||||
<view class='flex flex-sub flex-direction'>
|
||||
<view class="text-xxl text-green">{{forksCount}}</view>
|
||||
<view class="margin-top-sm">
|
||||
<text class='icon-fork'></text> Fork</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-list menu card-menu margin-top-xl margin-bottom-xl shadow-lg">
|
||||
<view class="cu-item arrow">
|
||||
<view class='content' bindtap='CopyLink' data-link='https://github.com/weilanwl/ColorUI'>
|
||||
<text class='icon-github text-grey'></text>
|
||||
<text class='text-grey'>GitHub</text>
|
||||
<view class="padding flex text-center text-grey bg-white shadow-warp">
|
||||
<view class="flex flex-sub flex-direction solid-right">
|
||||
<view class="text-xxl text-orange">{{visitTotal}}</view>
|
||||
<view class="margin-top-sm">
|
||||
<text class="icon-attentionfill"></text> View</view>
|
||||
</view>
|
||||
<view class="flex flex-sub flex-direction solid-right">
|
||||
<view class="text-xxl text-blue">{{starCount}}</view>
|
||||
<view class="margin-top-sm">
|
||||
<text class="icon-favorfill"></text> Star</view>
|
||||
</view>
|
||||
<view class="flex flex-sub flex-direction">
|
||||
<view class="text-xxl text-green">{{forksCount}}</view>
|
||||
<view class="margin-top-sm">
|
||||
<text class="icon-fork"></text> Fork</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item arrow">
|
||||
<navigator class='content' url='../about/about' hover-class='none'>
|
||||
<image src='/images/logo.png' class='png' mode='aspectFit'></image>
|
||||
<text class='text-grey'>关于ColorUI组件库</text>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="cu-item arrow">
|
||||
<navigator class='content' url='../log/log' hover-class='none'>
|
||||
<text class='icon-formfill text-green'></text>
|
||||
<text class='text-grey'>日志</text>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="cu-item arrow">
|
||||
<view class='content' bindtap="showQrcode">
|
||||
<text class='icon-appreciatefill text-red'></text>
|
||||
<text class='text-grey'>赞赏支持</text>
|
||||
<view class="cu-list menu card-menu margin-top-xl margin-bottom-xl shadow-lg radius">
|
||||
<view class="cu-item arrow">
|
||||
<view class="content" bindtap="CopyLink" data-link="https://github.com/weilanwl/ColorUI">
|
||||
<text class="icon-github text-grey"></text>
|
||||
<text class="text-grey">GitHub</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item arrow">
|
||||
<navigator class="content" url="/pages/about/about/about" hover-class="none">
|
||||
<image src="/images/logo.png" class="png" mode="aspectFit"></image>
|
||||
<text class="text-grey">关于ColorUI组件库</text>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="cu-item arrow">
|
||||
<navigator class="content" url="/pages/about/log/log" hover-class="none">
|
||||
<text class="icon-formfill text-green"></text>
|
||||
<text class="text-grey">日志</text>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class="cu-item arrow">
|
||||
<view class="content" bindtap="showQrcode">
|
||||
<text class="icon-appreciatefill text-red"></text>
|
||||
<text class="text-grey">赞赏支持</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item arrow">
|
||||
<button class="cu-btn content" open-type="feedback">
|
||||
<text class="icon-writefill text-cyan"></text>
|
||||
<text class="text-grey">意见反馈</text>
|
||||
</button>
|
||||
</view>
|
||||
<view class="cu-item arrow">
|
||||
<navigator class="content" url="/pages/about/test/list" hover-class="none">
|
||||
<text class="icon-creativefill text-orange"></text>
|
||||
<text class="text-grey">Bug测试</text>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item arrow">
|
||||
<button class='cu-btn content' open-type='feedback'>
|
||||
<text class='icon-writefill text-cyan'></text>
|
||||
<text class='text-grey'>意见反馈</text>
|
||||
</button>
|
||||
</view>
|
||||
<view class="cu-item arrow">
|
||||
<navigator class='content' url='../test/list' hover-class='none'>
|
||||
<text class='icon-creativefill text-orange'></text>
|
||||
<text class='text-grey'>Bug测试</text>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class='cu-tabbar-height'></view>
|
||||
<view class="cu-tabbar-height"></view>
|
||||
</scroll-view>
|
||||
Reference in New Issue
Block a user