historyDetailsInfrastructure.vue 21 KB

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