profile.component.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <nav title="主页信息"></nav>
  2. <ion-content [fullscreen]="true" class="content">
  3. <div class="bg">
  4. <img [src]="profile?.get('image') || 'img/bg_duf.jpg'" alt="" />
  5. <div class="mask" (click)="onShow()"></div>
  6. </div>
  7. <div class="header">
  8. <div class="user-dateil">
  9. <div class="pendant">
  10. <div class="top">
  11. <!-- <div
  12. class="pendant"
  13. [style.background-image]="
  14. 'url(https://file-cloud.fmode.cn/Qje9D4bqol/20241109/vv1tvb032259054.png)'
  15. "
  16. >
  17. <img
  18. class="avatar"
  19. [src]="profile?.get('user')?.get('avatar')"
  20. alt=""
  21. />
  22. </div> -->
  23. @if(!loading){
  24. <app-avatar
  25. [avatar]="profile?.get('user')?.get('avatar')"
  26. style="z-index: 99"
  27. frameId="profile-avatar-frame"
  28. [frame]="userVip['rights']['avatar']"
  29. />
  30. }
  31. <div class="top-right-block">
  32. <div class="top-left-title">{{ profile?.get("name") }}</div>
  33. @if (user?.get('sex') == '男') {
  34. <div class="sex">
  35. <ion-icon name="male-outline"></ion-icon>
  36. </div>
  37. }@else if (user?.get('sex') == '女') {
  38. <div class="sex girl">
  39. <ion-icon name="male-female-outline"></ion-icon>
  40. </div>
  41. }@else {
  42. <!-- <div class="sex">未知</div> -->
  43. }
  44. <div [ngClass]="{ gril: user?.get('sex') == '女', age: true }">
  45. <img
  46. src="https://file-cloud.fmode.cn/Qje9D4bqol/20241109/pctmvt110807052.png"
  47. alt=""
  48. />
  49. {{ profile?.get("birthdate") || "未知" }}
  50. </div>
  51. </div>
  52. </div>
  53. <div class="user-status">
  54. <span class="id">爱聊ID:{{ user?.id }}</span>
  55. <!-- @if (profile?.get('isCheck')) {
  56. <div class="state">
  57. <span class="spot"></span>
  58. <span class="tag">勿扰</span>
  59. </div>
  60. }@else { -->
  61. <div class="state">
  62. <span class="spot" [style.background]="state.color"></span>
  63. <span class="tag">{{ state.val }}</span>
  64. </div>
  65. <!-- } -->
  66. @if (profile?.get('identyType') === 'anchor') {
  67. <div class="video-unit">
  68. 通话:{{ profile?.get("laborCosts") }}钻石/分钟
  69. </div>
  70. }
  71. </div>
  72. </div>
  73. <div class="user-right">
  74. @if (user?.id !== currentUser?.id) {
  75. <ion-icon
  76. (click)="onCollection()"
  77. name="heart-circle-sharp"
  78. [style.color]="isFollow ? '#fe454e' : '#b3b3b3'"
  79. ></ion-icon>
  80. }
  81. </div>
  82. </div>
  83. <div class="user-fans">
  84. <span>关注:{{ numsObject.follow }}</span>
  85. <span>粉丝:{{ numsObject.fans }}</span>
  86. <span>送出:{{ numsObject.gift }}</span>
  87. </div>
  88. <div class="bar"></div>
  89. </div>
  90. <div class="user-data">
  91. <div class="tabs">
  92. <div
  93. [ngClass]="{ active: active == 0, 'title-h2': true }"
  94. (click)="active = 0"
  95. >
  96. 资料
  97. </div>
  98. <div
  99. [ngClass]="{ active: active == 1, 'title-h2': true }"
  100. (click)="active = 1"
  101. >
  102. 相册
  103. </div>
  104. </div>
  105. @if (active == 0) {
  106. <div class="data-row">
  107. <div class="title-text">个人资料</div>
  108. <div class="tags">
  109. <span class="label">生日:{{ birthdat }}</span>
  110. <span class="label">星座:{{ constellation }}</span>
  111. <span class="label">城市:未知</span>
  112. </div>
  113. <div class="motto">{{ profile?.get("remark") }}</div>
  114. </div>
  115. <div class="data-row">
  116. <div class="title-text">ta的社交标签</div>
  117. <div class="tags">
  118. @for (t of profile?.get('tag'); track $index) {
  119. <span class="label tag">{{ t }}</span>
  120. }
  121. </div>
  122. </div>
  123. <div class="data-row">
  124. <div class="title-text">对ta的评价</div>
  125. <div class="tags">
  126. <span class="label assess">漂亮小姐姐</span>
  127. <span class="label assess">颜值主播</span>
  128. <span class="label assess">唱歌好听</span>
  129. <span class="label assess">萝莉控</span>
  130. <span class="label assess">声优</span>
  131. <span class="label assess">喜欢日漫</span>
  132. <span class="label assess">都喜欢</span>
  133. </div>
  134. </div>
  135. <div class="data-row">
  136. <div class="title-text">ta的礼物墙</div>
  137. <div class="gift">
  138. @for (item of giftList; track $index) {
  139. <img [src]="item?.image" alt="" />
  140. }
  141. </div>
  142. </div>
  143. }@else {
  144. <div class="data-row">
  145. <div class="title-text">个人相册</div>
  146. <div class="album">
  147. @for (item of profile?.get('attachment'); track $index) {
  148. <img [src]="item" alt="" (click)="onShowImg(item)" />
  149. }
  150. </div>
  151. </div>
  152. } @if (uid !== currentUser?.id &&
  153. !accServ.userVip?.rights?.['view-profile']) {
  154. <div class="view-auth">
  155. <ion-icon name="lock-closed"></ion-icon>
  156. <div class="auth-text">开通高级会员查看更多</div>
  157. </div>
  158. }
  159. </div>
  160. </ion-content>
  161. <ion-footer class="footer">
  162. <ion-toolbar class="footer-tool">
  163. <div class="btns">
  164. @if (user?.id == currentUser?.id) {
  165. <div class="round" (click)="onEdit()">
  166. <ion-icon name="create-outline"></ion-icon>编辑资料
  167. </div>
  168. }@else{ @if(profile?.get('idcard') && profile?.get('identyType') ==
  169. 'anchor'){
  170. <div class="gift" (click)="gift.openModal()">
  171. <ion-icon name="gift-outline"></ion-icon>
  172. </div>
  173. <div class="round" (click)="call.toLiveContact()">
  174. <ion-icon name="videocam-outline"></ion-icon>直播通话
  175. </div>
  176. } @if(friends?.get('isPass')){
  177. <div class="round" (click)="toMsg()">
  178. <ion-icon name="chatbubble-outline"></ion-icon>私信
  179. </div>
  180. }@else {
  181. <div class="round" (click)="onFriend()">
  182. <ion-icon name="person-add-outline"></ion-icon>加为好友
  183. </div>
  184. } }
  185. </div>
  186. </ion-toolbar>
  187. </ion-footer>
  188. <app-image-preview [image]="currenImg" #preview></app-image-preview>
  189. <ion-modal
  190. #modal
  191. trigger="open-modal"
  192. [isOpen]="isOpen"
  193. (didDismiss)="isOpen = false"
  194. [backdropDismiss]="false"
  195. >
  196. <ng-template>
  197. <ion-toolbar>
  198. <ion-buttons slot="start">
  199. <ion-button (click)="isOpen = false">取消</ion-button>
  200. </ion-buttons>
  201. <ion-buttons slot="end">
  202. <ion-button (click)="upload.onUpload()">确认更换</ion-button>
  203. </ion-buttons>
  204. </ion-toolbar>
  205. <div class="wrapper">
  206. <app-upload
  207. (onChange)="onSaveBackGround($event)"
  208. #upload
  209. [maxlenght]="1"
  210. [files]="profile?.get('image') ? [{ url: profile?.get('image') }] : []"
  211. [boxWidth]="320"
  212. [fileWidth]="300"
  213. [fileHeight]="180"
  214. ></app-upload>
  215. </div>
  216. </ng-template>
  217. </ion-modal>
  218. <app-gift-modal
  219. #gift
  220. (sendEmit)="onSendGift()"
  221. [toUid]="this.uid"
  222. ></app-gift-modal>
  223. @if(profile?.id){
  224. <app-call-modal #call [profile]="profile"></app-call-modal>
  225. }