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:
@@ -64,37 +64,5 @@ Component({
|
||||
icon: 'loading2'
|
||||
},
|
||||
],
|
||||
},
|
||||
methods: {
|
||||
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组件库',
|
||||
imageUrl: 'https://image.weilanwl.com/color2.0/share2215.jpg',
|
||||
path: '/pages/basics/home/home'
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
@@ -4,7 +4,7 @@
|
||||
<navigator open-type="navigate" hover-class='none' url="/pages/basics/{{item.name}}/{{item.name}}" class="nav-li bg-{{item.color}}" wx:for="{{elements}}" wx:key>
|
||||
<view class="nav-title">{{item.title}}</view>
|
||||
<view class="nav-name">{{item.name}}</view>
|
||||
<text class='icon-{{item.icon}}'></text>
|
||||
<text class='cuIcon-{{item.icon}}'></text>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class='cu-tabbar-height'></view>
|
||||
|
||||
Reference in New Issue
Block a user