myCard.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. <template>
  2. <view>
  3. <u-navbar placeholder title="我的证件" @leftClick="leftClick" bgColor="#112253" titleStyle ="color:#fff" leftIconColor="#fff">
  4. </u-navbar>
  5. <view class="flex content1 flex-between">
  6. <view @click='addclick' class="button">
  7. <!-- <u--image :showLoading="true" src="../../static/imgs/mySet/add.png" width="80px" height="80px"></u--image> -->
  8. <image src="../../static/imgs/mySet/add.png" mode="widthFix" class="btn-img"></image>
  9. 新增
  10. </view>
  11. <view @click='share' class="button">
  12. <image src="../../static/imgs/mySet/share1.png" mode="widthFix" class="btn-img"></image>
  13. 分享
  14. </view>
  15. <view @click='imageOCR' class="button">
  16. <image src="../../static/imgs/mySet/shibie.png" mode="widthFix" class="btn-img"></image>
  17. 识别号码
  18. </view>
  19. </view>
  20. <view v-if='addstatus' class="content2" >
  21. <view class="flex flex-between">
  22. <u--input border="bottom" v-model="cardData.certificateName" placeholder="输入证件名称"></u--input>
  23. <view @click='add' class="submit">提交</view>
  24. </view>
  25. <view class='add-image' >
  26. <u-upload @afterRead="afterRead" :fileList="fileList1" @delete="deletePic" name="1" multiple
  27. :maxCount="1" height='190' width='360'>
  28. <view class="bgc">
  29. <view class="circle">
  30. <view class="add">
  31. +
  32. </view>
  33. </view>
  34. </view>
  35. </u-upload>
  36. </view>
  37. </view>
  38. <view class="content3" style="background-color: #F7F7F7;">
  39. <mescroll-body v-if='!addstatus&&cardList.length==0||cardList.length>0' ref="mescrollRef" @init="mescrollInit"
  40. @up="upCallback" @down="downCallback">
  41. <view v-for='(item,index) in cardList' class="">
  42. <view class="flex flex-between row">
  43. <view v-if='!item.editstatus' class="left flex">
  44. <view class="name-text">
  45. {{item.certificateName}}
  46. </view>
  47. <text v-if='item.personNo'>({{item.personNo1}})</text>
  48. <u-icon v-if='item.personNo' @click='clip(0,item)' name="file-text-fill" color="#2979ff"
  49. size="28"></u-icon>
  50. <text v-if='item.bankNo'>({{item.bankNo1}})</text>
  51. <u-icon v-if='item.bankNo' @click='clip(1,item)' name="file-text-fill" color="#2979ff"
  52. size="28"></u-icon>
  53. </view>
  54. <u--input @input='certificateNameInput($event,item)' border="bottom" v-else v-model="item.certificateName" placeholder="输入证件名称"></u--input>
  55. <view class="flex" v-if="item.editstatus">
  56. <view @click='qxEdit(item)' :class="!item.editstatus?'edit':'finished'" style="margin:0 20rpx;">取消</view>
  57. <view @click='edit(item)' :class="!item.status?'edit':'finished'">完成</view>
  58. </view>
  59. <view class="flex" v-if="!item.editstatus">
  60. <view @click="del(item)" :class="!item.editstatus?'edit':'finished'" style="margin:0 20rpx 0 0;">删除</view>
  61. <view @click='edit(item)' class="finished" >编辑</view>
  62. </view>
  63. </view>
  64. <view class="row2" v-if='!item.editstatus'>
  65. <image @click='previewImage(item.certificateImage)' :src="item.certificateImage" mode="aspectFill" class="img"></image>
  66. <view class="right">
  67. <u-checkbox-group v-model="item.checked" placement="column" @change="checkboxChange($event,index,item)">
  68. <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1' :customStyle="{marginBottom: '8px'}">
  69. </u-checkbox>
  70. </u-checkbox-group>
  71. <!-- <image src="../../static/imgs/mySet/del1.png" mode="widthFix" @click="del(item)" style="width: 28rpx;"></image> -->
  72. </view>
  73. </view>
  74. <view v-else style='padding-left:20rpx;' >
  75. <u-upload @afterRead="afterRead" :fileList="fileList2" @delete="deletePic" name="2" multiple
  76. :maxCount="1" height='190' width='350'>
  77. <!-- <image src="https://cdn.uviewui.com/uview/demo/upload/positive.png"
  78. mode="widthFix" style="width: 250px;height: 150px;"></image> -->
  79. </u-upload>
  80. </view>
  81. </view>
  82. </mescroll-body>
  83. </view>
  84. <u-picker @cancel='show=false' @confirm='pickerConfirm' title='识别类型' :show="show" :columns="columns"></u-picker>
  85. <u-popup :show="popupshow" :closeOnClickOverlay='true' :overlayOpacity='0.4' @close='handleHiddenShare'
  86. :round="10" mode="bottom">
  87. <view>
  88. <view class="share-content">
  89. <view class="block" @click="toUrl()">
  90. <button class="moment">
  91. <view class="iconfont icon-pengyouquan"></view>
  92. <view>分享朋友圈</view>
  93. </button>
  94. </view>
  95. <view class="block">
  96. <button class="shareBtn" type="default" data-name="shareBtn" open-type="share">
  97. <view class="iconfont icon-weixin"></view>
  98. <view>分享微信好友</view>
  99. </button>
  100. </view>
  101. </view>
  102. </view>
  103. </u-popup>
  104. <u-modal @cancel='modalshow=false' confirmText='删除' showCancelButton='true' @confirm='delConfirm'
  105. :show="modalshow" title="提示" content='确定删除证件?'></u-modal>
  106. <u-modal @cancel='credentialscancel' cancelText='重新识别' confirmText='确认号码' showCancelButton='true'
  107. @confirm='credentialsConfirm' :show="credentialsShow" title="提示">
  108. <view class="slot-content">
  109. 证件号码
  110. <u--input v-if='shibie=="识别身份证号"' v-model="credentials.recPersonNo" placeholder="输入证件名称"
  111. border="none"></u--input>
  112. <u--input v-if='shibie=="识别银行卡号"' v-model="credentials.bankNo" placeholder="输入证件名称"
  113. border="none"></u--input>
  114. </view>
  115. </u-modal>
  116. <u-modal :show="modalstatusshow" confirmText='继续返回' cancelText='取消' @confirm='confirm' @cancel='cancel'
  117. showCancelButton='true' title="提示" content='有证件处于编辑状态未提交。'></u-modal>
  118. <u-toast ref="uToast"></u-toast>
  119. <canvas style="position: absolute; top: -1000px; left: -1000px; width: 600px; height: 400px; background: #000;" canvas-id="canvas"></canvas>
  120. <point-share @close='showShare=false' :show='showShare'></point-share>
  121. </view>
  122. </template>
  123. <script>
  124. import uploadImage from '@/components/ossutil/uploadFile.js';
  125. import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
  126. import PointShare from '../../components/point-share/index.vue';
  127. export default {
  128. mixins: [MescrollMixin],
  129. components: {
  130. PointShare
  131. },
  132. data() {
  133. return {
  134. show: false,
  135. modalshow: false,
  136. modalstatusshow: false,
  137. popupshow: false,
  138. columns: [
  139. ['识别身份证号', '识别银行卡号']
  140. ],
  141. showShare:false,
  142. userInfo: {},
  143. cardData: {},
  144. cardList: [],
  145. fileList1: [],
  146. fileList2: [],
  147. checkedList: [],
  148. addstatus: false,
  149. id: '',
  150. credentialsShow: false,
  151. credentials: {},
  152. shibie: '',
  153. shibieList: [],
  154. canReset: false,
  155. shareimg:''
  156. };
  157. },
  158. onLoad() {
  159. // this.getList()
  160. },
  161. onShow() {
  162. this.userInfo = uni.getStorageSync("userInfo")
  163. this.cardData.commonId = uni.getStorageSync("userInfo").id
  164. this.$nextTick(function() {
  165. this.canReset && this.mescroll.resetUpScroll() // 重置列表数据为第一页
  166. this.canReset && this.mescroll.scrollTo(0, 0) // 重置列表数据为第一页时,建议把滚动条也重置到顶部,避免无法再次翻页的问题
  167. this.canReset = true // 过滤第一次的onShow事件,避免初始化界面时重复触发upCallback, 无需配置auto:false
  168. });
  169. this.cutShareImg()
  170. },
  171. onShareAppMessage(res) {
  172. let that = this;
  173. //生成名片图片
  174. let imageUrl = this.poster
  175. console.log("imageUrl", uni.getStorageSync('checkedList'))
  176. if (res.from === 'button') {
  177. return {
  178. title: '证件分享',
  179. path: '/pages/mySet/lookCard?dataList='+uni.getStorageSync('checkedList'),
  180. imageUrl: this.shareimg,
  181. };
  182. }
  183. if (res.from === 'menu') {
  184. return {
  185. title: '名片夹',
  186. path: '/pages/tabBarPro/index/index',
  187. imageUrl: this.popupshow ? imageUrl : ''
  188. };
  189. }
  190. },
  191. methods: {
  192. previewImage(src){
  193. console.log(src)
  194. //预览图片
  195. uni.previewImage({
  196. urls: [src], // 需要预览的图片链接列表,可以写你图片链接的数组或者跟我一样,就写一个单独的链接
  197. current: src // 为当前显示图片的链接/索引值,不填或填写的值无效则为 urls 的第一张
  198. });
  199. },
  200. toUrl(){
  201. this.popupshow=false
  202. this.showShare=true
  203. },
  204. cutShareImg (){
  205. let that=this;
  206. uni.getImageInfo({
  207. src: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20230506110702.png', // 这里填写网络图片路径
  208. success: (res) => {
  209. let ctx = uni.createCanvasContext('canvas');
  210. ctx.drawImage(res.path, 0, 0, 480, 300)
  211. ctx.draw(false, () => {
  212. uni.canvasToTempFilePath({
  213. canvasId: 'canvas',
  214. fileType: 'png',
  215. success: (res) => {
  216. //设置分享图片路径
  217. that.shareimg=res.tempFilePath
  218. console.log(that.shareimg)
  219. }
  220. })
  221. })
  222. }
  223. });
  224. },
  225. handleHiddenShare() {
  226. this.popupshow = false
  227. },
  228. certificateNameInput(e,item){
  229. console.log(item)
  230. if(item.certificateName1!=item.certificateName){
  231. item.status=true
  232. }else{
  233. item.status=false
  234. }
  235. },
  236. qxEdit(){
  237. this.mescroll.resetUpScroll()
  238. },
  239. clip(status, item) {
  240. uni.setClipboardData({
  241. data: status == 1 ? item.bankNo : item.personNo, // e是你要保存的内容
  242. success: function() {
  243. uni.showToast({
  244. title: '复制成功',
  245. icon: 'none'
  246. })
  247. }
  248. })
  249. },
  250. edit(item) {
  251. if (item.editstatus) {
  252. if(item.status){
  253. this.$request.baseRequest('admin.unimall.certificateManagementInfo', 'update', {
  254. certificateManagementInfo: JSON.stringify(item)
  255. }, failres => {
  256. console.log('res+++++', failres.errmsg)
  257. uni.hideLoading()
  258. uni.showToast({
  259. icon:"none",
  260. title: failres.errmsg,
  261. duration: 3000
  262. });
  263. }).then(res => {
  264. uni.hideLoading()
  265. uni.showToast({
  266. icon:"success",
  267. title: '编辑成功!',
  268. duration: 2000
  269. });
  270. this.modalshow = false
  271. this.checkedList = []
  272. this.mescroll.resetUpScroll()
  273. })
  274. }
  275. } else {
  276. item.editstatus = true
  277. item.certificateName1=item.certificateName
  278. this.fileList2 = [{
  279. url: item.certificateImage
  280. }]
  281. }
  282. },
  283. delConfirm() {
  284. this.$request.baseRequest('admin.unimall.certificateManagementInfo', 'delete', {
  285. id: this.id
  286. }, failres => {
  287. console.log('res+++++', failres.errmsg)
  288. uni.showToast({
  289. icon:"none",
  290. title: failres.errmsg,
  291. duration: 3000
  292. });
  293. uni.hideLoading()
  294. }).then(res => {
  295. uni.hideLoading()
  296. uni.showToast({
  297. icon:"success",
  298. title: '删除成功!',
  299. duration: 2000
  300. });
  301. this.modalshow = false
  302. this.checkedList = []
  303. this.mescroll.resetUpScroll()
  304. })
  305. },
  306. pickerConfirm(e) {
  307. this.show = false
  308. console.log(e)
  309. uni.showLoading({
  310. title: '数据加载中',
  311. mask: true
  312. })
  313. var type = '',
  314. type1 = ''
  315. this.shibie = e.value[0]
  316. this.shibieList = JSON.parse(JSON.stringify(this.cardList[this.checkedList[0]]))
  317. if (e.value[0] == '识别身份证号') {
  318. type = 'admin.unimall.certificateManagementInfo'
  319. type1 = 'personShibie'
  320. } else if (e.value[0] == '识别银行卡号') {
  321. type = 'admin.unimall.certificateManagementInfo'
  322. type1 = 'bankShibie'
  323. }
  324. this.$request.baseRequest(type, type1, {
  325. certificateImage: this.cardList[this.checkedList[0]].certificateImage
  326. }, failres => {
  327. console.log('res+++++', failres.errmsg)
  328. uni.hideLoading()
  329. uni.showToast({
  330. icon:"none",
  331. title: failres.errmsg,
  332. duration: 3000
  333. });
  334. }).then(res => {
  335. console.log(res.data)
  336. uni.hideLoading()
  337. uni.showToast({
  338. icon:"success",
  339. title: '识别成功!',
  340. duration: 2000
  341. });
  342. this.credentials = res.data
  343. this.credentialsShow = true
  344. })
  345. },
  346. checkboxChange(e, i) {
  347. console.log(e[0], i)
  348. if (e[0]) {
  349. this.checkedList.push(i)
  350. } else {
  351. var index = this.checkedList.findIndex((item) => {
  352. return item == i
  353. })
  354. this.checkedList.splice(index, 1)
  355. }
  356. // for(var i=0;i<this.cardList.length;i++){
  357. // console.log(this.cardList[i].checked)
  358. // // if(this.cardList[i].checkedList.length>0){
  359. // // this.checkedList.push(i)
  360. // // }
  361. // }
  362. console.log(this.checkedList)
  363. },
  364. share() {
  365. if (this.checkedList.length == 0) {
  366. uni.showToast({
  367. icon:"none",
  368. title: '请勾选想要分享的证件!!',
  369. duration: 2000
  370. });
  371. return
  372. }
  373. var arr=[]
  374. for(var i=0;i<this.cardList.length;i++){
  375. if(this.checkedList.findIndex((item) => {
  376. return item == i
  377. })!=-1){
  378. arr.push(this.cardList[i])
  379. }
  380. }
  381. console.log(arr,111)
  382. uni.setStorageSync('checkedList', JSON.stringify(arr));
  383. this.popupshow = true
  384. },
  385. imageOCR() {
  386. console.log(this.cardList, this.checkedList)
  387. if (this.checkedList.length == 0) {
  388. uni.showToast({
  389. icon:"none",
  390. title: '请勾选想要识别的证件!',
  391. duration: 2000
  392. });
  393. return
  394. }
  395. if (this.checkedList.length > 1) {
  396. uni.showToast({
  397. icon:"none",
  398. title: '一次只能勾选一张证件',
  399. duration: 3000
  400. });
  401. return
  402. }
  403. this.show = true
  404. },
  405. credentialscancel(){
  406. this.credentialsShow = false
  407. this.pickerConfirm({value:[this.shibie]})
  408. },
  409. credentialsConfirm() {
  410. var type = '',
  411. type1 = ''
  412. if (this.shibie == '识别身份证号') {
  413. this.shibieList.personNo = this.credentials.recPersonNo
  414. } else if (this.shibie == '识别银行卡号') {
  415. this.shibieList.bankNo = this.credentials.bankNo
  416. }
  417. // if(this.shibie=='识别身份证号'){
  418. // type='admin.unimall.certificateManagementInfo'
  419. // type1='personShibie'
  420. // }else if(this.shibie=='识别银行卡号'){
  421. // type='admin.unimall.certificateManagementInfo'
  422. // type1='bankShibie'
  423. // }
  424. this.$request.baseRequest('admin.unimall.certificateManagementInfo', 'update', {
  425. certificateManagementInfo: JSON.stringify(this.shibieList)
  426. }, failres => {
  427. console.log('res+++++', failres.errmsg)
  428. uni.showToast({
  429. icon:"none",
  430. title: failres.errmsg,
  431. duration: 3000
  432. });
  433. uni.hideLoading()
  434. }).then(res => {
  435. uni.hideLoading()
  436. uni.showToast({
  437. icon:"success",
  438. title: '编辑成功!',
  439. duration: 2000
  440. });
  441. this.credentialsShow = false
  442. this.checkedList = []
  443. this.mescroll.resetUpScroll()
  444. })
  445. },
  446. confirm() {
  447. uni.navigateBack()
  448. },
  449. cancel() {
  450. this.modalstatusshow = false
  451. },
  452. leftClick() {
  453. if (this.cardData.certificateImage) {
  454. console.log(22222)
  455. this.modalstatusshow = true
  456. } else {
  457. uni.navigateBack()
  458. }
  459. },
  460. del(item) {
  461. this.modalshow = true
  462. this.id = item.id
  463. },
  464. addclick() {
  465. this.addstatus = true
  466. },
  467. add() {
  468. if (!this.cardData.certificateImage) {
  469. uni.showToast({
  470. icon:"none",
  471. title: "请上传证件照片",
  472. duration: 2000
  473. });
  474. return
  475. }
  476. uni.showLoading({
  477. title: '数据加载中'
  478. })
  479. this.$request.baseRequest('admin.unimall.certificateManagementInfo', 'add', {
  480. certificateManagementInfo: JSON.stringify(this.cardData)
  481. }, failres => {
  482. console.log('res+++++', failres.errmsg)
  483. uni.hideLoading()
  484. uni.showToast({
  485. icon:"none",
  486. title: failres.errmsg,
  487. duration: 3000
  488. });
  489. }).then(res => {
  490. // if (res.errno == 200) {
  491. uni.hideLoading()
  492. uni.showToast({
  493. icon:"success",
  494. title: '提交成功!',
  495. duration: 2000
  496. });
  497. this.fileList1 = []
  498. this.addstatus = false
  499. this.cardData = {
  500. commonId: uni.getStorageSync("userInfo").id
  501. }
  502. this.mescroll.resetUpScroll()
  503. // }
  504. })
  505. },
  506. deletePic(event) {
  507. this[`fileList${event.name}`].splice(event.index, 1)
  508. this.cardData.certificateImage = this[`fileList${event.name}`].toString()
  509. },
  510. // 新增图片
  511. async afterRead(event) {
  512. // 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
  513. let lists = [].concat(event.file)
  514. let fileListLen = this[`fileList${event.name}`].length
  515. lists.map((item) => {
  516. this[`fileList${event.name}`].push({
  517. ...item,
  518. status: 'uploading',
  519. message: '上传中'
  520. })
  521. })
  522. // console.log(event,111111,fileListLen)
  523. for (let i = 0; i < lists.length; i++) {
  524. const result = await this.uploadFilePromise(lists[i].url)
  525. this.cardData.certificateImage = result
  526. this[`fileList${event.name}`][fileListLen] = {}
  527. let item = this[`fileList${event.name}`][fileListLen]
  528. console.log(item)
  529. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  530. status: 'success',
  531. message: '',
  532. url: result
  533. }))
  534. fileListLen++
  535. this.checkedList=[]
  536. }
  537. console.log(this[`fileList${event.name}`])
  538. },
  539. uploadFilePromise(url) {
  540. console.log(url)
  541. return new Promise((resolve, reject) => {
  542. uploadImage(url, 'cardImages/',
  543. result => {
  544. console.log(result, 22222)
  545. resolve(result)
  546. }
  547. )
  548. })
  549. },
  550. mescrollInit() {
  551. },
  552. downCallback() {
  553. var that = this
  554. this.$nextTick(() => {
  555. // mescroll.endSuccess(data.result);
  556. that.mescroll.resetUpScroll()
  557. });
  558. },
  559. upCallback(page) {
  560. var that = this
  561. uni.showLoading({
  562. title: '数据加载中'
  563. })
  564. this.$request.baseRequest('admin.unimall.certificateManagementInfo', 'list', {
  565. page: page.num,
  566. limit: page.size,
  567. commonId: uni.getStorageSync("userInfo").id
  568. }, failres => {
  569. console.log('res+++++', failres.errmsg)
  570. uni.hideLoading()
  571. uni.showToast({
  572. icon:"none",
  573. title: failres.errmsg,
  574. duration: 3000
  575. });
  576. this.mescroll.endBySize(curPageLen, totalPage)
  577. }).then(res => {
  578. console.log(res)
  579. if (page.num == 1) this.cardList = [];
  580. let curPageLen = res.data.items.length;
  581. let totalPage = res.data.total;
  582. if (res.data.items.length > 0) {
  583. for (var i = 0; i < res.data.items.length; i++) {
  584. res.data.items[i].editstatus = false
  585. res.data.items[i].status = false
  586. if (res.data.items[i].personNo) res.data.items[i].personNo1 = '*' + (res.data.items[i]
  587. .personNo.substring(res.data.items[i].personNo.length - 4))
  588. if (res.data.items[i].bankNo) res.data.items[i].bankNo1 = '*' + (res.data.items[i]
  589. .bankNo.substring(res.data.items[i].bankNo.length - 4))
  590. }
  591. }
  592. this.cardList = this.cardList.concat(res.data.items)
  593. this.cardData.certificateName = '证件' + '-' + (this.cardList.length + 1)
  594. this.$nextTick(() => {
  595. console.log(that)
  596. // mescroll.endSuccess(data.result);
  597. that.mescroll.endBySize(curPageLen, totalPage)
  598. });
  599. // if (res.errno == 200) {
  600. uni.hideLoading()
  601. // }
  602. })
  603. },
  604. }
  605. }
  606. </script>
  607. <style lang="scss" scoped>
  608. button::after {
  609. border: initial;
  610. }
  611. .share {
  612. width: 100%;
  613. height: 100%;
  614. }
  615. .share-box {
  616. width: 100%;
  617. height: 100%;
  618. position: fixed;
  619. top: 0rpx;
  620. left: 0rpx;
  621. bottom: 0rpx;
  622. right: 0rpx;
  623. background-color: rgba(0, 0, 0, 0.4);
  624. transition: .3s;
  625. z-index: 999;
  626. }
  627. .block>button {
  628. display: flex;
  629. flex-direction: column;
  630. justify-content: center;
  631. align-items: center;
  632. background-color: white;
  633. border-style: none;
  634. width: 300rpx;
  635. height: 180rpx;
  636. // outline:none;
  637. // opacity: 0;
  638. }
  639. // 进入分享动画
  640. .share-show {
  641. transition: all 0.3s ease;
  642. transform: translateY(0%) !important;
  643. }
  644. // 离开分享动画
  645. .share-item {
  646. .share-to {
  647. width: 100%;
  648. height: 3rem;
  649. display: flex;
  650. justify-content: center;
  651. align-items: center;
  652. &::after {
  653. content: '';
  654. width: 240rpx;
  655. height: 0rpx;
  656. border-top: 1px solid #E4E7ED;
  657. -webkit-transform: scaleY(0.5);
  658. transform: scaleY(0.5);
  659. margin-left: 30rpx;
  660. }
  661. &::before {
  662. content: '';
  663. width: 240rpx;
  664. height: 0rpx;
  665. border-top: 1px solid #E4E7ED;
  666. -webkit-transform: scaleY(0.5);
  667. transform: scaleY(0.5);
  668. margin-right: 30rpx;
  669. }
  670. }
  671. .content {
  672. width: 100%;
  673. height: auto;
  674. display: flex;
  675. flex-wrap: wrap;
  676. .block {
  677. width: 50%;
  678. display: flex;
  679. flex-direction: column;
  680. justify-content: center;
  681. align-items: center;
  682. height: 180rpx;
  683. image {
  684. width: 80rpx;
  685. height: 80rpx;
  686. }
  687. text {
  688. margin-top: 16rpx;
  689. font-size: 28rpx;
  690. color: #606266;
  691. }
  692. }
  693. }
  694. .cancel {
  695. width: 100%;
  696. height: 3rem;
  697. display: flex;
  698. justify-content: center;
  699. align-items: center;
  700. border-top: 1rpx solid #E4E7ED;
  701. }
  702. }
  703. .content1 {
  704. background-color: #112253;
  705. padding: 20rpx;
  706. box-sizing: border-box;
  707. border-radius: 0px 0px 20rpx 20rpx;
  708. .button {
  709. display: flex;
  710. align-items: center;
  711. justify-content: center;
  712. background: #fff;
  713. color: #333333;
  714. border-radius: 20rpx;
  715. padding:0 24rpx;
  716. height: 70rpx;
  717. width: calc(33% - 60rpx);
  718. font-size:32rpx;
  719. }
  720. .btn-img {
  721. width: 28rpx;
  722. margin-right: 18rpx;
  723. height: auto;
  724. }
  725. }
  726. .content2{
  727. padding:20rpx ;
  728. .bgc{
  729. background: #fff;
  730. width: calc(100vw - 40rpx);
  731. height: 380rpx;
  732. position:relative;
  733. .circle{
  734. position:absolute;
  735. top:50%;
  736. left:50%;
  737. transform: translateX(-50%) translateY(-50%);
  738. width: 74px;
  739. height: 74px;
  740. border-radius: 50%;
  741. background-color: #F7F7F7;
  742. text-align: center;
  743. line-height: 74px;
  744. }
  745. }
  746. .submit{
  747. padding: 10rpx 14rpx;
  748. text-align: center;
  749. background: #112253;
  750. border-radius: 10rpx;
  751. font-size: 28rpx;
  752. font-weight: bold;
  753. color: #FFFFFF;
  754. margin-left: 20rpx;
  755. }
  756. }
  757. .content3{
  758. .row{
  759. padding: 20rpx;
  760. box-sizing: border-box;
  761. .name-text{
  762. font-size: 32rpx;
  763. font-weight: bold;
  764. color: #1A1A1A;
  765. }
  766. }
  767. .edit{
  768. padding: 10rpx 14rpx;
  769. text-align: center;
  770. background: rgba(17, 34, 83, 0.1);
  771. border-radius: 10rpx;
  772. font-size: 28rpx;
  773. font-weight: bold;
  774. color: #FFFFFF;
  775. }
  776. .finished{
  777. padding: 10rpx 14rpx;
  778. text-align: center;
  779. background: #112253;
  780. border-radius: 10rpx;
  781. font-size: 28rpx;
  782. font-weight: bold;
  783. color: #FFFFFF;
  784. }
  785. .row2{
  786. display: flex;
  787. justify-content: center;
  788. position: relative;
  789. .img{
  790. border-radius: 20rpx;
  791. height: 380rpx;
  792. }
  793. .right{
  794. position: absolute;
  795. right: 0;
  796. height: 100%;
  797. right: 10px;
  798. display: flex;
  799. flex-direction: column;
  800. justify-content: space-between;
  801. align-items: center;
  802. padding: 10px 5px;
  803. box-sizing: border-box;
  804. }
  805. /deep/.u-checkbox__icon-wrap{
  806. margin-right: 0!important;
  807. }
  808. }
  809. }
  810. .add-image{
  811. background-color: #fff;
  812. margin-top:10rpx;
  813. border-radius:20rpx;
  814. }
  815. .share-content {
  816. display: flex;
  817. padding: 20rpx;
  818. justify-content: center;
  819. font-size: 24rpx;
  820. button {
  821. background: transparent;
  822. line-height: 1.5;
  823. }
  824. button:after {
  825. border: none;
  826. }
  827. }
  828. .icon-pengyouquan,.icon-weixin{
  829. font-size:50px;
  830. color:#33CC00;
  831. }
  832. /deep/.u-upload
  833. {
  834. .u-upload__deletable {
  835. height:40rpx;
  836. width:40rpx;
  837. line-height:40rpx;
  838. }
  839. .u-upload__deletable__icon{
  840. top:8rpx;
  841. }
  842. .uicon-close{
  843. font-size:20px !important;
  844. }
  845. }
  846. </style>