Commit cdd502d8 authored by Mac's avatar Mac

1

parent 546e6ff9
......@@ -230,6 +230,9 @@
<view class="andiostyle" @click.stop="playVoice(x)">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/Sound.png" mode="widthFix" style="width: 19px;height: auto;"></image>
</view>
</view>
<view class="text" style="font-size: 11px;" v-if="x.address && x.address!=''">
{{x.address}}
</view>
<view class="r-sj">
<text>{{x.createTime}}</text>
......
......@@ -231,6 +231,9 @@
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/Sound.png" mode="widthFix" style="width: 19px;height: auto;"></image>
</view>
</view>
<view class="text" style="font-size: 11px;" v-if="detial.address && detial.address!=''">
{{detial.address}}
</view>
<view class="r-sj">
<text>{{detial.createTime}}</text>
<view class="r-sj-d" @click="getdian(detial)">
......@@ -330,23 +333,33 @@
choiceId: 0,//保存评论和点赞时候的id
show:false,
user:'',//点击用户保存的数据
UserId:0,
}
},
onLoad(options) {
if(options && options.ID){
this.articleId = options.ID;
this.init()
this.init(1)
}
uni.setNavigationBarTitle({
title: '详情',
});
innerAudioContext.loop = true;
this.mainColor = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary;
this.pricecolor = this.$uiConfig.pricecolor;
this.UserId = uni.getStorageSync("mall_UserInfo").UserId ? uni.getStorageSync("mall_UserInfo").UserId : 0;
},
onUnload(){
innerAudioContext.stop();
},
methods:{
init(){
this.loading = true;
init(type=0){
if(type==1){//第一次进来判断
this.loading = true;
}
this.request2({
url: '/api/AppletEducation/DynamicDetial',
data: {articleId:this.articleId}
......@@ -422,12 +435,12 @@
item:item,
iq:iq,
}
if(this.msg.UserId == this.user.item.empId){//自己点自己的时候处理
if(this.UserId == this.user.item.empId){//自己点自己的时候处理
this.show=true
}else{
this.focu = true;
this.choiceId = x.id;
this.$forceUpdate()
this.commentMsg = {
ArticleId: x.id,
CommentId: item.commentId,
......@@ -437,6 +450,16 @@
}
},
pinglun(x) { //评论
this.focu = true;
this.choiceId = x.id;
this.detial.dianshow = false; //隐藏按钮
this.commentMsg = {
ArticleId: x.id,
CommentId: 0,
Content: '',
}
},
addComment() {
if (this.commentMsg.Content == '') {
......
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