newCard.vue 20 KB

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