Commit 05e07a0e authored by 罗林杰's avatar 罗林杰

修改bug

parent 6964851d
......@@ -29,7 +29,7 @@
<view class="chat-inner-layout">
<view class="chat-item-name">{{item.memNickName}}</view>
<view class="chat-item-msg-layout">
<image class="chat-item-photo" :src="item.avatarUrl" ></image>
<image @click="gotoDetail(item.memberId)" class="chat-item-photo" :src="item.avatarUrl" ></image>
<view class="chat-inner-msg-left">{{item.content}}</view>
</view>
</view>
......@@ -87,6 +87,7 @@ import {getOssUrl} from "../../api/article";
import {getDict} from "../../api/system/dict/data";
import ELM from '@/components/elm-toast/index.vue';
import UTextarea from "../../uni_modules/uview-ui/components/u--textarea/u--textarea.vue";
import {message} from "../../common/message";
export default {
name: "info",
data() {
......@@ -506,6 +507,20 @@ export default {
icon: 'none'
})
},
//跳转用户详情
gotoDetail(item){
if (item != null && item !=''){
if (uni.getStorageSync('userInfo').memRealAuthen != '1'){
this.tipMsg = message.authenticationMsg;
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
uni.navigateTo({
url: '/pagesUser/userInfo?memberId='+item
})
}
},
backbar() {
uni.navigateBack({
delta: 1, // 返回层数,2则上上页
......
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