Browse Source

报修报事可以显示视频

master
mk 3 weeks ago
parent
commit
8056cf5174
  1. 3
      subpages/eventAdd/add/add.wxss
  2. 6
      subpages/mine/eventList/eventList.wxml
  3. 6
      subpages/mine/repairList/repairList.wxml
  4. 4
      utils/config.js

3
subpages/eventAdd/add/add.wxss

@ -53,7 +53,6 @@
width: 96%;
margin-left: 2%;
top: calc(6% + 100rpx);
padding: 2%;
box-sizing: border-box;
}
@ -150,7 +149,7 @@ van-uploader__upload {
.bxName {
width: 100%;
height: 100rpx;
height: 80rpx;
display: flex;
justify-content: space-between;
align-items: center;

6
subpages/mine/eventList/eventList.wxml

@ -30,9 +30,9 @@
<view wx:if="{{item.handleImages.length != 0}}" class="pl-16 m-top-16">
<view class="m-top-16 flex items-center">
<view style="margin:0 110rpx 0 0 ;">图片</view>
<view class="flex flex-sa">
<image src="{{itemC.url}}" style="width: 140rpx;height: 140rpx;" mode="" wx:for="{{item.handleImages}}" wx:for-item="itemC" wx:if="{{itemC.type != 'video'}}" class="mr-10" bind:tap="previewImage" wx:for-index="indexC" data-item="{{item.handleImages}}" data-itemC="{{itemC.url}}" class="mr-10" />
<!-- <video src="{{itemC.url}}" style="width: 140rpx;height: 140rpx;" wx:if="{{itemC.type === 'video'}}" wx:for="{{item.images}}" wx:for-item="itemC" /> -->
<view class="flex flex-sa flex-wrap">
<image src="{{itemC.url}}" style="width: 140rpx;height: 140rpx;margin-top: 20rpx;" mode="" wx:for="{{item.handleImages}}" wx:for-item="itemC" wx:if="{{itemC.format != 'video'}}" class="mr-10" bind:tap="previewImage" wx:for-index="indexC" data-item="{{item.handleImages}}" data-itemC="{{itemC.url}}" class="mr-10" />
<video src="{{itemC.url}}" style="width: 320rpx;height: 180rpx;margin-top: 20rpx;" wx:if="{{itemC.format === 'video'}}" wx:for="{{item.handleImages}}" wx:for-item="itemC" />
</view>
</view>
</view>

6
subpages/mine/repairList/repairList.wxml

@ -34,9 +34,9 @@
<view wx:if="{{item.handleImages.length != 0}}" class="pl-16 m-top-16">
<view class="m-top-16 flex items-center ">
<view style="margin-right: 110rpx;">图片</view>
<view class="flex flex-sa">
<image src="{{itemC.url}}" style="width: 140rpx;height: 140rpx;" mode="" wx:for="{{item.handleImages}}" wx:for-item="itemC" wx:if="{{itemC.type != 'video'}}" class="mr-10" bind:tap="previewImage" wx:for-index="indexC" data-item="{{item.handleImages}}" data-itemC="{{itemC.url}}" class="mr-10"/>
<!-- <video src="{{itemC.url}}" style="width: 140rpx;height: 140rpx;" wx:if="{{itemC.type === 'video'}}" wx:for="{{item.images}}" wx:for-item="itemC" /> -->
<view class="flex flex-sa flex-wrap">
<image src="{{itemC.url}}" style="width: 140rpx;height: 140rpx;margin-top: 20rpx;" mode="" wx:for="{{item.handleImages}}" wx:for-item="itemC" wx:if="{{itemC.format != 'video'}}" class="mr-10" bind:tap="previewImage" wx:for-index="indexC" data-item="{{item.handleImages}}" data-itemC="{{itemC.url}}" class="mr-10"/>
<video src="{{itemC.url}}" style="width: 320rpx;height: 140rpx;margin-top: 20rpx;" wx:if="{{itemC.format === 'video'}}" wx:for="{{item.handleImages}}" wx:for-item="itemC" />
</view>
</view>
</view>

4
utils/config.js

@ -13,8 +13,8 @@ module.exports = {
};
function BASEURL() {
return 'https://zsbz.qdcfy.com/mz-api'
// return 'http://219.146.91.110:30801/mz-api'
// return 'https://zsbz.qdcfy.com/mz-api'
return 'http://219.146.91.110:30801/mz-api'
// return 'https://epmet-test.elinkservice.cn/api/'
}

Loading…
Cancel
Save