bayi hace 2 años
padre
commit
48384f9b03
Se han modificado 2 ficheros con 9 adiciones y 1 borrados
  1. 7 0
      pages/invite/index.js
  2. 2 1
      pages/invite/index.wxml

+ 7 - 0
pages/invite/index.js

@@ -29,6 +29,13 @@ Page({
     closeTranscript() {
         this.selectComponent("#popUp").hideModal()
     },
+    jumpUserInfo({
+        currentTarget
+    }) {
+        wx.navigateTo({
+            url: `/pages/personal/index?uid=${currentTarget.dataset.uid}&type=user`,
+        })
+    },
     /**
      * 用户点击右上角分享
      */

+ 2 - 1
pages/invite/index.wxml

@@ -205,7 +205,8 @@
             <view class="item" wx:for="{{list}}" wx:key="eid">
                 <view class="left">
                     <view class="num">{{index+1}}</view>
-                    <image src="{{item.avatar}}" class="avatar" />
+                    <image src="{{item.avatar}}" class="avatar" data-uid="{{item.uid}}"
+                        bindtap="jumpUserInfo" />
                     <view class="nickName textOver">{{item.nickName||item.eid}}</view>
                 </view>
                 <view class="time">{{filters.formatDate(item.gmtCreated,1)}}</view>