historyDetails.vue 21 KB

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