newCard.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791
  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 :showLoading="true"
  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 :showLoading="true"
  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 :showLoading="true"
  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 :showLoading="true"
  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 :showLoading="true"
  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 :showLoading="true"
  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 :showLoading="true"
  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 :showLoading="true"
  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 :showLoading="true"
  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 :showLoading="true"
  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 :showLoading="true"
  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 :showLoading="true"
  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() {
  277. that = this
  278. this.userInfo = uni.getStorageSync("userInfo")
  279. this.cardInfo.commonId = this.userInfo.id
  280. this.getList()
  281. },
  282. data() {
  283. return {
  284. layoutSelectIndex: 0,
  285. layoutImgList: [{
  286. dictValue: '/static/imgs/card/1.png',
  287. dictSort: 1
  288. },
  289. {
  290. dictValue: '/static/imgs/card/2.png',
  291. dictSort: 2
  292. },
  293. {
  294. dictValue: '/static/imgs/card/3.png',
  295. dictSort: 3
  296. },
  297. {
  298. dictValue: '/static/imgs/card/4.png',
  299. dictSort: 4
  300. }
  301. ],
  302. colorSelectIndex: 0,
  303. colorList: [{
  304. "color": "rgba(196, 196, 196, 1)",
  305. index: 1
  306. },
  307. {
  308. "color": "rgba(96, 148, 196, 1)",
  309. index: 2
  310. },
  311. {
  312. "color": "rgba(168, 135, 98, 1)",
  313. index: 3
  314. }
  315. ],
  316. selectConfig: 1,
  317. selectIndex: 0,
  318. imgList: [],
  319. // imgList: [{
  320. // dictLabel: '/./../static/1.jpg',
  321. // dictValue: '/./../static/1.jpg'
  322. // },
  323. // {
  324. // dictLabel: '/./../static/2.jpg',
  325. // dictValue: '/./../static/2.jpg'
  326. // },
  327. // {
  328. // dictLabel: '/./../static/3.jpg',
  329. // dictValue: '/./../static/3.jpg'
  330. // }, {
  331. // dictLabel: '/./../static/4.jpg',
  332. // dictValue: '/./../static/4.jpg'
  333. // }, {
  334. // dictLabel: '/./../static/5.jpg',
  335. // dictValue: '/./../static/5.jpg'
  336. // }
  337. // ],
  338. isSubmit: false,
  339. content: '确定提交名片信息?',
  340. userInfo: {},
  341. fileList1: [],
  342. cardInfo: {
  343. city: '',
  344. area: '',
  345. province: '',
  346. commonId: '',
  347. cardBusiness: '名片标识',
  348. name: '',
  349. post: '',
  350. companyName: '',
  351. location: '',
  352. detailedAddress: '',
  353. phone: '',
  354. headSculpture: '',
  355. currentBackground: '',
  356. cuttentTemplate: '',
  357. icon: '',
  358. }
  359. };
  360. },
  361. methods: {
  362. layoutChangeTemplate(index) {
  363. this.layoutSelectIndex = index
  364. this.cardInfo.cuttentTemplate = this.layoutImgList[index].dictSort
  365. },
  366. changeIconColor(index) {
  367. this.colorSelectIndex = index
  368. this.cardInfo.icon = this.colorList[index].index
  369. },
  370. changeTab(index) {
  371. this.selectConfig = index
  372. },
  373. changeTemplate(index) {
  374. this.selectIndex = index
  375. this.cardInfo.currentBackground = this.imgList[index].dictLabel
  376. },
  377. getList() {
  378. this.$request.baseRequest('admin.dictData', 'list', {
  379. dictType: "card_template"
  380. }, failres => {
  381. console.log('res+++++', failres.errmsg)
  382. uni.hideLoading()
  383. uni.showToast({
  384. icon: "none",
  385. title: failres.errmsg,
  386. duration: 3000
  387. });
  388. }).then(res => {
  389. console.log("img", res)
  390. this.imgList = res.data.items
  391. if (!this.cardInfo.currentBackground) {
  392. this.cardInfo.currentBackground = this.imgList[0].dictLabel
  393. }
  394. if (!this.cardInfo.cuttentTemplate) {
  395. this.cardInfo.cuttentTemplate = this.layoutImgList[0].dictSort
  396. }
  397. if (!this.cardInfo.icon) {
  398. this.cardInfo.icon = this.colorList[0].index
  399. }
  400. })
  401. },
  402. placeSelect() {
  403. uni.chooseLocation({
  404. success: function(res) {
  405. console.log(res);
  406. that.cardInfo.location = res.latitude + ',' + res.longitude
  407. let _address = that.$helper.formatLocation(res.address)
  408. that.cardInfo.province = _address.Province
  409. that.cardInfo.city = _address.City
  410. that.cardInfo.area = _address.Country
  411. that.cardInfo.detailedAddress = _address.Village
  412. }
  413. });
  414. },
  415. hideKeyboard() {
  416. uni.hideKeyboard()
  417. },
  418. // 删除图片
  419. deletePic(event) {
  420. this[`fileList${event.name}`].splice(event.index, 1)
  421. },
  422. // 新增图片
  423. async afterRead(event) {
  424. // 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
  425. let lists = [].concat(event.file)
  426. let fileListLen = this[`fileList${event.name}`].length
  427. lists.map((item) => {
  428. this[`fileList${event.name}`].push({
  429. ...item,
  430. status: 'uploading',
  431. message: '上传中'
  432. })
  433. })
  434. for (let i = 0; i < lists.length; i++) {
  435. const result = await this.uploadFilePromise(lists[i].url)
  436. let item = this[`fileList${event.name}`][fileListLen]
  437. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  438. status: 'success',
  439. message: '',
  440. url: result
  441. }))
  442. fileListLen++
  443. }
  444. },
  445. uploadFilePromise(res) {
  446. return new Promise((resolve, reject) => {
  447. uploadImage(res, 'cardImages/',
  448. result => {
  449. that.cardInfo.headSculpture = result
  450. resolve(res)
  451. }
  452. )
  453. })
  454. },
  455. confirmSubmit() {
  456. uni.showLoading({
  457. title: '加载中',
  458. mask: true
  459. })
  460. this.$request.baseRequest('admin.unimall.cardManagementInfo', 'add', {
  461. cardManagementInfo: JSON.stringify(this.cardInfo)
  462. }, failres => {
  463. uni.showToast({
  464. icon: "none",
  465. title: failres.errmsg,
  466. duration: 3000
  467. });
  468. uni.hideLoading()
  469. }).then(res => {
  470. this.isSubmit = false
  471. uni.showToast({
  472. icon: "success",
  473. title: '保存成功!',
  474. duration: 2000
  475. });
  476. this.$request.baseRequest('admin.unimall.personalHomepageInfo', 'list', {
  477. page: 1,
  478. limit: 10,
  479. commonId: uni.getStorageSync("userInfo").id
  480. }, failres => {
  481. console.log('res+++++', failres.errmsg)
  482. uni.hideLoading()
  483. uni.showToast({
  484. icon: "none",
  485. title: failres.errmsg,
  486. duration: 3000
  487. });
  488. }).then(res => {
  489. if (res.data.items.length > 0) {
  490. uni.navigateBack()
  491. } else {
  492. uni.navigateTo({
  493. url: '/pages/mySet/myHome'
  494. })
  495. }
  496. })
  497. })
  498. },
  499. submit() {
  500. this.isSubmit = true
  501. }
  502. }
  503. }
  504. </script>
  505. <style lang="scss" scoped>
  506. .content {
  507. padding: 20rpx;
  508. }
  509. .bgc0 {
  510. background: url('https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/bgc1.png') no-repeat center;
  511. height: 380rpx;
  512. border-radius: 20rpx;
  513. }
  514. .bgc1 {
  515. background: url('https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/bgc2.png') no-repeat center;
  516. height: 380rpx;
  517. border-radius: 20rpx;
  518. }
  519. .bgc2 {
  520. background: url('https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/bgc3.png') no-repeat center;
  521. height: 380rpx;
  522. border-radius: 20rpx;
  523. }
  524. .bgc3 {
  525. background: url('https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/bgc4.png') no-repeat center;
  526. height: 380rpx;
  527. border-radius: 20rpx;
  528. }
  529. .bgc4 {
  530. background: url('https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/bgc5.png') no-repeat center;
  531. height: 380rpx;
  532. border-radius: 20rpx;
  533. }
  534. .img {
  535. width: 100rpx;
  536. }
  537. .change-template {
  538. margin: 30rpx 0 50rpx 0;
  539. font-size: 32rpx;
  540. font-weight: bold;
  541. color: #19191A;
  542. margin-right: 20rpx;
  543. }
  544. .img-list {
  545. display: block;
  546. white-space: nowrap;
  547. overflow-x: auto;
  548. .dh {
  549. width: 32rpx;
  550. height: 32rpx;
  551. position: absolute;
  552. right: 8rpx;
  553. bottom: 8rpx;
  554. }
  555. .img-item {
  556. position: relative;
  557. width: 186rpx;
  558. height: 120rpx;
  559. display: inline-block;
  560. margin-right: 2 0rpx;
  561. border-radius: 20rpx;
  562. margin-right: 20rpx;
  563. }
  564. }
  565. .content2 {
  566. background-color: #fff;
  567. border-radius: 20rpx;
  568. padding: 0 20rpx 0 20rpx;
  569. .row {
  570. padding: 20rpx;
  571. border-bottom: 1px solid #E6E5E5;
  572. }
  573. }
  574. .button {
  575. color: #fff;
  576. background-color: #112253;
  577. border-radius: 20rpx;
  578. margin: 40rpx 0;
  579. }
  580. .card-content {
  581. top: 20rpx;
  582. left: 20rpx;
  583. }
  584. .content1 {
  585. .icon-text {
  586. margin-left: 10rpx;
  587. }
  588. .style1 {
  589. display: flex;
  590. padding: 20rpx 30rpx;
  591. width: 85%;
  592. .left {
  593. width: 132rpx;
  594. height: 132rpx;
  595. border-radius: 50%;
  596. }
  597. .right {
  598. margin-left: 40rpx;
  599. .row1 {
  600. .name {
  601. font-size: 38rpx;
  602. font-weight: bold;
  603. color: #040000;
  604. margin-right: 20rpx;
  605. }
  606. .post {
  607. font-size: 26rpx;
  608. font-weight: 500;
  609. color: #666666;
  610. }
  611. }
  612. .row2 {
  613. margin-top: 20rpx;
  614. font-size: 24rpx;
  615. font-weight: bold;
  616. color: #323333;
  617. }
  618. .row3 {
  619. margin-top: 30rpx;
  620. font-size: 24rpx;
  621. font-weight: 500;
  622. color: #323333;
  623. }
  624. .row2,
  625. .row3,
  626. .row4 {
  627. margin-top: 20rpx;
  628. }
  629. }
  630. }
  631. .style2 {
  632. padding: 30rpx;
  633. .top {
  634. .row1 {
  635. .name {
  636. font-size: 38rpx;
  637. font-weight: bold;
  638. color: #040000;
  639. margin-right: 20rpx;
  640. }
  641. .post {
  642. font-size: 26rpx;
  643. font-weight: 500;
  644. color: #666666;
  645. }
  646. }
  647. .row2 {
  648. margin-top: 20rpx;
  649. font-size: 24rpx;
  650. font-weight: bold;
  651. color: #323333;
  652. }
  653. }
  654. .bottom {
  655. margin-top: 48rpx;
  656. .left {
  657. margin-right: 40rpx;
  658. .row1 {
  659. .name {
  660. font-size: 38rpx;
  661. font-weight: bold;
  662. color: #040000;
  663. margin-right: 20rpx;
  664. }
  665. .post {
  666. font-size: 26rpx;
  667. font-weight: 500;
  668. color: #666666;
  669. }
  670. }
  671. .row2 {
  672. margin-top: 20rpx;
  673. font-size: 24rpx;
  674. font-weight: bold;
  675. color: #323333;
  676. }
  677. }
  678. .right {
  679. .row1,
  680. .row2 {
  681. font-size: 24rpx;
  682. font-weight: 500;
  683. color: #323333;
  684. }
  685. .row2,
  686. .row3,
  687. .row4 {
  688. margin-top: 20rpx;
  689. }
  690. }
  691. }
  692. }
  693. }
  694. .content2 {
  695. .left {
  696. margin-right: 10rpx;
  697. }
  698. }
  699. .active-style {
  700. color: '#112253';
  701. font-size: 36rpx;
  702. font-weight: bold;
  703. position: relative;
  704. }
  705. .active-style::after {
  706. position: absolute;
  707. bottom: -20rpx;
  708. content: "";
  709. width: 70rpx;
  710. height: 8rpx;
  711. border-radius: 4rpx;
  712. background: #112253;
  713. left: 0;
  714. right: 0;
  715. margin: auto;
  716. }
  717. .font-color {
  718. position: relative;
  719. }
  720. .icon-dh {
  721. width: 32rpx;
  722. height: 32rpx;
  723. position: absolute;
  724. right: 20rpx;
  725. bottom: 20rpx;
  726. }
  727. </style>