mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-03-10 17:34:01 +08:00
xiaogang
ColorUI 源代码
This commit is contained in:
26
pages/loading/loading.js
Normal file
26
pages/loading/loading.js
Normal file
@@ -0,0 +1,26 @@
|
||||
// pages/element/loading/loading.js
|
||||
Page({
|
||||
data: {
|
||||
loading: true
|
||||
},
|
||||
showLoading: function () {
|
||||
var that = this;
|
||||
this.setData({
|
||||
showLoading: true
|
||||
})
|
||||
|
||||
setTimeout(function () {
|
||||
that.setData({
|
||||
showLoading: false
|
||||
})
|
||||
}, 2000)
|
||||
},
|
||||
// onLoad: function () {
|
||||
// var that = this;
|
||||
// setTimeout(function () {
|
||||
// that.setData({
|
||||
// loading: true
|
||||
// })
|
||||
// }, 3000)
|
||||
// }
|
||||
})
|
||||
Reference in New Issue
Block a user