mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
提交
This commit is contained in:
@@ -28,6 +28,9 @@ send 姓名
|
|||||||
const pagelist=function(query){
|
const pagelist=function(query){
|
||||||
return ajax.post('/xboe/m/comment/tome/page',query);
|
return ajax.post('/xboe/m/comment/tome/page',query);
|
||||||
}
|
}
|
||||||
|
const mobilepage=function(query){
|
||||||
|
return ajax.post('/xboe/m/comment/tome/mobilepage',query);
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
保存评论
|
保存评论
|
||||||
{Object }
|
{Object }
|
||||||
@@ -87,5 +90,6 @@ export default{
|
|||||||
pageQuery,
|
pageQuery,
|
||||||
reply,
|
reply,
|
||||||
replyList,
|
replyList,
|
||||||
delReply
|
delReply,
|
||||||
|
mobilepage
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,12 +18,11 @@
|
|||||||
<view v-if="users.length>0" style="overflow-x: auto;height: 160upx;white-space: nowrap;overflow-y: hidden;">
|
<view v-if="users.length>0" style="overflow-x: auto;height: 160upx;white-space: nowrap;overflow-y: hidden;">
|
||||||
<view style="line-height: 60upx;display: inline-block;margin: 10upx;" v-for="(su,suidx) in users" :key="suidx" @click="confirmShare(su)">
|
<view style="line-height: 60upx;display: inline-block;margin: 10upx;" v-for="(su,suidx) in users" :key="suidx" @click="confirmShare(su)">
|
||||||
<view style="text-align: center;"><!--用户头像-->
|
<view style="text-align: center;"><!--用户头像-->
|
||||||
<view v-if="su.avatar"><image :src="su.avatar" shape="circle" style="width: 80upx;height: 80upx;"></image></view>
|
<view v-if="su.avatar" style="border-radius: 50%;"><image :src="$config.fileUrl+su.avatar" shape="circle" style="width: 80upx;height: 80upx;border-radius: 50%;"></image></view>
|
||||||
<view v-else>
|
<view v-else>
|
||||||
<image v-if="su.sex === 1 " shape="circle" src="../../static/images/man.png" style="width: 80upx;height: 80upx;" alt=""></image>
|
<image v-if="su.sex === 1 " shape="circle" src="../../static/images/man.png" style="width: 80upx;height: 80upx;" alt=""></image>
|
||||||
<image v-else shape="circle" src="../../static/images/woman.png" style="width: 80upx;height: 80upx;" alt=""></image>
|
<image v-else shape="circle" src="../../static/images/woman.png" style="width: 80upx;height: 80upx;" alt=""></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view style="text-align: center;font-size: 22upx;">{{su.name}}({{su.code}})</view>
|
<view style="text-align: center;font-size: 22upx;">{{su.name}}({{su.code}})</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -144,7 +143,7 @@
|
|||||||
// item.sex=1;
|
// item.sex=1;
|
||||||
// ids.push(item.aid);
|
// ids.push(item.aid);
|
||||||
// }
|
// }
|
||||||
item.avatar='';
|
// item.avatar='';
|
||||||
item.sex=1;
|
item.sex=1;
|
||||||
ids.push(item.aid);
|
ids.push(item.aid);
|
||||||
});
|
});
|
||||||
@@ -242,9 +241,9 @@
|
|||||||
item.avatar= author.avatar;
|
item.avatar= author.avatar;
|
||||||
item.code= author.code;
|
item.code= author.code;
|
||||||
item.sex=author.sex;
|
item.sex=author.sex;
|
||||||
if(author.avatar != '') {
|
// if(author.avatar != '') {
|
||||||
item.avatar=this.$config.fileUrl + author.avatar;
|
// item.avatar=this.$config.fileUrl + author.avatar;
|
||||||
}
|
// }
|
||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -147,7 +147,10 @@
|
|||||||
} else {
|
} else {
|
||||||
$this.follow.list.splice(this.cancelIndex,1);
|
$this.follow.list.splice(this.cancelIndex,1);
|
||||||
}
|
}
|
||||||
this.$refs.messager.show({message:'停止关注成功',type:'info'});
|
uni.showToast({
|
||||||
|
title:'停止关注成功'
|
||||||
|
})
|
||||||
|
// this.$refs.messager.show({message:'停止关注成功',type:'info'});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -226,7 +229,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.message);
|
// this.$message.error(res.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -46,7 +46,6 @@
|
|||||||
loadStatus:'noMore',//more,loading,noMore
|
loadStatus:'noMore',//more,loading,noMore
|
||||||
query:{
|
query:{
|
||||||
pageIndex:1,//当前页
|
pageIndex:1,//当前页
|
||||||
type:null,//当前只限于文章
|
|
||||||
pageSize:10,//条数
|
pageSize:10,//条数
|
||||||
},//查询条件
|
},//查询条件
|
||||||
message:{
|
message:{
|
||||||
@@ -133,7 +132,7 @@
|
|||||||
this.data=[]
|
this.data=[]
|
||||||
this.pageIndex=1
|
this.pageIndex=1
|
||||||
}
|
}
|
||||||
apiComments.pagelist(this.query).then(res=>{
|
apiComments.mobilepage(this.query).then(res=>{
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
this.total=res.result.count;
|
this.total=res.result.count;
|
||||||
let ids = [];
|
let ids = [];
|
||||||
|
|||||||
@@ -743,6 +743,17 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
/deep/ .u-modal{
|
||||||
|
width: 288px !important;
|
||||||
|
border-radius: 28upx;
|
||||||
|
}
|
||||||
|
/deep/ .u-modal__content{
|
||||||
|
text-align: center;
|
||||||
|
font-size: 36upx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
padding: 33px 25px 33px 25px;
|
padding: 33px 25px 33px 25px;
|
||||||
|
|||||||
Reference in New Issue
Block a user