myInfo.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950
  1. <template>
  2. <view class="content">
  3. <view class="card-list content1">
  4. <view class="row" v-for="(item,index) in cardList" :key="index">
  5. <view class="title-name">
  6. {{item.cardBusiness}}
  7. </view>
  8. <view class="card-list-item"
  9. :style="item.currentBackground?'background:url('+item.currentBackground+');background-size:100% 100%':''">
  10. <view class="card-content style1" v-if="item.cuttentTemplate==1">
  11. <view class="left">
  12. <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
  13. shape="circle"></u--image>
  14. </view>
  15. <view class="right">
  16. <view class="row1">
  17. <text class="name">{{item.name}}</text>
  18. <text class="post">{{item.post}}</text>
  19. </view>
  20. <view class="row2">
  21. {{item.companyName}}
  22. </view>
  23. <view class="row3 flex">
  24. <u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
  25. height="16px"></u--image>{{ item.province }}{{ item.city }}{{ item.area }}
  26. </view>
  27. <view class="row4 flex">
  28. <u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
  29. height="13px"></u--image>{{ item.phone }}
  30. </view>
  31. <view class="row4 flex">
  32. <u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
  33. height="12px"></u--image>{{item.remark?item.remark:'单击添加备注'}}
  34. </view>
  35. <!-- <view class="">
  36. 备注
  37. </view> -->
  38. </view>
  39. </view>
  40. <view class="card-content style1 flex-between" v-if="item.cuttentTemplate==2">
  41. <view class="right">
  42. <view class="row1">
  43. <text class="name">{{item.name}}</text>
  44. <text class="post">{{item.post}}</text>
  45. </view>
  46. <view class="row2">
  47. {{item.companyName}}
  48. </view>
  49. <view class="row3 flex">
  50. <u--image :showLoading="true" src="/static/imgs/card/address3.png" width="13px"
  51. height="16px"></u--image>{{ item.province }}{{ item.city }}{{ item.area }}
  52. </view>
  53. <view class="row4 flex">
  54. <u--image :showLoading="true" src="/static/imgs/card/phone3.png" width="12px"
  55. height="13px"></u--image>{{ item.phone }}
  56. </view>
  57. <view class="row4 flex">
  58. <u--image :showLoading="true" src="/static/imgs/card/remark3.png" width="10px"
  59. height="12px"></u--image>{{item.remark?item.remark:'单击添加备注'}}
  60. </view>
  61. <!-- <view class="">
  62. 备注
  63. </view> -->
  64. </view>
  65. <view class="left">
  66. <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
  67. shape="circle" v-if="item.headSculpture"></u--image>
  68. <u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px"
  69. height="66px" shape="circle" v-else></u--image>
  70. </view>
  71. </view>
  72. <view class="card-content style2" v-if="item.cuttentTemplate==3">
  73. <view class="top">
  74. <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
  75. shape="circle" v-if="item.headSculpture"></u--image>
  76. <u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px"
  77. height="66px" shape="circle" v-else></u--image>
  78. </view>
  79. <view class="bottom flex">
  80. <view class="left">
  81. <view class="row1">
  82. <text class="name">{{item.name}}</text>
  83. <text class="post">{{item.post}}</text>
  84. </view>
  85. <view class="row2">
  86. {{item.companyName}}
  87. </view>
  88. </view>
  89. <view class="right">
  90. <view class="row3 flex">
  91. <u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
  92. height="16px"></u--image>{{ item.province }}{{ item.city }}{{ item.area }}
  93. </view>
  94. <view class="row4 flex">
  95. <u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
  96. height="13px"></u--image>{{ item.phone }}
  97. </view>
  98. <view class="row4 flex">
  99. <u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
  100. height="12px"></u--image>{{item.remark?item.remark:'单击添加备注'}}
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. <view class="card-content style2" v-if="item.cuttentTemplate==4">
  106. <view class="top">
  107. <view class="row1">
  108. <text class="name">{{item.name}}</text>
  109. <text class="post">{{item.post}}</text>
  110. </view>
  111. <view class="row2">
  112. {{item.companyName}}
  113. </view>
  114. </view>
  115. <view class="bottom flex">
  116. <view class="left">
  117. <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
  118. shape="circle" v-if="item.headSculpture"></u--image>
  119. <u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px"
  120. height="66px" shape="circle" v-else></u--image>
  121. </view>
  122. <view class="right">
  123. <view class="row3 flex">
  124. <u--image :showLoading="true" src="/static/imgs/card/address2.png" width="13px"
  125. height="16px"></u--image>{{ item.province }}{{ item.city }}{{ item.area }}
  126. </view>
  127. <view class="row4 flex">
  128. <u--image :showLoading="true" src="/static/imgs/card/phone2.png" width="12px"
  129. height="13px"></u--image>{{ item.phone }}
  130. </view>
  131. <view class="row4 flex">
  132. <u--image :showLoading="true" src="/static/imgs/card/remark2.png" width="10px"
  133. height="12px"></u--image>{{item.remark?item.remark:'单击添加备注'}}
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. <view class="car-bottom flex">
  139. <view class="left">
  140. <image src="../../static/imgs/card/home.png" mode="widthFix" style="width: 32rpx;"
  141. @click="toHome(item)"></image>
  142. <image src="../../static/imgs/card/share.png" mode="widthFix" style="width: 35rpx;"
  143. @click="share(item)"></image>
  144. <image src="../../static/imgs/card/ewm.png" mode="widthFix" style="width: 32rpx;"
  145. @click="showCode(item)"></image>
  146. </view>
  147. <view class="right">
  148. <text class="text" @click="topMarking(item)">置顶</text>
  149. <text class="text" @click="del(item.id)">删除</text>
  150. <text class="text" @click="toEditCard(item)">编辑</text>
  151. </view>
  152. <!-- <u-button text="置顶" @click="topMarking(item)" throttle-time='1000'></u-button> -->
  153. <!-- <button @click="$u.debounce(topMarking, 500)">置顶</button> -->
  154. <!-- <button @click="$u.debounce(topMarking(item), 500)">置顶</button> -->
  155. <!-- <u-button text="删除" @click="del(item.id)" throttle-time='1000'></u-button> -->
  156. <!-- <button @click="toEditCard(item)">编辑</button> -->
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. <view class="upload flex flex-all-center" @click="addCard">
  162. <view class="solids flex flex-all-center">
  163. <image src="../../static/imgs/card/add.png" mode="widthFix" style="width: 148rpx;"></image>
  164. <text class='text'>添加新名片</text>
  165. </view>
  166. </view>
  167. <u-toast ref="uToast"></u-toast>
  168. <u-popup :show="isShowDel" @close="isShowDel=false" mode="center">
  169. <view class="del-style">
  170. <text class="title">删除名片自动退出关联得圈子,确定删除?</text>
  171. <u-radio-group v-model="radiovalue" placement="column">
  172. <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist" :key="index"
  173. :label="item.name" :name="item.name" @change="radioChange">
  174. </u-radio>
  175. </u-radio-group>
  176. <view class="flex">
  177. <view class="" @click="isShowDel=false">
  178. 取消
  179. </view>
  180. <view class="" @click="delCard">
  181. 删除
  182. </view>
  183. </view>
  184. </view>
  185. </u-popup>
  186. <u-popup :show="isShowCode" @close="isShowCode=false" mode="center" :round='10'>
  187. <image style='margin:10px;' :src="selectCode" mode="widthFix"></image>
  188. </u-popup>
  189. <u-popup :show="popupshow" :closeOnClickOverlay='true' :overlayOpacity='0.4' @close='handleHiddenShare'
  190. :round="10" mode="bottom">
  191. <view>
  192. <view class="share-content">
  193. <view class="block" @click="toUrl()">
  194. <button class="moment">
  195. <view class="iconfont icon-pengyouquan"></view>
  196. <view>分享朋友圈</view>
  197. </button>
  198. </view>
  199. <view class="block">
  200. <button class="shareBtn" type="default" data-name="shareBtn" open-type="share">
  201. <view class="iconfont icon-weixin"></view>
  202. <view>分享微信好友</view>
  203. </button>
  204. </view>
  205. </view>
  206. </view>
  207. </u-popup>
  208. <!-- 生成图片 -->
  209. <poster :data="canvasData" background-color="#FFF" :width='750' :height='420' @on-success="posterSuccess"
  210. ref="poster" @on-error="posterError"></poster>
  211. <point-share @close='showShare=false' :show='showShare'></point-share>
  212. </view>
  213. </template>
  214. <script>
  215. import Poster from '../../components/zhangyuhao-poster/Poster.vue';
  216. import PointShare from '../../components/point-share/index.vue';
  217. var that;
  218. export default {
  219. components: {
  220. Poster,
  221. PointShare
  222. },
  223. data() {
  224. return {
  225. isShowCode: false,
  226. selectCode: '',
  227. id: '',
  228. showShare:false,
  229. popupshow:false,
  230. radiovalue: '仅从自己名片列表删除',
  231. radiolist: [{
  232. name: '仅从自己名片列表删除',
  233. disabled: false
  234. },
  235. {
  236. name: '从所有拥有此名片用户列表删除',
  237. disabled: false
  238. }
  239. ],
  240. isShowDel: false,
  241. cardList: [],
  242. canvasData:{},
  243. clicknum:0,
  244. poster:''
  245. };
  246. },
  247. onLoad() {
  248. that = this
  249. this.userInfo = uni.getStorageSync("userInfo")
  250. },
  251. onShow() {
  252. this.init()
  253. },
  254. onShareAppMessage(res) {
  255. console.log(res, this.popupshow)
  256. let that = this;
  257. //生成名片图片
  258. let imageUrl = this.poster
  259. console.log("imageUrl", imageUrl)
  260. if (res.from === 'button') {
  261. let path = `/pages/cardHolder/scanCodeAddCard?id=${that.currectData.id}`
  262. return {
  263. title: this.popupshow ? `${that.currectData.name}分享的名片~` : '电子名片',
  264. path: path,
  265. imageUrl: this.popupshow ? imageUrl : '',
  266. };
  267. }
  268. if (res.from === 'menu') {
  269. return {
  270. title: '我的名片',
  271. path: '/pages/tabBarPro/index/index',
  272. imageUrl: this.popupshow ? imageUrl : ''
  273. };
  274. }
  275. },
  276. methods: {
  277. toUrl(){
  278. this.popupshow=false
  279. this.showShare=true
  280. },
  281. handleHiddenShare() {
  282. this.popupshow = false
  283. },
  284. posterError(err) {
  285. console.log(err)
  286. uni.hideLoading()
  287. },
  288. posterSuccess(url) {
  289. console.log("hahahah", url)
  290. // 生成成功,会把临时路径在这里返回
  291. this.poster = url;
  292. uni.hideLoading()
  293. this.popupshow = true
  294. console.log(url)
  295. },
  296. showCode(val) {
  297. this.selectCode = val.qrCodeMyself
  298. this.isShowCode = true
  299. },
  300. share(item) {
  301. uni.showLoading({
  302. title: '加载中',
  303. mask: true
  304. })
  305. this.currectData = item
  306. var data = [{
  307. type: 'image',
  308. path: this.currectData.currentBackground,
  309. use: 'bg',
  310. x: -10,
  311. y: 0,
  312. width: 530,
  313. height: 325
  314. },
  315. {
  316. type: 'image',
  317. path: this.currectData.headSculpture,
  318. shape: 'circle',
  319. use: 'head',
  320. x: 30,
  321. y: 30,
  322. width: 100,
  323. height: 100
  324. },
  325. {
  326. type: 'text',
  327. text: this.currectData.name,
  328. use: 'name',
  329. x: 150,
  330. y: 50,
  331. size: 24,
  332. color: '#000'
  333. },
  334. {
  335. type: 'text',
  336. text: this.currectData.post,
  337. use: 'post',
  338. x: 240,
  339. y: 55,
  340. size: 18,
  341. color: '#666666'
  342. },
  343. {
  344. type: 'text',
  345. text: this.currectData.companyName,
  346. use: 'companyName',
  347. x: 150,
  348. y: 95,
  349. size: 18,
  350. color: '#000'
  351. },
  352. {
  353. type: 'image',
  354. path: '../../static/imgs/card/address1.png',
  355. use: 'address-icon',
  356. x: 145,
  357. y: 130,
  358. width: 15,
  359. height: 20
  360. },
  361. {
  362. type: 'textarea',
  363. text: this.currectData.province + this.currectData.city + this.currectData.area + this
  364. .currectData.detailedAddress,
  365. lineSpace: 1,
  366. width: 320,
  367. use: 'address',
  368. x: 175,
  369. y: 135,
  370. size: 14,
  371. color: '#000'
  372. },
  373. {
  374. type: 'image',
  375. path: '../../static/imgs/card/phone1.png',
  376. use: 'phone-icon',
  377. x: 145,
  378. y: 163,
  379. width: 16,
  380. height: 16
  381. },
  382. {
  383. type: 'text',
  384. text: this.currectData.phone,
  385. use: 'phone',
  386. x: 175,
  387. y: 167,
  388. size: 14,
  389. color: '#000'
  390. },
  391. {
  392. type: 'image',
  393. path: '../../static/imgs/card/remark1.png',
  394. use: 'remark-icon',
  395. x: 145,
  396. y: 197,
  397. width: 13,
  398. height: 16
  399. },
  400. {
  401. type: 'textarea',
  402. text: this.currectData.remark ? this.currectData.remark : '单击添加备注',
  403. use: 'remark',
  404. lineSpace: 2,
  405. width: 200,
  406. x: 175,
  407. y: 200,
  408. size: 13,
  409. color: '#000'
  410. },
  411. {
  412. type: 'image',
  413. path: '../../static/imgs/card/bgc1.png',
  414. use: 'bg1',
  415. x: 3,
  416. y: 243,
  417. width: 240,
  418. height: 67
  419. },
  420. {
  421. type: 'image',
  422. path: '../../static/imgs/card/bgc2.png',
  423. use: 'bg2',
  424. x: 225,
  425. y: 243,
  426. width: 278,
  427. height: 67
  428. },
  429. {
  430. type: 'image',
  431. path: '../../static/imgs/card/home.png',
  432. use: 'home',
  433. x: 30,
  434. y: 260,
  435. width: 33,
  436. height: 33
  437. },
  438. {
  439. type: 'image',
  440. path: '../../static/imgs/card/share.png',
  441. use: 'share',
  442. x: 90,
  443. y: 263,
  444. width: 33,
  445. height: 28
  446. },
  447. {
  448. type: 'image',
  449. path: '../../static/imgs/card/ewm.png',
  450. use: 'code',
  451. x: 150,
  452. y: 263,
  453. width: 32,
  454. height: 32
  455. },
  456. {
  457. type: 'text',
  458. text: '置顶',
  459. use: 'top',
  460. x: 280,
  461. y: 265,
  462. size: 24,
  463. color: '#fff'
  464. },
  465. {
  466. type: 'text',
  467. text: '删除',
  468. use: 'del',
  469. x: 350,
  470. y: 265,
  471. size: 24,
  472. color: '#fff'
  473. },
  474. {
  475. type: 'text',
  476. text: '编辑',
  477. use: 'edit',
  478. x: 420,
  479. y: 265,
  480. size: 24,
  481. color: '#fff'
  482. },
  483. ]
  484. console.log(this.currectData.cuttentTemplate, 111111)
  485. for (var i = 0; i < data.length; i++) {
  486. switch (this.currectData.cuttentTemplate) {
  487. case '2':
  488. if (data[i].use === 'name' ||
  489. data[i].use === 'companyName' ||
  490. data[i].use === 'address-icon' ||
  491. data[i].use === 'phone-icon' ||
  492. data[i].use === 'remark-icon') {
  493. data[i].x = 30
  494. }
  495. if (data[i].use === 'address-icon') {
  496. data[i].path = '../../static/imgs/card/address3.png'
  497. }
  498. if (data[i].use === 'phone-icon') {
  499. data[i].path = '../../static/imgs/card/phone3.png'
  500. }
  501. if (data[i].use === 'remark-icon') {
  502. data[i].path = '../../static/imgs/card/remark3.png'
  503. }
  504. if (data[i].use === 'post') {
  505. data[i].x = 100
  506. }
  507. if (data[i].use === 'address' ||
  508. data[i].use === 'phone' ||
  509. data[i].use === 'remark') {
  510. data[i].x = 60
  511. }
  512. if (data[i].use == 'head') {
  513. data[i].x = 370
  514. }
  515. break;
  516. case '3':
  517. if (data[i].use === 'name') {
  518. data[i].x = 30
  519. data[i].y = 150
  520. }
  521. if (data[i].use === 'companyName') {
  522. data[i].x = 30
  523. data[i].y = 180
  524. }
  525. if (data[i].use === 'post') {
  526. data[i].x = 100
  527. data[i].y = 153
  528. }
  529. if (data[i].use === 'address-icon' ||
  530. data[i].use === 'phone-icon' ||
  531. data[i].use === 'remark-icon') {
  532. data[i].x = 170
  533. }
  534. if (data[i].use === 'address-icon') {
  535. data[i].y = 150
  536. }
  537. if (data[i].use === 'address') {
  538. data[i].y = 155;
  539. data[i].width = 300
  540. }
  541. if (data[i].use === 'phone-icon') {
  542. data[i].y = 180
  543. }
  544. if (data[i].use === 'phone') {
  545. data[i].y = 183
  546. }
  547. if (data[i].use === 'remark-icon') {
  548. data[i].y = 210
  549. }
  550. if (data[i].use === 'remark') {
  551. data[i].y = 212
  552. }
  553. if (data[i].use === 'address' ||
  554. data[i].use === 'phone' ||
  555. data[i].use === 'remark') {
  556. data[i].x = 190
  557. }
  558. break;
  559. case '4':
  560. if (data[i].use === 'name' ||
  561. data[i].use === 'companyName') {
  562. data[i].x = 30
  563. }
  564. if (data[i].use === 'companyName') {
  565. data[i].y = 90
  566. }
  567. if (data[i].use === 'post') {
  568. data[i].x = 100
  569. }
  570. if (data[i].use == 'head') {
  571. data[i].x = 25
  572. data[i].y = 120
  573. }
  574. if (data[i].use === 'address-icon') {
  575. data[i].path = '../../static/imgs/card/address2.png'
  576. }
  577. if (data[i].use === 'phone-icon') {
  578. data[i].path = '../../static/imgs/card/phone2.png'
  579. }
  580. if (data[i].use === 'remark-icon') {
  581. data[i].path = '../../static/imgs/card/remark2.png'
  582. }
  583. if (data[i].use === 'address-icon' ||
  584. data[i].use === 'phone-icon' ||
  585. data[i].use === 'remark-icon') {
  586. data[i].x = 170
  587. }
  588. if (data[i].use === 'address') {
  589. data[i].width = 300
  590. }
  591. if (data[i].use === 'address' ||
  592. data[i].use === 'phone' ||
  593. data[i].use === 'remark') {
  594. data[i].x = 190
  595. }
  596. break;
  597. default:
  598. }
  599. }
  600. this.canvasData = {
  601. clicknum: this.clicknum++,
  602. list: data,
  603. page:'myInfo'
  604. }
  605. console.log(1111111)
  606. },
  607. toHome(item) {
  608. uni.navigateTo({
  609. url: "/pages/mySet/myHome?id=" + item.personalHomeId
  610. })
  611. },
  612. radioChange(n) {
  613. console.log('radioChange', n);
  614. },
  615. init() {
  616. this.$request.baseRequest('admin.unimall.cardManagementInfo', 'list', {
  617. commonId: this.userInfo.id
  618. }, failres => {
  619. this.$refs.uToast.show({
  620. type: 'error',
  621. message: failres.errmsg,
  622. })
  623. uni.hideLoading()
  624. }).then(res => {
  625. this.cardList = res.data.items
  626. })
  627. },
  628. toEditCard(val) {
  629. uni.navigateTo({
  630. url: "/pages/mySet/editCard?itemVal=" + JSON.stringify(val)
  631. })
  632. },
  633. delCard() {
  634. let _data = {}
  635. if (this.radiovalue == '仅从自己名片列表删除') {
  636. _data = {
  637. id: this.id
  638. }
  639. } else {
  640. _data = {
  641. id: this.id,
  642. deleteCondition: 1
  643. }
  644. }
  645. that.$request.baseRequest('admin.unimall.cardManagementInfo', 'delete', _data, failres => {
  646. this.$refs.uToast.show({
  647. type: 'error',
  648. message: failres.errmsg,
  649. })
  650. uni.hideLoading()
  651. }).then(res => {
  652. this.isShowDel = false
  653. this.$refs.uToast.show({
  654. type: 'success',
  655. message: '删除成功!',
  656. })
  657. this.init()
  658. })
  659. },
  660. del(val) {
  661. this.id = val
  662. this.isShowDel = true
  663. },
  664. addCard() {
  665. uni.navigateTo({
  666. url: "/pages/mySet/newCard"
  667. })
  668. },
  669. topMarking(val) {
  670. that.$request.baseRequest('admin.unimall.cardManagementInfo', 'top', {
  671. cardManagementInfo: JSON.stringify({
  672. id: val.id
  673. })
  674. }, failres => {
  675. this.$refs.uToast.show({
  676. type: 'error',
  677. message: failres.errmsg,
  678. })
  679. uni.hideLoading()
  680. }).then(res => {
  681. this.$refs.uToast.show({
  682. type: 'success',
  683. message: '置顶成功!',
  684. })
  685. this.init()
  686. })
  687. }
  688. }
  689. }
  690. </script>
  691. <style lang="scss" scoped>
  692. .content {
  693. padding-bottom: 40rpx;
  694. }
  695. .card-content {
  696. width: 100%;
  697. }
  698. .content1 {
  699. .style1 {
  700. display: flex;
  701. padding: 20rpx 30rpx;
  702. width: 85%;
  703. margin-bottom: 90rpx;
  704. .left {
  705. width: 132rpx;
  706. height: 132rpx;
  707. border-radius: 50%;
  708. }
  709. .right {
  710. margin-left: 40rpx;
  711. .row1 {
  712. .name {
  713. font-size: 38rpx;
  714. font-weight: bold;
  715. color: #040000;
  716. margin-right: 20rpx;
  717. }
  718. .post {
  719. font-size: 26rpx;
  720. font-weight: 500;
  721. color: #666666;
  722. }
  723. }
  724. .row2 {
  725. margin-top: 20rpx;
  726. font-size: 24rpx;
  727. font-weight: bold;
  728. color: #323333;
  729. }
  730. .row3 {
  731. margin-top: 30rpx;
  732. font-size: 24rpx;
  733. font-weight: 500;
  734. color: #323333;
  735. }
  736. }
  737. }
  738. .style2 {
  739. padding: 30rpx;
  740. margin-bottom: 100rpx;
  741. .top {
  742. .row1 {
  743. .name {
  744. font-size: 38rpx;
  745. font-weight: bold;
  746. color: #040000;
  747. margin-right: 20rpx;
  748. }
  749. .post {
  750. font-size: 26rpx;
  751. font-weight: 500;
  752. color: #666666;
  753. }
  754. }
  755. .row2 {
  756. margin-top: 20rpx;
  757. font-size: 24rpx;
  758. font-weight: bold;
  759. color: #323333;
  760. }
  761. }
  762. .bottom {
  763. margin-top: 48rpx;
  764. .left {
  765. margin-right: 40rpx;
  766. .row1 {
  767. .name {
  768. font-size: 38rpx;
  769. font-weight: bold;
  770. color: #040000;
  771. margin-right: 20rpx;
  772. }
  773. .post {
  774. font-size: 26rpx;
  775. font-weight: 500;
  776. color: #666666;
  777. }
  778. }
  779. .row2 {
  780. margin-top: 20rpx;
  781. font-size: 24rpx;
  782. font-weight: bold;
  783. color: #323333;
  784. }
  785. }
  786. .right {
  787. .row1,
  788. .row2 {
  789. font-size: 24rpx;
  790. font-weight: 500;
  791. color: #323333;
  792. }
  793. .row2 {
  794. margin-top: 20rpx;
  795. }
  796. }
  797. }
  798. }
  799. }
  800. .card-list {
  801. padding: 0 20rpx;
  802. .title-name {
  803. font-weight: bold;
  804. color: #19191A;
  805. margin: 20rpx 0;
  806. }
  807. }
  808. .card-list-item {
  809. width: calc(100% + 40rpx);
  810. left: -20rpx;
  811. position: relative;
  812. border-radius: 30rpx;
  813. padding: 40rpx;
  814. box-sizing: border-box;
  815. .car-bottom {
  816. position: absolute;
  817. bottom: 20rpx;
  818. left: 20rpx;
  819. width: calc(100% - 40rpx);
  820. .left {
  821. position: absolute;
  822. padding: 20rpx 0;
  823. width: 310rpx;
  824. box-sizing: border-box;
  825. display: flex;
  826. justify-content: space-evenly;
  827. background: url("../../static/imgs/card/bgc1.png") no-repeat center;
  828. background-size: 100% 100%;
  829. }
  830. .right {
  831. font-size: 26rpx;
  832. padding: 20rpx 0;
  833. position: relative;
  834. right: -280rpx;
  835. width: calc(100vw - 320rpx);
  836. box-sizing: border-box;
  837. display: flex;
  838. justify-content: space-evenly;
  839. background: url("../../static/imgs/card/bgc2.png") no-repeat center;
  840. background-size: 100% 100%;
  841. .text {
  842. color: #fff;
  843. }
  844. }
  845. }
  846. .left {
  847. width: 30%;
  848. .top {
  849. margin-bottom: 20rpx;
  850. }
  851. .img {
  852. width: 80%;
  853. }
  854. .bottom {}
  855. }
  856. .right {
  857. .row1 {
  858. .line {
  859. width: 1px;
  860. height: 20px;
  861. margin: 0 20rpx;
  862. background: black;
  863. }
  864. }
  865. }
  866. }
  867. .upload {
  868. background-color: #fff;
  869. margin: 20rpx;
  870. border-radius: 20rpx;
  871. padding: 76rpx;
  872. .solids {
  873. flex-direction: column;
  874. .text {
  875. margin-top: 20rpx;
  876. font-size: 26rpx;
  877. font-weight: 500;
  878. color: #666666;
  879. }
  880. }
  881. }
  882. .share-content {
  883. display: flex;
  884. padding: 20rpx;
  885. justify-content: center;
  886. font-size: 24rpx;
  887. button {
  888. background: transparent;
  889. line-height: 1.5;
  890. }
  891. button:after {
  892. border: none;
  893. }
  894. }
  895. .icon-pengyouquan,.icon-weixin{
  896. font-size:50px;
  897. color:#33CC00;
  898. }
  899. </style>