historyDetails.vue 21 KB

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