info.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <template name="info">
  2. <view class="grace-body container_info" :class="show ?'slidein':''" @touchstart="Dever.slide" @touchend="end">
  3. <view class="grace-margin-top" style="padding:20rpx 0;">
  4. <text class="grace-h4 grace-bold">个人中心</text>
  5. </view>
  6. <view class="grace-list">
  7. <view class="grace-list-items">
  8. <view class="grace-list-image ucenter-face grace-relative">
  9. <image class="grace-list-image ucenter-face-image" src="https://graceui.oss-cn-beijing.aliyuncs.com/faces/1.png" mode="widthFix"></image>
  10. </view>
  11. <view class="grace-list-body">
  12. <view class="grace-list-title">
  13. <text class="grace-list-title-text">标题信息</text>
  14. </view>
  15. <view class="grace-list-body-desc">描述信息</view>
  16. </view>
  17. <text class="grace-list-arrow-right grace-icons icon-arrow-right"></text>
  18. </view>
  19. </view>
  20. <view class="ucenter-line"></view>
  21. <view>
  22. <graceBoxBanner :items="items"></graceBoxBanner>
  23. </view>
  24. <view class="ucenter-line"></view>
  25. <view class="grace-list grace-margin-top">
  26. <view class="grace-list-items">
  27. <text class="grace-list-icon grace-icons icon-friend grace-blue"></text>
  28. <view class="grace-list-body grace-border-b">
  29. <view class="grace-list-title">
  30. <text class="grace-list-title-text">好友动态</text>
  31. <text class="grace-badge grace-bg-red">12</text>
  32. </view>
  33. </view>
  34. <text class="grace-list-arrow-right grace-icons icon-arrow-right"></text>
  35. </view>
  36. <view class="grace-list-items">
  37. <text class="grace-list-icon grace-icons icon-wallet grace-green"></text>
  38. <view class="grace-list-body grace-border-b">
  39. <view class="grace-list-title">
  40. <text class="grace-list-title-text">我的钱包</text>
  41. </view>
  42. </view>
  43. <text class="grace-list-arrow-right grace-icons icon-arrow-right"></text>
  44. </view>
  45. <view class="grace-list-items">
  46. <text class="grace-list-icon grace-icons icon-article grace-blue-sky"></text>
  47. <view class="grace-list-body grace-border-b">
  48. <view class="grace-list-title">
  49. <text class="grace-list-title-text">我的文章</text>
  50. </view>
  51. </view>
  52. <text class="grace-list-arrow-right grace-icons icon-arrow-right"></text>
  53. </view>
  54. <view class="grace-list-items">
  55. <text class="grace-list-icon grace-icons icon-user grace-red"></text>
  56. <view class="grace-list-body">
  57. <view class="grace-list-title">
  58. <text class="grace-list-title-text">身份认证</text>
  59. </view>
  60. </view>
  61. <text class="grace-list-arrow-right grace-icons icon-arrow-right"></text>
  62. </view>
  63. </view>
  64. <view class="ucenter-line"></view>
  65. <view class="grace-list grace-margin-top">
  66. <view class="grace-list-items">
  67. <text class="grace-list-icon grace-icons icon-set grace-yellow"></text>
  68. <view class="grace-list-body grace-border-b">
  69. <view class="grace-list-title">
  70. <text class="grace-list-title-text">账户设置</text>
  71. </view>
  72. </view>
  73. <text class="grace-list-arrow-right grace-icons icon-arrow-right"></text>
  74. </view>
  75. <view class="grace-list-items">
  76. <text class="grace-list-icon grace-icons icon-phone grace-red"></text>
  77. <view class="grace-list-body">
  78. <view class="grace-list-title">
  79. <text class="grace-list-title-text">手机密保</text>
  80. </view>
  81. </view>
  82. <text class="grace-list-arrow-right grace-icons icon-arrow-right"></text>
  83. </view>
  84. </view>
  85. </view>
  86. </template>
  87. <script>
  88. export default {
  89. name: "info",
  90. props: {
  91. id : 0,
  92. bgcolor : '',
  93. color : '',
  94. },
  95. data() {
  96. return {
  97. show : false,
  98. items: [
  99. [80, '', '动态'],
  100. [100, '', '好友'],
  101. [50, '', '私信'],
  102. ['¥199', '', '余额']
  103. ]
  104. }
  105. },
  106. mounted() {
  107. this.getData();
  108. },
  109. methods:{
  110. getData : function() {
  111. var self = this;
  112. this.Dever.get(this, 'app/collection/?l=api.getInfo', {id:this.id}, function(t) {
  113. self.show = true;
  114. });
  115. },
  116. hideInfo : function() {
  117. this.show = false;
  118. this.$emit('hideInfo');
  119. },
  120. end : function(e) {
  121. var type = this.Dever.slideEnd(e);
  122. if (type == 3 || type == 4) {
  123. this.hideInfo();
  124. }
  125. },
  126. },
  127. }
  128. </script>
  129. <style>
  130. .container_info {
  131. background: white;
  132. flex: 1;
  133. display: flex;
  134. flex-direction: column;
  135. transform: translateY(100%);
  136. transition-property: transform;
  137. transition-duration: 0.3s;
  138. transition-timing-function: ease-in;
  139. z-index:20;
  140. position: fixed;
  141. height: 100%;
  142. width: 100%;
  143. left: 0;
  144. bottom: 0;
  145. overflow: hidden;
  146. }
  147. .container_info.slidein{
  148. transform: translateY(0);
  149. }
  150. .ucenter-face{width:100rpx !important; height:100rpx !important;}
  151. .ucenter-face-image{width:100rpx !important; height:100rpx !important;}
  152. .ucenter-line{height:12rpx; background-color:#F4F5F6; margin:16rpx 0;}
  153. </style>