|
|
@@ -1,33 +1,28 @@
|
|
|
<!--为使用者-我的页面-->
|
|
|
-<view class="card">
|
|
|
- <image class="avatar" src="{{hasUserInfo ? userInfo.avatar : '/images/user/user.png'}}" bindtap="previewAvatar">
|
|
|
+<view class="user-card">
|
|
|
+ <image class="user-avatar" src="{{hasUserInfo ? userInfo.avatar : '/images/user/user.png'}}" bindtap="previewAvatar">
|
|
|
</image>
|
|
|
- <view wx:if="{{hasUserInfo}}" class="nickname primary-text">{{userInfo.name}}</view>
|
|
|
- <view wx:else class="nickname"><button class="block-background-color" size="mini"
|
|
|
- bindtap="getUserProfile">微信登录</button></view>
|
|
|
+ <view wx:if="{{hasUserInfo}}" class="user-nickname primary-text">{{userInfo.name}}</view>
|
|
|
+ <view wx:else class="user-nickname">
|
|
|
+ <myButton type="primary" bindtap="getUserProfile">微信登录</myButton>
|
|
|
+ </view>
|
|
|
<view wx:if="{{hasUserInfo}}">
|
|
|
- <view wx:if="{{pubInfo.length === 0}}" class="pub-name secondary-text">尚未加入任何社团组织</view>
|
|
|
- <view wx:else class="pub-name secondary-text">
|
|
|
- <view wx:for="{{pubInfo}}" wx:for-item="item" wx:key="pub_id">{{item.publisher.name}}</view>
|
|
|
- </view>
|
|
|
+ <view wx:if="{{!pubInfo.length}}" class="pub-name secondary-text">尚未加入任何社团组织</view>
|
|
|
+ <view class="pub-name secondary-text" wx:for="{{pubInfo}}" wx:for-item="item" wx:key="pub_id">
|
|
|
+ {{item.publisher.name}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="mid" wx:if="{{hasUserInfo}}">
|
|
|
-
|
|
|
- <view class="btn" hover-class="btn-hover" bindtap="myFavor">
|
|
|
+ <view class="btn" bindtap="myFavorite">
|
|
|
<image class="btn-icon" mode="aspectFit" src="/images/user/like.png"></image>
|
|
|
<view class="btn-text primary-text">我的收藏</view>
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
- <view class="btn" hover-class="btn-hover" bindtap="myFollow">
|
|
|
+ <view class="btn" bindtap="myFollow">
|
|
|
<image class="btn-icon" mode="aspectFit" src="/images/user/follow.png"></image>
|
|
|
<view class="btn-text primary-text">我的关注</view>
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
- <view class="btn" hover-class="btn-hover" bindtap="myQuestion">
|
|
|
+ <view class="btn" bindtap="myQuestion">
|
|
|
<image class="btn-icon" mode="aspectFit" src="/images/user/question.png"></image>
|
|
|
<view class="btn-text primary-text">我的提问</view>
|
|
|
</view>
|
|
|
@@ -37,12 +32,10 @@
|
|
|
<image class="btn-icon" mode="aspectFit" src="/images/user/setting.png"></image>
|
|
|
<view>设置</view>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="btn" bindtap="aboutUs">
|
|
|
<image class="btn-icon" mode="aspectFit" src="/images/user/about.png"></image>
|
|
|
<view>关于</view>
|
|
|
</view>
|
|
|
-
|
|
|
<button class="btn" open-type="feedback">
|
|
|
<image class="btn-icon" mode="aspectFit" src="/images/user/feedback.png"></image>
|
|
|
<view>反馈</view>
|