v2.0.2 (单位全局使用rpx)

v2.0.2 (单位全局使用rpx)
This commit is contained in:
Weilanwl
2018-12-27 23:59:12 +08:00
parent 631054af7b
commit ec50ad8a7b
15 changed files with 5965 additions and 119 deletions

View File

@@ -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组件库',