historyDetails.vue 20 KB

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