history_details_bottom_leg.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  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(0,key)">
  44. </image>
  45. <view v-for="(item,index) in value.onTheDitch" :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.onTheDitch)">
  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,0)"
  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">开挖前照片:</text>
  70. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; ">
  71. <image :src="loadImgSrc('updateimg.png')" mode=""
  72. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  73. @click="chooseimage(1,key)">
  74. </image>
  75. <view v-for="(item,index) in value.beforeBottom" :key="index"
  76. style="position: relative;">
  77. <view
  78. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  79. <image :src="item" mode=""
  80. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  81. @click="showPhoto(index,value.beforeBottom)">
  82. </image>
  83. </view>
  84. <view v-else>
  85. <video :src="item"
  86. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  87. </view>
  88. <view @click="removeht(index,key,1)"
  89. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  90. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  91. </image>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="uni-media-list-text-top">
  98. <view class="uni-common-mt" style="width: 100%;">
  99. <text class="tit-text" style=" font-size: 13px;color:
  100. #000;margin-top: 5px;">下沟照片:</text>
  101. <view class="" style="display: flex; flex-wrap: wrap;margin-top: 10px; ">
  102. <image :src="loadImgSrc('updateimg.png')" mode=""
  103. style="width: 200rpx; height: 150rpx; margin: 0 12rpx;; "
  104. @click="chooseimage(2,key)">
  105. </image>
  106. <view v-for="(item,index) in value.legBackfilling" :key="index"
  107. style="position: relative;">
  108. <view
  109. v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.substring(item.length-4)=='jpeg' ">
  110. <image :src="item" mode=""
  111. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
  112. @click="showPhoto(index,value.legBackfilling)">
  113. </image>
  114. </view>
  115. <view v-else>
  116. <video :src="item"
  117. style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"></video>
  118. </view>
  119. <view @click="removeht(index,key,2)"
  120. style="position: absolute; top: 0; right: 14rpx; border-radius: 50%;">
  121. <image :src="loadImgSrc('icon_close.png')" style=" width: 15px; height: 15px;">
  122. </image>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="uni-media-list-text-top">
  129. <view class="uni-common-mt" style="width: 100%;">
  130. <text class="tit-text" style=" font-size: 13px;color:
  131. #000;margin-top: 5px;">回填照片:</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(3,key)">
  136. </image>
  137. <view v-for="(item,index) in value.inferiorSulcus" :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.inferiorSulcus)">
  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,3)"
  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) {
  478. this.$modal.msg("请上传沟上部分照片");
  479. isSubmit = false;
  480. }
  481. if (res.beforeBottom.length == 0) {
  482. this.$modal.msg("请上传开挖前照片");
  483. isSubmit = false;
  484. }
  485. if (res.legBackfilling.length == 0) {
  486. this.$modal.msg("请上传下沟照片");
  487. isSubmit = false;
  488. }
  489. if (res.inferiorSulcus.length == 0) {
  490. this.$modal.msg("请上传回填照片");
  491. isSubmit = false;
  492. }
  493. })
  494. } else if (this.title == '下沟') {
  495. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  496. res.zEngineeringMaterialBo.forEach((itme) => {
  497. if (itme.specifications == '') {
  498. this.$modal.msg("请选择规格");
  499. isSubmit = false;
  500. }
  501. if (itme.number == '') {
  502. this.$modal.msg("请输入米数");
  503. isSubmit = false;
  504. }
  505. })
  506. if (res.constructionRecords.length <= 0) {
  507. this.$modal.msg('请上传管道施工记录照片')
  508. isSubmit = false;
  509. }
  510. if (res.ductalEpithelium.length <= 0) {
  511. this.$modal.msg('请上传管上皮深度测量照片')
  512. isSubmit = false;
  513. }
  514. if (res.trenchProspect.length <= 0) {
  515. this.$modal.msg('请上传管沟远景照片')
  516. isSubmit = false;
  517. }
  518. if (res.video.length <= 0) {
  519. this.$modal.msg('请上传视频')
  520. isSubmit = false;
  521. }
  522. })
  523. } else {
  524. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  525. if (res.zEngiineeringPhotoBoList.length == 0) {
  526. this.$modal.msg("请上传照片");
  527. isSubmit = false;
  528. }
  529. })
  530. }
  531. if (!isSubmit) {
  532. return
  533. }
  534. putHistory(this.dataJson).then(
  535. response => {
  536. if (response.code == '200') {
  537. uni.hideLoading()
  538. uni.showToast({
  539. title: response.msg,
  540. icon: 'none',
  541. duration: 2000
  542. });
  543. setTimeout(function() {
  544. uni.navigateBack();
  545. }, 1000)
  546. }
  547. });
  548. }
  549. }
  550. }
  551. </script>
  552. <style lang="scss">
  553. .uni-media-list-body {
  554. background: #fff;
  555. border: 1px solid #eee;
  556. border-radius: 40rpx;
  557. margin: 20rpx;
  558. padding: 10rpx 0 40rpx;
  559. box-shadow: 0 0 5px #eee;
  560. }
  561. .uni-media-list-text-top {
  562. display: flex;
  563. align-items: center;
  564. justify-content: space-between;
  565. padding: 10px;
  566. position: relative;
  567. }
  568. .to-right-icon {
  569. width: 15px;
  570. height: 15px;
  571. position: absolute;
  572. top: 50%;
  573. transform: translateY(-50%);
  574. }
  575. .share {
  576. width: 100%;
  577. height: 100%;
  578. }
  579. .tit-text {
  580. color: #4f535a;
  581. margin-right: 20rpx;
  582. }
  583. .normal-text {}
  584. .cz-style {
  585. background: #e8f4f9;
  586. margin: 20rpx;
  587. padding: 10rpx;
  588. border-radius: 20rpx;
  589. border: 1px solid #d4e3f0;
  590. }
  591. .uni-media-list-text-top {
  592. font-size: 14px;
  593. color: #696969;
  594. padding: 20rpx 20rpx;
  595. border-bottom: 1px solid #eee;
  596. display: flex;
  597. align-items: center;
  598. }
  599. .share-box {
  600. width: 100%;
  601. height: 100%;
  602. position: fixed;
  603. top: 0rpx;
  604. left: 0rpx;
  605. bottom: 0rpx;
  606. right: 0rpx;
  607. background-color: rgba(0, 0, 0, 0.4);
  608. transition: .3s;
  609. z-index: 999;
  610. }
  611. // 进入分享动画
  612. .share-show {
  613. transition: all 0.3s ease;
  614. transform: translateY(0%) !important;
  615. border-radius: 20px 20px 0px 0px;
  616. }
  617. .scroll-Y {
  618. height: 58vh;
  619. }
  620. // 离开分享动画
  621. .share-item {
  622. position: fixed;
  623. left: 0;
  624. bottom: 0;
  625. width: 100%;
  626. height: 70%;
  627. background-color: #FFFFFF;
  628. transition: all 0.3s ease;
  629. transform: translateY(100%);
  630. z-index: 1999;
  631. .share-to {
  632. width: 100%;
  633. height: 30px;
  634. display: flex;
  635. justify-content: center;
  636. margin: 30rpx 0;
  637. align-items: center;
  638. }
  639. .content {
  640. width: 100%;
  641. height: auto;
  642. display: flex;
  643. flex-wrap: wrap;
  644. .block {
  645. width: 100%;
  646. display: flex;
  647. flex-direction: column;
  648. justify-content: center;
  649. align-items: left;
  650. height: auto;
  651. image {
  652. width: 80rpx;
  653. height: 80rpx;
  654. }
  655. text {
  656. margin-top: 16rpx;
  657. font-size: 28rpx;
  658. color: #606266;
  659. }
  660. }
  661. }
  662. .cancel {
  663. width: 100%;
  664. height: 3rem;
  665. display: flex;
  666. justify-content: center;
  667. align-items: center;
  668. border-top: 1rpx solid #E4E7ED;
  669. }
  670. }
  671. .uni-media-list-text-top {
  672. display: flex;
  673. align-items: center;
  674. justify-content: space-between;
  675. padding: 10px;
  676. position: relative;
  677. }
  678. .uni-list {
  679. border: 1xp solid #eee;
  680. }
  681. .to-right-icon {
  682. width: 15px;
  683. height: 15px;
  684. position: absolute;
  685. top: 50%;
  686. transform: translateY(-50%);
  687. }
  688. .text {
  689. font-size: 16px;
  690. color: #333;
  691. }
  692. .tj-btn {
  693. height: 69rpx;
  694. background: #3184f0;
  695. border-radius: 6rpx;
  696. font-size: 25rpx;
  697. font-weight: 400;
  698. color: #FFFFFF;
  699. line-height: 69rpx;
  700. margin: 40rpx 70rpx;
  701. }
  702. .sc-btn {
  703. height: 69rpx;
  704. background: #f0686b;
  705. border-radius: 6rpx;
  706. font-size: 25rpx;
  707. font-weight: 400;
  708. color: #FFFFFF;
  709. line-height: 69rpx;
  710. margin: 40rpx;
  711. }
  712. // .gesture-area {
  713. // //加浮动弹窗
  714. // width: 100%;
  715. // height: 100%;
  716. // }
  717. </style>