selfInfo.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <template>
  2. <view class="content" :style="{height:nowHeight}">
  3. <view class="self-title-box">
  4. <image src="../../static/logo.png" mode=""></image>
  5. <text>芝麻开花</text>
  6. </view>
  7. <view class="self-search-box">
  8. <view class="search-content">
  9. <view class="search-content-value">160</view>
  10. <view class="search-content-text">剩余查询次数(次)</view>
  11. </view>
  12. <view class="line"></view>
  13. <view class="search-content">
  14. <view class="search-content-value">300</view>
  15. <view class="search-content-text">总查询次数(次)</view>
  16. </view>
  17. </view>
  18. <view class="self-pay-box">
  19. <view class="search-content">
  20. <view class="search-content-value" style="color:#000;font-size: 38upx;margin-left: -11%;">查询套餐</view>
  21. <view class="search-content-text">限时优惠进行中</view>
  22. </view>
  23. <view class="search-content" style="width: 33%;height: 180rpx;">
  24. <image src="../../static/payIcon.png" mode=""></image>
  25. <button type="primary">去购买</button>
  26. </view>
  27. </view>
  28. <view class="self-setting-box">
  29. <view class="setting-content-box" style="border-bottom: 1upx solid #d9d9d9">
  30. <view class="setting-content-text">
  31. <image src="../../static/icon/moneyIcon.png" mode=""></image>
  32. <text>充值记录</text>
  33. </view>
  34. <view style="margin-right: 2%;margin-top: 2%;">
  35. <image src="../../static/icon/arrowIcon.png" mode="" style="width: 32upx;height:32upx;"></image>
  36. </view>
  37. </view>
  38. <view class="setting-content-box" @click.stop="goMyAskPage()">
  39. <view class="setting-content-text">
  40. <image src="../../static/icon/askIcon.png" mode="" class="askIcon"></image>
  41. <text>我的咨询</text>
  42. </view>
  43. <view style="margin-right: 2%;margin-top: 2%;">
  44. <image src="../../static/icon/arrowIcon.png" mode="" style="width: 32upx;height:32upx;"></image>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data() {
  53. return {
  54. title: '个人中心页面',
  55. nowHeight:'',
  56. }
  57. },
  58. onLoad() {
  59. this.getEquipmentHeight();
  60. },
  61. methods: {
  62. getEquipmentHeight() {
  63. let height = uni.getSystemInfoSync().windowHeight;
  64. this.nowHeight = height + 'px';
  65. },
  66. goMyAskPage(){
  67. uni.navigateTo({
  68. url: '../index/index',
  69. success: res => {},
  70. fail: () => {},
  71. complete: () => {}
  72. });
  73. }
  74. }
  75. }
  76. </script>
  77. <style>
  78. .content {
  79. display: flex;
  80. flex-direction: column;
  81. align-items: center;
  82. justify-content: flex-start;
  83. background: #f4f5f7;
  84. }
  85. .self-title-box {
  86. height: 120upx;
  87. width: 100%;
  88. background: #27BCEF;
  89. display: flex;
  90. justify-content: flex-start;
  91. align-items: center;
  92. color: #fff;
  93. }
  94. .self-title-box image {
  95. width: 90rpx;
  96. height:90rpx;
  97. border-radius: 45rpx;
  98. margin-left: 7%;
  99. margin-right: 5%;
  100. }
  101. .self-search-box {
  102. height: 200upx;
  103. width: 85%;
  104. background: #fff;
  105. margin-top: 5%;
  106. display: flex;
  107. justify-content: space-around;
  108. align-items: center;
  109. }
  110. .line {
  111. height: 150rpx;
  112. width: 1rpx;
  113. background: #D9D9D9;
  114. }
  115. .search-content {
  116. height: 150upx;
  117. width: 45%;
  118. display: flex;
  119. flex-direction: column;
  120. justify-content: space-around;
  121. align-items: center;
  122. }
  123. .search-content-value {
  124. color: #27BCEF;
  125. font-weight: bold;
  126. font-size: 42rpx;
  127. }
  128. .search-content-text {
  129. color: #888;
  130. font-size: 26rpx;
  131. }
  132. .self-pay-box {
  133. height: 200upx;
  134. width: 85%;
  135. background: #fff;
  136. margin-top: 5%;
  137. display: flex;
  138. justify-content: space-between;
  139. align-items: center;
  140. }
  141. .search-content image {
  142. width: 120rpx;
  143. height:90rpx;
  144. }
  145. .search-content button {
  146. width: 120rpx;
  147. height:60rpx;
  148. line-height: 60rpx;
  149. font-size: 26rpx;
  150. color: #fff;
  151. background-color: #27BCEF!important;
  152. padding-left: 0;
  153. padding-right: 0;
  154. }
  155. .self-setting-box {
  156. height: 200upx;
  157. width: 90%;
  158. background: #fff;
  159. margin-top: 5%;
  160. }
  161. .setting-content-box {
  162. display: flex;
  163. justify-content: space-between;
  164. align-items: center;
  165. height: 100upx;
  166. }
  167. .setting-content-text {
  168. display: flex;
  169. align-items: center;
  170. width: 50%;
  171. }
  172. .setting-content-text image {
  173. width: 60upx;
  174. height:60upx;
  175. margin-left: 5%;
  176. margin-right: 3%;
  177. }
  178. .askIcon{
  179. width: 45rpx!important;
  180. height: 45rpx!important;
  181. margin-left: 8%!important;
  182. margin-right: 5%!important;
  183. }
  184. .setting-content-text text {
  185. font-size:30rpx;
  186. }
  187. </style>