Commit cdd502d8 authored by Mac's avatar Mac

1

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