historyDetailsInfrastructure.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  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: 100rpx; height: 100rpx; margin: 0 12rpx;"
  83. @click="showPhoto(index,value.zEngiineeringPhotoBoList)">
  84. </image>
  85. </view>
  86. <view v-else>
  87. <video :src="item" style="width: 100rpx; height: 100rpx; 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. return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
  380. },
  381. setInfoBo(key, str, type) {
  382. if (type == 'cz') {
  383. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0]
  384. .materialQuality = str;
  385. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0]
  386. .materialQualityName = str;
  387. } else {
  388. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0].specifications =
  389. str;
  390. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0]
  391. .specificationsName = str;
  392. }
  393. },
  394. setInfoBoNumber(key, index, number, i) {
  395. let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[index]
  396. .number;
  397. let resAry = Ynumber.toString().split('.');
  398. resAry[i] = number
  399. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[index].number = resAry
  400. .join('.');
  401. },
  402. changeSelectDict(item, index) {
  403. this.openDict = false;
  404. if (this.chooseType == 'door') {
  405. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  406. .visitType = item.dictValue;
  407. }
  408. },
  409. pickerShow(e, index, indexTwo) {
  410. this.dataIndex = index;
  411. this.selectIndex = indexTwo; //材质规格 第几条
  412. this.chooseType = e;
  413. if (e == 'cz') {
  414. this.open = true;
  415. // if (this.type == '阀管') {
  416. // getEnginMaterialQualityList("民用工程", this.enginType, this.enginClassification, this.title, "灶具管厂家")
  417. // .then(response => {
  418. // this.selectList = response.data;
  419. // });
  420. // } else {
  421. this.getFSDJLevel();
  422. // }
  423. }
  424. if (e == 'gg') {
  425. if (this.isEmpty(this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex]
  426. .zEngineeringMaterialBo[this.selectIndex].materialQuality)) {
  427. this.$modal.msg('请选择材质')
  428. } else {
  429. this.open = true;
  430. getEnginSpecificationsList(this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex]
  431. .zEngineeringMaterialBo[this.selectIndex].materialQuality).then(res => {
  432. this.selectList = res.data
  433. })
  434. }
  435. }
  436. },
  437. isEmpty(str) {
  438. return (!str || 0 === str.length);
  439. },
  440. changeSelect(item, index) {
  441. this.open = false;
  442. if (this.chooseType == 'cz') {
  443. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
  444. .selectIndex]
  445. .materialQuality = item.id;
  446. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
  447. .selectIndex]
  448. .materialQualityName = item.name;
  449. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
  450. .selectIndex]
  451. .specifications = '';
  452. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
  453. .selectIndex]
  454. .specificationsName = '';
  455. } else if (this.chooseType == 'gg') {
  456. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
  457. .selectIndex]
  458. .specifications = item.id;
  459. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[this
  460. .selectIndex]
  461. .specificationsName = item.name;
  462. }
  463. },
  464. getFSDJLevel() {
  465. getEnginMaterialQualityList("基建工程").then(
  466. response => {
  467. this.selectList = response.data;
  468. this.$forceUpdate();
  469. });
  470. },
  471. isEdit(item) {
  472. var isShow = item.createBy == this.$user.state.name;
  473. return isShow;
  474. },
  475. change(index, index2) {
  476. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].zEngineeringMaterialBo[index2]
  477. .materialQuality =
  478. '';
  479. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].zEngineeringMaterialBo[index2]
  480. .materialQualityName = '';
  481. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].zEngineeringMaterialBo[index2]
  482. .specifications =
  483. '';
  484. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].zEngineeringMaterialBo[index2]
  485. .specificationsName = '';
  486. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].zEngineeringMaterialBo[index2].isNew = !this
  487. .dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[index].zEngineeringMaterialBo[index2].isNew;
  488. this.$forceUpdate();
  489. },
  490. submit() {
  491. let isSubmit = true;
  492. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  493. if (res.createBy == this.$user.state.name) {
  494. res.zEngineeringMaterialBo.forEach((itme) => {
  495. if (itme.materialQuality == '') {
  496. this.$modal.msg("请选择材质或输入材质");
  497. isSubmit = false;
  498. }
  499. if (itme.specifications == '') {
  500. this.$modal.msg("请选择规格或输入规格");
  501. isSubmit = false;
  502. }
  503. if (itme.number == '') {
  504. this.$modal.msg("请输入米数");
  505. isSubmit = false;
  506. }
  507. if (this.getIntegerPart(itme.number, 0) == '') {
  508. this.$modal.msg("请输入米数");
  509. isSubmit = false;
  510. }
  511. })
  512. if (res.zEngiineeringPhotoBoList.length == 0) {
  513. this.$modal.msg("请上传照片");
  514. isSubmit = false;
  515. }
  516. }
  517. })
  518. if (!isSubmit) {
  519. return
  520. }
  521. PutInfrastructure(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: center;
  623. margin: 30rpx 0 !important;
  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. </style>