historyDetails.vue 20 KB

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