|
@@ -12,11 +12,11 @@
|
|
|
</view>
|
|
|
<view class="file-box">
|
|
|
<block v-for="item in detail.attinfos" :key="item.attachmentid">
|
|
|
- <view v-if="item.fileType == 'image'" @click="viewImages(item.url)" class="item">
|
|
|
+ <view v-if="item.fileType == 'image'" @click="viewImages(item)" class="item" hover-class="navigator-hover">
|
|
|
<u-image :src="item.url" :width="tovw(105)" :height="tovw(105)" :lazy-load="true"
|
|
|
radius="5"></u-image>
|
|
|
</view>
|
|
|
- <view v-else-if="item.fileType == 'video'" class="item">
|
|
|
+ <view v-else-if="item.fileType == 'video'" class="item" hover-class="navigator-hover">
|
|
|
<video class="video" :style="{ width: tovw(105), height: tovw(105) }" :poster="item.subfiles[0].url"
|
|
|
:src="item.url" />
|
|
|
</view>
|
|
@@ -70,7 +70,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { formattedFiles, viewImage } from "../../utils/settleFiles.js"
|
|
|
+import { formattedFiles, viewMedias } from "../../utils/settleFiles.js"
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -123,8 +123,8 @@ export default {
|
|
|
|
|
|
},
|
|
|
/* 预览图片 */
|
|
|
- viewImages(url) {
|
|
|
- viewImage(url)
|
|
|
+ viewImages(item) {
|
|
|
+ viewMedias(this.detail.attinfos.filter(v => v.fileType == 'image'),this.detail.attinfos.indexOf(item),'image')
|
|
|
},
|
|
|
changeComment(e) {
|
|
|
this.commentText = e.detail.value;
|
|
@@ -217,7 +217,7 @@ export default {
|
|
|
.item {
|
|
|
margin: 0 10px 10px 0;
|
|
|
display: inline-block;
|
|
|
-
|
|
|
+ border-radius: 5px;
|
|
|
&:nth-child(3n) {
|
|
|
margin-right: 0 !important;
|
|
|
}
|