history_details_bottom_leg.vue 22 KB

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