history_details_bottom_leg.vue 22 KB

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