Explorar o código

修复小程序用户信息页面按钮实现的bug

xsx hai 1 ano
pai
achega
41a98fa186
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      im-uniapp/pages/common/user-info.vue

+ 3 - 3
im-uniapp/pages/common/user-info.vue

@@ -36,10 +36,10 @@
 			</view>
 		</uni-card>
 		<bar-group>
-			<btn-bar v-show="isFriend" type="primary" title="发送消息" @click="onSendMessage()">
+			<btn-bar v-show="isFriend" type="primary" title="发送消息" @tap="onSendMessage()">
 			</btn-bar>
-			<btn-bar v-show="!isFriend" type="primary" title="加为好友" @click="onAddFriend()"></btn-bar>
-			<btn-bar v-show="isFriend" type="danger" title="删除好友" @click="onDelFriend()"></btn-bar>
+			<btn-bar v-show="!isFriend" type="primary" title="加为好友" @tap="onAddFriend()"></btn-bar>
+			<btn-bar v-show="isFriend" type="danger" title="删除好友" @tap="onDelFriend()"></btn-bar>
 		</bar-group>
 	</view>
 </template>