index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <template>
  2. <view class="my-box">
  3. <my-nav @navHeight="setNavHeight"></my-nav>
  4. <view class="my-data" :style="{'height':'calc(100% - '+navHeight+'rpx)'}">
  5. <scroll-view :scroll-y="true" :style="{'height':'calc(100% - '+navHeight+'rpx)'}">
  6. <view class="my-item">
  7. <view class="my-content">
  8. <view class="content-basic">
  9. <view class="basic-left">
  10. <image class="basic-img" src="/static/img/temporary/4.png" mode="aspectFill"></image>
  11. </view>
  12. <view class="basic-right">
  13. <view class="basic-name">
  14. <view class="name-text sys-color-black-0 sys-weight-600">出江湖救急</view>
  15. <view class="name-vip">
  16. <image class="name-img" src="/static/img/my/svip.png" mode="heightFix"></image>
  17. </view>
  18. <view class="name-ok name-no">
  19. <image class="name-img" src="/static/img/my/open.png" mode="heightFix"></image>
  20. </view>
  21. </view>
  22. <view class="basic-signature sys-color-gray-9">
  23. 都能拿到你
  24. </view>
  25. <view class="basic-wallet">
  26. <view class="wallet-item">
  27. <image class="wallet-img" src="/static/img/my/wallet.png" mode="aspectFill"></image>
  28. <view class="wallet-text sys-color-gray-6">钱包</view>
  29. </view>
  30. <view class="wallet-item">
  31. <view class="wallet-text sys-color-gray-6">波点兑换</view>
  32. <image class="exchange-img" src="/static/img/my/right.png" mode="aspectFill"></image>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="content-statistics">
  38. <view class="statistics-item">
  39. <view class="statistics-num sys-color-black sys-weight-600">431
  40. <view class="statistics-dot sys-color-white">1</view>
  41. </view>
  42. <view class="statistics-text sys-color-gray-9 sys-weight-400">礼物墙</view>
  43. </view>
  44. <view class="statistics-item">
  45. <view class="statistics-num sys-color-black sys-weight-600">431
  46. <view class="statistics-dot sys-color-white">1</view>
  47. </view>
  48. <view class="statistics-text sys-color-gray-9 sys-weight-400">心动足迹</view>
  49. </view>
  50. <view class="statistics-item">
  51. <view class="statistics-num sys-color-black sys-weight-600">431
  52. <view class="statistics-dot sys-color-white">1</view>
  53. </view>
  54. <view class="statistics-text sys-color-gray-9 sys-weight-400">访客</view>
  55. </view>
  56. <view class="statistics-item">
  57. <view class="statistics-num sys-color-black sys-weight-600">
  58. 165
  59. <view class="statistics-dot sys-color-white">..</view>
  60. </view>
  61. <view class="statistics-text sys-color-gray-9 sys-weight-400">谁喜欢我</view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="vip-content">
  66. <view class="vip-data">
  67. <view class="vip-left">
  68. <view class="vip-left-one">
  69. <image class="vip-left-img" src="/static/img/my/crown.png" mode="aspectFill"></image>
  70. <view class="vip-left-vip sys-weight-600">VIP</view>
  71. <view class="vip-left-text sys-weight-500">首季195元</view>
  72. </view>
  73. <view class="vip-left-two">
  74. 22.7元/月解锁9项高级特权
  75. </view>
  76. </view>
  77. <view class="vip-right">
  78. 立即开通
  79. </view>
  80. </view>
  81. <view class="vip-discounts sys-color-white sys-weight-600">
  82. 立减99元
  83. </view>
  84. </view>
  85. <view class="subscription sys-color-gray-9">
  86. 自动订阅,随时取消;付款费用将记入itunes账户;到期前24小时会自动扣费并续订
  87. 服务,购买后可随时前往iTunse商店设置页面取消订 阅。点击购买即表示同意《用
  88. 户服务协议》《连续包月协议》 《用户隐私政策》
  89. </view>
  90. <view class="my-tag">
  91. <view class="tag-item" @click="setTagNum(0)" :class="{'tag-pitch':tagNum===0}">动态</view>
  92. <view class="tag-item" @click="setTagNum(1)" :class="{'tag-pitch':tagNum===1}">赞过</view>
  93. <view class="tag-item" @click="setTagNum(2)" :class="{'tag-pitch':tagNum===2}">活动</view>
  94. </view>
  95. </view>
  96. <view class="halving-line"></view>
  97. <view class="my-item">
  98. <view class="my-dynamic" v-if="tagNum===0">
  99. <dynamic-items text-color="#141414" operate-color="#999999" tag-color="#999999" tag-bg="#F2F2F2" division-color="#F2F2F2" :show-add="true"></dynamic-items>
  100. </view>
  101. <view class="my-praise">
  102. </view>
  103. </view>
  104. </scroll-view>
  105. </view>
  106. </view>
  107. </template>
  108. <script>
  109. import MyNav from "@/pages/my/model/my-nav";
  110. import DynamicItems from "@/pages/common/dynamic/dynamic-items";
  111. export default {
  112. components: {DynamicItems, MyNav},
  113. data() {
  114. return {
  115. navHeight:0,
  116. tagNum:0
  117. }
  118. },
  119. methods: {
  120. setNavHeight(navHeight){
  121. this.navHeight=navHeight
  122. },
  123. setTagNum(tagNum){
  124. if(this.tagNum!==tagNum){
  125. this.tagNum=tagNum
  126. }
  127. }
  128. }
  129. }
  130. </script>
  131. <style scoped lang="scss">
  132. .my-box{
  133. background-image: url("/static/img/my/bg.png");
  134. background-repeat: no-repeat;//不平铺
  135. background-position: top center;//居中
  136. background-size: contain;//随容器大小
  137. height: calc(100vh - 50px - env(safe-area-inset-bottom));
  138. .my-data{
  139. background-color: #fff;
  140. border-radius: 30rpx 30rpx 0 0;
  141. padding: 40rpx 0 10rpx 0;
  142. .my-item{
  143. padding: 0 32rpx ;
  144. }
  145. .halving-line{
  146. background-color: #F2F2F2;
  147. height: 1rpx;
  148. }
  149. .my-content{
  150. .content-basic{
  151. display: flex;
  152. justify-content: space-between;
  153. height: 168rpx;
  154. .basic-left{
  155. .basic-img{
  156. border-radius: 50%;
  157. width: 168rpx;
  158. height: 168rpx;
  159. }
  160. }
  161. .basic-right{
  162. width: calc(100% - 168rpx);
  163. padding-left: 24rpx;
  164. .basic-name{
  165. display: flex;
  166. justify-content: flex-start;
  167. height: 56rpx;
  168. align-items: center;
  169. .name-text{
  170. font-size: 40rpx;
  171. line-height: 56rpx;
  172. }
  173. .name-img{
  174. height: 28rpx;
  175. }
  176. .name-vip{
  177. margin-left: 8rpx;
  178. }
  179. .name-ok{
  180. margin-left: 8rpx;
  181. }
  182. .name-no{
  183. filter: grayscale(100%);
  184. }
  185. }
  186. .basic-signature{
  187. width: 100%;
  188. display: -webkit-box;
  189. -webkit-line-clamp: 1;
  190. -webkit-box-orient: vertical;
  191. overflow: hidden;
  192. font-size: 28rpx;
  193. height: 40rpx;
  194. line-height: 40rpx;
  195. }
  196. .basic-wallet{
  197. display: flex;
  198. justify-content: flex-start;
  199. margin-top: 24rpx;
  200. .wallet-item{
  201. padding: 0 16rpx;
  202. height: 40rpx;
  203. background: #F2F2F2;
  204. border-radius: 200rpx;
  205. display: flex;
  206. justify-content: center;
  207. align-items: center;
  208. margin-right: 20rpx;
  209. .wallet-text{
  210. height: 40rpx;
  211. line-height: 40rpx;
  212. font-size: 26rpx;
  213. }
  214. .wallet-img{
  215. width: 40rpx;
  216. height: 40rpx;
  217. margin-right: 4rpx;
  218. }
  219. .exchange-img{
  220. width: 24rpx;
  221. height: 24rpx;
  222. margin-left: 4rpx;
  223. }
  224. }
  225. }
  226. }
  227. }
  228. .content-statistics{
  229. margin-top: 24rpx;
  230. padding: 16rpx 40rpx 0 40rpx;
  231. display: flex;
  232. justify-content: space-between;
  233. .statistics-item{
  234. .statistics-num{
  235. position: relative;
  236. display: flex;
  237. justify-content: center;
  238. font-size: 40rpx;
  239. .statistics-dot{
  240. position: absolute;
  241. top: -16rpx;
  242. right: -12rpx;
  243. border-radius: 200rpx;
  244. width: 24rpx;
  245. height: 24rpx;
  246. line-height: 24rpx;
  247. text-align: center;
  248. font-size: 18rpx;
  249. background-color: #ED301D;
  250. }
  251. }
  252. .statistics-text{
  253. margin-top: 8rpx;
  254. font-size: 26rpx;
  255. }
  256. }
  257. }
  258. }
  259. .vip-content{
  260. margin-top: 66rpx;
  261. border-radius: 20rpx;
  262. background: linear-gradient(137deg, #FED18E 0%, #FFDFA4 100%);
  263. //height: 118rpx;
  264. padding: 34rpx 30rpx 40rpx 28rpx;
  265. position: relative;
  266. .vip-data{
  267. display: flex;
  268. justify-content: space-between;
  269. align-items: center;
  270. .vip-left{
  271. .vip-left-one{
  272. display: flex;
  273. justify-content: flex-start;
  274. align-items: center;
  275. height: 64rpx;
  276. .vip-left-img{
  277. width: 64rpx;
  278. height: 64rpx;
  279. margin-right: 10rpx;
  280. }
  281. .vip-left-vip{
  282. font-size: 44rpx;
  283. background: linear-gradient(355deg, #6A4420 0%, #94673D 100%);
  284. -webkit-text-fill-color: transparent;
  285. -webkit-background-clip: text;
  286. margin-right: 12rpx;
  287. height: 64rpx;
  288. line-height: 64rpx;
  289. }
  290. .vip-left-text{
  291. font-size: 36rpx;
  292. height: 64rpx;
  293. line-height: 64rpx;
  294. color: #6A4420;
  295. }
  296. }
  297. .vip-left-two{
  298. margin-top: 10rpx;
  299. height: 44rpx;
  300. line-height: 44rpx;
  301. font-size: 28rpx;
  302. color: #925C29;
  303. font-weight: 400;
  304. }
  305. }
  306. .vip-right{
  307. border-radius: 200rpx;
  308. padding: 10rpx 24rpx;
  309. background: #6A4420;
  310. height: 40rpx;
  311. line-height: 40rpx;
  312. font-size: 28rpx;
  313. font-weight: 600;
  314. color: #FFDDA1;
  315. }
  316. }
  317. .vip-discounts{
  318. background: linear-gradient(270deg, #FE2315 0%, #FE6915 100%);
  319. border-radius: 0 20rpx 0 20rpx;
  320. height: 40rpx;
  321. line-height: 40rpx;
  322. padding: 0 16rpx;
  323. font-size: 24rpx;
  324. position:absolute;
  325. top: 0;
  326. right: 0;
  327. }
  328. }
  329. .subscription{
  330. margin-top: 36rpx;
  331. font-size: 18rpx;
  332. }
  333. .my-tag{
  334. margin-top: 36rpx;
  335. padding-bottom: 30rpx;
  336. display: flex;
  337. justify-content: space-around;
  338. .tag-item{
  339. height: 44rpx;
  340. line-height: 44rpx;
  341. font-size: 32rpx;
  342. color: #999;
  343. font-weight: 500;
  344. transition: .5s ease;
  345. }
  346. .tag-pitch{
  347. color: #141414;
  348. font-weight: 600;
  349. transition: .5s ease;
  350. }
  351. }
  352. }
  353. }
  354. </style>