bottomSheetMore.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <template>
  2. <view class="share">
  3. <view :class="{'share-box': shareState}" @click="handleHiddenShare">
  4. </view>
  5. <view class="share-item" :class="{'share-show': shareState}">
  6. <view class="share-to">
  7. <text style="font-size: 16px;color: #000;">{{title}}</text>
  8. </view>
  9. <scroll-view scroll-y="true" class="scroll-Y">
  10. <view class="uni-list-cell" hover-class="uni-list-cell-hover" v-for="(value, key) in historyList"
  11. :key="key">
  12. <view class="uni-media-list">
  13. <view class="uni-media-list-body" style="margin-left: 15px;">
  14. <view class="uni-media-list-text-top" style="font-size: 13px;color: #000;margin-top: 5px;">
  15. 施工时间:{{value.constructTime}}</view>
  16. <!-- <view v-if="title=='进场'||title=='导向'||title=='挖孔'||title=='回拖'"
  17. class="uni-media-list-text-top" style="font-size: 13px;color: #000;margin-top: 5px;">
  18. 描述:{{value.remark}}</view> -->
  19. <view v-if="title=='进场'||title=='导向'||title=='挖孔'||title=='回拖'"
  20. class="uni-media-list-text-top">
  21. <view class="uni-common-mt" style="width: 100%;">
  22. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  23. #000;margin-top: 5px;">描述:</text>
  24. <view style="width: 100%;padding-right: 20rpx;box-sizing: border-box;">
  25. <textarea class="textarea" maxlength="255" :disabled="true"
  26. placeholder-style="padding: 10rpx;"
  27. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  28. auto-height>{{value.remark}}</textarea>
  29. </view>
  30. </view>
  31. </view>
  32. <view v-for="(a,index) in value.zEngineeringMaterialBo" :key="index">
  33. <view class="uni-media-list-text-top"
  34. style="font-size: 13px;color: #000;margin-top: 5px;">
  35. 材质:{{a.materialQualityName}}</view>
  36. <view class="uni-media-list-text-top"
  37. style="font-size: 13px;color: #000;margin-top: 5px;">
  38. 规格:{{a.specificationsName}}</view>
  39. <view class="uni-media-list-text-top"
  40. style="font-size: 13px;color: #000;margin-top: 5px;">
  41. 数量:{{a.number}}</view>
  42. </view>
  43. <view class="uni-media-list-text-top">
  44. <text style="font-size: 13px;color: #000;margin-top: 5px;">负责人:</text>
  45. <text
  46. style="font-size: 13px;color: #000;margin-top: 5px;">{{value.constructUser}}</text>
  47. </view>
  48. <view class="uni-media-list-text-top">
  49. <text style="font-size: 13px;color: #000;margin-top: 5px;">负责人联系电话:</text>
  50. <text
  51. style="font-size: 13px;color: #000;margin-top: 5px;">{{value.constructPhone}}</text>
  52. </view>
  53. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  54. <text style="margin-left: 30rpx;margin-top: 6rpx;">{{ value.published_at }}</text>
  55. <view v-for="(item,index) in value.zEngiineeringPhotoBoList" :key="index"
  56. style="position: relative;">
  57. <view
  58. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  59. <image :src="item" mode=""
  60. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  61. @click="showPhoto(index,value.zEngiineeringPhotoBoList)">
  62. </image>
  63. </view>
  64. <view v-else>
  65. <video :src="item"
  66. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </scroll-view>
  74. </view>
  75. </view>
  76. </template>
  77. <script>
  78. export default {
  79. props: {
  80. data: {
  81. type: Object,
  82. default: {}
  83. },
  84. TitleType: {
  85. type: String
  86. }
  87. },
  88. created() {
  89. this.getParamsData();
  90. },
  91. watch: {
  92. data(data) {
  93. this.getParamsData();
  94. }
  95. },
  96. data() {
  97. return {
  98. outPutData: {},
  99. historyList: [], //历史数据
  100. historyPhotoList: [], //历史图片数据
  101. shareState: false,
  102. title: '',
  103. };
  104. },
  105. methods: {
  106. // isEmpty(str) {
  107. // return (!str || 0 === str.length);
  108. // },
  109. showPhoto(index, list) {
  110. uni.previewImage({
  111. current: index,
  112. urls: list,
  113. })
  114. },
  115. getParamsData() {
  116. var selectData = this.data;
  117. this.outPutData = selectData;
  118. //this.title = selectData.zEngineeringNodeBo.type;
  119. //this.historyList = selectData.zEngineeringNodeBo.zEngineeringInfoBoList;
  120. if (this.TitleType == '市政工程') {
  121. this.title = '市政工程';
  122. this.historyList = selectData.zEngineeringNodeBoList[0].zEngineeringInfoBoList;
  123. } else {
  124. this.title = this.TitleType;
  125. this.historyList = selectData.zEngineeringNodeBo.zEngineeringInfoBoList;
  126. }
  127. },
  128. // 显示分享
  129. handleShowShare() {
  130. this.shareState = true;
  131. },
  132. // 隐藏分享
  133. handleHiddenShare() {
  134. this.shareState = false;
  135. }
  136. }
  137. }
  138. </script>
  139. <style lang="less">
  140. .share {
  141. width: 100%;
  142. height: 100%;
  143. }
  144. .share-box {
  145. width: 100%;
  146. height: 100%;
  147. position: fixed;
  148. top: 0rpx;
  149. left: 0rpx;
  150. bottom: 0rpx;
  151. right: 0rpx;
  152. background-color: rgba(0, 0, 0, 0.4);
  153. transition: .3s;
  154. z-index: 999;
  155. }
  156. // 进入分享动画
  157. .share-show {
  158. transition: all 0.3s ease;
  159. transform: translateY(0%) !important;
  160. border-radius: 20px 20px 0px 0px;
  161. }
  162. .scroll-Y {
  163. height: 750rpx;
  164. }
  165. // 离开分享动画
  166. .share-item {
  167. position: fixed;
  168. left: 0;
  169. bottom: 0;
  170. width: 100%;
  171. height: 70%;
  172. background-color: #FFFFFF;
  173. transition: all 0.3s ease;
  174. transform: translateY(100%);
  175. z-index: 1999;
  176. .share-to {
  177. width: 100%;
  178. height: 30px;
  179. display: flex;
  180. justify-content: left;
  181. margin-left: 15px;
  182. align-items: center;
  183. // &::after {
  184. // content: '';
  185. // width: 240rpx;
  186. // height: 0rpx;
  187. // border-top: 1px solid #E4E7ED;
  188. // -webkit-transform: scaleY(0.5);
  189. // transform: scaleY(0.5);
  190. // margin-left: 30rpx;
  191. // }
  192. // &::before {
  193. // content: '';
  194. // width: 240rpx;
  195. // height: 0rpx;
  196. // border-top: 1px solid #E4E7ED;
  197. // -webkit-transform: scaleY(0.5);
  198. // transform: scaleY(0.5);
  199. // margin-right: 30rpx;
  200. // }
  201. }
  202. .content {
  203. width: 100%;
  204. height: auto;
  205. display: flex;
  206. flex-wrap: wrap;
  207. .block {
  208. width: 100%;
  209. display: flex;
  210. flex-direction: column;
  211. justify-content: center;
  212. align-items: left;
  213. height: auto;
  214. image {
  215. width: 80rpx;
  216. height: 80rpx;
  217. }
  218. text {
  219. margin-top: 16rpx;
  220. font-size: 28rpx;
  221. color: #606266;
  222. }
  223. }
  224. }
  225. .cancel {
  226. width: 100%;
  227. height: 3rem;
  228. display: flex;
  229. justify-content: center;
  230. align-items: center;
  231. border-top: 1rpx solid #E4E7ED;
  232. }
  233. }
  234. </style>