selfInfo.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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;" @click.stop="goPayPage()">
  24. <image src="../../static/payIcon.png" mode=""></image>
  25. <button type="primary">去购买</button>
  26. </view>
  27. </view>
  28. <view class="self-setting-box" @click.stop="goRechargePage()">
  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:getApp().globalData.glbalHeight,
  56. }
  57. },
  58. onLoad() {
  59. },
  60. methods: {
  61. goMyAskPage(){
  62. uni.navigateTo({
  63. url: '../index/index',
  64. success: res => {},
  65. fail: () => {},
  66. complete: () => {}
  67. });
  68. },
  69. goRechargePage(){
  70. uni.navigateTo({
  71. url: './rechargeRecord/rechargeRecord',
  72. success: res => {},
  73. fail: () => {},
  74. complete: () => {}
  75. });
  76. },
  77. goPayPage(){
  78. uni.navigateTo({
  79. url: './payList/payList',
  80. success: res => {},
  81. fail: () => {},
  82. complete: () => {}
  83. });
  84. }
  85. }
  86. }
  87. </script>
  88. <style>
  89. .content {
  90. display: flex;
  91. flex-direction: column;
  92. align-items: center;
  93. justify-content: flex-start;
  94. background: #f4f5f7;
  95. }
  96. .self-title-box {
  97. height: 120upx;
  98. width: 100%;
  99. background: #27BCEF;
  100. display: flex;
  101. justify-content: flex-start;
  102. align-items: center;
  103. color: #fff;
  104. }
  105. .self-title-box image {
  106. width: 90rpx;
  107. height:90rpx;
  108. border-radius: 45rpx;
  109. margin-left: 7%;
  110. margin-right: 5%;
  111. }
  112. .self-search-box {
  113. height: 200upx;
  114. width: 85%;
  115. background: #fff;
  116. margin-top: 5%;
  117. display: flex;
  118. justify-content: space-around;
  119. align-items: center;
  120. }
  121. .line {
  122. height: 150rpx;
  123. width: 1rpx;
  124. background: #D9D9D9;
  125. }
  126. .search-content {
  127. height: 150upx;
  128. width: 45%;
  129. display: flex;
  130. flex-direction: column;
  131. justify-content: space-around;
  132. align-items: center;
  133. }
  134. .search-content-value {
  135. color: #27BCEF;
  136. font-weight: bold;
  137. font-size: 42rpx;
  138. }
  139. .search-content-text {
  140. color: #888;
  141. font-size: 26rpx;
  142. }
  143. .self-pay-box {
  144. height: 200upx;
  145. width: 85%;
  146. background: #fff;
  147. margin-top: 5%;
  148. display: flex;
  149. justify-content: space-between;
  150. align-items: center;
  151. }
  152. .search-content image {
  153. width: 120rpx;
  154. height:90rpx;
  155. }
  156. .search-content button {
  157. width: 120rpx;
  158. height:60rpx;
  159. line-height: 60rpx;
  160. font-size: 26rpx;
  161. color: #fff;
  162. background-color: #27BCEF!important;
  163. padding-left: 0;
  164. padding-right: 0;
  165. }
  166. .self-setting-box {
  167. height: 200upx;
  168. width: 90%;
  169. background: #fff;
  170. margin-top: 5%;
  171. }
  172. .setting-content-box {
  173. display: flex;
  174. justify-content: space-between;
  175. align-items: center;
  176. height: 100upx;
  177. }
  178. .setting-content-text {
  179. display: flex;
  180. align-items: center;
  181. width: 50%;
  182. }
  183. .setting-content-text image {
  184. width: 60upx;
  185. height:60upx;
  186. margin-left: 5%;
  187. margin-right: 3%;
  188. }
  189. .askIcon{
  190. width: 45rpx!important;
  191. height: 45rpx!important;
  192. margin-left: 8%!important;
  193. margin-right: 5%!important;
  194. }
  195. .setting-content-text text {
  196. font-size:30rpx;
  197. }
  198. </style>