historyDetails.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  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. let newArr = [];
  384. arr.forEach((item, index) => {
  385. if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
  386. item.substring(item.length - 4) == 'jpeg') {
  387. newArr.push(item)
  388. }
  389. });
  390. uni.previewImage({
  391. current: index,
  392. urls: newArr,
  393. })
  394. },
  395. //关闭弹窗
  396. close(e) {
  397. this.open = false
  398. },
  399. // 截取小数点前的字符串
  400. getIntegerPart(numStr, i) {
  401. return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
  402. },
  403. setInfoBoNumber(key, number, i) {
  404. let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0]
  405. .number;
  406. let resAry = Ynumber.toString().split('.');
  407. resAry[i] = number
  408. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0].number = resAry
  409. .join('.');
  410. },
  411. changeSelectDict(item, index) {
  412. this.openDict = false;
  413. if (this.chooseType == 'door') {
  414. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  415. .visitType = item.dictValue;
  416. }
  417. },
  418. pickerShow(e, index) {
  419. this.dataIndex = index;
  420. this.chooseType = e;
  421. if (e == 'door') {
  422. this.openDict = true;
  423. getDicts("visit_type").then(response => {
  424. this.dictOptions = response.data;
  425. });
  426. }
  427. if (e == 'brand') {
  428. this.open = true;
  429. this.getFSDJLevel();
  430. }
  431. if (e == 'kj') {
  432. this.open = true;
  433. this.getFSDJLevel();
  434. }
  435. if (e == 'zbf') {
  436. this.open = true;
  437. getEnginMaterialQualityList("民用工程", this.enginType, this.enginClassification, this.title, '自闭阀厂家')
  438. .then(
  439. response => {
  440. this.selectZbfList = response.data;
  441. this.selectList = this.selectZbfList;
  442. });
  443. }
  444. if (e == 'fsdj') {
  445. this.open = true;
  446. this.getFSDJLevel();
  447. }
  448. if (e == 'cz') {
  449. this.open = true;
  450. if (this.type == '阀管') {
  451. getEnginMaterialQualityList("民用工程", this.enginType, this.enginClassification, this.title, "灶具管厂家")
  452. .then(response => {
  453. this.selectList = response.data;
  454. });
  455. } else {
  456. this.getFSDJLevel();
  457. }
  458. }
  459. if (e == 'gg') {
  460. this.open = true;
  461. //根据材质ID 获取规格数据
  462. getEnginSpecificationsList(this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex]
  463. .zEngineeringMaterialBo[0]
  464. .materialQuality).then(res => {
  465. this.selectList = res.data
  466. })
  467. }
  468. },
  469. isEmpty(str) {
  470. return (!str || 0 === str.length);
  471. },
  472. changeSelect(item, index) {
  473. this.open = false;
  474. if (this.chooseType == 'fsdj' || this.chooseType == 'kj') {
  475. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  476. .corrosionLevel = item.id;
  477. } else if (this.chooseType == 'cz') {
  478. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  479. .materialQuality = item.id;
  480. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  481. .materialQualityName = item.name;
  482. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  483. .specifications = '';
  484. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  485. .specificationsName = '';
  486. } else if (this.chooseType == 'gg') {
  487. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  488. .specifications = item.id;
  489. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  490. .specificationsName = item.name;
  491. } else if (this.chooseType == 'brand') {
  492. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  493. .brand = item.id;
  494. } else if (this.chooseType == 'zbf') {
  495. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  496. .selfClosingValveType = item.id;
  497. }
  498. },
  499. getFSDJLevel() {
  500. getEnginMaterialQualityList("民用工程", this.enginType, this.enginClassification, this.title).then(
  501. response => {
  502. this.selectList = response.data;
  503. this.$forceUpdate();
  504. });
  505. },
  506. getSelectName(id) {
  507. let res = '';
  508. this.selectList.forEach((val) => {
  509. if (id == val.id) {
  510. res = val.name
  511. };
  512. })
  513. return res;
  514. },
  515. getSelectZBFName(id) {
  516. let res = '';
  517. this.selectZbfList.forEach((val) => {
  518. if (id == val.id) {
  519. res = val.name
  520. };
  521. })
  522. return res;
  523. },
  524. isEdit(item) {
  525. var isShow = item.createBy == this.$user.state.name;
  526. return isShow;
  527. },
  528. submit() {
  529. let isSubmit = true;
  530. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  531. if (res.zEngiineeringPhotoBoList.length == 0) {
  532. this.$modal.msg("请上传照片");
  533. isSubmit = false;
  534. }
  535. if (this.title == '立杠' || this.title == '表后管' || this.title == '阀管') {
  536. if (res.zEngineeringMaterialBo[0].specifications == '') {
  537. this.$modal.msg("请选择规格");
  538. isSubmit = false;
  539. }
  540. }
  541. if (this.title == '立杠' || this.title == '表后管') {
  542. if (res.zEngineeringMaterialBo[0].number == '') {
  543. this.$modal.msg("请输入米数");
  544. isSubmit = false;
  545. }
  546. }
  547. })
  548. if (!isSubmit) {
  549. return
  550. }
  551. putHistory(this.dataJson).then(
  552. response => {
  553. if (response.code == '200') {
  554. uni.hideLoading()
  555. uni.showToast({
  556. title: response.msg,
  557. icon: 'none',
  558. duration: 2000
  559. });
  560. setTimeout(function() {
  561. uni.navigateBack();
  562. }, 1000)
  563. }
  564. });
  565. }
  566. }
  567. }
  568. </script>
  569. <style lang="scss">
  570. .uni-media-list-body {
  571. background: #fff;
  572. border: 1px solid #eee;
  573. border-radius: 40rpx;
  574. margin: 20rpx;
  575. padding: 10rpx 0 40rpx;
  576. box-shadow: 0 0 5px #eee;
  577. }
  578. .uni-media-list-text-top {
  579. display: flex;
  580. align-items: center;
  581. justify-content: space-between;
  582. padding: 10px;
  583. position: relative;
  584. }
  585. .to-right-icon {
  586. width: 15px;
  587. height: 15px;
  588. position: absolute;
  589. top: 50%;
  590. transform: translateY(-50%);
  591. }
  592. .share {
  593. width: 100%;
  594. height: 100%;
  595. }
  596. .tit-text {
  597. color: #4f535a;
  598. margin-right: 20rpx;
  599. }
  600. .normal-text {}
  601. .cz-style {
  602. background: #e8f4f9;
  603. margin: 20rpx;
  604. padding: 10rpx;
  605. border-radius: 20rpx;
  606. border: 1px solid #d4e3f0;
  607. }
  608. .uni-media-list-text-top {
  609. font-size: 14px;
  610. color: #696969;
  611. padding: 20rpx 20rpx;
  612. border-bottom: 1px solid #eee;
  613. display: flex;
  614. align-items: center;
  615. }
  616. .share-box {
  617. width: 100%;
  618. height: 100%;
  619. position: fixed;
  620. top: 0rpx;
  621. left: 0rpx;
  622. bottom: 0rpx;
  623. right: 0rpx;
  624. background-color: rgba(0, 0, 0, 0.4);
  625. transition: .3s;
  626. z-index: 999;
  627. }
  628. // 进入分享动画
  629. .share-show {
  630. transition: all 0.3s ease;
  631. transform: translateY(0%) !important;
  632. border-radius: 20px 20px 0px 0px;
  633. }
  634. .scroll-Y {
  635. height: 58vh;
  636. }
  637. // 离开分享动画
  638. .share-item {
  639. position: fixed;
  640. left: 0;
  641. bottom: 0;
  642. width: 100%;
  643. height: 70%;
  644. background-color: #FFFFFF;
  645. transition: all 0.3s ease;
  646. transform: translateY(100%);
  647. z-index: 1999;
  648. .share-to {
  649. // width: 100%;
  650. height: 30px;
  651. display: flex;
  652. justify-content: center;
  653. margin: 30rpx 0 !important;
  654. align-items: center;
  655. }
  656. .content {
  657. width: 100%;
  658. height: auto;
  659. display: flex;
  660. flex-wrap: wrap;
  661. .block {
  662. width: 100%;
  663. display: flex;
  664. flex-direction: column;
  665. justify-content: center;
  666. align-items: left;
  667. height: auto;
  668. image {
  669. width: 80rpx;
  670. height: 80rpx;
  671. }
  672. text {
  673. margin-top: 16rpx;
  674. font-size: 28rpx;
  675. color: #606266;
  676. }
  677. }
  678. }
  679. .cancel {
  680. width: 100%;
  681. height: 3rem;
  682. display: flex;
  683. justify-content: center;
  684. align-items: center;
  685. border-top: 1rpx solid #E4E7ED;
  686. }
  687. }
  688. .uni-media-list-text-top {
  689. display: flex;
  690. align-items: center;
  691. justify-content: space-between;
  692. padding: 10px;
  693. position: relative;
  694. }
  695. .uni-list {
  696. border: 1xp solid #eee;
  697. }
  698. .to-right-icon {
  699. width: 15px;
  700. height: 15px;
  701. position: absolute;
  702. top: 50%;
  703. transform: translateY(-50%);
  704. }
  705. .text {
  706. font-size: 16px;
  707. color: #333;
  708. }
  709. </style>