This commit is contained in:
Weilanwl
2019-04-23 14:26:34 +08:00
parent 17ff7fb4e2
commit ac2a320457
49 changed files with 6489 additions and 4875 deletions
+1 -33
View File
@@ -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'
}
},
},
}
})
+1 -1
View File
@@ -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>