myCard.vue 23 KB

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