history_details_bottom_leg.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  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">
  8. <view class="tit-text">施工时间:</view>{{value.updateTime}}
  9. </view>
  10. <view class="uni-media-list-text-top">
  11. <view class="uni-common-mt" style="width: 100%;">
  12. <text class="tit-text">施工内容:</text>
  13. <view style="width: 100%;box-sizing: border-box;">
  14. <textarea class="textarea" maxlength="255" placeholder-style="padding: 10rpx;"
  15. style="width: 100%;height: 100%;border: 1rpx solid #cccccc; border-radius: 15rpx;padding: 10rpx;line-height:normal;"
  16. auto-height :value="value.zEngineeringMaterialBo[0].remark"
  17. @blur="bindTextAreaBlur($event.target.value,key)"></textarea>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="uni-media-list-text-top" style="border-bottom: 1px solid #f8f8f8;">
  22. <view class="tit-text">
  23. 施工位置
  24. </view>
  25. <view style="display: flex; align-items: center; justify-content: right; width: 70%;">
  26. <view v-if="isEmpty(value.constructAddre)" @click="pickerShow('position')"
  27. style="margin-right: 20rpx;">
  28. <span style="color: darkgray;">请选择施工位置</span>
  29. </view>
  30. <view v-else @click="pickerShow('position',key)" style="margin-right: 20rpx;">
  31. <span style="color: black;">{{value.constructAddre}}</span>
  32. </view>
  33. <input class="uni-input" type="number" v-model="value.zEngineeringMaterialBo[0].number"
  34. style="text-align: center; border: 1px solid #cccccc; border-radius: 20rpx;width: 60px; margin-left: 10rpx;margin-right: 10rpx;"></input>
  35. </view>
  36. </view>
  37. <view class="uni-media-list-text-top">
  38. <view class="uni-common-mt" style="width: 100%;">
  39. <text class="tit-text">开挖前照片:</text>
  40. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; ">
  41. <image :src="loadImgSrc('updateimg.png')" mode=""
  42. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  43. @click="chooseimage(1,key)">
  44. </image>
  45. <view v-for="(item,index) in value.beforeBottom" :key="index"
  46. style="position: relative;">
  47. <view
  48. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  49. <image :src="item" mode=""
  50. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  51. @click="showPhoto(index,value.beforeBottom)">
  52. </image>
  53. </view>
  54. <view v-else>
  55. <video :src="item"
  56. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  57. </view>
  58. <view @click="removeht(index,key,1)"
  59. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  60. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  61. </image>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="uni-media-list-text-top">
  68. <view class="uni-common-mt" style="width: 100%;">
  69. <text class="tit-text" style=" font-size: 13px;color:
  70. #000;margin-top: 5px;">下沟照片:</text>
  71. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; ">
  72. <image :src="loadImgSrc('updateimg.png')" mode=""
  73. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  74. @click="chooseimage(2,key)">
  75. </image>
  76. <view v-for="(item,index) in value.legBackfilling" :key="index"
  77. style="position: relative;">
  78. <view
  79. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  80. <image :src="item" mode=""
  81. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  82. @click="showPhoto(index,value.legBackfilling)">
  83. </image>
  84. </view>
  85. <view v-else>
  86. <video :src="item"
  87. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  88. </view>
  89. <view @click="removeht(index,key,2)"
  90. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  91. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  92. </image>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. <view class="uni-media-list-text-top">
  99. <view class="uni-common-mt" style="width: 100%;">
  100. <text class="tit-text" style=" font-size: 13px;color:
  101. #000;margin-top: 5px;">回填照片:</text>
  102. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; ">
  103. <image :src="loadImgSrc('updateimg.png')" mode=""
  104. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  105. @click="chooseimage(3,key)">
  106. </image>
  107. <view v-for="(item,index) in value.inferiorSulcus" :key="index"
  108. style="position: relative;">
  109. <view
  110. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  111. <image :src="item" mode=""
  112. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  113. @click="showPhoto(index,value.inferiorSulcus)">
  114. </image>
  115. </view>
  116. <view v-else>
  117. <video :src="item"
  118. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  119. </view>
  120. <view @click="removeht(index,key,3)"
  121. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  122. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  123. </image>
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. <view class="uni-media-list-text-top">
  130. <view class="uni-common-mt" style="width: 100%;">
  131. <text class="tit-text">安装完成照片:</text>
  132. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; ">
  133. <image :src="loadImgSrc('updateimg.png')" mode=""
  134. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  135. @click="chooseimage(0,key)">
  136. </image>
  137. <view v-for="(item,index) in value.onTheDitch" :key="index"
  138. style="position: relative;">
  139. <view
  140. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  141. <image :src="item" mode=""
  142. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  143. @click="showPhoto(index,value.onTheDitch)">
  144. </image>
  145. </view>
  146. <view v-else>
  147. <video :src="item"
  148. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  149. </view>
  150. <view @click="removeht(index,key,0)"
  151. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  152. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  153. </image>
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. <SelectPicker :list="selectList" @change="changeSelect" v-if="open" @close="close" titleKey="name"
  163. subtitleKey="id">
  164. </SelectPicker>
  165. <SelectPicker :list="dictOptions" @change="changeSelectDict" v-if="openDict" @close="closeDict"
  166. titleKey="dictLabel" subtitleKey="dictValue" v-model="name"></SelectPicker>
  167. <view class="action-btn" v-if="hideButton==false">
  168. <button @click="submit" class="btn cu-btn block bg-blue lg round">确认</button>
  169. </view>
  170. </scroll-view>
  171. </template>
  172. <script>
  173. import SelectPicker from '../../components/selectPicker/select_picker.vue'
  174. import {
  175. getDicts
  176. } from "@/api/system/dict/data";
  177. import {
  178. getToken
  179. } from '../../utils/auth';
  180. import user from '@/store/modules/user'
  181. import {
  182. getHistoryDetails,
  183. getEnginMaterialQualityList,
  184. putHistory,
  185. getEnginSpecificationsList
  186. } from '@/api/common'
  187. export default {
  188. components: {
  189. SelectPicker,
  190. },
  191. data() {
  192. return {
  193. // playVideo: false,//视频播放放大
  194. // playVideoSrc:'',
  195. selectZbfList: [],
  196. dictOptions: [],
  197. openDict: false,
  198. dataIndex: 0, //数据用第几条
  199. dataType: '', //数据用第几条
  200. selectIndex: 0, //材质规格用的第几条
  201. imageIndex: 0,
  202. headers: {
  203. Authorization: "Bearer " + getToken()
  204. },
  205. nodeId: '',
  206. type: '',
  207. title: '',
  208. dataJson: '',
  209. enginClassification: '',
  210. enginType: '',
  211. enginClassValue: '',
  212. selectList: [],
  213. open: false,
  214. selectType: '',
  215. hideButton: false,
  216. }
  217. },
  218. onLoad(options) {
  219. if ('params' in options) {
  220. let e = JSON.parse(decodeURIComponent(options.params));
  221. this.nodeId = e.id;
  222. this.type = '底腿';
  223. getHistoryDetails(this.nodeId, this.type).then(response => {
  224. if (response.data.zEngineeringNodeBo != null) {
  225. let flag = false;
  226. for (let i in response.data.zEngineeringNodeBo.zEngineeringInfoBoList) {
  227. if (response.data.zEngineeringNodeBo.zEngineeringInfoBoList[i].createBy == this.$user
  228. .state.name) {
  229. flag = true;
  230. break;
  231. }
  232. }
  233. if (flag) {
  234. this.hideButton = false;
  235. this.dataJson = response.data;
  236. this.title = response.data.zEngineeringNodeBo.type;
  237. this.enginType = response.data.enginType;
  238. this.enginClassification = response.data.enginClassification;
  239. } else {
  240. this.hideButton = true;
  241. this.$modal.msg("暂无本人历史信息")
  242. }
  243. } else {
  244. this.hideButton = true;
  245. this.$modal.msg("暂无历史信息")
  246. }
  247. });
  248. }
  249. },
  250. methods: {
  251. //关闭弹窗
  252. close(e) {
  253. this.open = false
  254. },
  255. pickerShow(type, index) {
  256. this.dataIndex = index;
  257. this.dataType = type;
  258. if (type == 'position') {
  259. this.openDict = true;
  260. getDicts("construct_addre").then(response => {
  261. this.dictOptions = response.data;
  262. });
  263. }
  264. },
  265. bindTextAreaBlur(e, index) {
  266. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].zEngineeringMaterialBo[0].remark = e;
  267. },
  268. changeSelectDict(item, index) {
  269. this.openDict = false;
  270. if (this.dataType == 'position') {
  271. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].constructAddre = item
  272. .dictValue;
  273. }
  274. },
  275. removeht(index, key, type) {
  276. uni.showModal({
  277. title: '提示',
  278. content: '是否删除该图片或视频?',
  279. success: (res) => {
  280. if (res.confirm) {
  281. if (type == 0) {
  282. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].onTheDitch
  283. .splice(index, 1)
  284. } else if (type == 1) {
  285. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].beforeBottom
  286. .splice(index, 1)
  287. } else if (type == 2) {
  288. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].legBackfilling
  289. .splice(index, 1)
  290. } else if (type == 3) {
  291. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].inferiorSulcus
  292. .splice(index, 1)
  293. }
  294. }
  295. }
  296. })
  297. },
  298. remove(index, key) {
  299. uni.showModal({
  300. title: '提示',
  301. content: '是否删除该图片或视频?',
  302. success: (res) => {
  303. if (res.confirm) {
  304. this.dataJson.zEngineeringNodeBo
  305. .zEngineeringInfoBoList[key]
  306. .zEngiineeringPhotoBoList.splice(index, 1)
  307. }
  308. }
  309. })
  310. },
  311. chooseimage(type, index) {
  312. this.dataIndex = index;
  313. let _this = this;
  314. uni.chooseImage({
  315. sizeType: ['album', 'camera'],
  316. success(resp) {
  317. resp.tempFiles.forEach((item, index) => {
  318. const task = uni.uploadFile({
  319. url: _this.$HTTP + `/obs`,
  320. filePath: item.path,
  321. name: 'file',
  322. formData: {},
  323. header: _this.headers,
  324. success: res => {
  325. let data = JSON.parse(res.data);
  326. if (![200].includes(data.code)) {
  327. _this.$modal.msg(data.msg)
  328. } else {
  329. if (_this.progress === 100) {
  330. if (type == 0) {
  331. _this.dataJson.zEngineeringNodeBo
  332. .zEngineeringInfoBoList[_this.dataIndex]
  333. .onTheDitch.push(data.data
  334. .url);
  335. } else if (type == 1) {
  336. _this.dataJson.zEngineeringNodeBo
  337. .zEngineeringInfoBoList[_this.dataIndex]
  338. .beforeBottom.push(data.data
  339. .url);
  340. } else if (type == 2) {
  341. _this.dataJson.zEngineeringNodeBo
  342. .zEngineeringInfoBoList[_this.dataIndex]
  343. .legBackfilling.push(data.data
  344. .url);
  345. } else if (type == 3) {
  346. _this.dataJson.zEngineeringNodeBo
  347. .zEngineeringInfoBoList[_this.dataIndex]
  348. .inferiorSulcus.push(data.data
  349. .url);
  350. }
  351. _this.$modal.msg('上传成功!')
  352. }
  353. }
  354. },
  355. fail: e => {
  356. _this.$modal.msg('上传失败!')
  357. },
  358. complete: res => {
  359. uni.hideLoading();
  360. _this.uploading = false;
  361. }
  362. });
  363. task.onProgressUpdate(res => {
  364. _this.progress = res.progress;
  365. uni.showLoading({
  366. title: '上传中'
  367. })
  368. if (_this.progress != 100) {
  369. _this.loading = false
  370. } else {
  371. _this.loading = true
  372. }
  373. });
  374. })
  375. },
  376. })
  377. },
  378. choosevideo(e) {
  379. let _this = this;
  380. uni.chooseVideo({
  381. sourceType: ['album', 'camera'],
  382. maxDuration: 30,
  383. success(resp) {
  384. const task = uni.uploadFile({
  385. url: _this.$HTTP + `/obs`,
  386. filePath: resp.tempFilePath,
  387. name: 'file',
  388. formData: {},
  389. header: _this.headers,
  390. success: res => {
  391. let data = JSON.parse(res.data);
  392. if (![200].includes(res.statusCode)) {
  393. this.uploadError(index, data);
  394. } else {
  395. //上传成功
  396. if (_this.progress === 100) {
  397. if (e == 'other') {
  398. _this.dataJson.zEngineeringNodeBo
  399. .zEngineeringInfoBoList[_this.dataIndex]
  400. .zEngiineeringPhotoBoList.push(data.data.url);
  401. } else if (e == 'sfht') {
  402. _this.dataJson.zEngineeringNodeBo
  403. .zEngineeringInfoBoList[_this.dataIndex]
  404. .stonePowder.push(data.data.url);
  405. } else if (e == 'jsdps') {
  406. _this.dataJson.zEngineeringNodeBo
  407. .zEngineeringInfoBoList[_this.dataIndex]
  408. .warningtTape.push(data.data.url);
  409. } else if (e == 'hth') {
  410. _this.dataJson.zEngineeringNodeBo
  411. .zEngineeringInfoBoList[_this.dataIndex]
  412. .photosAfter.push(data.data.url);
  413. } else if (e == 'video') {
  414. _this.dataJson.zEngineeringNodeBo
  415. .zEngineeringInfoBoList[_this.dataIndex]
  416. .video.push(data.data.url);
  417. }
  418. _this.$modal.msg('上传成功!')
  419. }
  420. }
  421. },
  422. fail: e => {
  423. _this.$modal.msg('上传失败!')
  424. this.uploadError(index, e);
  425. },
  426. complete: res => {
  427. uni.hideLoading();
  428. _this.uploading = false;
  429. }
  430. });
  431. task.onProgressUpdate(res => {
  432. _this.progress = res.progress;
  433. uni.showLoading({
  434. title: '上传中'
  435. })
  436. if (_this.progress != 100) {
  437. _this.loading = false
  438. } else {
  439. _this.loading = true
  440. }
  441. });
  442. },
  443. })
  444. },
  445. showPhoto(index, arr) {
  446. let newArr = [];
  447. arr.forEach((item, index) => {
  448. if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
  449. item.substring(item.length - 4) == 'jpeg') {
  450. newArr.push(item)
  451. }
  452. });
  453. uni.previewImage({
  454. current: index,
  455. urls: newArr,
  456. })
  457. },
  458. isEmpty(str) {
  459. return (!str || 0 === str.length);
  460. },
  461. isEdit(item) {
  462. var isShow = item.createBy == this.$user.state.name;
  463. return isShow;
  464. },
  465. submit() {
  466. let isSubmit = true;
  467. if (this.title == '底腿') {
  468. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  469. if (this.isEmpty(res.constructAddre)) {
  470. this.$modal.msg("请选择施工位置");
  471. isSubmit = false;
  472. }
  473. if (this.isEmpty(res.zEngineeringMaterialBo[0].number)) {
  474. this.$modal.msg("请输入施工位置");
  475. isSubmit = false;
  476. }
  477. if (res.onTheDitch.length == 0 && res.beforeBottom.length == 0 && res.legBackfilling
  478. .length == 0 && res.inferiorSulcus.length == 0) {
  479. this.$modal.msg("请上传照片");
  480. isSubmit = false;
  481. }
  482. // if (res.beforeBottom.length == 0) {
  483. // this.$modal.msg("请上传开挖前照片");
  484. // isSubmit = false;
  485. // }
  486. // if (res.legBackfilling.length == 0) {
  487. // this.$modal.msg("请上传下沟照片");
  488. // isSubmit = false;
  489. // }
  490. // if (res.inferiorSulcus.length == 0) {
  491. // this.$modal.msg("请上传回填照片");
  492. // isSubmit = false;
  493. // }
  494. })
  495. } else if (this.title == '下沟') {
  496. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  497. res.zEngineeringMaterialBo.forEach((itme) => {
  498. if (itme.specifications == '') {
  499. this.$modal.msg("请选择规格");
  500. isSubmit = false;
  501. }
  502. if (itme.number == '') {
  503. this.$modal.msg("请输入米数");
  504. isSubmit = false;
  505. }
  506. })
  507. if (res.constructionRecords.length <= 0) {
  508. this.$modal.msg('请上传管道施工记录照片')
  509. isSubmit = false;
  510. }
  511. if (res.ductalEpithelium.length <= 0) {
  512. this.$modal.msg('请上传管上皮深度测量照片')
  513. isSubmit = false;
  514. }
  515. if (res.trenchProspect.length <= 0) {
  516. this.$modal.msg('请上传管沟远景照片')
  517. isSubmit = false;
  518. }
  519. if (res.video.length <= 0) {
  520. this.$modal.msg('请上传视频')
  521. isSubmit = false;
  522. }
  523. })
  524. } else {
  525. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  526. if (res.zEngiineeringPhotoBoList.length == 0) {
  527. this.$modal.msg("请上传照片");
  528. isSubmit = false;
  529. }
  530. })
  531. }
  532. if (!isSubmit) {
  533. return
  534. }
  535. putHistory(this.dataJson).then(
  536. response => {
  537. if (response.code == '200') {
  538. uni.hideLoading()
  539. uni.showToast({
  540. title: response.msg,
  541. icon: 'none',
  542. duration: 2000
  543. });
  544. setTimeout(function() {
  545. uni.navigateBack();
  546. }, 1000)
  547. }
  548. });
  549. }
  550. }
  551. }
  552. </script>
  553. <style lang="scss">
  554. .uni-media-list-body {
  555. background: #fff;
  556. border: 1px solid #eee;
  557. border-radius: 40rpx;
  558. margin: 20rpx;
  559. padding: 10rpx 0 40rpx;
  560. box-shadow: 0 0 5px #eee;
  561. }
  562. .uni-media-list-text-top {
  563. display: flex;
  564. align-items: center;
  565. justify-content: space-between;
  566. padding: 10px;
  567. position: relative;
  568. }
  569. .to-right-icon {
  570. width: 15px;
  571. height: 15px;
  572. position: absolute;
  573. top: 50%;
  574. transform: translateY(-50%);
  575. }
  576. .share {
  577. width: 100%;
  578. height: 100%;
  579. }
  580. .tit-text {
  581. color: #4f535a;
  582. margin-right: 20rpx;
  583. }
  584. .normal-text {}
  585. .cz-style {
  586. background: #e8f4f9;
  587. margin: 20rpx;
  588. padding: 10rpx;
  589. border-radius: 20rpx;
  590. border: 1px solid #d4e3f0;
  591. }
  592. .uni-media-list-text-top {
  593. font-size: 14px;
  594. color: #696969;
  595. padding: 20rpx 20rpx;
  596. border-bottom: 1px solid #eee;
  597. display: flex;
  598. align-items: center;
  599. }
  600. .share-box {
  601. width: 100%;
  602. height: 100%;
  603. position: fixed;
  604. top: 0rpx;
  605. left: 0rpx;
  606. bottom: 0rpx;
  607. right: 0rpx;
  608. background-color: rgba(0, 0, 0, 0.4);
  609. transition: .3s;
  610. z-index: 999;
  611. }
  612. // 进入分享动画
  613. .share-show {
  614. transition: all 0.3s ease;
  615. transform: translateY(0%) !important;
  616. border-radius: 20px 20px 0px 0px;
  617. }
  618. .scroll-Y {
  619. height: 58vh;
  620. }
  621. // 离开分享动画
  622. .share-item {
  623. position: fixed;
  624. left: 0;
  625. bottom: 0;
  626. width: 100%;
  627. height: 70%;
  628. background-color: #FFFFFF;
  629. transition: all 0.3s ease;
  630. transform: translateY(100%);
  631. z-index: 1999;
  632. .share-to {
  633. width: 100%;
  634. height: 30px;
  635. display: flex;
  636. justify-content: center;
  637. margin: 30rpx 0;
  638. align-items: center;
  639. }
  640. .content {
  641. width: 100%;
  642. height: auto;
  643. display: flex;
  644. flex-wrap: wrap;
  645. .block {
  646. width: 100%;
  647. display: flex;
  648. flex-direction: column;
  649. justify-content: center;
  650. align-items: left;
  651. height: auto;
  652. image {
  653. width: 80rpx;
  654. height: 80rpx;
  655. }
  656. text {
  657. margin-top: 16rpx;
  658. font-size: 28rpx;
  659. color: #606266;
  660. }
  661. }
  662. }
  663. .cancel {
  664. width: 100%;
  665. height: 3rem;
  666. display: flex;
  667. justify-content: center;
  668. align-items: center;
  669. border-top: 1rpx solid #E4E7ED;
  670. }
  671. }
  672. .uni-media-list-text-top {
  673. display: flex;
  674. align-items: center;
  675. justify-content: space-between;
  676. padding: 10px;
  677. position: relative;
  678. }
  679. .uni-list {
  680. border: 1xp solid #eee;
  681. }
  682. .to-right-icon {
  683. width: 15px;
  684. height: 15px;
  685. position: absolute;
  686. top: 50%;
  687. transform: translateY(-50%);
  688. }
  689. .text {
  690. font-size: 16px;
  691. color: #333;
  692. }
  693. .tj-btn {
  694. height: 69rpx;
  695. background: #3184f0;
  696. border-radius: 6rpx;
  697. font-size: 25rpx;
  698. font-weight: 400;
  699. color: #FFFFFF;
  700. line-height: 69rpx;
  701. margin: 40rpx 70rpx;
  702. }
  703. .sc-btn {
  704. height: 69rpx;
  705. background: #f0686b;
  706. border-radius: 6rpx;
  707. font-size: 25rpx;
  708. font-weight: 400;
  709. color: #FFFFFF;
  710. line-height: 69rpx;
  711. margin: 40rpx;
  712. }
  713. // .gesture-area {
  714. // //加浮动弹窗
  715. // width: 100%;
  716. // height: 100%;
  717. // }
  718. </style>