gdpao #66
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content-item">
|
<view class="content-item">
|
||||||
<view class="image">
|
<view class="image" @click="toDetailsPage">
|
||||||
<image class="cover" :src="info.article_pic" alt="没有图片"></image>
|
<image class="cover" :src="info.article_pic" alt="没有图片"></image>
|
||||||
<image src="/static/image/user/5.png" class="play-icon" v-if="type==2"></image>
|
<image src="/static/image/user/5.png" class="play-icon" v-if="type==2"></image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="form-view active" @click="show_add()">+ 新建标签</view>
|
<view class="form-view active" @click="show_add()">+ 新建标签</view>
|
||||||
<view :class="['form-view', item.state == true ? 'active' : '']" v-for="(item, index) in fileListes" :key="index" @click="changeselect(index)">
|
<view :class="['form-view', item.state == true ? 'active' : '']" v-for="(item, index) in fileListes" :key="index" @click="changeselect(index)">
|
||||||
{{ item.name }}{{ item.state }}
|
{{ item.name }}
|
||||||
<u-icon v-show="is_edit && item.user_id != 0" class="close" name="close" color="#666" size="18" @click="isTable(item.id,index)"></u-icon>
|
<u-icon v-show="is_edit && item.user_id != 0" class="close" name="close" color="#666" size="18" @click="isTable(item.id,index)"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -301,7 +301,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.tagcontent = '';
|
this.tagcontent = '';
|
||||||
this.show = false;
|
this.show = false;
|
||||||
res.data.state = true;
|
res.data.state = false;
|
||||||
this.fileListes.push(res.data);
|
this.fileListes.push(res.data);
|
||||||
// this.$refs.uToast.show({
|
// this.$refs.uToast.show({
|
||||||
// title: res.message,
|
// title: res.message,
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="imgbox">
|
<view class="imgbox">
|
||||||
<view v-if="type==1">
|
<view v-if="type==1">
|
||||||
<image :src="list" mode="" v-for="list in info.article_image"></image>
|
<image :src="list" mode="" @tap="viewImage" v-for="list in info.article_image"></image>
|
||||||
</view>
|
</view>
|
||||||
<view v-else>
|
<view v-else>
|
||||||
<video :src="info.video_path" controls></video>
|
<video :src="info.video_path" controls></video>
|
||||||
@ -134,7 +134,13 @@ export default {
|
|||||||
this.info = res.data.article[0];
|
this.info = res.data.article[0];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
// 预览图片
|
||||||
|
viewImage() {
|
||||||
|
uni.previewImage({
|
||||||
|
urls: this.info.article_image
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user