Commit 37bcbec5 authored by liwei's avatar liwei

Merge remote-tracking branch 'origin/master'

parents f6089eed e0ec0524
...@@ -74,7 +74,7 @@ export function comment(data) { ...@@ -74,7 +74,7 @@ export function comment(data) {
//删除动态 //删除动态
export function delArticle(id) { export function delArticle(id) {
return request({ return request({
url: '/app/delete/' + id, url: '/app/opmArticle/delete/' + id,
method: 'delete', method: 'delete',
headers: {} headers: {}
}) })
...@@ -83,7 +83,7 @@ export function delArticle(id) { ...@@ -83,7 +83,7 @@ export function delArticle(id) {
//删除评论 //删除评论
export function deleteComment(data) { export function deleteComment(data) {
return request({ return request({
url: '/app/deleteComment/' + data.bussinessId, url: '/app/opmArticle/deleteComment/' + data.bussinessId,
method: 'delete', method: 'delete',
data:data data:data
}) })
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<view class="chat-inner-layout"> <view class="chat-inner-layout">
<view class="chat-item-name">{{item.memNickName}}</view> <view class="chat-item-name">{{item.memNickName}}</view>
<view class="chat-item-msg-layout"> <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 class="chat-inner-msg-left">{{item.content}}</view>
</view> </view>
</view> </view>
...@@ -87,6 +87,7 @@ import {getOssUrl} from "../../api/article"; ...@@ -87,6 +87,7 @@ import {getOssUrl} from "../../api/article";
import {getDict} from "../../api/system/dict/data"; import {getDict} from "../../api/system/dict/data";
import ELM from '@/components/elm-toast/index.vue'; import ELM from '@/components/elm-toast/index.vue';
import UTextarea from "../../uni_modules/uview-ui/components/u--textarea/u--textarea.vue"; import UTextarea from "../../uni_modules/uview-ui/components/u--textarea/u--textarea.vue";
import {message} from "../../common/message";
export default { export default {
name: "info", name: "info",
data() { data() {
...@@ -506,6 +507,20 @@ export default { ...@@ -506,6 +507,20 @@ export default {
icon: 'none' 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() { backbar() {
uni.navigateBack({ uni.navigateBack({
delta: 1, // 返回层数,2则上上页 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