mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-03-13 19:44:03 +08:00
v2.0.2 (单位全局使用rpx)
v2.0.2 (单位全局使用rpx)
This commit is contained in:
@@ -12,7 +12,30 @@ Page({
|
||||
{ title: '边框阴影', name: 'shadow', color: 'olive', icon: 'copy' },
|
||||
{ title: '加载', name: 'loading', color: 'green', icon: 'loading2' },
|
||||
],
|
||||
},
|
||||
},
|
||||
onLoad() {
|
||||
let that = this;
|
||||
// 获取用户信息
|
||||
wx.getSetting({
|
||||
success: res => {
|
||||
if (!res.authSetting['scope.userInfo']) {
|
||||
wx.redirectTo({
|
||||
url: '/pages/auth/auth'
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
showModal(e) {
|
||||
this.setData({
|
||||
modalName: e.currentTarget.dataset.target
|
||||
})
|
||||
},
|
||||
hideModal(e) {
|
||||
this.setData({
|
||||
modalName: null
|
||||
})
|
||||
},
|
||||
onShareAppMessage(){
|
||||
return {
|
||||
title: 'ColorUI-高颜值的小程序UI组件库',
|
||||
|
||||
Reference in New Issue
Block a user