historyDetails.vue 21 KB

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