historyDetails.vue 21 KB

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