123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- <template>
- <view class="share">
- <view :class="{'share-box': shareState}" @click="handleHiddenShare">
- </view>
- <view class="share-item" :class="{'share-show': shareState}">
- <view class="share-to">
- <text style="font-size: 16px;color: #000;">{{title}}</text>
- </view>
- <scroll-view scroll-y="true" class="scroll-Y">
- <view class="uni-list-cell" hover-class="uni-list-cell-hover" v-for="(value, key) in historyList"
- :key="key">
- <view class="uni-media-list">
- <view class="uni-media-list-body" style="margin-left: 15px;">
- <view v-if="title=='拆旧管'">
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 腐蚀等级:{{value.zEngineeringMaterialBo[0].corrosionLevel}}</view>
- </view>
- <view v-else-if="title=='立杠'">
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 材质:{{value.zEngineeringMaterialBo[0].materialQualityName}}</view>
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 规格:{{value.zEngineeringMaterialBo[0].specificationsName}}</view>
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 数量:{{value.zEngineeringMaterialBo[0].number}}</view>
- </view>
- <view v-else-if="title=='挂表'">
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 品牌:{{value.zEngineeringMaterialBo[0].brand}}</view>
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 数量:{{value.zEngineeringMaterialBo[0].number}}</view>
- </view>
- <view v-else-if="title=='表后管'">
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 材质:{{value.zEngineeringMaterialBo[0].materialQualityName}}</view>
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 规格:{{value.zEngineeringMaterialBo[0].specificationsName}}</view>
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 数量:{{value.zEngineeringMaterialBo[0].number}}</view>
- </view>
- <view v-else-if="title=='阀管'">
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 上门类型:{{value.zEngineeringMaterialBo[0].visitType}}</view>
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 自闭阀类型:{{value.zEngineeringMaterialBo[0].selfClosingValveType}}</view>
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 材质:{{value.zEngineeringMaterialBo[0].materialQualityName}}</view>
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 规格:{{value.zEngineeringMaterialBo[0].specificationsName}}</view>
- <view class="uni-media-list-text-top"
- style="font-size: 13px;color: #000;margin-top: 5px;">
- 数量:{{value.zEngineeringMaterialBo[0].number}}</view>
- </view>
- <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
- <text style="margin-left: 30rpx;margin-top: 6rpx;">{{ value.published_at }}</text>
- <view v-for="(item,index) in value.zEngiineeringPhotoBoList" :key="index"
- style="position: relative;">
- <view
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
- <image :src="item" mode=""
- style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
- @click="showPhoto(index)">
- </image>
- </view>
- <view v-else>
- <video :src="item"
- style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props: {
- data: {
- type: Object,
- default: {}
- },
- },
- created() {
- this.getParamsData();
- },
- watch: {
- data(data) {
- this.getParamsData();
- }
- },
- data() {
- return {
- outPutData: {},
- historyList: [], //历史数据
- historyPhotoList: [], //历史图片数据
- shareState: false,
- title: '',
- };
- },
- methods: {
- showPhoto(index) {
- uni.previewImage({
- current: index,
- urls: this.historyPhotoList,
- })
- },
- getParamsData() {
- var selectData = this.data;
- this.outPutData = selectData;
- this.title = selectData.zEngineeringNodeBo.type;
- this.historyList = selectData.zEngineeringNodeBo.zEngineeringInfoBoList;
- //this.historyPhotoList = selectData.zEngineeringNodeBo.zEngineeringInfoBoList.zEngiineeringPhotoBoList;
- },
- // 显示分享
- handleShowShare() {
- this.shareState = true;
- },
- // 隐藏分享
- handleHiddenShare() {
- this.shareState = false;
- }
- }
- }
- </script>
- <style lang="less">
- .share {
- width: 100%;
- height: 100%;
- }
- .share-box {
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0rpx;
- left: 0rpx;
- bottom: 0rpx;
- right: 0rpx;
- background-color: rgba(0, 0, 0, 0.4);
- transition: .3s;
- z-index: 999;
- }
- // 进入分享动画
- .share-show {
- transition: all 0.3s ease;
- transform: translateY(0%) !important;
- border-radius: 20px 20px 0px 0px;
- }
- .scroll-Y {
- height: 750rpx;
- }
- // 离开分享动画
- .share-item {
- position: fixed;
- left: 0;
- bottom: 0;
- width: 100%;
- height: 70%;
- background-color: #FFFFFF;
- transition: all 0.3s ease;
- transform: translateY(100%);
- z-index: 1999;
- .share-to {
- width: 100%;
- height: 30px;
- display: flex;
- justify-content: left;
- margin-left: 15px;
- align-items: center;
- // &::after {
- // content: '';
- // width: 240rpx;
- // height: 0rpx;
- // border-top: 1px solid #E4E7ED;
- // -webkit-transform: scaleY(0.5);
- // transform: scaleY(0.5);
- // margin-left: 30rpx;
- // }
- // &::before {
- // content: '';
- // width: 240rpx;
- // height: 0rpx;
- // border-top: 1px solid #E4E7ED;
- // -webkit-transform: scaleY(0.5);
- // transform: scaleY(0.5);
- // margin-right: 30rpx;
- // }
- }
- .content {
- width: 100%;
- height: auto;
- display: flex;
- flex-wrap: wrap;
- .block {
- width: 100%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: left;
- height: auto;
- image {
- width: 80rpx;
- height: 80rpx;
- }
- text {
- margin-top: 16rpx;
- font-size: 28rpx;
- color: #606266;
- }
- }
- }
- .cancel {
- width: 100%;
- height: 3rem;
- display: flex;
- justify-content: center;
- align-items: center;
- border-top: 1rpx solid #E4E7ED;
- }
- }
- </style>
|