myCard.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  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. this.$refs.uToast.show({
  261. type: 'error',
  262. message: failres.errmsg,
  263. })
  264. uni.hideLoading()
  265. }).then(res => {
  266. this.$refs.uToast.show({
  267. type: 'success',
  268. message: '编辑成功',
  269. })
  270. this.modalshow = false
  271. this.checkedList = []
  272. uni.hideLoading()
  273. this.mescroll.resetUpScroll()
  274. })
  275. }
  276. } else {
  277. item.editstatus = true
  278. item.certificateName1=item.certificateName
  279. this.fileList2 = [{
  280. url: item.certificateImage
  281. }]
  282. }
  283. },
  284. delConfirm() {
  285. this.$request.baseRequest('admin.unimall.certificateManagementInfo', 'delete', {
  286. id: this.id
  287. }, failres => {
  288. console.log('res+++++', failres.errmsg)
  289. this.$refs.uToast.show({
  290. type: 'error',
  291. message: failres.errmsg,
  292. })
  293. uni.hideLoading()
  294. }).then(res => {
  295. this.$refs.uToast.show({
  296. type: 'success',
  297. message: '删除成功',
  298. })
  299. this.modalshow = false
  300. this.checkedList = []
  301. uni.hideLoading()
  302. this.mescroll.resetUpScroll()
  303. })
  304. },
  305. pickerConfirm(e) {
  306. this.show = false
  307. console.log(e)
  308. uni.showLoading({
  309. title: '数据加载中',
  310. mask: true
  311. })
  312. var type = '',
  313. type1 = ''
  314. this.shibie = e.value[0]
  315. this.shibieList = JSON.parse(JSON.stringify(this.cardList[this.checkedList[0]]))
  316. if (e.value[0] == '识别身份证号') {
  317. type = 'admin.unimall.certificateManagementInfo'
  318. type1 = 'personShibie'
  319. } else if (e.value[0] == '识别银行卡号') {
  320. type = 'admin.unimall.certificateManagementInfo'
  321. type1 = 'bankShibie'
  322. }
  323. this.$request.baseRequest(type, type1, {
  324. certificateImage: this.cardList[this.checkedList[0]].certificateImage
  325. }, failres => {
  326. console.log('res+++++', failres.errmsg)
  327. this.$refs.uToast.show({
  328. type: 'error',
  329. message: failres.errmsg,
  330. })
  331. uni.hideLoading()
  332. }).then(res => {
  333. console.log(res.data)
  334. this.$refs.uToast.show({
  335. type: 'success',
  336. message: '识别成功',
  337. })
  338. uni.hideLoading()
  339. this.credentials = res.data
  340. this.credentialsShow = true
  341. })
  342. },
  343. checkboxChange(e, i) {
  344. console.log(e[0], i)
  345. if (e[0]) {
  346. this.checkedList.push(i)
  347. } else {
  348. var index = this.checkedList.findIndex((item) => {
  349. return item == i
  350. })
  351. this.checkedList.splice(index, 1)
  352. }
  353. // for(var i=0;i<this.cardList.length;i++){
  354. // console.log(this.cardList[i].checked)
  355. // // if(this.cardList[i].checkedList.length>0){
  356. // // this.checkedList.push(i)
  357. // // }
  358. // }
  359. console.log(this.checkedList)
  360. },
  361. share() {
  362. if (this.checkedList.length == 0) {
  363. this.$refs.uToast.show({
  364. type: 'error',
  365. message: '请勾选想要分享的证件!',
  366. })
  367. return
  368. }
  369. var arr=[]
  370. for(var i=0;i<this.cardList.length;i++){
  371. if(this.checkedList.findIndex((item) => {
  372. return item == i
  373. })!=-1){
  374. arr.push(this.cardList[i])
  375. }
  376. }
  377. console.log(arr,111)
  378. uni.setStorageSync('checkedList', JSON.stringify(arr));
  379. this.popupshow = true
  380. },
  381. imageOCR() {
  382. console.log(this.cardList, this.checkedList)
  383. if (this.checkedList.length == 0) {
  384. this.$refs.uToast.show({
  385. type: 'error',
  386. message: '请勾选想要识别的证件!',
  387. })
  388. return
  389. }
  390. if (this.checkedList.length > 1) {
  391. this.$refs.uToast.show({
  392. type: 'error',
  393. message: '一次只能勾选一张证件!',
  394. })
  395. return
  396. }
  397. this.show = true
  398. },
  399. credentialscancel(){
  400. this.credentialsShow = false
  401. this.pickerConfirm({value:[this.shibie]})
  402. },
  403. credentialsConfirm() {
  404. var type = '',
  405. type1 = ''
  406. if (this.shibie == '识别身份证号') {
  407. this.shibieList.personNo = this.credentials.recPersonNo
  408. } else if (this.shibie == '识别银行卡号') {
  409. this.shibieList.bankNo = this.credentials.bankNo
  410. }
  411. // if(this.shibie=='识别身份证号'){
  412. // type='admin.unimall.certificateManagementInfo'
  413. // type1='personShibie'
  414. // }else if(this.shibie=='识别银行卡号'){
  415. // type='admin.unimall.certificateManagementInfo'
  416. // type1='bankShibie'
  417. // }
  418. this.$request.baseRequest('admin.unimall.certificateManagementInfo', 'update', {
  419. certificateManagementInfo: JSON.stringify(this.shibieList)
  420. }, failres => {
  421. console.log('res+++++', failres.errmsg)
  422. this.$refs.uToast.show({
  423. type: 'error',
  424. message: failres.errmsg,
  425. })
  426. uni.hideLoading()
  427. }).then(res => {
  428. this.$refs.uToast.show({
  429. type: 'success',
  430. message: '编辑成功',
  431. })
  432. this.credentialsShow = false
  433. this.checkedList = []
  434. uni.hideLoading()
  435. this.mescroll.resetUpScroll()
  436. })
  437. },
  438. confirm() {
  439. uni.navigateBack()
  440. },
  441. cancel() {
  442. this.modalstatusshow = false
  443. },
  444. leftClick() {
  445. if (this.cardData.certificateImage) {
  446. console.log(22222)
  447. this.modalstatusshow = true
  448. } else {
  449. uni.navigateBack()
  450. }
  451. },
  452. del(item) {
  453. this.modalshow = true
  454. this.id = item.id
  455. },
  456. addclick() {
  457. this.addstatus = true
  458. },
  459. add() {
  460. if (!this.cardData.certificateImage) {
  461. this.$refs.uToast.show({
  462. type: 'error',
  463. message: '请上传证件照片!',
  464. })
  465. return
  466. }
  467. uni.showLoading({
  468. title: '数据加载中'
  469. })
  470. this.$request.baseRequest('admin.unimall.certificateManagementInfo', 'add', {
  471. certificateManagementInfo: JSON.stringify(this.cardData)
  472. }, failres => {
  473. console.log('res+++++', failres.errmsg)
  474. this.$refs.uToast.show({
  475. type: 'error',
  476. message: failres.errmsg,
  477. })
  478. uni.hideLoading()
  479. }).then(res => {
  480. this.$refs.uToast.show({
  481. type: 'success',
  482. message: '提交成功',
  483. })
  484. // if (res.errno == 200) {
  485. uni.hideLoading()
  486. this.fileList1 = []
  487. this.addstatus = false
  488. this.cardData = {
  489. commonId: uni.getStorageSync("userInfo").id
  490. }
  491. this.mescroll.resetUpScroll()
  492. // }
  493. })
  494. },
  495. deletePic(event) {
  496. this[`fileList${event.name}`].splice(event.index, 1)
  497. this.cardData.certificateImage = this[`fileList${event.name}`].toString()
  498. },
  499. // 新增图片
  500. async afterRead(event) {
  501. // 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
  502. let lists = [].concat(event.file)
  503. let fileListLen = this[`fileList${event.name}`].length
  504. lists.map((item) => {
  505. this[`fileList${event.name}`].push({
  506. ...item,
  507. status: 'uploading',
  508. message: '上传中'
  509. })
  510. })
  511. // console.log(event,111111,fileListLen)
  512. for (let i = 0; i < lists.length; i++) {
  513. const result = await this.uploadFilePromise(lists[i].url)
  514. this.cardData.certificateImage = result
  515. this[`fileList${event.name}`][fileListLen] = {}
  516. let item = this[`fileList${event.name}`][fileListLen]
  517. console.log(item)
  518. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  519. status: 'success',
  520. message: '',
  521. url: result
  522. }))
  523. fileListLen++
  524. this.checkedList=[]
  525. }
  526. console.log(this[`fileList${event.name}`])
  527. },
  528. uploadFilePromise(url) {
  529. console.log(url)
  530. return new Promise((resolve, reject) => {
  531. uploadImage(url, 'cardImages/',
  532. result => {
  533. console.log(result, 22222)
  534. resolve(result)
  535. }
  536. )
  537. })
  538. },
  539. mescrollInit() {
  540. },
  541. downCallback() {
  542. var that = this
  543. this.$nextTick(() => {
  544. // mescroll.endSuccess(data.result);
  545. that.mescroll.resetUpScroll()
  546. });
  547. },
  548. upCallback(page) {
  549. var that = this
  550. uni.showLoading({
  551. title: '数据加载中'
  552. })
  553. this.$request.baseRequest('admin.unimall.certificateManagementInfo', 'list', {
  554. page: page.num,
  555. limit: page.size,
  556. commonId: uni.getStorageSync("userInfo").id
  557. }, failres => {
  558. console.log('res+++++', failres.errmsg)
  559. this.$refs.uToast.show({
  560. type: 'error',
  561. message: failres.errmsg,
  562. })
  563. this.mescroll.endBySize(curPageLen, totalPage)
  564. uni.hideLoading()
  565. }).then(res => {
  566. console.log(res)
  567. if (page.num == 1) this.cardList = [];
  568. let curPageLen = res.data.items.length;
  569. let totalPage = res.data.total;
  570. if (res.data.items.length > 0) {
  571. for (var i = 0; i < res.data.items.length; i++) {
  572. res.data.items[i].editstatus = false
  573. res.data.items[i].status = false
  574. if (res.data.items[i].personNo) res.data.items[i].personNo1 = '*' + (res.data.items[i]
  575. .personNo.substring(res.data.items[i].personNo.length - 4))
  576. if (res.data.items[i].bankNo) res.data.items[i].bankNo1 = '*' + (res.data.items[i]
  577. .bankNo.substring(res.data.items[i].bankNo.length - 4))
  578. }
  579. }
  580. this.cardList = this.cardList.concat(res.data.items)
  581. this.cardData.certificateName = '证件' + '-' + (this.cardList.length + 1)
  582. this.$nextTick(() => {
  583. console.log(that)
  584. // mescroll.endSuccess(data.result);
  585. that.mescroll.endBySize(curPageLen, totalPage)
  586. });
  587. // if (res.errno == 200) {
  588. uni.hideLoading()
  589. // }
  590. })
  591. },
  592. }
  593. }
  594. </script>
  595. <style lang="scss" scoped>
  596. button::after {
  597. border: initial;
  598. }
  599. .share {
  600. width: 100%;
  601. height: 100%;
  602. }
  603. .share-box {
  604. width: 100%;
  605. height: 100%;
  606. position: fixed;
  607. top: 0rpx;
  608. left: 0rpx;
  609. bottom: 0rpx;
  610. right: 0rpx;
  611. background-color: rgba(0, 0, 0, 0.4);
  612. transition: .3s;
  613. z-index: 999;
  614. }
  615. .block>button {
  616. display: flex;
  617. flex-direction: column;
  618. justify-content: center;
  619. align-items: center;
  620. background-color: white;
  621. border-style: none;
  622. width: 300rpx;
  623. height: 180rpx;
  624. // outline:none;
  625. // opacity: 0;
  626. }
  627. // 进入分享动画
  628. .share-show {
  629. transition: all 0.3s ease;
  630. transform: translateY(0%) !important;
  631. }
  632. // 离开分享动画
  633. .share-item {
  634. .share-to {
  635. width: 100%;
  636. height: 3rem;
  637. display: flex;
  638. justify-content: center;
  639. align-items: center;
  640. &::after {
  641. content: '';
  642. width: 240rpx;
  643. height: 0rpx;
  644. border-top: 1px solid #E4E7ED;
  645. -webkit-transform: scaleY(0.5);
  646. transform: scaleY(0.5);
  647. margin-left: 30rpx;
  648. }
  649. &::before {
  650. content: '';
  651. width: 240rpx;
  652. height: 0rpx;
  653. border-top: 1px solid #E4E7ED;
  654. -webkit-transform: scaleY(0.5);
  655. transform: scaleY(0.5);
  656. margin-right: 30rpx;
  657. }
  658. }
  659. .content {
  660. width: 100%;
  661. height: auto;
  662. display: flex;
  663. flex-wrap: wrap;
  664. .block {
  665. width: 50%;
  666. display: flex;
  667. flex-direction: column;
  668. justify-content: center;
  669. align-items: center;
  670. height: 180rpx;
  671. image {
  672. width: 80rpx;
  673. height: 80rpx;
  674. }
  675. text {
  676. margin-top: 16rpx;
  677. font-size: 28rpx;
  678. color: #606266;
  679. }
  680. }
  681. }
  682. .cancel {
  683. width: 100%;
  684. height: 3rem;
  685. display: flex;
  686. justify-content: center;
  687. align-items: center;
  688. border-top: 1rpx solid #E4E7ED;
  689. }
  690. }
  691. .content1 {
  692. background-color: #112253;
  693. padding: 20rpx;
  694. box-sizing: border-box;
  695. border-radius: 0px 0px 20rpx 20rpx;
  696. .button {
  697. display: flex;
  698. align-items: center;
  699. justify-content: center;
  700. background: #fff;
  701. color: #333333;
  702. border-radius: 20rpx;
  703. padding:0 24rpx;
  704. height: 70rpx;
  705. width: calc(33% - 60rpx);
  706. font-size:32rpx;
  707. }
  708. .btn-img {
  709. width: 28rpx;
  710. margin-right: 18rpx;
  711. height: auto;
  712. }
  713. }
  714. .content2{
  715. padding:20rpx ;
  716. .bgc{
  717. background: #fff;
  718. width: calc(100vw - 40rpx);
  719. height: 380rpx;
  720. position:relative;
  721. .circle{
  722. position:absolute;
  723. top:50%;
  724. left:50%;
  725. transform: translateX(-50%) translateY(-50%);
  726. width: 74px;
  727. height: 74px;
  728. border-radius: 50%;
  729. background-color: #F7F7F7;
  730. text-align: center;
  731. line-height: 74px;
  732. }
  733. }
  734. .submit{
  735. padding: 10rpx 14rpx;
  736. text-align: center;
  737. background: #112253;
  738. border-radius: 10rpx;
  739. font-size: 28rpx;
  740. font-weight: bold;
  741. color: #FFFFFF;
  742. margin-left: 20rpx;
  743. }
  744. }
  745. .content3{
  746. .row{
  747. padding: 20rpx;
  748. box-sizing: border-box;
  749. .name-text{
  750. font-size: 32rpx;
  751. font-weight: bold;
  752. color: #1A1A1A;
  753. }
  754. }
  755. .edit{
  756. padding: 10rpx 14rpx;
  757. text-align: center;
  758. background: rgba(17, 34, 83, 0.1);
  759. border-radius: 10rpx;
  760. font-size: 28rpx;
  761. font-weight: bold;
  762. color: #FFFFFF;
  763. }
  764. .finished{
  765. padding: 10rpx 14rpx;
  766. text-align: center;
  767. background: #112253;
  768. border-radius: 10rpx;
  769. font-size: 28rpx;
  770. font-weight: bold;
  771. color: #FFFFFF;
  772. }
  773. .row2{
  774. display: flex;
  775. justify-content: center;
  776. position: relative;
  777. .img{
  778. border-radius: 20rpx;
  779. height: 380rpx;
  780. }
  781. .right{
  782. position: absolute;
  783. right: 0;
  784. height: 100%;
  785. right: 10px;
  786. display: flex;
  787. flex-direction: column;
  788. justify-content: space-between;
  789. align-items: center;
  790. padding: 10px 5px;
  791. box-sizing: border-box;
  792. }
  793. /deep/.u-checkbox__icon-wrap{
  794. margin-right: 0!important;
  795. }
  796. }
  797. }
  798. .add-image{
  799. background-color: #fff;
  800. margin-top:10rpx;
  801. border-radius:20rpx;
  802. }
  803. .share-content {
  804. display: flex;
  805. padding: 20rpx;
  806. justify-content: center;
  807. font-size: 24rpx;
  808. button {
  809. background: transparent;
  810. line-height: 1.5;
  811. }
  812. button:after {
  813. border: none;
  814. }
  815. }
  816. .icon-pengyouquan,.icon-weixin{
  817. font-size:50px;
  818. color:#33CC00;
  819. }
  820. /deep/.u-upload
  821. {
  822. .u-upload__deletable {
  823. height:40rpx;
  824. width:40rpx;
  825. line-height:40rpx;
  826. }
  827. .u-upload__deletable__icon{
  828. top:8rpx;
  829. }
  830. .uicon-close{
  831. font-size:20px !important;
  832. }
  833. }
  834. </style>