userHomepage.vue 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052
  1. <template>
  2. <view class="page">
  3. <view class="topBody">
  4. <view class="header"
  5. :style="{ backgroundImage: `url(${bgImage || '../../static/me/theme3.jpg'})`, marginBottom: labelBoxHeight < 45 ? '-80rpx' : '-40rpx' }">
  6. <view class="header-box" :style="headerBoxStyle">
  7. <view class="reserveASeat"></view>
  8. <view class="benner-box">
  9. <view class="setUp-box">
  10. <view class="my-box">我的</view>
  11. <view class="settingBtn-box">
  12. </view>
  13. </view>
  14. <view class="profilePicture-box">
  15. <CircleAvatar class="avator" @click="goPage('/pages/my/editInfo')" :src="myinfo.avator">
  16. </CircleAvatar>
  17. <view class="profilePicture-box-right" @click="goPage('/pages/my/creativeExpert')">
  18. <view class="one-omit">{{ myinfo.nickname }}</view>
  19. <image v-if="myinfo.my_level || myinfo.my_level == 0"
  20. :src="`../../static/icon/level_${myinfo.my_level}.png`" mode="widthFix" class="level-icon" />
  21. </view>
  22. </view>
  23. <view class="intro_row" @click="goPage('/pages/my/editInfo')">
  24. <block v-if="myinfo.content == ''">
  25. <text class="intro_text two-omit">添加简介</text>
  26. <image src="@/static/me/xiugai.png" mode="widthFix" class="add_icon">
  27. </image>
  28. </block>
  29. <uv-text color="#fff" v-else :text="formatText(myinfo.content)" class="intro_text two-omit">
  30. </uv-text>
  31. </view>
  32. <view class="label-box" id="labelBox">
  33. <view class="label-item sex-item">
  34. <image src="../../static/icon/wd_icon_nv.png" mode="widthFix" v-if="myinfo.sex_id == 2">
  35. </image>
  36. <image src="../../static/icon/wd_icon_nan.png" mode="widthFix" v-else></image>
  37. </view>
  38. <view class="label-item" v-for="(item, index) in aihao_tags" :key="index + item">
  39. {{ item }}
  40. </view>
  41. </view>
  42. <view class="follow_info">
  43. <view class="follow-box">
  44. <view class="num">{{ scientificCounting(myinfo.num_attention) }}</view>
  45. <view class="label">关注</view>
  46. </view>
  47. <!-- <view class="separator"></view> -->
  48. <view class="follow-box">
  49. <view class="num">{{ scientificCounting(myinfo.num_fans) }}</view>
  50. <view class="label">粉丝</view>
  51. </view>
  52. <!-- <view class="separator"></view> -->
  53. <view class="follow-box">
  54. <view class="num">{{ scientificCounting(myinfo.num_like) }}</view>
  55. <view class="label">获赞</view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="card-box" v-if="false">
  60. <view class="card-top">
  61. <view class="top-box">
  62. 1
  63. </view>
  64. <view class="userinfo-box" @click="goPage('/pages/my/editInfo')">
  65. <view class="userinfo-left">
  66. <CircleAvatar class="avator" :src="myinfo.avator"></CircleAvatar>
  67. </view>
  68. <view class="userinfo-right">
  69. <view class="nickname">
  70. <text class="one-omit">{{ myinfo.nickname }}</text>
  71. <view class="level">Lv{{ myinfo.my_level }}</view>
  72. </view>
  73. <view class="label">
  74. </view>
  75. </view>
  76. </view>
  77. <view class="line"></view>
  78. <view class="bom">
  79. <view class="points-box">
  80. <view class="points" @click="isRecharge ? goPage('/pages/vip/M_purchase') : ''">
  81. <image src="@/static/icon/wd_icon_coin.png" mode=""></image>
  82. <text>{{ myinfo.num_gmm | formatNumberToK }}</text>
  83. <image class="money-add" v-if="isRecharge" src="/static/icon/coin_add.png" mode="aspectFit"></image>
  84. </view>
  85. <view class="points" @click="isRecharge ? goPage('/pages/my/job?type=recharge') : ''">
  86. <image src="@/static/icon/coin_cd.png" mode=""></image>
  87. <text>{{ myinfo.num_gmd | formatNumberToK }}</text>
  88. <image class="money-add" v-if="isRecharge" src="/static/icon/coin_add.png" mode="aspectFit"></image>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. <!-- <view class="card-bom" v-if="isRecharge" @click="goPage('/pages/vip/index')"> -->
  94. </view>
  95. </view>
  96. </view>
  97. <view class="myinfo">
  98. <!-- 作品列表 -->
  99. <view class="numlist">
  100. <WorkItem v-for="(item, index) in worksList" :subtitle="true" :key="index" :item="item"
  101. @click="goWork(item)" />
  102. <view v-if="isDataLoaded && worksList.length === 0" class="empty-state">
  103. <image src="@/static/icon/xx_img_zanwuxiaoxi.png" mode="aspectFit" class="empty-image">
  104. </image>
  105. <text class="empty-text">暂无作品</text>
  106. <text class="empty-subtext">他还没有开始创作作品~</text>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <!-- 确认框 -->
  112. <CustomConfirm ref="customConfirm"></CustomConfirm>
  113. <!-- 提示框 -->
  114. <DialogBox ref="DialogBox"></DialogBox>
  115. <!-- SharePopup组件 -->
  116. <SharePopup :visible="showShare" :userId="userId" :share-title="shareTitle" :share-desc="shareDesc"
  117. :share-img="shareImg" view="userHomepage" @close="showShare = false" />
  118. </view>
  119. </template>
  120. <script>
  121. import tabbar from "@/mixins/tabbar";
  122. import CustomConfirm from "@/components/custome-confirm/customeConfirm.vue";
  123. import CircleAvatar from "@/components/CircleAvatar/CircleAvatar.vue";
  124. import WorkItem from "@/components/WorkItem/WorkItem.vue";
  125. import SharePopup from "@/components/SharePopup/SharePopup.vue";
  126. import DialogBox from "@/components/DialogBox/DialogBox.vue";
  127. export default {
  128. components: {
  129. CustomConfirm,
  130. CircleAvatar,
  131. WorkItem,
  132. SharePopup,
  133. DialogBox
  134. },
  135. mixins: [tabbar],
  136. data() {
  137. return {
  138. bgImage: '',
  139. title: "",
  140. sel: 1,
  141. firstLevelNavActive: 0,
  142. labelBoxHeight: 0,
  143. myinfo: {
  144. avator: "../../static/logo.png",
  145. nickname: "",
  146. content: "",
  147. sex_id: 1,
  148. my_level: 1,
  149. num_attention: 0,
  150. num_fans: 0,
  151. num_like: 0,
  152. wxkf: ""
  153. },
  154. aihao_tags: [],
  155. activeTab: 0,
  156. offset: 0,
  157. hasMore: true,
  158. isLoading: false,
  159. worksList: [],
  160. showShare: false,
  161. shareTitle: "",
  162. shareDesc: "",
  163. shareImg: "",
  164. userId: 0,
  165. id: 0,
  166. isDataLoaded: false,
  167. headerBoxStyle: {
  168. background: 'linear-gradient(to bottom,transparent, rgba(0, 0, 0, .8))'
  169. },
  170. };
  171. },
  172. onLoad(e) {
  173. if (e.id) {
  174. this.id = e.id
  175. }
  176. },
  177. onShow() {
  178. uni.$emit("check_login", () => { });
  179. this.offset = 0;
  180. this.hasMore = true;
  181. this.worksList = [];
  182. this.loadInfo();
  183. this.loadWorksList();
  184. },
  185. onReachBottom() {
  186. if (this.hasMore && !this.isLoading) {
  187. this.loadMoreWorks();
  188. }
  189. },
  190. methods: {
  191. // 关注作者
  192. followTheAuthor(n) {
  193. uni.request({
  194. url: this.$apiHost + "/Member/attention",
  195. data: {
  196. uuid: getApp().globalData.uuid,
  197. id: this.id,
  198. },
  199. header: {
  200. "content-type": "application/json",
  201. sign: getApp().globalData.headerSign,
  202. },
  203. success: (res) => {
  204. console.log("点赞结果:", res.data);
  205. uni.showToast({
  206. title: res.data.str,
  207. icon: "none",
  208. });
  209. this.loadInfo();
  210. },
  211. fail: (e) => {
  212. console.log("关注失败:", e);
  213. uni.showToast({
  214. title: "网络请求失败",
  215. icon: "none",
  216. });
  217. },
  218. });
  219. },
  220. goBack() {
  221. uni.navigateBack({
  222. delta: 1,
  223. });
  224. },
  225. clickShare(item) {
  226. this.showShare = true;
  227. },
  228. goPage(page) {
  229. if (page == "kefu") {
  230. let that = this;
  231. // #ifdef APP-PLUS
  232. plus.share.getServices((res) => {
  233. const wechat = res.find((i) => i.id === "weixin");
  234. if (wechat) {
  235. wechat.openCustomerServiceChat(
  236. {
  237. corpid: "wwbc06aa8311b6ac08",
  238. url: that.myinfo.wxkf,
  239. },
  240. (src) => {
  241. console.log("success:");
  242. },
  243. (err) => {
  244. console.log("error:");
  245. }
  246. );
  247. } else {
  248. uni.showToast({
  249. title: "没有检测到微信,请先安装",
  250. icon: "error",
  251. });
  252. }
  253. });
  254. // #endif
  255. } else if (page != "") {
  256. uni.navigateTo({
  257. url: page,
  258. });
  259. }
  260. },
  261. loadInfo() {
  262. console.log({
  263. uuid: getApp().globalData.uuid,
  264. skey: getApp().globalData.skey,
  265. });
  266. uni.request({
  267. url: this.$apiHost + "/Member/getHomeInfo",
  268. data: {
  269. uuid: getApp().globalData.uuid,
  270. skey: getApp().globalData.skey,
  271. user_id: this.id,
  272. },
  273. header: {
  274. "content-type": "application/json",
  275. sign: getApp().globalData.headerSign,
  276. },
  277. success: (res) => {
  278. console.log("----:", JSON.parse(JSON.stringify(res.data)));
  279. this.shareTitle = res.data.nickname
  280. this.shareDesc = res.data.content
  281. this.shareImg = res.data.avator
  282. this.userId = res.data.user_id
  283. if (res.data.need_login == "yes") {
  284. uni.removeStorageSync("wapptoken");
  285. uni.redirectTo({
  286. url: "/pages/login/login",
  287. });
  288. return;
  289. }
  290. if (res.data.aihao) {
  291. this.aihao_tags = res.data.aihao.split(",");
  292. }
  293. this.myinfo = res.data;
  294. if (res.data.bgimg) {
  295. this.bgImage = res.data.bgimg;
  296. }
  297. },
  298. complete: (com) => {
  299. // uni.hideLoading();
  300. },
  301. fail: (e) => {
  302. console.log("----e:", e);
  303. },
  304. });
  305. },
  306. switchTab(index) {
  307. this.activeTab = index;
  308. this.offset = 0;
  309. this.hasMore = true;
  310. this.worksList = [];
  311. this.loadWorksList();
  312. },
  313. loadWorksList() {
  314. if (this.isLoading) return;
  315. this.isLoading = true;
  316. this.isDataLoaded = false;
  317. uni.request({
  318. url: this.$apiHost + '/Work/getlist',
  319. data: {
  320. uuid: getApp().globalData.uuid,
  321. skey: getApp().globalData.skey,
  322. type: "other", // 固定为my,表示获取自己的作品
  323. offset: this.offset,
  324. user_id: this.id
  325. },
  326. header: {
  327. "content-type": "application/json",
  328. sign: getApp().globalData.headerSign,
  329. },
  330. success: (res) => {
  331. console.log("列表数据:", JSON.parse(JSON.stringify(res.data)));
  332. if (res.data.success == "yes" && res.data.list) {
  333. if (res.data.list.length > 0) {
  334. this.worksList = [...this.worksList, ...res.data.list];
  335. this.offset += res.data.list.length;
  336. }
  337. if (res.data.list.length < 20) {
  338. this.hasMore = false;
  339. }
  340. } else {
  341. this.hasMore = false;
  342. this.worksList = [];
  343. }
  344. },
  345. complete: () => {
  346. this.isLoading = false;
  347. this.isDataLoaded = true;
  348. },
  349. fail: (e) => {
  350. console.log("请求列表失败:", e);
  351. this.isLoading = false;
  352. this.isDataLoaded = true;
  353. this.worksList = [];
  354. },
  355. });
  356. },
  357. firstLevelNavActiveSwitch(n) {
  358. this.firstLevelNavActive = n;
  359. this.offset = 0;
  360. this.hasMore = true;
  361. this.worksList = [];
  362. if (this.firstLevelNavActive == 0) {
  363. this.activeTab = 0;
  364. }
  365. this.loadWorksList();
  366. },
  367. loadMoreWorks() {
  368. if (this.hasMore && !this.isLoading) {
  369. this.loadWorksList();
  370. }
  371. },
  372. updateDataList() {
  373. this.data_list = this.worksList.map((item) => {
  374. return {
  375. url:
  376. item.images || item.img_url || item.url || "../../static/logo.png",
  377. title: item.title || item.description || "作品",
  378. id: item.id,
  379. };
  380. });
  381. },
  382. goWork(item) {
  383. uni.$emit("check_login", () => { });
  384. uni.navigateTo({
  385. url: "/pages/index/workDetail?id=" + item.id,
  386. });
  387. },
  388. navigateToFollow() {
  389. uni.navigateTo({
  390. url: "/pages/my/follow",
  391. });
  392. },
  393. getLabelBoxHeight() {
  394. setTimeout(() => {
  395. const query = uni.createSelectorQuery();
  396. query.select('#labelBox').boundingClientRect(data => {
  397. if (data) {
  398. this.labelBoxHeight = data.height;
  399. console.log('label-box高度:', this.labelBoxHeight);
  400. }
  401. }).exec();
  402. }, 100);
  403. },
  404. formatText(text) {
  405. if (!text) return '';
  406. return text.length > 20 ? text.substring(0, 20) + '...' : text;
  407. },
  408. scientificCounting(num) {
  409. if (!num) {
  410. return 0;
  411. }
  412. if (num < 1000) {
  413. return num;
  414. } else if (num < 1000000) {
  415. return (num / 1000).toFixed(1) + 'k';
  416. } else if (num < 1000000000) {
  417. return (num / 1000000).toFixed(1) + 'M';
  418. } else {
  419. return (num / 1000000000).toFixed(1) + 'B';
  420. }
  421. },
  422. },
  423. };
  424. </script>
  425. <style scoped lang="scss">
  426. page {
  427. background-color: #fff;
  428. }
  429. .page {
  430. background-color: #fff;
  431. width: 100%;
  432. min-height: 100vh;
  433. }
  434. .reserveASeat {
  435. width: 100%;
  436. height: calc(var(--status-bar-height));
  437. }
  438. .topBody {
  439. width: 750rpx;
  440. background: transparent;
  441. }
  442. .header {
  443. background-position: center;
  444. background-size: auto 100%;
  445. min-height: calc(700rpx + var(--status-bar-height));
  446. // margin-bottom:-80rpx ;
  447. .header-box {
  448. width: 100%;
  449. height: 100%;
  450. min-height: calc(700rpx + var(--status-bar-height));
  451. padding: 20rpx;
  452. padding-top: 48rpx;
  453. background-position: center bottom;
  454. background-size: 100% auto;
  455. }
  456. .card-box {
  457. width: 100%;
  458. min-height: 490rpx;
  459. position: relative;
  460. left: 0;
  461. top: 0%;
  462. overflow: hidden;
  463. .card-top {
  464. height: 410rpx;
  465. width: 100%;
  466. background: url("../../static/me/my-card-bg.png") top center / 100% auto,
  467. #fff;
  468. position: absolute;
  469. top: 0%;
  470. left: 0;
  471. z-index: 5;
  472. padding: 24rpx 0;
  473. padding-top: 16rpx;
  474. box-sizing: border-box;
  475. border-radius: 25rpx;
  476. .top-box {
  477. display: flex;
  478. justify-content: space-between;
  479. align-items: center;
  480. // padding-top: 8rpx;
  481. background: url("../../static/me/car-top-bg-center.png") top center/ 146rpx 50rpx no-repeat;
  482. padding-right: 24rpx;
  483. padding-left: 24rpx;
  484. .hello-box {
  485. font-family: "CustomFont" !important;
  486. font-size: 36rpx;
  487. font-weight: 700;
  488. }
  489. .settingBtn-box {
  490. width: 148rpx;
  491. display: flex;
  492. align-items: center;
  493. justify-content: space-between;
  494. image {
  495. width: 64rpx;
  496. height: 64rpx;
  497. }
  498. }
  499. }
  500. .userinfo-box {
  501. min-height: 120rpx;
  502. width: 100%;
  503. display: flex;
  504. padding-right: 24rpx;
  505. padding-left: 24rpx;
  506. padding-top: 18rpx;
  507. .avator {
  508. width: 120rpx;
  509. height: 120rpx;
  510. margin-right: 16rpx;
  511. }
  512. .userinfo-right {
  513. .nickname {
  514. font-weight: bold;
  515. margin-bottom: 0rpx;
  516. display: flex;
  517. flex-direction: row;
  518. justify-content: flex-start;
  519. align-items: center;
  520. display: flex;
  521. padding-bottom: 12rpx;
  522. >text {
  523. max-width: 380rpx;
  524. font-family: "PingFang SC-Bold";
  525. font-weight: 400;
  526. font-size: 36rpx;
  527. }
  528. image {
  529. width: 36rpx;
  530. margin-left: 8rpx;
  531. margin-right: 10rpx;
  532. }
  533. .level {
  534. font-weight: 400;
  535. font-size: 22rpx;
  536. font-family: "PingFang SC-Bold";
  537. background: linear-gradient(360deg, #acf934 0%, #ffe439 100%);
  538. border-radius: 8rpx;
  539. padding: 2rpx 8rpx;
  540. }
  541. }
  542. .label {
  543. height: 40rpx;
  544. // height: 110rpx;
  545. overflow: hidden;
  546. >view {
  547. color: #acf934;
  548. font-family: "PingFang SC-Medium";
  549. font-weight: 400;
  550. font-size: 24rpx;
  551. background: #1f1f1f;
  552. border-radius: 6px 6px 6px 6px;
  553. display: inline-block;
  554. margin-right: 10rpx;
  555. margin-bottom: 10rpx;
  556. padding: 6rpx 16rpx;
  557. }
  558. }
  559. }
  560. }
  561. .intro_row {
  562. width: 100%;
  563. display: flex;
  564. align-items: center;
  565. padding-right: 24rpx;
  566. padding-left: 24rpx;
  567. padding-top: 12rpx;
  568. padding-bottom: 12rpx;
  569. .intro_text {
  570. color: #1f1f1f;
  571. font-size: 24rpx;
  572. font-family: "PingFang SC-Bold";
  573. font-weight: 400;
  574. padding-right: 0rpx;
  575. ::v-deep.uv-text__value {
  576. font-size: 26rpx !important;
  577. }
  578. }
  579. .add_icon {
  580. width: 28rpx;
  581. margin-left: 10rpx;
  582. }
  583. }
  584. .line {
  585. width: 100%;
  586. height: 2rpx;
  587. background-color: #f2f6f2;
  588. margin: 10rpx 0;
  589. margin-bottom: 20rpx;
  590. }
  591. .bom {
  592. display: flex;
  593. align-items: center;
  594. justify-content: space-between;
  595. padding-right: 24rpx;
  596. padding-left: 24rpx;
  597. .follow_info {
  598. display: flex;
  599. align-items: center;
  600. justify-content: space-between;
  601. max-width: 300rpx;
  602. .follow-box {
  603. display: flex;
  604. flex-direction: column;
  605. align-items: center;
  606. justify-content: center;
  607. text-align: center;
  608. }
  609. .num {
  610. width: 100%;
  611. font-size: 36rpx;
  612. font-weight: bold;
  613. color: #333;
  614. }
  615. .label {
  616. width: 100%;
  617. font-size: 24rpx;
  618. color: #999;
  619. }
  620. .separator {
  621. width: 2rpx;
  622. height: 24rpx;
  623. background-color: #e5e5e5;
  624. margin: 0 30rpx;
  625. }
  626. }
  627. .points-box {
  628. display: flex;
  629. justify-content: space-between;
  630. .points {
  631. display: flex;
  632. align-items: center;
  633. background: #f2f6f2;
  634. border-radius: 30rpx;
  635. padding: 6rpx 12rpx 6rpx 8rpx;
  636. &:first-child {
  637. margin-right: 18rpx;
  638. }
  639. image {
  640. width: 40rpx;
  641. height: 40rpx;
  642. }
  643. text {
  644. display: inline-block;
  645. padding-left: 4rpx;
  646. line-height: 0;
  647. }
  648. }
  649. }
  650. }
  651. .follow_info {
  652. // display: none;
  653. }
  654. }
  655. }
  656. .benner-box {
  657. .setUp-box {
  658. display: flex;
  659. align-items: center;
  660. justify-content: space-between;
  661. .my-box {
  662. font-family: "CustomFont" !important;
  663. font-size: 36rpx;
  664. font-weight: 700;
  665. color: #fff;
  666. }
  667. .settingBtn-box {
  668. width: 148rpx;
  669. display: flex;
  670. align-items: center;
  671. justify-content: space-between;
  672. image {
  673. width: 64rpx;
  674. height: 64rpx;
  675. }
  676. }
  677. }
  678. .profilePicture-box {
  679. display: flex;
  680. align-items: center;
  681. justify-content: flex-start;
  682. padding-top: 60rpx;
  683. padding-bottom: 28rpx;
  684. .avator {
  685. width: 156rpx;
  686. height: 156rpx;
  687. margin-right: 16rpx;
  688. }
  689. .one-omit {
  690. max-width: 400rpx;
  691. font-size: 40rpx;
  692. font-family: "PingFang SC-Bold";
  693. font-weight: 400;
  694. color: #fff;
  695. }
  696. .profilePicture-box-right {
  697. image {
  698. width: 80rpx;
  699. height: 38rpx;
  700. margin-top: 10rpx;
  701. }
  702. }
  703. }
  704. .intro_row {
  705. width: 100%;
  706. display: flex;
  707. align-items: center;
  708. padding-right: 24rpx;
  709. padding-left: 24rpx;
  710. padding-top: 12rpx;
  711. padding-bottom: 12rpx;
  712. color: #fff;
  713. .intro_text {
  714. color: #fff;
  715. font-size: 24rpx;
  716. font-family: "PingFang SC-Bold";
  717. font-weight: 400;
  718. padding-right: 0rpx;
  719. ::v-deep.uv-text__value {
  720. font-size: 26rpx !important;
  721. }
  722. }
  723. .add_icon {
  724. width: 28rpx;
  725. margin-left: 10rpx;
  726. }
  727. }
  728. .label-box {
  729. display: flex;
  730. flex-wrap: wrap;
  731. align-items: center;
  732. // height: 55rpx;
  733. width: 100%;
  734. // overflow: hidden;
  735. .label-item {
  736. background: rgba(255, 255, 255, 0.1);
  737. border-radius: 12rpx;
  738. border: 2rpx solid rgba(255, 255, 255, 0.1);
  739. display: inline-block;
  740. color: #fff;
  741. font-size: 24rpx;
  742. font-family: "PingFang SC-Bold";
  743. font-weight: 400;
  744. padding: 6rpx 16rpx;
  745. margin-right: 10rpx;
  746. margin-bottom: 10rpx;
  747. image {
  748. width: 30rpx;
  749. }
  750. &.sex-item {
  751. border-radius: 50%;
  752. width: 40rpx;
  753. height: 40rpx;
  754. display: inline-flex;
  755. align-items: center;
  756. justify-content: center;
  757. padding: 0;
  758. margin-right: 0;
  759. margin-bottom: 0;
  760. margin-right: 10rpx;
  761. }
  762. }
  763. }
  764. .follow_info {
  765. display: flex;
  766. align-items: center;
  767. justify-content: space-between;
  768. max-width: 300rpx;
  769. padding-bottom: 28rpx;
  770. padding-top: 28rpx;
  771. .follow-box {
  772. display: flex;
  773. flex-direction: column;
  774. align-items: center;
  775. justify-content: center;
  776. text-align: center;
  777. }
  778. .num {
  779. width: 100%;
  780. font-size: 36rpx;
  781. font-weight: bold;
  782. color: #fff;
  783. }
  784. .label {
  785. width: 100%;
  786. font-size: 24rpx;
  787. color: rgba(255, 255, 255, 0.5);
  788. }
  789. .separator {
  790. width: 2rpx;
  791. height: 24rpx;
  792. background-color: #e5e5e5;
  793. margin: 0 30rpx;
  794. }
  795. }
  796. .bom-box {
  797. display: flex;
  798. align-items: center;
  799. justify-content: space-between;
  800. .bom-item {
  801. width: 218rpx;
  802. height: 96rpx;
  803. border-radius: 16rpx;
  804. border: 2rpx solid rgba(255, 255, 255, 0.1);
  805. padding: 10rpx 18rpx;
  806. background: url("../../static/me/box-bg-1.png") center center / 100% 100%;
  807. &.bom-item2 {
  808. background: url("../../static/me/box-bg-2.png") center center / 100% 100%;
  809. }
  810. &.bom-item3 {
  811. background: url("../../static/me/box-bg-3.png") center center / 100% 100%;
  812. }
  813. .bom-item-title {
  814. font-size: 24rpx;
  815. color: #fff;
  816. }
  817. .bom-item-subtitle {
  818. font-size: 20rpx;
  819. color: rgba(255, 255, 255, 0.5);
  820. }
  821. }
  822. }
  823. }
  824. }
  825. .thread {
  826. height: 210rpx;
  827. padding: 50rpx;
  828. font-size: 52rpx;
  829. color: #6e6a6a;
  830. padding-top: 80rpx;
  831. }
  832. .myinfo {
  833. width: 100%;
  834. display: flex;
  835. flex-direction: column;
  836. border-radius: 28rpx 28rpx 0 0;
  837. padding: 24rpx 20rpx;
  838. padding-top: 14rpx;
  839. justify-content: flex-start;
  840. box-sizing: border-box;
  841. background: #fff;
  842. overflow: hidden;
  843. .line {
  844. width: 100%;
  845. height: 2rpx;
  846. background: #f2f6f2;
  847. margin-bottom: 8rpx;
  848. margin-top: 32rpx;
  849. }
  850. .subtitle {
  851. display: flex;
  852. .item {
  853. padding: 0 43rpx;
  854. font-weight: 400;
  855. font-size: 28rpx;
  856. color: #999999;
  857. font-family: "PingFang SC-Medium";
  858. &.active {
  859. font-family: "PingFang SC-Bold";
  860. font-weight: 400;
  861. font-size: 28rpx;
  862. color: #1f1f1f;
  863. }
  864. }
  865. }
  866. .tablist {
  867. display: flex;
  868. justify-content: flex-start;
  869. box-sizing: border-box;
  870. background: #ffffff;
  871. .item {
  872. padding: 15rpx 38rpx;
  873. color: #1f1f1f;
  874. font-size: 28rpx;
  875. background: #f2f6f2;
  876. margin-right: 20rpx;
  877. border-radius: 30rpx;
  878. position: relative;
  879. left: 0;
  880. top: 0;
  881. line-height: 1;
  882. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  883. // box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  884. &:active {
  885. transform: scale(0.95);
  886. // box-shadow: 0 1rpx 4rpx rgba(0, 0, 0, 0.05);
  887. }
  888. .indicator-triangle {
  889. position: absolute;
  890. bottom: -10rpx;
  891. left: 50%;
  892. transform: translateX(-50%);
  893. width: 0;
  894. height: 0;
  895. border-left: 10rpx solid transparent;
  896. border-right: 10rpx solid transparent;
  897. border-top: 10rpx solid #acf934;
  898. display: none;
  899. transition: all 0.3s ease;
  900. }
  901. &.active {
  902. background: #acf934;
  903. font-family: "CustomFont" !important;
  904. box-shadow: 0 4rpx 12rpx rgba(172, 249, 52, 0.3);
  905. .indicator-triangle {
  906. display: block;
  907. transform: translateX(-50%) scale(1.2);
  908. }
  909. }
  910. }
  911. }
  912. .numlist {
  913. display: grid;
  914. grid-template-columns: repeat(2, 1fr);
  915. margin-top: 30rpx
  916. }
  917. }
  918. .empty-state {
  919. display: flex;
  920. flex-direction: column;
  921. align-items: center;
  922. justify-content: center;
  923. padding: 60rpx 0;
  924. margin-top: 40rpx;
  925. background: #FFFFFF;
  926. border-radius: 20rpx;
  927. width: 710rpx;
  928. .empty-image {
  929. width: 240rpx;
  930. height: 240rpx;
  931. margin-bottom: 30rpx;
  932. }
  933. .empty-text {
  934. font-size: 32rpx;
  935. color: #333333;
  936. margin-bottom: 16rpx;
  937. font-weight: 500;
  938. }
  939. .empty-subtext {
  940. font-size: 28rpx;
  941. color: #999999;
  942. }
  943. }
  944. </style>