chargeMoney.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <template>
  2. <view>
  3. <view class="header">
  4. <ujp-navbar title="充电金" title-color="#fff" :border-bottom="false" back-icon-color="#fff">
  5. <view slot="right" style="margin-right: 10px;" @click="openModalBl=true">
  6. <view class="iconfont qr-code">
  7. &#xe60d;
  8. </view>
  9. </view>
  10. </ujp-navbar>
  11. <!-- 宣传语 -->
  12. <view class="slogan">
  13. <view class="img">
  14. <img src="../../../assets/img/slogan1.png" alt="">
  15. </view>
  16. <view class="img">
  17. <img src="../../../assets/img/chargeMoney.png" alt="">
  18. </view>
  19. </view>
  20. <!-- 金额 -->
  21. <view class="amount">
  22. <view class="headline">
  23. 总金额(元)
  24. <view class="tag">
  25. 年化率最高6% <u-icon name="arrow-right" size="10"></u-icon>
  26. </view>
  27. </view>
  28. <view class="number">
  29. <text>2000.88</text>
  30. <u-icon name="arrow-right" color="#d3d3d3" size="36"></u-icon>
  31. </view>
  32. <!-- 收益 -->
  33. <view class="earnings">
  34. <view class="yesterday">
  35. <view class="title">
  36. 昨日收益(元)<u-icon name="info-circle" color="#999999"></u-icon>
  37. </view>
  38. <view class="total-number">
  39. 0.88
  40. </view>
  41. </view>
  42. <view class="total ">
  43. <view class="title">
  44. 累计收益(元)
  45. </view>
  46. <view class="total-number">
  47. 160.88
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 按钮 -->
  52. <view class="btn">
  53. <view class="withdraw">
  54. 提现
  55. </view>
  56. <view class="top-up">
  57. 充值
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="options">
  63. <view class="item">
  64. <view class="text">
  65. 余额不足时自动扣除充电金
  66. </view>
  67. <view class="icon">
  68. <u-switch v-model="checked" size="40" active-color="#FBB94A"></u-switch>
  69. </view>
  70. </view>
  71. <view class="item">
  72. <view class="text">
  73. 合作协议
  74. </view>
  75. <view class="icon">
  76. <u-icon name="arrow-right" color="#999999"></u-icon>
  77. </view>
  78. </view>
  79. <view class="item">
  80. <view class="text">
  81. 联系客服
  82. </view>
  83. <view class="icon">
  84. <u-icon name="arrow-right" color="#999999"></u-icon>
  85. </view>
  86. </view>
  87. </view>
  88. <!-- 模态框 -->
  89. <u-modal title="昨日收益" v-model="show"
  90. :title-style="{color: '#101010'}" confirm-color="#333333">
  91. <view class="slot-content">
  92. <rich-text :nodes="content"></rich-text>
  93. </view>
  94. </u-modal>
  95. </view>
  96. </template>
  97. <script>
  98. export default {
  99. data() {
  100. return {
  101. checked: false,
  102. show: true,
  103. content:`昨日收益=充电金账户余额*(年化率/365)
  104. 若资金已转出,或转入资金还未生效则不会产生昨日收益`
  105. }
  106. },
  107. methods: {
  108. }
  109. }
  110. </script>
  111. <style lang="scss" scoped>
  112. .header{
  113. background: linear-gradient(180deg, rgba(0,148,79,1) 25%,rgba(0,185,98,1) 79%,rgba(246,246,246,1) 100%);
  114. height: 830rpx;
  115. margin-bottom: 200rpx;
  116. ::v-deep.u-navbar{
  117. z-index: 1 !important;
  118. background: none !important;
  119. }
  120. .qr-code {
  121. color: #fff;
  122. }
  123. // 宣传语
  124. .slogan{
  125. padding: 40rpx 42rpx;
  126. display: flex;
  127. align-items: center;
  128. justify-content: space-between;
  129. }
  130. // 金额
  131. .amount{
  132. border-radius: 12px;
  133. background-color: rgba(255, 255, 255, 1);
  134. margin: 0 32rpx;
  135. padding: 56rpx 40rpx;
  136. position: relative;
  137. .tag{
  138. width: 226rpx;
  139. height: 56rpx;
  140. line-height: 56rpx;
  141. border-radius: 50px 0px 0px 50px;
  142. background: linear-gradient(153.73deg, rgba(247,233,171,1) -36.35%,rgba(252,241,190,1) -16.47%,rgba(254,201,105,1) 9.59%,rgba(253,243,145,1) 72.54%,rgba(251,185,74,1) 100.1%);
  143. color: rgba(165, 87, 0, 1);
  144. font-size: 24rpx;
  145. text-align: center;
  146. position: absolute;
  147. top: 44rpx;
  148. right: 0;
  149. }
  150. }
  151. .number{
  152. color: rgba(16, 16, 16, 1);
  153. font-size: 88rpx;
  154. display: flex;
  155. align-items: center;
  156. text{
  157. margin-right: 8rpx;
  158. }
  159. }
  160. // 收益
  161. .earnings{
  162. margin-top: 72rpx;
  163. display: flex;
  164. .yesterday,.total{
  165. .title{
  166. color: rgba(119, 119, 119, 1);
  167. font-size: 12px;
  168. }
  169. .total-number{
  170. color: rgba(51, 51, 51, 1);
  171. font-size: 40rpx;
  172. margin-top: 8rpx;
  173. }
  174. }
  175. .total{
  176. margin-left: 148rpx;
  177. }
  178. }
  179. // 按钮
  180. .btn{
  181. margin-top: 40rpx;
  182. display: flex;
  183. justify-content: space-between;
  184. .withdraw{
  185. width: 145px;
  186. height: 96rpx;
  187. line-height: 96rpx;
  188. border-radius: 4px;
  189. background-color: rgba(230, 245, 230, 1);
  190. color: rgba(0, 185, 98, 1);
  191. font-size: 32rpx;
  192. text-align: center;
  193. }
  194. .top-up{
  195. width: 145px;
  196. height: 96rpx;
  197. line-height: 96rpx;
  198. border-radius: 4px;
  199. background-color: rgba(0, 185, 98, 1);
  200. color: rgba(255, 255, 255, 1);
  201. font-size: 32rpx;
  202. text-align: center;
  203. }
  204. }
  205. }
  206. .options{
  207. background-color: #fff;
  208. border-radius: 12px;
  209. margin:0 32rpx;
  210. .item{
  211. display: flex;
  212. justify-content: space-between;
  213. align-items: center;
  214. border-bottom:1px solid #F0F0F2;
  215. padding: 24rpx 0;
  216. margin: 0 32rpx;
  217. .text{
  218. color: rgba(51, 51, 51, 1);
  219. font-size: 32rpx;
  220. }
  221. }
  222. }
  223. .slot-content {
  224. font-size: 28rpx;
  225. color: #111111;
  226. padding:0 30rpx;
  227. margin: 32rpx 0 ;
  228. line-height: 40rpx;
  229. }
  230. </style>