登录链接
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<cover-view class="safe-pb height-190"></cover-view>
|
||||
<cover-view class="fixed bottom-0 left-0 wp100 fn-flex bg-fff fn-flex-around safe-pb bg-fff bts-1-eb text-center z-index-4">
|
||||
<view class="safe-pb height-190"></view>
|
||||
<view class="fixed bottom-0 left-0 wp100 fn-flex bg-fff fn-flex-around safe-pb bg-fff bts-1-eb text-center z-index-4">
|
||||
<block wx:for="{{list}}" wx:key='index'>
|
||||
<cover-view class="fn-flex-item pt5 pb10" bindtap="pushNavTab" data-url="{{item.url}}">
|
||||
<cover-view class="inline-block img-60x60 icon-menu {{currentIndex == index?item.activeIcon:item.icon}}"></cover-view>
|
||||
<cover-view class="font-22 line-height-12 {{currentIndex == index?'color-1a':'color-999'}}">{{item.title}}</cover-view>
|
||||
</cover-view>
|
||||
<view class="fn-flex-item pt5 pb10" bindtap="pushNavTab" data-url="{{item.url}}">
|
||||
<view class="inline-block img-60x60 icon-menu {{currentIndex == index?item.activeIcon:item.icon}}"></view>
|
||||
<view class="font-22 line-height-12 {{currentIndex == index?'color-1a':'color-999'}}">{{item.title}}</view>
|
||||
</view>
|
||||
</block>
|
||||
</cover-view>
|
||||
</view>
|
||||
@@ -1,9 +1,9 @@
|
||||
<cover-view class="safe-pb height-190"></cover-view>
|
||||
<cover-view class="fixed bottom-0 left-0 wp100 fn-flex bg-fff fn-flex-around safe-pb bg-fff bts-1-eb text-center z-index-4">
|
||||
<view class="safe-pb height-190"></view>
|
||||
<view class="fixed bottom-0 left-0 wp100 fn-flex bg-fff fn-flex-around safe-pb bg-fff bts-1-eb text-center z-index-4">
|
||||
<block wx:for="{{list}}" wx:key='index'>
|
||||
<cover-view class="fn-flex-item pt5 pb10" bindtap="pushNavTab" data-url="{{item.url}}">
|
||||
<cover-view class="inline-block img-60x60 icon-menu {{currentIndex == index?item.activeIcon:item.icon}}"></cover-view>
|
||||
<cover-view class="font-22 line-height-12 {{currentIndex == index?'color-1a':'color-999'}}">{{item.title}}</cover-view>
|
||||
</cover-view>
|
||||
<view class="fn-flex-item pt5 pb10" bindtap="pushNavTab" data-url="{{item.url}}">
|
||||
<view class="inline-block img-60x60 icon-menu {{currentIndex == index?item.activeIcon:item.icon}}"></view>
|
||||
<view class="font-22 line-height-12 {{currentIndex == index?'color-1a':'color-999'}}">{{item.title}}</view>
|
||||
</view>
|
||||
</block>
|
||||
</cover-view>
|
||||
</view>
|
||||
+15
-11
@@ -19,16 +19,15 @@ Page({
|
||||
|
||||
onShow: function () {
|
||||
let ukey = app.getStorageByKey("ukey");
|
||||
if (!!ukey){
|
||||
let pages = getCurrentPages();
|
||||
if (pages.length > 1) {
|
||||
wx.navigateBack();
|
||||
if (!!ukey&&!!app.getStorageByKey("userInfo")){
|
||||
if(app.getStorageByKey("userInfo").group_id==4){
|
||||
wx.navigateTo({
|
||||
url: '/pages/channel/index',
|
||||
})
|
||||
}else{
|
||||
if(app.getStorageByKey("userInfo").group_id==4){
|
||||
_.$router.openUrlScheme('/pages/channel/index')
|
||||
}else{
|
||||
_.$router.openUrlScheme('/pages/index/index')
|
||||
}
|
||||
wx.navigateTo({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}
|
||||
}else{
|
||||
this.setData({
|
||||
@@ -110,10 +109,15 @@ Page({
|
||||
data: res.data.ukey
|
||||
})
|
||||
_.apiQuery.getUserInfo().then(res => {
|
||||
console.log(res)
|
||||
if(res.group_id==4){
|
||||
_.$router.openUrlScheme('/pages/channel/index')
|
||||
wx.navigateTo({
|
||||
url: '/pages/channel/index',
|
||||
})
|
||||
}else{
|
||||
_.$router.openUrlScheme('/pages/index/index')
|
||||
wx.navigateTo({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user