index.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. <template>
  2. <view class="my-box">
  3. <my-nav @navHeight="setNavHeight"></my-nav>
  4. <view class="my-data" :style="{'height':'calc(100vh - '+navHeight+'rpx)'}">
  5. <scroll-view :scroll-y="true" :style="{'height':'calc(100vh - '+navHeight+'rpx)'}">
  6. <view class="my-item">
  7. <view class="my-content">
  8. <view class="content-basic">
  9. <view class="basic-left" @click="goToUrl(1)">
  10. <image class="basic-img" src="/static/img/temporary/4.png" mode="aspectFill"></image>
  11. </view>
  12. <view class="basic-right">
  13. <view @click="goToUrl(1)" 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 @click="goToUrl(1)" class="basic-signature sys-color-gray-9">
  23. 都能拿到你
  24. </view>
  25. <view class="basic-wallet">
  26. <view class="wallet-item" @click="goToUrl(2)">
  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" @click="goToUrl(3)">
  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" @click="goToUrl(4)">
  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" @click="goToUrl(5)">
  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" @click="goToUrl(6)">
  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" @click="goToUrl(7)">
  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. <my-praise></my-praise>
  103. </view>
  104. </view>
  105. </scroll-view>
  106. </view>
  107. </view>
  108. </template>
  109. <script>
  110. import MyNav from "@/pages/my/model/my-nav";
  111. import DynamicItems from "@/pages/common/dynamic/dynamic-items";
  112. import MyPraise from "@/pages/my/model/my-praise";
  113. export default {
  114. components: {MyPraise, DynamicItems, MyNav},
  115. data() {
  116. return {
  117. navHeight:0,
  118. tagNum:1
  119. }
  120. },
  121. methods: {
  122. setNavHeight(navHeight){
  123. this.navHeight=navHeight
  124. },
  125. setTagNum(tagNum){
  126. if(this.tagNum!==tagNum){
  127. this.tagNum=tagNum
  128. }
  129. },
  130. goToUrl(type){
  131. if(type===1){
  132. uni.navigateTo({
  133. 'url':'./editInformation'
  134. })
  135. }else if(type === 2){
  136. // 钱包
  137. uni.navigateTo({
  138. 'url':'/pages/wallet/wallet'
  139. })
  140. }else if(type === 3){
  141. // 波点兑换
  142. uni.navigateTo({
  143. 'url':'/pages/wallet/wave-point'
  144. })
  145. }else if(type === 4){
  146. // 礼物墙
  147. uni.navigateTo({
  148. 'url':'/pages/wallet/gift-wall'
  149. })
  150. }else if(type === 5){
  151. // 喜欢的人
  152. uni.navigateTo({
  153. 'url':'/pages/wallet/like-user?isUrlType=1'
  154. })
  155. }else if(type === 6){
  156. // 喜欢的人
  157. uni.navigateTo({
  158. 'url':'/pages/wallet/visitor'
  159. })
  160. }else if(type === 7){
  161. // 喜欢我的人
  162. uni.navigateTo({
  163. 'url':'/pages/wallet/like-me'
  164. })
  165. }
  166. }
  167. }
  168. }
  169. </script>
  170. <style scoped lang="scss">
  171. .my-box{
  172. background-image: url("/static/img/my/bg.png");
  173. background-repeat: no-repeat;//不平铺
  174. background-position: top center;//居中
  175. background-size: contain;//随容器大小
  176. height: calc(100vh - 50px - env(safe-area-inset-bottom));
  177. .my-data{
  178. background-color: #fff;
  179. border-radius: 30rpx 30rpx 0 0;
  180. padding: 40rpx 0 10rpx 0;
  181. .my-item{
  182. padding: 0 32rpx ;
  183. }
  184. .halving-line{
  185. background-color: #F2F2F2;
  186. height: 1rpx;
  187. }
  188. .my-content{
  189. .content-basic{
  190. display: flex;
  191. justify-content: space-between;
  192. height: 168rpx;
  193. .basic-left{
  194. .basic-img{
  195. border-radius: 50%;
  196. width: 168rpx;
  197. height: 168rpx;
  198. }
  199. }
  200. .basic-right{
  201. width: calc(100% - 168rpx);
  202. padding-left: 24rpx;
  203. .basic-name{
  204. display: flex;
  205. justify-content: flex-start;
  206. height: 56rpx;
  207. align-items: center;
  208. .name-text{
  209. font-size: 40rpx;
  210. line-height: 56rpx;
  211. }
  212. .name-img{
  213. height: 28rpx;
  214. }
  215. .name-vip{
  216. margin-left: 8rpx;
  217. }
  218. .name-ok{
  219. margin-left: 8rpx;
  220. }
  221. .name-no{
  222. filter: grayscale(100%);
  223. }
  224. }
  225. .basic-signature{
  226. width: 100%;
  227. display: -webkit-box;
  228. -webkit-line-clamp: 1;
  229. -webkit-box-orient: vertical;
  230. overflow: hidden;
  231. font-size: 28rpx;
  232. height: 40rpx;
  233. line-height: 40rpx;
  234. }
  235. .basic-wallet{
  236. display: flex;
  237. justify-content: flex-start;
  238. margin-top: 24rpx;
  239. .wallet-item{
  240. padding: 0 16rpx;
  241. height: 40rpx;
  242. background: #F2F2F2;
  243. border-radius: 200rpx;
  244. display: flex;
  245. justify-content: center;
  246. align-items: center;
  247. margin-right: 20rpx;
  248. .wallet-text{
  249. height: 40rpx;
  250. line-height: 40rpx;
  251. font-size: 26rpx;
  252. }
  253. .wallet-img{
  254. width: 40rpx;
  255. height: 40rpx;
  256. margin-right: 4rpx;
  257. }
  258. .exchange-img{
  259. width: 24rpx;
  260. height: 24rpx;
  261. margin-left: 4rpx;
  262. }
  263. }
  264. }
  265. }
  266. }
  267. .content-statistics{
  268. margin-top: 24rpx;
  269. padding: 16rpx 40rpx 0 40rpx;
  270. display: flex;
  271. justify-content: space-between;
  272. .statistics-item{
  273. .statistics-num{
  274. position: relative;
  275. display: flex;
  276. justify-content: center;
  277. font-size: 40rpx;
  278. .statistics-dot{
  279. position: absolute;
  280. top: -16rpx;
  281. right: -12rpx;
  282. border-radius: 200rpx;
  283. width: 24rpx;
  284. height: 24rpx;
  285. line-height: 24rpx;
  286. text-align: center;
  287. font-size: 18rpx;
  288. background-color: #ED301D;
  289. }
  290. }
  291. .statistics-text{
  292. margin-top: 8rpx;
  293. font-size: 26rpx;
  294. }
  295. }
  296. }
  297. }
  298. .vip-content{
  299. margin-top: 66rpx;
  300. border-radius: 20rpx;
  301. background: linear-gradient(137deg, #FED18E 0%, #FFDFA4 100%);
  302. //height: 118rpx;
  303. padding: 34rpx 30rpx 40rpx 28rpx;
  304. position: relative;
  305. .vip-data{
  306. display: flex;
  307. justify-content: space-between;
  308. align-items: center;
  309. .vip-left{
  310. .vip-left-one{
  311. display: flex;
  312. justify-content: flex-start;
  313. align-items: center;
  314. height: 64rpx;
  315. .vip-left-img{
  316. width: 64rpx;
  317. height: 64rpx;
  318. margin-right: 10rpx;
  319. }
  320. .vip-left-vip{
  321. font-size: 44rpx;
  322. background: linear-gradient(355deg, #6A4420 0%, #94673D 100%);
  323. -webkit-text-fill-color: transparent;
  324. -webkit-background-clip: text;
  325. margin-right: 12rpx;
  326. height: 64rpx;
  327. line-height: 64rpx;
  328. }
  329. .vip-left-text{
  330. font-size: 36rpx;
  331. height: 64rpx;
  332. line-height: 64rpx;
  333. color: #6A4420;
  334. }
  335. }
  336. .vip-left-two{
  337. margin-top: 10rpx;
  338. height: 44rpx;
  339. line-height: 44rpx;
  340. font-size: 28rpx;
  341. color: #925C29;
  342. font-weight: 400;
  343. }
  344. }
  345. .vip-right{
  346. border-radius: 200rpx;
  347. padding: 10rpx 24rpx;
  348. background: #6A4420;
  349. height: 40rpx;
  350. line-height: 40rpx;
  351. font-size: 28rpx;
  352. font-weight: 600;
  353. color: #FFDDA1;
  354. }
  355. }
  356. .vip-discounts{
  357. background: linear-gradient(270deg, #FE2315 0%, #FE6915 100%);
  358. border-radius: 0 20rpx 0 20rpx;
  359. height: 40rpx;
  360. line-height: 40rpx;
  361. padding: 0 16rpx;
  362. font-size: 24rpx;
  363. position:absolute;
  364. top: 0;
  365. right: 0;
  366. }
  367. }
  368. .subscription{
  369. margin-top: 36rpx;
  370. font-size: 18rpx;
  371. }
  372. .my-tag{
  373. margin-top: 36rpx;
  374. padding-bottom: 30rpx;
  375. display: flex;
  376. justify-content: space-around;
  377. .tag-item{
  378. height: 44rpx;
  379. line-height: 44rpx;
  380. font-size: 32rpx;
  381. color: #999;
  382. font-weight: 500;
  383. transition: .5s ease;
  384. }
  385. .tag-pitch{
  386. color: #141414;
  387. font-weight: 600;
  388. transition: .5s ease;
  389. }
  390. }
  391. }
  392. }
  393. </style>