1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <!--pages/account/index.wxml-->
- <view class="sg-container">
- <view class="sg-index-bg sg-pad">
- <view class="sg-flex sg-align-center">
- <image class="sg-avatar sg-margin-right" style="width:100rpx" src="{{ userInfo.avatar }}" mode="widthFix"></image>
- <view class="sg-white" style="width:100%">
- <view class="sg-font-lg sg-flex sg-align-center" style="justify-content: space-between;margin-bottom:15rpx;">
- <view>{{ userInfo ? userInfo.name : '请登录' }}</view>
- <view class="sg-align-center sg-flex" wx:if="{{userInfo}}" bindtap="logout">
- <image src="./out.png" alt="" mode="widthFix" style="width:40rpx"></image>
- </view>
- </view>
- <view class="sg-font-small sg-flex sg-align-center" style="justify-content: space-between;" >
- <view wx:if="userInfo">所属项目个数 | {{project_num}}个</view>
- <view bindtap="navigate" data-url="{{userInfo ? '/pages/user/index' : '/pages/login/index'}}">{{ userInfo ? '修改用户信息' : '点击按钮进行登录操作' }}</view>
- </view>
- <view wx:if="{{project_num <= 0}}" class="sg-margin-tb-sm sg-pad-sm sg-primary sg-font-xs sg-white sg-flex sg-align-center sg-space-between" style="background: #4281F0; border-radius: 5px" bindtap="navigate" data-url="/pages/bind/index">
- <view>联系管理员进行授权,进行项目查看</view>
- <van-icon name="arrow"></van-icon>
- </view>
- </view>
- </view>
- <view wx:if="{{!userInfo}}"
- class="sg-pad-sm sg-font-small sg-margin-tb sg-white sg-deep-blue-bg sg-flex sg-align-center sg-space-between"
- bindtap="navigate" data-url="/pages/login/index">
- <text>你还未登录,暂时不能查看项目相关数据</text>
- <van-icon name="arrow" class="sg-icon"></van-icon>
- </view>
- </view>
- <view class="sg-white-bg">
- <!-- <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border" bindtap="navigate"
- data-url="/pages/bind/index">
- <view>绑定微信</view>
- <van-icon class="sg-icon" name="arrow"></van-icon>
- </view> -->
- <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border" bindtap="navigate"
- data-url="/pages/password/index">
- <view>修改密码</view>
- <van-icon class="sg-icon" name="arrow"></van-icon>
- </view>
- <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border" bindtap="navigate"
- data-url="/pages/feedback/index">
- <view>用户反馈</view>
- <van-icon class="sg-icon" name="arrow"></van-icon>
- </view>
- <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border" bindtap="navigate"
- data-url="/pages/about/index">
- <view>关于我们</view>
- <van-icon class="sg-icon" name="arrow"></van-icon>
- </view>
- <!-- <view class="sg-flex sg-align-center sg-space-between sg-pad sg-bottom-border" bindtap="logout">
- <view>退出登录</view>
- <van-icon class="sg-icon" name="arrow"></van-icon>
- </view> -->
- </view>
- </view>
|