Commit c445e8ad by 王榕

修改用户登录

parent 75695fd8
...@@ -92,21 +92,10 @@ ...@@ -92,21 +92,10 @@
<cover-view class="my-cover {{myModel?'my-model':''}}" style="top:{{navHeight}}px" bindtap="showMy"> <cover-view class="my-cover {{myModel?'my-model':''}}" style="top:{{navHeight}}px" bindtap="showMy">
<cover-view class="my-body" catchtap="nullfunc"> <cover-view class="my-body" catchtap="nullfunc">
<cover-view class="my-avator"> <cover-view class="my-avator">
<block wx:if="{{user.avatarUrl}}">
<cover-image class="avator" src="{{user.avatarUrl||'./defaultAvator.png'}}"></cover-image> <cover-image class="avator" src="{{user.avatarUrl||'./defaultAvator.png'}}"></cover-image>
</block>
<block wx:else>
<open-data class="avator" type="userAvatarUrl"></open-data>
</block>
<cover-view class="my-right"> <cover-view class="my-right">
<block wx:if="{{auth}}"> <block wx:if="{{auth}}">
<block wx:if="{{user.nickname}}"> <cover-view class="nickname">{{user.nickname||'Hi,您好'}}</cover-view>
<cover-view class="nickname">{{user.nickname}}</cover-view>
</block>
<block wx:else>
<open-data class="nickname" type="userNickName"></open-data>
</block>
<cover-view catchtap="bindBattery" class="bind-btn abtn">绑定电池</cover-view> <cover-view catchtap="bindBattery" class="bind-btn abtn">绑定电池</cover-view>
</block> </block>
<block wx:else> <block wx:else>
...@@ -123,7 +112,7 @@ ...@@ -123,7 +112,7 @@
</cover-view> --> </cover-view> -->
<cover-view class="battery-list" wx:if="{{batteryList.length}}"> <cover-view class="battery-list" wx:if="{{batteryList.length}}">
<cover-view class="battery-item" wx:for="{{batteryList}}" wx:key="{{item.id}}" bindtap="changeCar" data-id="{{item.id}}" data-deviceNo="{{item.deviceNo}}"> <cover-view class="battery-item" wx:for="{{batteryList}}" wx:key="{{item.id}}" bindtap="changeCar" data-id="{{item.id}}" data-deviceNo="{{item.deviceNo}}">
<cover-view class="battery-no">{{item.gprsImei}}</cover-view> <cover-view class="battery-no">{{item.deviceNo}}</cover-view>
<cover-view>{{item.bmsSoc||'0'}}%</cover-view> <cover-view>{{item.bmsSoc||'0'}}%</cover-view>
</cover-view> </cover-view>
</cover-view> </cover-view>
......
...@@ -327,7 +327,7 @@ page { ...@@ -327,7 +327,7 @@ page {
left: 0; left: 0;
right: 100vw; right: 100vw;
background: rgba(221, 221, 221, 0.6); background: rgba(221, 221, 221, 0.6);
transition: all 0.6s ease; /* transition: all 0.6s ease; */
} }
.my-cover .my-body { .my-cover .my-body {
......
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