historyDetailsInfrastructure.vue 20 KB

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