myCard.vue 20 KB

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