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. <!-- 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. let flag = false;
  217. for (let i in response.data.zEngineeringNodeBo.zEngineeringInfoBoList) {
  218. if (response.data.zEngineeringNodeBo.zEngineeringInfoBoList[i].createBy == this.$user
  219. .state.name) {
  220. flag = true;
  221. break;
  222. }
  223. }
  224. if (flag) {
  225. this.hideButton = false;
  226. // if (response.data.zEngineeringNodeBo.createBy == this.$user.state.name) {
  227. // this.hideButton = false;
  228. // } else {
  229. // this.hideButton = true;
  230. // }
  231. this.dataJson = response.data;
  232. this.title = response.data.zEngineeringNodeBo.type;
  233. this.enginType = response.data.enginType;
  234. this.enginClassification = response.data.enginClassification;
  235. if (this.type == '阀管') {
  236. getEnginMaterialQualityList("民用工程", this.enginType, this.enginClassification, this
  237. .title,
  238. '自闭阀厂家')
  239. .then(
  240. response => {
  241. this.selectZbfList = response.data;
  242. this.selectList = this.selectZbfList;
  243. });
  244. } else {
  245. this.getFSDJLevel();
  246. }
  247. } else {
  248. this.hideButton = true;
  249. this.$modal.msg("暂无本人历史信息")
  250. }
  251. } else {
  252. this.hideButton = true;
  253. this.$modal.msg("暂无历史信息")
  254. }
  255. });
  256. }
  257. },
  258. methods: {
  259. //关闭弹窗
  260. closeDict(e) {
  261. this.openDict = false
  262. },
  263. remove(index, key) {
  264. uni.showModal({
  265. title: '提示',
  266. content: '是否删除该图片或视频?',
  267. success: (res) => {
  268. if (res.confirm) {
  269. this.dataJson.zEngineeringNodeBo
  270. .zEngineeringInfoBoList[key]
  271. .zEngiineeringPhotoBoList.splice(index, 1)
  272. }
  273. }
  274. })
  275. },
  276. choose(index1, index) {
  277. this.dataIndex = index1;
  278. let _this = this;
  279. uni.showActionSheet({
  280. title: '上传',
  281. itemList: ['图片', '视频'],
  282. success: (res) => {
  283. if (res.tapIndex == 0) {
  284. this.chooseimage()
  285. } else {
  286. this.choosevideo()
  287. }
  288. }
  289. })
  290. },
  291. chooseimage() {
  292. let _this = this;
  293. uni.chooseImage({
  294. sizeType: ['album', 'camera'],
  295. success(resp) {
  296. resp.tempFiles.forEach((item, index) => {
  297. const task = uni.uploadFile({
  298. url: _this.$HTTP + `/obs`,
  299. filePath: item.path,
  300. name: 'file',
  301. formData: {},
  302. header: _this.headers,
  303. success: res => {
  304. let data = JSON.parse(res.data);
  305. if (![200].includes(data.code)) {
  306. _this.$modal.msg(data.msg)
  307. } else {
  308. if (_this.progress === 100) {
  309. _this.dataJson.zEngineeringNodeBo
  310. .zEngineeringInfoBoList[_this.dataIndex]
  311. .zEngiineeringPhotoBoList.push(data.data.url);
  312. _this.$modal.msg('上传成功!')
  313. _this.photo = false;
  314. }
  315. }
  316. },
  317. fail: e => {
  318. _this.$modal.msg('上传失败!')
  319. },
  320. complete: res => {
  321. uni.hideLoading();
  322. _this.uploading = false;
  323. }
  324. });
  325. task.onProgressUpdate(res => {
  326. _this.progress = res.progress;
  327. uni.showLoading({
  328. title: '上传中'
  329. })
  330. if (_this.progress != 100) {
  331. _this.loading = false
  332. } else {
  333. _this.loading = true
  334. }
  335. });
  336. })
  337. },
  338. })
  339. },
  340. choosevideo() {
  341. let _this = this;
  342. uni.chooseVideo({
  343. sourceType: ['album', 'camera'],
  344. maxDuration: 30,
  345. success(resp) {
  346. const task = uni.uploadFile({
  347. url: _this.$HTTP + `/obs`,
  348. filePath: resp.tempFilePath,
  349. name: 'file',
  350. formData: {},
  351. header: _this.headers,
  352. success: res => {
  353. let data = JSON.parse(res.data);
  354. if (![200].includes(res.statusCode)) {
  355. this.uploadError(index, data);
  356. } else {
  357. //上传成功
  358. if (_this.progress === 100) {
  359. _this.dataJson.zEngineeringNodeBo
  360. .zEngineeringInfoBoList[_this.dataIndex]
  361. .zEngiineeringPhotoBoList.push(data.data.url);
  362. _this.$modal.msg('上传成功!')
  363. _this.photo = false;
  364. }
  365. }
  366. },
  367. fail: e => {
  368. _this.$modal.msg('上传失败!')
  369. this.uploadError(index, e);
  370. },
  371. complete: res => {
  372. uni.hideLoading();
  373. _this.uploading = false;
  374. }
  375. });
  376. task.onProgressUpdate(res => {
  377. _this.progress = res.progress;
  378. uni.showLoading({
  379. title: '上传中'
  380. })
  381. if (_this.progress != 100) {
  382. _this.loading = false
  383. } else {
  384. _this.loading = true
  385. }
  386. });
  387. },
  388. })
  389. },
  390. showPhoto(index, arr) {
  391. // uni.previewImage({
  392. // current: index,
  393. // urls: arr,
  394. // })
  395. let newArr = [];
  396. arr.forEach((item, index) => {
  397. if (item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg' ||
  398. item.substring(item.length - 4) == 'jpeg') {
  399. newArr.push(item)
  400. }
  401. });
  402. uni.previewImage({
  403. current: index,
  404. urls: newArr,
  405. })
  406. },
  407. //关闭弹窗
  408. close(e) {
  409. this.open = false
  410. },
  411. // 截取小数点前的字符串
  412. getIntegerPart(numStr, i) {
  413. return numStr.toString().split('.')[i] == undefined ? '0' : numStr.toString().split('.')[i];
  414. },
  415. setInfoBoNumber(key, number, i) {
  416. let Ynumber = this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0]
  417. .number;
  418. let resAry = Ynumber.toString().split('.');
  419. resAry[i] = number
  420. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[key].zEngineeringMaterialBo[0].number = resAry
  421. .join('.');
  422. },
  423. changeSelectDict(item, index) {
  424. this.openDict = false;
  425. if (this.chooseType == 'door') {
  426. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  427. .visitType = item.dictValue;
  428. }
  429. },
  430. pickerShow(e, index) {
  431. this.dataIndex = index;
  432. this.chooseType = e;
  433. if (e == 'door') {
  434. this.openDict = true;
  435. getDicts("visit_type").then(response => {
  436. this.dictOptions = response.data;
  437. });
  438. }
  439. if (e == 'brand') {
  440. this.open = true;
  441. this.getFSDJLevel();
  442. }
  443. if (e == 'kj') {
  444. this.open = true;
  445. this.getFSDJLevel();
  446. }
  447. if (e == 'zbf') {
  448. this.open = true;
  449. getEnginMaterialQualityList("民用工程", this.enginType, this.enginClassification, this.title, '自闭阀厂家')
  450. .then(
  451. response => {
  452. this.selectZbfList = response.data;
  453. this.selectList = this.selectZbfList;
  454. });
  455. }
  456. if (e == 'fsdj') {
  457. this.open = true;
  458. this.getFSDJLevel();
  459. }
  460. if (e == 'cz') {
  461. this.open = true;
  462. if (this.type == '阀管') {
  463. getEnginMaterialQualityList("民用工程", this.enginType, this.enginClassification, this.title, "灶具管厂家")
  464. .then(response => {
  465. this.selectList = response.data;
  466. });
  467. } else {
  468. this.getFSDJLevel();
  469. }
  470. }
  471. if (e == 'gg') {
  472. this.open = true;
  473. //根据材质ID 获取规格数据
  474. getEnginSpecificationsList(this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex]
  475. .zEngineeringMaterialBo[0]
  476. .materialQuality).then(res => {
  477. this.selectList = res.data
  478. })
  479. }
  480. },
  481. isEmpty(str) {
  482. return (!str || 0 === str.length);
  483. },
  484. changeSelect(item, index) {
  485. this.open = false;
  486. if (this.chooseType == 'fsdj' || this.chooseType == 'kj') {
  487. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  488. .corrosionLevel = item.id;
  489. } else if (this.chooseType == 'cz') {
  490. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  491. .materialQuality = item.id;
  492. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  493. .materialQualityName = item.name;
  494. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  495. .specifications = '';
  496. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  497. .specificationsName = '';
  498. } else if (this.chooseType == 'gg') {
  499. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  500. .specifications = item.id;
  501. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  502. .specificationsName = item.name;
  503. } else if (this.chooseType == 'brand') {
  504. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  505. .brand = item.id;
  506. } else if (this.chooseType == 'zbf') {
  507. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList[this.dataIndex].zEngineeringMaterialBo[0]
  508. .selfClosingValveType = item.id;
  509. }
  510. },
  511. getFSDJLevel() {
  512. getEnginMaterialQualityList("民用工程", this.enginType, this.enginClassification, this.title).then(
  513. response => {
  514. this.selectList = response.data;
  515. this.$forceUpdate();
  516. });
  517. },
  518. getSelectName(id) {
  519. let res = '';
  520. this.selectList.forEach((val) => {
  521. if (id == val.id) {
  522. res = val.name
  523. };
  524. })
  525. return res;
  526. },
  527. getSelectZBFName(id) {
  528. let res = '';
  529. this.selectZbfList.forEach((val) => {
  530. if (id == val.id) {
  531. res = val.name
  532. };
  533. })
  534. return res;
  535. },
  536. isEdit(item) {
  537. var isShow = item.createBy == this.$user.state.name;
  538. return isShow;
  539. },
  540. submit() {
  541. let isSubmit = true;
  542. this.dataJson.zEngineeringNodeBo.zEngineeringInfoBoList.forEach((res) => {
  543. if (res.zEngiineeringPhotoBoList.length == 0) {
  544. this.$modal.msg("请上传照片");
  545. isSubmit = false;
  546. }
  547. if (this.title == '立杠' || this.title == '表后管' || this.title == '阀管') {
  548. if (res.zEngineeringMaterialBo[0].specifications == '') {
  549. this.$modal.msg("请选择规格");
  550. isSubmit = false;
  551. }
  552. }
  553. if (this.title == '立杠' || this.title == '表后管') {
  554. if (res.zEngineeringMaterialBo[0].number == '') {
  555. this.$modal.msg("请输入米数");
  556. isSubmit = false;
  557. }
  558. }
  559. })
  560. if (!isSubmit) {
  561. return
  562. }
  563. putHistory(this.dataJson).then(
  564. response => {
  565. if (response.code == '200') {
  566. uni.hideLoading()
  567. uni.showToast({
  568. title: response.msg,
  569. icon: 'none',
  570. duration: 2000
  571. });
  572. setTimeout(function() {
  573. uni.navigateBack();
  574. }, 1000)
  575. }
  576. });
  577. }
  578. }
  579. }
  580. </script>
  581. <style lang="scss">
  582. .uni-media-list-body {
  583. background: #fff;
  584. border: 1px solid #eee;
  585. border-radius: 40rpx;
  586. margin: 20rpx;
  587. padding: 10rpx 0 40rpx;
  588. box-shadow: 0 0 5px #eee;
  589. }
  590. .uni-media-list-text-top {
  591. display: flex;
  592. align-items: center;
  593. justify-content: space-between;
  594. padding: 10px;
  595. position: relative;
  596. }
  597. .to-right-icon {
  598. width: 15px;
  599. height: 15px;
  600. position: absolute;
  601. top: 50%;
  602. transform: translateY(-50%);
  603. }
  604. .share {
  605. width: 100%;
  606. height: 100%;
  607. }
  608. .tit-text {
  609. color: #4f535a;
  610. margin-right: 20rpx;
  611. }
  612. .normal-text {}
  613. .cz-style {
  614. background: #e8f4f9;
  615. margin: 20rpx;
  616. padding: 10rpx;
  617. border-radius: 20rpx;
  618. border: 1px solid #d4e3f0;
  619. }
  620. .uni-media-list-text-top {
  621. font-size: 14px;
  622. color: #696969;
  623. padding: 20rpx 20rpx;
  624. border-bottom: 1px solid #eee;
  625. display: flex;
  626. align-items: center;
  627. }
  628. .share-box {
  629. width: 100%;
  630. height: 100%;
  631. position: fixed;
  632. top: 0rpx;
  633. left: 0rpx;
  634. bottom: 0rpx;
  635. right: 0rpx;
  636. background-color: rgba(0, 0, 0, 0.4);
  637. transition: .3s;
  638. z-index: 999;
  639. }
  640. // 进入分享动画
  641. .share-show {
  642. transition: all 0.3s ease;
  643. transform: translateY(0%) !important;
  644. border-radius: 20px 20px 0px 0px;
  645. }
  646. .scroll-Y {
  647. height: 58vh;
  648. }
  649. // 离开分享动画
  650. .share-item {
  651. position: fixed;
  652. left: 0;
  653. bottom: 0;
  654. width: 100%;
  655. height: 70%;
  656. background-color: #FFFFFF;
  657. transition: all 0.3s ease;
  658. transform: translateY(100%);
  659. z-index: 1999;
  660. .share-to {
  661. // width: 100%;
  662. height: 30px;
  663. display: flex;
  664. justify-content: center;
  665. margin: 30rpx 0 !important;
  666. align-items: center;
  667. }
  668. .content {
  669. width: 100%;
  670. height: auto;
  671. display: flex;
  672. flex-wrap: wrap;
  673. .block {
  674. width: 100%;
  675. display: flex;
  676. flex-direction: column;
  677. justify-content: center;
  678. align-items: left;
  679. height: auto;
  680. image {
  681. width: 80rpx;
  682. height: 80rpx;
  683. }
  684. text {
  685. margin-top: 16rpx;
  686. font-size: 28rpx;
  687. color: #606266;
  688. }
  689. }
  690. }
  691. .cancel {
  692. width: 100%;
  693. height: 3rem;
  694. display: flex;
  695. justify-content: center;
  696. align-items: center;
  697. border-top: 1rpx solid #E4E7ED;
  698. }
  699. }
  700. .uni-media-list-text-top {
  701. display: flex;
  702. align-items: center;
  703. justify-content: space-between;
  704. padding: 10px;
  705. position: relative;
  706. }
  707. .uni-list {
  708. border: 1xp solid #eee;
  709. }
  710. .to-right-icon {
  711. width: 15px;
  712. height: 15px;
  713. position: absolute;
  714. top: 50%;
  715. transform: translateY(-50%);
  716. }
  717. .text {
  718. font-size: 16px;
  719. color: #333;
  720. }
  721. </style>