Commit a145f8eb by zhangzhen

细节优化

parent 3158e4e5
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<view class="flex-col content-box"> <view class="flex-col content-box">
<view class="user-action"> <view class="user-action">
<view v-for="(item,k) in userAction" :key="k" class="action-box" > <view v-for="(item,k) in userAction" :key="k" class="action-box" >
<view v-if="item.show|| userInfo.roleType >= 1" :style="{background:item.color}" class="action-item" @tap="onActionNav(item,k)"> <view v-if="item.show|| userInfo.isCleaner" :style="{background:item.color}" class="action-item" @tap="onActionNav(item,k)">
<view class="flex-1"> <view class="flex-1">
<text class="text-title text-lg">{{item.label}}</text> <text class="text-title text-lg">{{item.label}}</text>
</view> </view>
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<text class="text-title">联系我们</text> <text class="text-title">联系我们</text>
</view> </view>
</view> </view>
<view v-if="deviceRole" class="cu-item arrow" @tap="onHandle(5)"> <view v-if="userInfo.isAdmin" class="cu-item arrow" @tap="onHandle(5)">
<view class="content"> <view class="content">
<image :src="assetsPath+'/my_list_4.png'" class="png" mode="aspectFit"></image> <image :src="assetsPath+'/my_list_4.png'" class="png" mode="aspectFit"></image>
<text class="text-title">设备控制</text> <text class="text-title">设备控制</text>
...@@ -242,11 +242,6 @@ ...@@ -242,11 +242,6 @@
this.userName = this.userInfo.phone.slice(-4); this.userName = this.userInfo.phone.slice(-4);
uni.setStorageSync('userInfo',this.userInfo) uni.setStorageSync('userInfo',this.userInfo)
this.loginStatus = true; this.loginStatus = true;
deviceCtrlAuth().then(result => {
if(result.data.code == 200 && result.data.data.length){
this.deviceRole = true
}
})
} }
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment