historyDetailsEnginproject.vue 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309
  1. <template>
  2. <scroll-view>
  3. <view class="uni-media-list" v-for="(value, key) in dataJson.zEngineeringNodeBo.zEngineeringInfoBoList"
  4. :key="key" v-if="isEdit(value)">
  5. <view class="uni-media-list-body">
  6. <view>
  7. <view class="uni-media-list-text-top" v-if="value.zEngineeringReviewBo!=null">
  8. <view class="tit-text"
  9. v-if="value.zEngineeringReviewBo.reviewStatus==''||value.zEngineeringReviewBo==null">未审核
  10. </view>
  11. <view class="tit-text" v-if="value.zEngineeringReviewBo.reviewStatus=='0'" style="color: red;">未通过</view>
  12. <view class="tit-text" v-if="value.zEngineeringReviewBo.reviewStatus=='1'">通过</view>
  13. <view :style="value.zEngineeringReviewBo.reviewStatus=='0'?'color: red;':''">
  14. {{value.zEngineeringReviewBo.reviewContent}}</view>
  15. </view>
  16. <view class="uni-media-list-text-top">
  17. <view class="tit-text">施工时间:</view>{{value.constructTime}}
  18. </view>
  19. <view class="uni-media-list-text-top">
  20. <view class="uni-common-mt" style="width: 100%;">
  21. <text class="tit-text" style=" font-size: 13px;color:
  22. #000;margin-top: 5px;">施工内容:</text>
  23. <view style="width: 100%;box-sizing: border-box;">
  24. <textarea class="textarea" maxlength="255" placeholder-style="padding: 10rpx;"
  25. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  26. auto-height :value="value.remark"
  27. @blur="bindTextAreaBlur($event.target.value,key)"></textarea>
  28. </view>
  29. </view>
  30. </view>
  31. <view
  32. v-if="title=='焊接、防腐'||title=='架空管线'||title=='下管'||title=='沟下连头'||title=='焊接'||title=='顶管材料米数'||title=='全貌照片'">
  33. <view class="cz-style" v-for="(a,index) in value.zEngineeringMaterialBo" :key="index">
  34. <view class="uni-media-list-text-top" style=" ">
  35. <view class="tit-text">材质:</view>
  36. <view class="uni-list-cell-db" style="margin-top: 10;"
  37. @click="pickerShow('cz',key,index)">
  38. <span
  39. style="color: black;">{{a.materialQualityName==''?'请选择材质':a.materialQualityName}}</span>
  40. </view>
  41. </view>
  42. <view class="uni-media-list-text-top" style=" ">
  43. <view class="tit-text">规格:</view>
  44. <view class="uni-list-cell-db" style="margin-top: 10;"
  45. @click="pickerShow('gg',key,index)">
  46. <span
  47. style="color: black;">{{a.specificationsName==''?'请选择规格':a.specificationsName}}</span>
  48. </view>
  49. </view>
  50. <view class="uni-media-list-text-top" style="border-bottom: 1px solid #f8f8f8;">
  51. <text class="tit-text">米 数</text>
  52. <view style="display: flex; justify-content: right; width: 70%;">
  53. <input class="uni-input" type="number" :value="getIntegerPart(a.number,0)"
  54. @change="setInfoBoNumber(key,index,$event.target.value,0)" maxlength="6"
  55. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  56. <text style="font-weight:bold;margin-left: 10px;margin-right: 10px;">.</text>
  57. <input class="uni-input" type="number" :value="getIntegerPart(a.number,1)"
  58. @change="setInfoBoNumber(key,index,$event.target.value,1)" maxlength="1"
  59. style="text-align: center; border: 1px solid #00aaff; border-radius: 20rpx;"></input>
  60. </view>
  61. </view>
  62. <button v-if="index!=0" @click="btnDel(key,index)" class="sc-btn">删除</button>
  63. </view>
  64. <button @click="btnAdd(key,index)" class="tj-btn">添加</button>
  65. </view>
  66. </view>
  67. <view v-if="title!='回填、撤场'&&title!='调压柜'&&title!='阀井'&&title!='顶管材料米数'">
  68. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; margin-left: 10px;">
  69. <image :src="loadImgSrc('updateimg.png')" mode=""
  70. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('other',key)">
  71. </image>
  72. <view v-for="(item,index) in value.zEngiineeringPhotoBoList" :key="index"
  73. style="position: relative;">
  74. <view
  75. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  76. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  77. @click="showPhoto(index,value.zEngiineeringPhotoBoList)">
  78. </image>
  79. </view>
  80. <view v-else>
  81. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  82. </view>
  83. <view @click="remove(index,key)"
  84. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  85. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  86. </image>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. <view v-if="title=='回填、撤场'">
  92. <view class="uni-common-mt" style="width: 100%;">
  93. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  94. #000;margin-top: 5px; margin-left: 8px;">回填前照片:</text>
  95. </view>
  96. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  97. <image :src="loadImgSrc('updateimg.png')" mode=""
  98. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('htq',key)">
  99. </image>
  100. <view v-for="(item,index) in value.zEngiineeringPhotoBoListOne" :key="index"
  101. style="position: relative;">
  102. <view
  103. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  104. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  105. @click="showPhoto(index,value.zEngiineeringPhotoBoListOne)">
  106. </image>
  107. </view>
  108. <view v-else>
  109. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  110. </view>
  111. <view @click="removeht(index,key,'htq')"
  112. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  113. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  114. </image>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="uni-common-mt" style="width: 100%;">
  119. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  120. #000;margin-top: 5px;margin-left: 8px;">警示带铺设照片:</text>
  121. </view>
  122. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  123. <image :src="loadImgSrc('updateimg.png')" mode=""
  124. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('jsdps',key)">
  125. </image>
  126. <view v-for="(item,index) in value.zEngiineeringPhotoBoListTwo" :key="index"
  127. style="position: relative;">
  128. <view
  129. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  130. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  131. @click="showPhoto(index,value.zEngiineeringPhotoBoListTwo)">
  132. </image>
  133. </view>
  134. <view v-else>
  135. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  136. </view>
  137. <view @click="removeht(index,key,'jsdps')"
  138. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  139. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  140. </image>
  141. </view>
  142. </view>
  143. </view>
  144. <view class="uni-common-mt" style="width: 100%;">
  145. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  146. #000;margin-top: 5px;margin-left: 8px;">回填后照片:</text>
  147. </view>
  148. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  149. <image :src="loadImgSrc('updateimg.png')" mode=""
  150. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('hth',key)">
  151. </image>
  152. <view v-for="(item,index) in value.zEngiineeringPhotoBoListThree" :key="index"
  153. style="position: relative;">
  154. <view
  155. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  156. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  157. @click="showPhoto(index,value.zEngiineeringPhotoBoListThree)">
  158. </image>
  159. </view>
  160. <view v-else>
  161. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  162. </view>
  163. <view @click="removeht(index,key,'hth')"
  164. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  165. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  166. </image>
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. <view v-else-if="title=='调压柜'">
  172. <view class="uni-common-mt" style="width: 100%;">
  173. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  174. #000;margin-top: 5px; margin-left: 8px;">调压箱铭牌照片:</text>
  175. </view>
  176. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  177. <image :src="loadImgSrc('updateimg.png')" mode=""
  178. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Box',key)">
  179. </image>
  180. <view v-for="(item,index) in value.boxBrand" :key="index" style="position: relative;">
  181. <view
  182. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  183. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  184. @click="showPhoto(index,value.boxBrand)">
  185. </image>
  186. </view>
  187. <view v-else>
  188. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  189. </view>
  190. <view @click="removeht(index,key,'Box')"
  191. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  192. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  193. </image>
  194. </view>
  195. </view>
  196. </view>
  197. <view class="uni-common-mt" style="width: 100%;">
  198. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  199. #000;margin-top: 5px; margin-left: 8px;">调压箱内石粉回填照片:</text>
  200. </view>
  201. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  202. <image :src="loadImgSrc('updateimg.png')" mode=""
  203. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Sfht',key)">
  204. </image>
  205. <view v-for="(item,index) in value.stonePowder" :key="index" style="position: relative;">
  206. <view
  207. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  208. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  209. @click="showPhoto(index,value.stonePowder)">
  210. </image>
  211. </view>
  212. <view v-else>
  213. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  214. </view>
  215. <view @click="removeht(index,key,'Sfht')"
  216. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  217. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  218. </image>
  219. </view>
  220. </view>
  221. </view>
  222. <view class="uni-common-mt" style="width: 100%;">
  223. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  224. #000;margin-top: 5px; margin-left: 8px;">调压箱防雷接地照片:</text>
  225. </view>
  226. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  227. <image :src="loadImgSrc('updateimg.png')" mode=""
  228. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fljd',key)">
  229. </image>
  230. <view v-for="(item,index) in value.lightning" :key="index" style="position: relative;">
  231. <view
  232. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  233. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  234. @click="showPhoto(index,value.lightning)">
  235. </image>
  236. </view>
  237. <view v-else>
  238. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  239. </view>
  240. <view @click="removeht(index,key,'Fljd')"
  241. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  242. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  243. </image>
  244. </view>
  245. </view>
  246. </view>
  247. <view class="uni-common-mt" style="width: 100%;">
  248. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  249. #000;margin-top: 5px; margin-left: 8px;">调压箱底腿连接照片:</text>
  250. </view>
  251. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  252. <image :src="loadImgSrc('updateimg.png')" mode=""
  253. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fljd',key)">
  254. </image>
  255. <view v-for="(item,index) in value.bottomLeg" :key="index" style="position: relative;">
  256. <view
  257. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  258. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  259. @click="showPhoto(index,value.bottomLeg)">
  260. </image>
  261. </view>
  262. <view v-else>
  263. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  264. </view>
  265. <view @click="removeht(index,key,'Fljd')"
  266. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  267. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  268. </image>
  269. </view>
  270. </view>
  271. </view>
  272. <view class="uni-common-mt" style="width: 100%;">
  273. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  274. #000;margin-top: 5px; margin-left: 8px;">调压箱护栏及地面硬化(远景)照片:</text>
  275. </view>
  276. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  277. <image :src="loadImgSrc('updateimg.png')" mode=""
  278. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Hldmyh',key)">
  279. </image>
  280. <view v-for="(item,index) in value.groundHardening" :key="index" style="position: relative;">
  281. <view
  282. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  283. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  284. @click="showPhoto(index,value.groundHardening)">
  285. </image>
  286. </view>
  287. <view v-else>
  288. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  289. </view>
  290. <view @click="removeht(index,key,'Hldmyh')"
  291. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  292. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  293. </image>
  294. </view>
  295. </view>
  296. </view>
  297. </view>
  298. <view v-else-if="title=='阀井'">
  299. <view class="uni-common-mt" style="width: 100%;">
  300. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  301. #000;margin-top: 5px; margin-left: 8px;">套管照片:</text>
  302. </view>
  303. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  304. <image :src="loadImgSrc('updateimg.png')" mode=""
  305. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Tg',key)">
  306. </image>
  307. <view v-for="(item,index) in value.cannula" :key="index" style="position: relative;">
  308. <view
  309. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  310. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  311. @click="showPhoto(index,value.cannula)">
  312. </image>
  313. </view>
  314. <view v-else>
  315. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  316. </view>
  317. <view @click="removeht(index,key,'Tg')"
  318. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  319. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  320. </image>
  321. </view>
  322. </view>
  323. </view>
  324. <view class="uni-common-mt" style="width: 100%;">
  325. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  326. #000;margin-top: 5px; margin-left: 8px;">内壁抹灰照片:</text>
  327. </view>
  328. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  329. <image :src="loadImgSrc('updateimg.png')" mode=""
  330. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Nbmh',key)">
  331. </image>
  332. <view v-for="(item,index) in value.wallPlaster" :key="index" style="position: relative;">
  333. <view
  334. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  335. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  336. @click="showPhoto(index,value.wallPlaster)">
  337. </image>
  338. </view>
  339. <view v-else>
  340. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  341. </view>
  342. <view @click="removeht(index,key,'Nbmh')"
  343. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  344. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  345. </image>
  346. </view>
  347. </view>
  348. </view>
  349. <view class="uni-common-mt" style="width: 100%;">
  350. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  351. #000;margin-top: 5px; margin-left: 8px;">防护网照片:</text>
  352. </view>
  353. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  354. <image :src="loadImgSrc('updateimg.png')" mode=""
  355. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Fhw',key)">
  356. </image>
  357. <view v-for="(item,index) in value.protectiveNet" :key="index" style="position: relative;">
  358. <view
  359. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  360. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  361. @click="showPhoto(index,value.protectiveNet)">
  362. </image>
  363. </view>
  364. <view v-else>
  365. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  366. </view>
  367. <view @click="removeht(index,key,'Fhw')"
  368. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  369. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  370. </image>
  371. </view>
  372. </view>
  373. </view>
  374. <view class="uni-common-mt" style="width: 100%;">
  375. <text class="uni-title uni-common-pl" style=" font-size: 13px;color:
  376. #000;margin-top: 5px; margin-left: 8px;">八角照片:</text>
  377. </view>
  378. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px;">
  379. <image :src="loadImgSrc('updateimg.png')" mode=""
  380. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; " @click="choose('Bj',key)">
  381. </image>
  382. <view v-for="(item,index) in value.starAnise" :key="index" style="position: relative;">
  383. <view
  384. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' || item.substring(item.length - 3) == 'jpeg'">
  385. <image :src="item" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  386. @click="showPhoto(index,value.starAnise)">
  387. </image>
  388. </view>
  389. <view v-else>
  390. <video :src="item" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  391. </view>
  392. <view @click="removeht(index,key,'Bj')"
  393. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  394. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  395. </image>
  396. </view>
  397. </view>
  398. </view>
  399. </view>
  400. </view>
  401. </view>
  402. </view>
  403. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  404. subtitleKey="id">
  405. </SelectPicker>
  406. <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
  407. titleKey="dictLabel" subtitleKey="dictValue" v-model="name"></SelectPicker>
  408. <view class="action-btn" v-if="hideButton==false">
  409. <button @click="submit" class="btn cu-btn block bg-blue lg round">确认</button>
  410. </view>
  411. </scroll-view>
  412. </template>
  413. <script>
  414. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  415. import {
  416. getDicts
  417. } from "@/api/system/dict/data";
  418. import {
  419. getToken
  420. } from '../../utils/auth';
  421. import user from '@/store/modules/user'
  422. import {
  423. getEngineeringHistoryListNew,
  424. getEnginMaterialQualityList,
  425. PutengineeringNew,
  426. getEnginSpecificationsList
  427. } from '@/api/common'
  428. export default {
  429. components: {
  430. SelectPicker,
  431. },
  432. data() {
  433. return {
  434. // playVideo: false,//视频播放放大
  435. // playVideoSrc:'',
  436. selectZbfList: [],
  437. dictOptions: [],
  438. openDict: false,
  439. dataIndex: 0, //数据用第几条
  440. selectIndex: 0, //材质规格用的第几条
  441. imageIndex: 0,
  442. headers: {
  443. Authorization: "Bearer " + getToken()
  444. },
  445. nodeId: '',
  446. type: '',
  447. title: '',
  448. dataJson: '',
  449. enginClassification: '',
  450. enginType: '',
  451. enginClassValue: '',
  452. selectList: [],
  453. open: false,
  454. selectType: '',
  455. hideButton: false,
  456. }
  457. },
  458. onLoad(options) {
  459. if ('params' in options) {
  460. let e = JSON.parse(decodeURIComponent(options.params));
  461. this.nodeId = e.id;
  462. this.type = e.type;
  463. getEngineeringHistoryListNew(this.nodeId, this.type).then(response => {
  464. if (response.data.zEngineeringNodeBo != null) {
  465. let flag = false;
  466. for (let i in response.data.zEngineeringNodeBo.zEngineeringInfoBoList) {
  467. if (response.data.zEngineeringNodeBo.zEngineeringInfoBoList[i].createBy == this.$user
  468. .state.name) {
  469. flag = true;
  470. break;
  471. }
  472. }
  473. if (flag) {
  474. this.hideButton = false;
  475. this.dataJson = response.data;
  476. this.title = response.data.zEngineeringNodeBo.type;
  477. this.enginType = response.data.enginType;
  478. this.enginClassification = response.data.enginClassification;
  479. } else {
  480. this.hideButton = true;
  481. this.$modal.msg("暂无本人历史信息")
  482. }
  483. } else {
  484. this.hideButton = true;
  485. this.$modal.msg("暂无历史信息")
  486. }
  487. });
  488. }
  489. },
  490. methods: {
  491. //关闭弹窗
  492. close(e) {
  493. this.open = false
  494. },
  495. btnAdd(key, index) {
  496. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo.push({
  497. 'materialQuality': '',
  498. 'materialQualityName': '',
  499. 'number': '',
  500. 'specifications': '',
  501. 'specificationsName': ''
  502. });
  503. },
  504. btnDel(key, index) {
  505. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo.splice(index, 1);
  506. },
  507. pickerShow(e, index, indexTwo) {
  508. this.dataIndex = index;
  509. this.selectIndex = indexTwo; //材质规格 第几条
  510. this.selectType = e;
  511. if (e == 'cz') {
  512. this.open = true;
  513. getEnginMaterialQualityList("工业工程").then(response => {
  514. this.selectList = response.data;
  515. });
  516. }
  517. if (e == 'gg') {
  518. if (this.isEmpty(this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex]
  519. .zEngineeringMaterialBo[this.selectIndex].materialQuality)) {
  520. this.$modal.msg('请选择材质')
  521. } else {
  522. this.open = true;
  523. getEnginSpecificationsList(this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex]
  524. .zEngineeringMaterialBo[this.selectIndex].materialQuality).then(res => {
  525. this.selectList = res.data
  526. })
  527. }
  528. }
  529. },
  530. changeSelect(item, index) {
  531. this.open = false;
  532. if (this.selectType == 'cz') {
  533. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
  534. .selectIndex]
  535. .materialQuality = item.id;
  536. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
  537. .selectIndex]
  538. .materialQualityName = item.name;
  539. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
  540. .selectIndex]
  541. .specifications = '';
  542. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
  543. .selectIndex]
  544. .specificationsName = '';
  545. } else if (this.selectType == 'gg') {
  546. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
  547. .selectIndex]
  548. .specifications = item.id;
  549. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
  550. .selectIndex]
  551. .specificationsName = item.name;
  552. }
  553. },
  554. // 截取小数点前的字符串
  555. getIntegerPart(numStr, i) {
  556. return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
  557. },
  558. setInfoBoNumber(key, index, number, i) {
  559. let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[index]
  560. .number;
  561. let resAry = Ynumber.toString().split('.');
  562. resAry[i] = number
  563. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[index].number = resAry
  564. .join('.');
  565. },
  566. bindTextAreaBlur(e, index) {
  567. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].remark = e;
  568. },
  569. removeht(index, key, type) {
  570. uni.showModal({
  571. title: '提示',
  572. content: '是否删除该图片或视频?',
  573. success: (res) => {
  574. if (res.confirm) {
  575. if (type == 'htq') {
  576. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  577. .zEngiineeringPhotoBoListOne
  578. .splice(index, 1)
  579. } else if (type == 'jsdps') {
  580. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  581. .zEngiineeringPhotoBoListTwo
  582. .splice(index, 1)
  583. } else if (type == 'hth') {
  584. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  585. .zEngiineeringPhotoBoListThree
  586. .splice(index, 1)
  587. } else if (type == 'Box') {
  588. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  589. .boxBrand
  590. .splice(index, 1)
  591. } else if (type == 'Sfht') {
  592. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  593. .stonePowder
  594. .splice(index, 1)
  595. } else if (type == 'Fljd') {
  596. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  597. .lightning
  598. .splice(index, 1)
  599. } else if (type == 'Dtlj') {
  600. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  601. .bottomLeg
  602. .splice(index, 1)
  603. } else if (type == 'Hldmyh') {
  604. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key]
  605. .groundHardening
  606. .splice(index, 1)
  607. }
  608. }
  609. }
  610. })
  611. },
  612. remove(index, key) {
  613. uni.showModal({
  614. title: '提示',
  615. content: '是否删除该图片或视频?',
  616. success: (res) => {
  617. if (res.confirm) {
  618. this.dataJson.zEngineeringNodeBo
  619. .zEngineeringInfoBoList[key]
  620. .zEngiineeringPhotoBoList.splice(index, 1)
  621. }
  622. }
  623. })
  624. },
  625. choose(type, index) {
  626. this.dataIndex = index;
  627. let _this = this;
  628. uni.showActionSheet({
  629. title: '上传',
  630. itemList: ['图片', '视频'],
  631. success: (res) => {
  632. if (res.tapIndex == 0) {
  633. this.chooseimage(type)
  634. } else {
  635. this.choosevideo(type)
  636. }
  637. }
  638. })
  639. },
  640. chooseimage(e) {
  641. let _this = this;
  642. uni.chooseImage({
  643. sizeType: ['album', 'camera'],
  644. success(resp) {
  645. resp.tempFiles.forEach((item, index) => {
  646. const task = uni.uploadFile({
  647. url: _this.$HTTP + `/obs`,
  648. filePath: item.path,
  649. name: 'file',
  650. formData: {},
  651. header: _this.headers,
  652. success: res => {
  653. let data = JSON.parse(res.data);
  654. if (![200].includes(data.code)) {
  655. _this.$modal.msg(data.msg)
  656. } else {
  657. if (_this.progress === 100) {
  658. if (e == 'other') {
  659. _this.dataJson.zEngineeringNodeBo
  660. .zEngineeringInfoBoList[_this.dataIndex]
  661. .zEngiineeringPhotoBoList.push(data.data
  662. .url);
  663. } else if (e == 'htq') {
  664. _this.dataJson.zEngineeringNodeBo
  665. .zEngineeringInfoBoList[_this.dataIndex]
  666. .zEngiineeringPhotoBoListOne.push(data.data
  667. .url);
  668. } else if (e == 'jsdps') {
  669. _this.dataJson.zEngineeringNodeBo
  670. .zEngineeringInfoBoList[_this.dataIndex]
  671. .zEngiineeringPhotoBoListTwo.push(data.data
  672. .url);
  673. } else if (e == 'hth') {
  674. _this.dataJson.zEngineeringNodeBo
  675. .zEngineeringInfoBoList[_this.dataIndex]
  676. .zEngiineeringPhotoBoListThree.push(data
  677. .data
  678. .url);
  679. } else if (e == 'Box') {
  680. _this.dataJson.zEngineeringNodeBo
  681. .zEngineeringInfoBoList[_this.dataIndex]
  682. .boxBrand.push(data
  683. .data
  684. .url);
  685. } else if (e == 'Sfht') {
  686. _this.dataJson.zEngineeringNodeBo
  687. .zEngineeringInfoBoList[_this.dataIndex]
  688. .stonePowder.push(data
  689. .data
  690. .url);
  691. } else if (e == 'Fljd') {
  692. _this.dataJson.zEngineeringNodeBo
  693. .zEngineeringInfoBoList[_this.dataIndex]
  694. .lightning.push(data
  695. .data
  696. .url);
  697. } else if (e == 'Dtlj') {
  698. _this.dataJson.zEngineeringNodeBo
  699. .zEngineeringInfoBoList[_this.dataIndex]
  700. .bottomLeg.push(data
  701. .data
  702. .url);
  703. } else if (e == 'Hldmyh') {
  704. _this.dataJson.zEngineeringNodeBo
  705. .zEngineeringInfoBoList[_this.dataIndex]
  706. .groundHardening.push(data
  707. .data
  708. .url);
  709. } else if (e == 'Tg') {
  710. _this.dataJson.zEngineeringNodeBo
  711. .zEngineeringInfoBoList[_this.dataIndex]
  712. .cannula.push(data
  713. .data
  714. .url);
  715. } else if (e == 'Nbmh') {
  716. _this.dataJson.zEngineeringNodeBo
  717. .zEngineeringInfoBoList[_this.dataIndex]
  718. .wallPlaster.push(data
  719. .data
  720. .url);
  721. } else if (e == 'Fhw') {
  722. _this.dataJson.zEngineeringNodeBo
  723. .zEngineeringInfoBoList[_this.dataIndex]
  724. .protectiveNet.push(data
  725. .data
  726. .url);
  727. } else if (e == 'Bj') {
  728. _this.dataJson.zEngineeringNodeBo
  729. .zEngineeringInfoBoList[_this.dataIndex]
  730. .starAnise.push(data
  731. .data
  732. .url);
  733. }
  734. _this.$modal.msg('上传成功!')
  735. }
  736. }
  737. },
  738. fail: e => {
  739. _this.$modal.msg('上传失败!')
  740. },
  741. complete: res => {
  742. uni.hideLoading();
  743. _this.uploading = false;
  744. }
  745. });
  746. task.onProgressUpdate(res => {
  747. _this.progress = res.progress;
  748. uni.showLoading({
  749. title: '上传中'
  750. })
  751. if (_this.progress != 100) {
  752. _this.loading = false
  753. } else {
  754. _this.loading = true
  755. }
  756. });
  757. })
  758. },
  759. })
  760. },
  761. choosevideo(e) {
  762. let _this = this;
  763. uni.chooseVideo({
  764. sourceType: ['album', 'camera'],
  765. maxDuration: 30,
  766. success(resp) {
  767. const task = uni.uploadFile({
  768. url: _this.$HTTP + `/obs`,
  769. filePath: resp.tempFilePath,
  770. name: 'file',
  771. formData: {},
  772. header: _this.headers,
  773. success: res => {
  774. let data = JSON.parse(res.data);
  775. if (![200].includes(res.statusCode)) {
  776. this.uploadError(index, data);
  777. } else {
  778. //上传成功
  779. if (_this.progress === 100) {
  780. if (e == 'other') {
  781. _this.dataJson.zEngineeringNodeBo
  782. .zEngineeringInfoBoList[_this.dataIndex]
  783. .zEngiineeringPhotoBoList.push(data.data.url);
  784. } else if (e == 'htq') {
  785. _this.dataJson.zEngineeringNodeBo
  786. .zEngineeringInfoBoList[_this.dataIndex]
  787. .zEngiineeringPhotoBoListOne.push(data.data.url);
  788. } else if (e == 'jsdps') {
  789. _this.dataJson.zEngineeringNodeBo
  790. .zEngineeringInfoBoList[_this.dataIndex]
  791. .zEngiineeringPhotoBoListTwo.push(data.data.url);
  792. } else if (e == 'hth') {
  793. _this.dataJson.zEngineeringNodeBo
  794. .zEngineeringInfoBoList[_this.dataIndex]
  795. .zEngiineeringPhotoBoListThree.push(data.data.url);
  796. } else if (e == 'Box') {
  797. _this.dataJson.zEngineeringNodeBo
  798. .zEngineeringInfoBoList[_this.dataIndex]
  799. .boxBrand.push(data.data.url);
  800. } else if (e == 'Sfht') {
  801. _this.dataJson.zEngineeringNodeBo
  802. .zEngineeringInfoBoList[_this.dataIndex]
  803. .stonePowder.push(data.data.url);
  804. } else if (e == 'Fljd') {
  805. _this.dataJson.zEngineeringNodeBo
  806. .zEngineeringInfoBoList[_this.dataIndex]
  807. .lightning.push(data.data.url);
  808. } else if (e == 'Dtlj') {
  809. _this.dataJson.zEngineeringNodeBo
  810. .zEngineeringInfoBoList[_this.dataIndex]
  811. .bottomLeg.push(data.data.url);
  812. } else if (e == 'Hldmyh') {
  813. _this.dataJson.zEngineeringNodeBo
  814. .zEngineeringInfoBoList[_this.dataIndex]
  815. .groundHardening.push(data.data.url);
  816. } else if (e == 'Tg') {
  817. _this.dataJson.zEngineeringNodeBo
  818. .zEngineeringInfoBoList[_this.dataIndex]
  819. .cannula.push(data.data.url);
  820. } else if (e == 'Nbmh') {
  821. _this.dataJson.zEngineeringNodeBo
  822. .zEngineeringInfoBoList[_this.dataIndex]
  823. .wallPlaster.push(data.data.url);
  824. } else if (e == 'Fhw') {
  825. _this.dataJson.zEngineeringNodeBo
  826. .zEngineeringInfoBoList[_this.dataIndex]
  827. .protectiveNet.push(data.data.url);
  828. } else if (e == 'Bj') {
  829. _this.dataJson.zEngineeringNodeBo
  830. .zEngineeringInfoBoList[_this.dataIndex]
  831. .starAnise.push(data.data.url);
  832. }
  833. _this.$modal.msg('上传成功!')
  834. }
  835. }
  836. },
  837. fail: e => {
  838. _this.$modal.msg('上传失败!')
  839. this.uploadError(index, e);
  840. },
  841. complete: res => {
  842. uni.hideLoading();
  843. _this.uploading = false;
  844. }
  845. });
  846. task.onProgressUpdate(res => {
  847. _this.progress = res.progress;
  848. uni.showLoading({
  849. title: '上传中'
  850. })
  851. if (_this.progress != 100) {
  852. _this.loading = false
  853. } else {
  854. _this.loading = true
  855. }
  856. });
  857. },
  858. })
  859. },
  860. showPhoto(index, arr) {
  861. let newArr = [];
  862. arr.forEach((item, index) => {
  863. if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
  864. item.substring(item.length - 4) == 'jpeg') {
  865. newArr.push(item)
  866. }
  867. });
  868. uni.previewImage({
  869. current: index,
  870. urls: newArr,
  871. })
  872. },
  873. // showVideo(arr) {
  874. // this.playVideo = true;
  875. // this.playVideoSrc = arr;
  876. // },
  877. // closeVideo(){
  878. // this.playVideo = false;
  879. // },
  880. isEmpty(str) {
  881. return (!str || 0 === str.length);
  882. },
  883. isEdit(item) {
  884. var isShow = item.createBy == this.$user.state.name;
  885. return isShow;
  886. },
  887. submit() {
  888. let isSubmit = true;
  889. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  890. if (res.createBy == this.$user.state.name) {
  891. if (this.title == '调压柜') {
  892. if (res.boxBrand.length == 0) {
  893. this.$modal.msg("请上传调压箱铭牌照片");
  894. isSubmit = false;
  895. }
  896. if (res.stonePowder.length == 0) {
  897. this.$modal.msg("请上传调压箱内石粉回填照片");
  898. isSubmit = false;
  899. }
  900. if (res.lightning.length == 0) {
  901. this.$modal.msg("请上传调压箱防雷接地照片");
  902. isSubmit = false;
  903. }
  904. if (res.bottomLeg.length == 0) {
  905. this.$modal.msg("请上传调压箱底腿连接照片");
  906. isSubmit = false;
  907. }
  908. if (res.groundHardening.length == 0) {
  909. this.$modal.msg("请上传调压箱护栏及地面硬化(远景)照片");
  910. isSubmit = false;
  911. }
  912. } else if (this.title == '阀井') {
  913. if (res.cannula.length == 0) {
  914. this.$modal.msg("请上传套管照片");
  915. isSubmit = false;
  916. }
  917. if (res.wallPlaster.length == 0) {
  918. this.$modal.msg("请上传内壁抹灰照片");
  919. isSubmit = false;
  920. }
  921. if (res.protectiveNet.length == 0) {
  922. this.$modal.msg("请上传防护网照片");
  923. isSubmit = false;
  924. }
  925. if (res.starAnise.length == 0) {
  926. this.$modal.msg("请上传八角照片");
  927. isSubmit = false;
  928. }
  929. } else if (this.title == '焊接、防腐' || this.title == '架空管线' || this.title ==
  930. '下管' || this.title == '沟下连头' || this.title == '焊接' || this.title == '顶管材料米数' ||
  931. this.title == '全貌照片') {
  932. res.zEngineeringMaterialBo.forEach((itme) => {
  933. if (itme.specifications == '') {
  934. this.$modal.msg("请选择规格");
  935. isSubmit = false;
  936. }
  937. if (itme.number == '') {
  938. this.$modal.msg("请输入米数");
  939. isSubmit = false;
  940. }
  941. if (this.getIntegerPart(itme.number, 0) == '') {
  942. this.$modal.msg("请输入米数");
  943. isSubmit = false;
  944. }
  945. })
  946. } else if (this.title == '回填、撤场') {
  947. if (res.zEngiineeringPhotoBoListOne.length <= 0 && res.zEngiineeringPhotoBoListTwo
  948. .length <= 0 && res.zEngiineeringPhotoBoListThree.length <= 0) {
  949. this.$modal.msg('请上传照片')
  950. isSubmit = false;
  951. }
  952. // if (res.zEngiineeringPhotoBoListTwo.length <= 0) {
  953. // this.$modal.msg('请上传警示带铺设照片')
  954. // isSubmit = false;
  955. // }
  956. // if (res.zEngiineeringPhotoBoListThree.length <= 0) {
  957. // this.$modal.msg('请上传回填后照片')
  958. // isSubmit = false;
  959. // }
  960. } else {
  961. if (this.title != '顶管材料米数') {
  962. if (res.zEngiineeringPhotoBoList.length == 0) {
  963. this.$modal.msg("请上传照片");
  964. isSubmit = false;
  965. }
  966. }
  967. }
  968. }
  969. })
  970. // this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  971. // if (res.zEngiineeringPhotoBoList.length == 0) {
  972. // this.$modal.msg("请上传照片");
  973. // isSubmit = false;
  974. // }
  975. // })
  976. if (!isSubmit) {
  977. return
  978. }
  979. PutengineeringNew(this.dataJson).then(
  980. response => {
  981. if (response.code == '200') {
  982. uni.hideLoading()
  983. uni.showToast({
  984. title: response.msg,
  985. icon: 'none',
  986. duration: 2000
  987. });
  988. setTimeout(function() {
  989. uni.navigateBack();
  990. }, 1000)
  991. }
  992. });
  993. }
  994. }
  995. }
  996. </script>
  997. <style lang="scss">
  998. .uni-media-list-body {
  999. background: #fff;
  1000. border: 1px solid #eee;
  1001. border-radius: 40rpx;
  1002. margin: 20rpx;
  1003. padding: 10rpx 0 40rpx;
  1004. box-shadow: 0 0 5px #eee;
  1005. }
  1006. .uni-media-list-text-top {
  1007. display: flex;
  1008. align-items: center;
  1009. justify-content: space-between;
  1010. padding: 10px;
  1011. position: relative;
  1012. }
  1013. .to-right-icon {
  1014. width: 15px;
  1015. height: 15px;
  1016. position: absolute;
  1017. top: 50%;
  1018. transform: translateY(-50%);
  1019. }
  1020. .share {
  1021. width: 100%;
  1022. height: 100%;
  1023. }
  1024. .tit-text {
  1025. color: #4f535a;
  1026. margin-right: 20rpx;
  1027. }
  1028. .normal-text {}
  1029. .cz-style {
  1030. background: #e8f4f9;
  1031. margin: 20rpx;
  1032. padding: 10rpx;
  1033. border-radius: 20rpx;
  1034. border: 1px solid #d4e3f0;
  1035. }
  1036. .uni-media-list-text-top {
  1037. font-size: 14px;
  1038. color: #696969;
  1039. padding: 20rpx 20rpx;
  1040. border-bottom: 1px solid #eee;
  1041. display: flex;
  1042. align-items: center;
  1043. }
  1044. .share-box {
  1045. width: 100%;
  1046. height: 100%;
  1047. position: fixed;
  1048. top: 0rpx;
  1049. left: 0rpx;
  1050. bottom: 0rpx;
  1051. right: 0rpx;
  1052. background-color: rgba(0, 0, 0, 0.4);
  1053. transition: .3s;
  1054. z-index: 999;
  1055. }
  1056. // 进入分享动画
  1057. .share-show {
  1058. transition: all 0.3s ease;
  1059. transform: translateY(0%) !important;
  1060. border-radius: 20px 20px 0px 0px;
  1061. }
  1062. .scroll-Y {
  1063. height: 58vh;
  1064. }
  1065. // 离开分享动画
  1066. .share-item {
  1067. position: fixed;
  1068. left: 0;
  1069. bottom: 0;
  1070. width: 100%;
  1071. height: 70%;
  1072. background-color: #FFFFFF;
  1073. transition: all 0.3s ease;
  1074. transform: translateY(100%);
  1075. z-index: 1999;
  1076. .share-to {
  1077. width: 100%;
  1078. height: 30px;
  1079. display: flex;
  1080. justify-content: center;
  1081. margin: 30rpx 0;
  1082. align-items: center;
  1083. }
  1084. .content {
  1085. width: 100%;
  1086. height: auto;
  1087. display: flex;
  1088. flex-wrap: wrap;
  1089. .block {
  1090. width: 100%;
  1091. display: flex;
  1092. flex-direction: column;
  1093. justify-content: center;
  1094. align-items: left;
  1095. height: auto;
  1096. image {
  1097. width: 80rpx;
  1098. height: 80rpx;
  1099. }
  1100. text {
  1101. margin-top: 16rpx;
  1102. font-size: 28rpx;
  1103. color: #606266;
  1104. }
  1105. }
  1106. }
  1107. .cancel {
  1108. width: 100%;
  1109. height: 3rem;
  1110. display: flex;
  1111. justify-content: center;
  1112. align-items: center;
  1113. border-top: 1rpx solid #E4E7ED;
  1114. }
  1115. }
  1116. .uni-media-list-text-top {
  1117. display: flex;
  1118. align-items: center;
  1119. justify-content: space-between;
  1120. padding: 10px;
  1121. position: relative;
  1122. }
  1123. .uni-list {
  1124. border: 1xp solid #eee;
  1125. }
  1126. .to-right-icon {
  1127. width: 15px;
  1128. height: 15px;
  1129. position: absolute;
  1130. top: 50%;
  1131. transform: translateY(-50%);
  1132. }
  1133. .text {
  1134. font-size: 16px;
  1135. color: #333;
  1136. }
  1137. .tj-btn {
  1138. height: 69rpx;
  1139. background: #3184f0;
  1140. border-radius: 6rpx;
  1141. font-size: 25rpx;
  1142. font-weight: 400;
  1143. // width: 100%;
  1144. color: #FFFFFF;
  1145. line-height: 69rpx;
  1146. margin: 40rpx 70rpx;
  1147. }
  1148. .sc-btn {
  1149. height: 69rpx;
  1150. background: #f0686b;
  1151. border-radius: 6rpx;
  1152. font-size: 25rpx;
  1153. font-weight: 400;
  1154. color: #FFFFFF;
  1155. line-height: 69rpx;
  1156. margin: 40rpx;
  1157. }
  1158. // .gesture-area {
  1159. // //加浮动弹窗
  1160. // width: 100%;
  1161. // height: 100%;
  1162. // }
  1163. </style>