editCard.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  1. <template>
  2. <view class="content">
  3. <view class="content1 relative">
  4. <view class="relative">
  5. <image :src="imgList[selectIndex].dictLabel" mode="widthFix" style="width: 100%;height: auto;"></image>
  6. </view>
  7. <view class="absolute card-content style1" v-if="imgList[layoutSelectIndex].dictSort==1">
  8. <view class="left">
  9. <u--image :showLoading="true" :src="cardInfo.headSculpture" width="66px" height="66px"
  10. shape="circle" v-if="cardInfo.headSculpture"></u--image>
  11. <u--image :showLoading="true" src="/static/imgs/card/defaulthead.png" width="66px" height="66px"
  12. shape="circle" v-else></u--image>
  13. </view>
  14. <view class="right">
  15. <view class="row1">
  16. <text class="name">{{cardInfo.name}}</text>
  17. <text class="post">{{cardInfo.post}}</text>
  18. </view>
  19. <view class="row2">
  20. {{cardInfo.companyName}}
  21. </view>
  22. <view class="row3 flex">
  23. <u--image
  24. :src="'/static/imgs/card/address'+colorList[colorSelectIndex].index+'.png'" width="13px"
  25. height="16px"></u--image>
  26. <view class='icon-text'>
  27. {{ cardInfo.province?cardInfo.province:'-' }}{{ cardInfo.city }}{{ cardInfo.area }}</view>
  28. </view>
  29. <view class="row4 flex">
  30. <u--image
  31. :src="'/static/imgs/card/phone'+colorList[colorSelectIndex].index+'.png'" width="12px"
  32. height="13px"></u--image>
  33. <view class='icon-text'>{{ cardInfo.phone?cardInfo.phone:'-' }}</view>
  34. </view>
  35. <view class="row4 flex">
  36. <u--image
  37. :src="'/static/imgs/card/remark'+colorList[colorSelectIndex].index+'.png'" width="10px"
  38. height="12px"></u--image>
  39. <view class='icon-text'>{{cardInfo.remark?cardInfo.remark:'-'}}</view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="absolute card-content style1 flex-between" v-if="imgList[layoutSelectIndex].dictSort==2">
  44. <view class="right">
  45. <view class="row1">
  46. <text class="name">{{cardInfo.name}}</text>
  47. <text class="post">{{cardInfo.post}}</text>
  48. </view>
  49. <view class="row2">
  50. {{cardInfo.companyName}}
  51. </view>
  52. <view class="row3 flex">
  53. <u--image
  54. :src="'/static/imgs/card/address'+colorList[colorSelectIndex].index+'.png'" width="13px"
  55. height="16px"></u--image>
  56. <view class='icon-text'>
  57. {{ cardInfo.province?cardInfo.province:'-' }}{{ cardInfo.city }}{{ cardInfo.area }}</view>
  58. </view>
  59. <view class="row4 flex">
  60. <u--image
  61. :src="'/static/imgs/card/phone'+colorList[colorSelectIndex].index+'.png'" width="12px"
  62. height="13px"></u--image>
  63. <view class='icon-text'>{{ cardInfo.phone?cardInfo.phone:'-' }}</view>
  64. </view>
  65. <view class="row4 flex">
  66. <u--image
  67. :src="'/static/imgs/card/remark'+colorList[colorSelectIndex].index+'.png'" width="10px"
  68. height="12px"></u--image>
  69. <view class='icon-text'>{{cardInfo.remark?cardInfo.remark:'-'}}</view>
  70. </view>
  71. </view>
  72. <view class="left">
  73. <u--image :showLoading="true" :src="cardInfo.headSculpture" width="66px" height="66px"
  74. shape="circle" v-if="cardInfo.headSculpture"></u--image>
  75. <u--image :showLoading="true" src="/static/imgs/card/defaulthead.png" width="66px" height="66px"
  76. shape="circle" v-else></u--image>
  77. </view>
  78. </view>
  79. <view class="absolute card-content style2" v-if="imgList[layoutSelectIndex].dictSort==3">
  80. <view class="top">
  81. <u--image :showLoading="true" :src="cardInfo.headSculpture" width="66px" height="66px"
  82. shape="circle" v-if="cardInfo.headSculpture"></u--image>
  83. <u--image :showLoading="true" src="/static/imgs/card/defaulthead.png" width="66px" height="66px"
  84. shape="circle" v-else></u--image>
  85. </view>
  86. <view class="bottom flex">
  87. <view class="left">
  88. <view class="row1">
  89. <text class="name">{{cardInfo.name}}</text>
  90. <text class="post">{{cardInfo.post}}</text>
  91. </view>
  92. <view class="row2">
  93. {{cardInfo.companyName}}
  94. </view>
  95. </view>
  96. <view class="right">
  97. <view class="row1 flex">
  98. <u--image
  99. :src="'/static/imgs/card/address'+colorList[colorSelectIndex].index+'.png'" width="13px"
  100. height="16px"></u--image>
  101. <view class='icon-text'>
  102. {{ cardInfo.province?cardInfo.province:'-' }}{{ cardInfo.city }}{{ cardInfo.area }}
  103. </view>
  104. </view>
  105. <view class="row2 flex">
  106. <u--image
  107. :src="'/static/imgs/card/phone'+colorList[colorSelectIndex].index+'.png'" width="12px"
  108. height="13px"></u--image>
  109. <view class='icon-text'>{{ cardInfo.phone?cardInfo.phone:'-' }}</view>
  110. </view>
  111. <view class="row4 flex">
  112. <u--image
  113. :src="'/static/imgs/card/remark'+colorList[colorSelectIndex].index+'.png'" width="10px"
  114. height="12px"></u--image>
  115. <view class='icon-text'>{{cardInfo.remark?cardInfo.remark:'-'}}</view>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <view class="absolute card-content style2" v-if="imgList[layoutSelectIndex].dictSort==4">
  121. <view class="top">
  122. <view class="row1">
  123. <text class="name">{{cardInfo.name}}</text>
  124. <text class="post">{{cardInfo.post}}</text>
  125. </view>
  126. <view class="row2">
  127. {{cardInfo.companyName}}
  128. </view>
  129. </view>
  130. <view class="bottom flex">
  131. <view class="left">
  132. <u--image :showLoading="true" :src="cardInfo.headSculpture" width="66px" height="66px"
  133. shape="circle" v-if="cardInfo.headSculpture"></u--image>
  134. <u--image :showLoading="true" src="/static/imgs/card/defaulthead.png" width="66px" height="66px"
  135. shape="circle" v-else></u--image>
  136. </view>
  137. <view class="right">
  138. <view class="row1 flex">
  139. <u--image
  140. :src="'/static/imgs/card/address'+colorList[colorSelectIndex].index+'.png'" width="13px"
  141. height="16px"></u--image>
  142. <view class='icon-text'>
  143. {{ cardInfo.province?cardInfo.province:'-' }}{{ cardInfo.city }}{{ cardInfo.area }}
  144. </view>
  145. </view>
  146. <view class="row2 flex">
  147. <u--image
  148. :src="'/static/imgs/card/phone'+colorList[colorSelectIndex].index+'.png'" width="12px"
  149. height="13px"></u--image>
  150. <view class='icon-text'>{{ cardInfo.phone?cardInfo.phone:'-' }}</view>
  151. </view>
  152. <view class="row4 flex">
  153. <u--image
  154. :src="'/static/imgs/card/remark'+colorList[colorSelectIndex].index+'.png'" width="10px"
  155. height="12px"></u--image>
  156. <view class='icon-text'>{{cardInfo.remark?cardInfo.remark:'-'}}</view>
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. <view class="flex">
  163. <view class="change-template" :class="selectConfig==1?'active-style':''" @click="changeTab(1)">
  164. 背景配置
  165. </view>
  166. <view class="change-template" :class="selectConfig==2?'active-style':''" @click="changeTab(2)">
  167. 图标颜色
  168. </view>
  169. <view class="change-template" :class="selectConfig==3?'active-style':''" @click="changeTab(3)">
  170. 布局配置
  171. </view>
  172. </view>
  173. <view class="img-list" v-if="selectConfig==1">
  174. <view class="img-item" v-for="(item,index) in imgList" @click="changeTemplate(index)">
  175. <image :src="item.dictValue" class="img-item" :key="index"></image>
  176. <image src="@/static/imgs/card/dh.png" class="dh" v-if="selectIndex==index"></image>
  177. </view>
  178. </view>
  179. <view class="font-color flex" v-if="selectConfig==2">
  180. <view v-for="(item,index) in colorList"
  181. :style="'background:'+item.color+';width:100rpx;height:100rpx;border-radius:50%;margin-right:20rpx'"
  182. class="relative" @click="changeIconColor(index)">
  183. <image src="@/static/imgs/card/dh.png" class="icon-dh" v-if="colorSelectIndex==index"></image>
  184. </view>
  185. </view>
  186. <view class="font-color img-list" v-if="selectConfig==3">
  187. <view class="img-item" v-for="(item,index) in layoutImgList" @click="layoutChangeTemplate(index)">
  188. <image :src="item.dictValue" class="img-item" :key="index"></image>
  189. <image src="@/static/imgs/card/dh.png" class="dh" v-if="layoutSelectIndex==index"></image>
  190. </view>
  191. </view>
  192. <view class="change-template">
  193. 名片信息
  194. </view>
  195. <view class="content2">
  196. <view class="flex flex-between align-item-center row">
  197. <view class="left">
  198. 名片标识
  199. </view>
  200. <u--input v-model="cardInfo.cardBusiness" border="none" placeholder="输入名片标识"
  201. inputAlign='right'></u--input>
  202. </view>
  203. <view class="flex flex-between align-item-center row">
  204. <view class="left">
  205. 姓名
  206. </view>
  207. <u--input v-model="cardInfo.name" border="none" placeholder="输入姓名" inputAlign='right'></u--input>
  208. </view>
  209. <view class="flex flex-between align-item-center row">
  210. <view class="left">
  211. 职务
  212. </view>
  213. <u--input v-model="cardInfo.post" border="none" placeholder="输入职务,不超过8个字符"
  214. inputAlign='right'></u--input>
  215. </view>
  216. <view class="flex flex-between align-item-center row">
  217. <view class="left">
  218. 公司/机构名称
  219. </view>
  220. <u--input v-model="cardInfo.companyName" border="none" placeholder="输入公司/机构名称"
  221. inputAlign='right'></u--input>
  222. </view>
  223. <view class="flex flex-between align-item-center row" @click="placeSelect();hideKeyboard()">
  224. <view class="left">
  225. 地址
  226. </view>
  227. <view v-if="cardInfo.province">{{ cardInfo.province }}{{ cardInfo.city }}{{ cardInfo.area }}</view>
  228. <view class="" v-else>
  229. <text>选择地址 </text>
  230. <image src="@/static/imgs/card/yjt.png" mode=""
  231. style="margin-left:10rpx;width:12rpx;height: 21rpx;"></image>
  232. </view>
  233. </view>
  234. <view class="flex flex-between align-item-center row">
  235. <view class="left">
  236. 详细地址
  237. </view>
  238. <u--input v-model="cardInfo.detailedAddress" border="none" placeholder="输入详细地址,不超过15个字"
  239. inputAlign='right'></u--input>
  240. </view>
  241. <view class="flex flex-between align-item-center row">
  242. <view class="left">
  243. 联系电话
  244. </view>
  245. <u--input v-model="cardInfo.phone" maxlength='15' border="none" placeholder="输入联系电话"
  246. inputAlign='right'></u--input>
  247. </view>
  248. <!-- <u-form-item label="地址" prop="userInfo.name" borderBottom>
  249. <view @click="showPicker">选择地址</view>
  250. <view>{{ province }}{{ city }}{{ area }}</view>
  251. </u-form-item> -->
  252. <view class="flex flex-between align-item-center row">
  253. <view class="left">
  254. 上传企业logo或个人头像
  255. </view>
  256. <view class="right">
  257. <u-upload :fileList="fileList1" @afterRead="afterRead" @delete="deletePic" name="1" multiple
  258. :maxCount="1"></u-upload>
  259. </view>
  260. </view>
  261. </view>
  262. <view class="bottom">
  263. <button @click='$u.debounce(submit, 500)' class='button' type="default">提交</button>
  264. </view>
  265. <city-picker ref="picker" mode="multiSelector" :list="areaData" :level="3" @confirm="finishSelectAddress">
  266. </city-picker>
  267. <u-modal :show="isSubmit" :content='content' @confirm="$u.debounce(confirmSubmit, 500)" showCancelButton
  268. @cancel="isSubmit=false" @close="isSubmit=false" closeOnClickOverlay></u-modal>
  269. <u-toast ref="uToast"></u-toast>
  270. </view>
  271. </template>
  272. <script>
  273. var that;
  274. import uploadImage from '@/components/ossutil/uploadFile.js';
  275. export default {
  276. onLoad(options) {
  277. that = this
  278. this.userInfo = uni.getStorageSync("userInfo")
  279. this.cardInfo = JSON.parse(options.itemVal)
  280. // this.cardInfo.cardBusiness ="名片标识"+ options.cardIndex
  281. this.fileList1 = [
  282. {
  283. url:this.cardInfo.headSculpture
  284. }
  285. ]
  286. that = this
  287. this.getList()
  288. },
  289. data() {
  290. return {
  291. layoutSelectIndex: 0,
  292. layoutImgList: [{
  293. dictValue: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/muban3.png',
  294. dictSort: 1
  295. },
  296. {
  297. dictValue: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/muban2.png',
  298. dictSort: 2
  299. },
  300. // {
  301. // dictValue: '/static/imgs/card/3.png',
  302. // dictSort: 3
  303. // },
  304. {
  305. dictValue: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/muban1.png',
  306. dictSort: 4
  307. }
  308. ],
  309. colorSelectIndex: 0,
  310. colorList: [{
  311. "color": "rgba(196, 196, 196, 1)",
  312. index: 1
  313. },
  314. {
  315. "color": "rgba(96, 148, 196, 1)",
  316. index: 2
  317. },
  318. {
  319. "color": "rgba(168, 135, 98, 1)",
  320. index: 3
  321. }
  322. ],
  323. selectConfig: 1,
  324. selectIndex: 0,
  325. imgList: [],
  326. isSubmit: false,
  327. content: '确定提交名片信息?',
  328. userInfo: {},
  329. fileList1: [],
  330. cardInfo: {
  331. city: '',
  332. area: '',
  333. province: '',
  334. commonId: '',
  335. cardBusiness: '',
  336. name: '',
  337. post: '',
  338. companyName: '',
  339. location: '',
  340. detailedAddress: '',
  341. phone: '',
  342. headSculpture: '',
  343. currentBackground: '',
  344. cuttentTemplate: '',
  345. icon: '',
  346. }
  347. };
  348. },
  349. methods: {
  350. layoutChangeTemplate(index) {
  351. this.layoutSelectIndex = index
  352. this.cardInfo.cuttentTemplate = this.layoutImgList[index].dictSort
  353. },
  354. changeIconColor(index) {
  355. this.colorSelectIndex = index
  356. this.cardInfo.icon = this.colorList[index].index
  357. },
  358. changeTab(index) {
  359. this.selectConfig = index
  360. },
  361. changeTemplate(index) {
  362. this.selectIndex = index
  363. this.cardInfo.currentBackground = this.imgList[index].dictLabel
  364. },
  365. getList() {
  366. this.$request.baseRequest('admin.dictData', 'list', {
  367. dictType: "card_template"
  368. }, failres => {
  369. console.log('res+++++', failres.errmsg)
  370. uni.hideLoading()
  371. uni.showToast({
  372. icon: "none",
  373. title: failres.errmsg,
  374. duration: 3000
  375. });
  376. }).then(res => {
  377. console.log("img", res)
  378. this.imgList = res.data.items
  379. for(var i=0;i<this.imgList.length;i++){
  380. if(this.cardInfo.currentBackground==this.imgList[i].dictLabel){
  381. this.selectIndex=i
  382. }
  383. }
  384. for(var i=0;i<this.layoutImgList.length;i++){
  385. if(this.cardInfo.cuttentTemplate==this.layoutImgList[i].dictSort){
  386. this.layoutSelectIndex=i
  387. }
  388. }
  389. for(var i=0;i<this.colorList.length;i++){
  390. if(this.cardInfo.icon==this.colorList[i].index){
  391. this.colorSelectIndex=i
  392. }
  393. }
  394. })
  395. },
  396. placeSelect() {
  397. uni.chooseLocation({
  398. success: function(res) {
  399. console.log(res);
  400. that.cardInfo.location = res.latitude + ',' + res.longitude
  401. let _address = that.$helper.formatLocation(res.address)
  402. that.cardInfo.province = _address.Province
  403. that.cardInfo.city = _address.City
  404. that.cardInfo.area = _address.Country
  405. that.cardInfo.detailedAddress = _address.Village
  406. }
  407. });
  408. },
  409. hideKeyboard() {
  410. uni.hideKeyboard()
  411. },
  412. // 删除图片
  413. deletePic(event) {
  414. this[`fileList${event.name}`].splice(event.index, 1)
  415. },
  416. // 新增图片
  417. async afterRead(event) {
  418. // 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
  419. let lists = [].concat(event.file)
  420. let fileListLen = this[`fileList${event.name}`].length
  421. lists.map((item) => {
  422. this[`fileList${event.name}`].push({
  423. ...item,
  424. status: 'uploading',
  425. message: '上传中'
  426. })
  427. })
  428. for (let i = 0; i < lists.length; i++) {
  429. const result = await this.uploadFilePromise(lists[i].url)
  430. let item = this[`fileList${event.name}`][fileListLen]
  431. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  432. status: 'success',
  433. message: '',
  434. url: result
  435. }))
  436. fileListLen++
  437. }
  438. },
  439. uploadFilePromise(res) {
  440. return new Promise((resolve, reject) => {
  441. uploadImage(res, 'cardImages/',
  442. result => {
  443. that.cardInfo.headSculpture = result
  444. resolve(res)
  445. }
  446. )
  447. })
  448. },
  449. confirmSubmit() {
  450. uni.showLoading({
  451. title: '加载中',
  452. mask: true
  453. })
  454. this.$request.baseRequest('admin.unimall.cardManagementInfo', 'update', {
  455. cardManagementInfo: JSON.stringify(this.cardInfo)
  456. }, failres => {
  457. uni.showToast({
  458. icon: "none",
  459. title: failres.errmsg,
  460. duration: 3000
  461. });
  462. uni.hideLoading()
  463. }).then(res => {
  464. this.isSubmit = false
  465. uni.showToast({
  466. icon: "success",
  467. title: '编辑成功!',
  468. duration: 2000
  469. });
  470. uni.navigateBack()
  471. })
  472. },
  473. submit() {
  474. this.isSubmit = true
  475. }
  476. }
  477. }
  478. </script>
  479. <style lang="scss" scoped>
  480. .content {
  481. padding: 20rpx;
  482. }
  483. .bgc0 {
  484. background: url('https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/bgc1.png') no-repeat center;
  485. height: 380rpx;
  486. border-radius: 20rpx;
  487. }
  488. .bgc1 {
  489. background: url('https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/bgc2.png') no-repeat center;
  490. height: 380rpx;
  491. border-radius: 20rpx;
  492. }
  493. .bgc2 {
  494. background: url('https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/bgc3.png') no-repeat center;
  495. height: 380rpx;
  496. border-radius: 20rpx;
  497. }
  498. .bgc3 {
  499. background: url('https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/bgc4.png') no-repeat center;
  500. height: 380rpx;
  501. border-radius: 20rpx;
  502. }
  503. .bgc4 {
  504. background: url('https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/bgc5.png') no-repeat center;
  505. height: 380rpx;
  506. border-radius: 20rpx;
  507. }
  508. .img {
  509. width: 100rpx;
  510. }
  511. .change-template {
  512. margin: 30rpx 0 50rpx 0;
  513. font-size: 32rpx;
  514. font-weight: bold;
  515. color: #19191A;
  516. margin-right: 20rpx;
  517. }
  518. .img-list {
  519. display: block;
  520. white-space: nowrap;
  521. overflow-x: auto;
  522. .dh {
  523. width: 32rpx;
  524. height: 32rpx;
  525. position: absolute;
  526. right: 8rpx;
  527. bottom: 8rpx;
  528. }
  529. .img-item {
  530. position: relative;
  531. width: 186rpx;
  532. height: 120rpx;
  533. display: inline-block;
  534. margin-right: 2 0rpx;
  535. border-radius: 20rpx;
  536. margin-right: 20rpx;
  537. }
  538. }
  539. .content2 {
  540. background-color: #fff;
  541. border-radius: 20rpx;
  542. padding: 0 20rpx 0 20rpx;
  543. .row {
  544. padding: 20rpx;
  545. border-bottom: 1px solid #E6E5E5;
  546. }
  547. }
  548. .button {
  549. color: #fff;
  550. background-color: #112253;
  551. border-radius: 20rpx;
  552. margin: 40rpx 0;
  553. }
  554. .card-content {
  555. top: 20rpx;
  556. left: 20rpx;
  557. }
  558. .content1 {
  559. .icon-text {
  560. margin-left: 10rpx;
  561. }
  562. .style1 {
  563. display: flex;
  564. padding: 20rpx 30rpx;
  565. width: 85%;
  566. .left {
  567. width: 132rpx;
  568. height: 132rpx;
  569. border-radius: 50%;
  570. }
  571. .right {
  572. margin-left: 40rpx;
  573. .row1 {
  574. .name {
  575. font-size: 38rpx;
  576. font-weight: bold;
  577. color: #040000;
  578. margin-right: 20rpx;
  579. }
  580. .post {
  581. font-size: 26rpx;
  582. font-weight: 500;
  583. color: #666666;
  584. }
  585. }
  586. .row2 {
  587. margin-top: 20rpx;
  588. font-size: 24rpx;
  589. font-weight: bold;
  590. color: #323333;
  591. }
  592. .row3 {
  593. margin-top: 30rpx;
  594. font-size: 24rpx;
  595. font-weight: 500;
  596. color: #323333;
  597. }
  598. .row2,
  599. .row3,
  600. .row4 {
  601. margin-top: 20rpx;
  602. }
  603. }
  604. }
  605. .style2 {
  606. padding: 30rpx;
  607. .top {
  608. .row1 {
  609. .name {
  610. font-size: 38rpx;
  611. font-weight: bold;
  612. color: #040000;
  613. margin-right: 20rpx;
  614. }
  615. .post {
  616. font-size: 26rpx;
  617. font-weight: 500;
  618. color: #666666;
  619. }
  620. }
  621. .row2 {
  622. margin-top: 20rpx;
  623. font-size: 24rpx;
  624. font-weight: bold;
  625. color: #323333;
  626. }
  627. }
  628. .bottom {
  629. margin-top: 48rpx;
  630. .left {
  631. margin-right: 40rpx;
  632. .row1 {
  633. .name {
  634. font-size: 38rpx;
  635. font-weight: bold;
  636. color: #040000;
  637. margin-right: 20rpx;
  638. }
  639. .post {
  640. font-size: 26rpx;
  641. font-weight: 500;
  642. color: #666666;
  643. }
  644. }
  645. .row2 {
  646. margin-top: 20rpx;
  647. font-size: 24rpx;
  648. font-weight: bold;
  649. color: #323333;
  650. }
  651. }
  652. .right {
  653. .row1,
  654. .row2 {
  655. font-size: 24rpx;
  656. font-weight: 500;
  657. color: #323333;
  658. }
  659. .row2,
  660. .row3,
  661. .row4 {
  662. margin-top: 20rpx;
  663. }
  664. }
  665. }
  666. }
  667. }
  668. .content2 {
  669. .left {
  670. margin-right: 10rpx;
  671. }
  672. }
  673. .active-style {
  674. color: '#112253';
  675. font-size: 36rpx;
  676. font-weight: bold;
  677. position: relative;
  678. }
  679. .active-style::after {
  680. position: absolute;
  681. bottom: -20rpx;
  682. content: "";
  683. width: 70rpx;
  684. height: 8rpx;
  685. border-radius: 4rpx;
  686. background: #112253;
  687. left: 0;
  688. right: 0;
  689. margin: auto;
  690. }
  691. .font-color {
  692. position: relative;
  693. }
  694. .icon-dh {
  695. width: 32rpx;
  696. height: 32rpx;
  697. position: absolute;
  698. right: 20rpx;
  699. bottom: 20rpx;
  700. }
  701. </style>