history_details_bottom_leg.vue 21 KB

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