mine.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <view class="mine">
  3. <!-- 头部 -->
  4. <navbar :back="false" title="我的" :bgcolor="backgroundColor" color="#fff" fixed zIndex="1010" :center="true" :custom='true' @getTop="getTop"/>
  5. <image :src="bgimg" class="minebg"></image>
  6. <view class="minebox">
  7. <view class="minetop flexc">
  8. <image :src="headimg" class="minetopa flex0"></image>
  9. <view class="flex1">
  10. <view class="minetopt">蒋小华</view>
  11. <view class="minetoptx">
  12. <image :src="mtitimg"></image>
  13. 天柱山风景区
  14. </view>
  15. </view>
  16. <!-- <view class="minetoptr flex0">
  17. 我的卡片<image :src="rimg"></image>
  18. </view> -->
  19. </view>
  20. <view class="minelists">
  21. <view class="minelist">
  22. <view class="minelista">
  23. <image :src="listd" mode="aspectFit" style="height: 40rpx;"></image>
  24. </view>
  25. <view class="minelistit">核销记录</view>
  26. <image :src="rimg" class="minelistr"></image>
  27. </view>
  28. <view class="minelist">
  29. <view class="minelista">
  30. <image :src="listf" mode="aspectFit"></image>
  31. </view>
  32. <view class="minelistit">使用指南</view>
  33. <image :src="rimg" class="minelistr"></image>
  34. </view>
  35. <view class="minelist">
  36. <view class="minelista">
  37. <image :src="listg" mode="aspectFit"></image>
  38. </view>
  39. <view class="minelistit">修改密码</view>
  40. <image :src="rimg" class="minelistr"></image>
  41. </view>
  42. </view>
  43. </view>
  44. <!-- 底部 导航栏 currentPage 当前页面ID -->
  45. <tab-bar :currentPage="2"></tab-bar>
  46. </view>
  47. </template>
  48. <script>
  49. //导入组件
  50. import tabBar from '@/components/tabbar/tabbar.vue'
  51. export default {
  52. data() {
  53. return {
  54. padtop:this.$http._GET.customBarH||0,
  55. backgroundColor: 'transparent',
  56. bgimg:require('@/static/image/minebg.png'),
  57. headimg:require('@/static/image/head.png'),
  58. mtitimg:require('@/static/image/mtit.png'),
  59. rimg:require("@/static/image/rimg.png"),
  60. lista:require("@/static/image/mlista.png"),
  61. listb:require("@/static/image/mlistb.png"),
  62. listc:require("@/static/image/mlistc.png"),
  63. listd:require("@/static/image/mlistd.png"),
  64. liste:require("@/static/image/mliste.png"),
  65. listf:require("@/static/image/mlistf.png"),
  66. listg:require("@/static/image/mlistg.png"),
  67. };
  68. },
  69. components:{
  70. tabBar
  71. },
  72. methods: {
  73. getTop(e){
  74. this.padtop=e;
  75. },
  76. },
  77. onPageScroll(res) {
  78. var scrolltop=res.scrollTop;
  79. if(scrolltop>0){
  80. this.backgroundColor='linear-gradient(60deg, #6A6BF1, #CB4BFA)'
  81. }else{
  82. this.backgroundColor='transparent'
  83. }
  84. },
  85. };
  86. </script>
  87. <style scoped lang="scss">
  88. .mine{min-height: 100vh;background: #f5f5f5;overflow: auto;
  89. .minebg{width: 100%;height: 296rpx;}
  90. .minebox{
  91. padding: 0 34rpx;margin-top: -128rpx;box-sizing: border-box;overflow: hidden;position: relative;
  92. .minetop{width: 684rpx;min-height: 166rpx;
  93. background: #FFFFFF;box-shadow: 4rpx 6rpx 6rpx 0px rgba(91,91,91,0.2);border-radius: 10rpx;margin-bottom: 20rpx;padding: 28rpx 30rpx 24rpx;box-sizing: border-box;margin-bottom: 20rpx;
  94. .minetopa{width: 112rpx;height: 114rpx;margin-right: 30rpx;border-radius: 50%;}
  95. .minetopt{font-size: 30rpx;font-weight: bold;color: #000000;margin-bottom: 8rpx;}
  96. .minetoptx{font-size: 26rpx;color: #666666;display: flex;align-items: center;
  97. image{width: 16rpx;height: 26rpx;margin-right: 12rpx;flex: 0 0 auto;}
  98. }
  99. .minetoptr{font-size: 28rpx;color: #000000;display: flex;align-items: center;
  100. image{width: 16rpx;height: 28rpx;margin-left: 18rpx;flex: 0 0 auto;}
  101. }
  102. }
  103. .minelists{width: 100%;border-radius: 10rpx;background-color: #FFFFFF;padding: 4rpx 32rpx;box-sizing: border-box;
  104. .minelist{display: flex;align-items: center;padding: 30rpx 0;
  105. .minelista{width: 42rpx;height: 42rpx;display: flex;align-items: center;justify-content: center;margin-right: 24rpx;flex: 0 0 auto;
  106. image{max-width: 100%;max-height: 100%;}
  107. }
  108. .minelistit{font-size: 28rpx;color: #000000;flex: 1;}
  109. .minelistr{width: 16rpx;height: 28rpx;margin-left: 18rpx;flex: 0 0 auto;}
  110. }
  111. }
  112. }
  113. }
  114. </style>