帧视界壹通告,付费看视频的微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

227 lines
5.2 KiB

11 months ago
11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="purse">
  3. <!--顶部导航栏-->
  4. <navbar leftClick @leftClick="$utils.navigateBack" title="我的钱包"/>
  5. <!--内容区-->
  6. <view class="content">
  7. <!--上部分-->
  8. <view class="content-top">
  9. <view class="aaa">
  10. <view class="top">1240,045</view>
  11. <view class="bottom">可提现金额</view>
  12. </view>
  13. <view class="b">
  14. <view class="bb">
  15. <view class="top">今日收益</view>
  16. <view class="bottom">1234</view>
  17. </view>
  18. <view class="bb">
  19. <view class="top">累计收益</view>
  20. <view class="bottom">1234</view>
  21. </view>
  22. <view class="bb">
  23. <view class="top">已提现</view>
  24. <view class="bottom">1234</view>
  25. </view>
  26. </view>
  27. </view>
  28. <!--下部分-->
  29. <view class="content-bottom">
  30. <view class="card-record">卡片记录</view>
  31. <!--具体银行卡-->
  32. <view class="cards" >
  33. <view class="cardItem" v-for="(item, index) in 5" :key="index">
  34. <view class="cardImage">
  35. <image src="/static/image/addBankCard/1.svg" style="width: 100%;height: 100%;"></image>
  36. </view>
  37. <view class="cardInfo">
  38. <view class="cardNum">
  39. 6222021000000000018
  40. </view>
  41. <view class="cardName">
  42. 工商银行
  43. </view>
  44. </view>
  45. <view class="cardIcon">
  46. <image src="/static/image/purse/1.svg" style="width: 70%;height: 70%;"></image>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <!--收益记录和去提现-->
  53. <span class="income-record" @click="gotoIncomeRecordPage">收益记录</span>
  54. <!--去提现按钮-->
  55. <button @click="gotoWithdrawPage" class="bottomBtn">
  56. 去提现
  57. </button>
  58. </view>
  59. </template>
  60. <script>
  61. import '../../common.css'; // 引入公共 CSS 文件
  62. export default {
  63. data() {
  64. return {};
  65. },
  66. methods: {
  67. // 跳转到收益记录页面
  68. gotoIncomeRecordPage() {
  69. this.$utils.navigateTo('/mine/incomeRecord');
  70. },
  71. // 跳转到提现页面
  72. gotoWithdrawPage() {
  73. this.$utils.navigateTo('/mine/withdraw');
  74. }
  75. }
  76. }
  77. </script>
  78. <style lang="scss" scoped>
  79. .purse {
  80. .content {
  81. .content-top {
  82. display: flex;
  83. flex-direction: column;
  84. align-items: center;
  85. padding-top: 60rpx;
  86. background-color: #f8faff;
  87. height: 18vh;
  88. .aaa {
  89. color: #000000;
  90. .top {
  91. font-size: 50rpx;
  92. }
  93. .bottom {
  94. font-size: 14px;
  95. display: flex;
  96. justify-content: center;
  97. align-items: center;
  98. }
  99. }
  100. .b {
  101. display: flex;
  102. justify-content: center;
  103. align-items: center;
  104. gap: 100rpx;
  105. width: 100%;
  106. margin: 30rpx 40rpx 0 40rpx;
  107. color: #4b4b4d;
  108. .bb {
  109. display: flex;
  110. flex-direction: column;
  111. align-items: center;
  112. justify-content: center;
  113. gap: 10px;
  114. }
  115. }
  116. }
  117. .content-bottom {
  118. border-radius: 50rpx 50rpx 0 0;
  119. box-shadow: 0 -10rpx 10rpx rgba(0, 0, 0, 0.2); /* 仅上边的阴影效果 */
  120. background-color: #fff;
  121. height: calc(82vh - 240rpx);
  122. width: 100vw;
  123. .card-record {
  124. font-size: 34rpx;
  125. padding: 40rpx 0 0 40rpx;
  126. }
  127. .cards {
  128. display: flex;
  129. flex-direction: column;
  130. gap: 20rpx;
  131. //width: 100vw;
  132. padding: 40rpx;
  133. .cardItem {
  134. display: flex;
  135. gap: 20rpx;
  136. height: 100rpx;
  137. //border: 1px solid red;
  138. //width: 100vw;
  139. .cardImage {
  140. width: 30%;
  141. //height: 100%;
  142. }
  143. .cardInfo {
  144. display: flex;
  145. flex-direction: column;
  146. justify-content: space-evenly;
  147. gap: 6rpx;
  148. width: 60%;
  149. .cardName {
  150. font-size: 28rpx;
  151. color: #8f92a1;
  152. }
  153. .cardNum {
  154. font-size: 24rpx;
  155. color: #000000;
  156. }
  157. }
  158. .cardIcon {
  159. width: 10%;
  160. }
  161. }
  162. }
  163. }
  164. }
  165. .withdraw-button {
  166. position: fixed;
  167. bottom: 80rpx;
  168. left: 16px; // 与页面左边保持一定距离
  169. right: 16px; // 与页面右边保持一定距离
  170. background: $uni-linear-gradient-btn-color; // 按钮背景渐变
  171. color: white; // 按钮文字颜色
  172. text-align: center; // 文字居中
  173. padding: 10px 0; // 内边距,增加按钮的高度
  174. font-size: 18px; // 按钮文字大小
  175. z-index: 1000; // 确保按钮位于其他内容的上方
  176. display: flex;
  177. justify-content: center;
  178. align-items: center;
  179. width: 50%;
  180. height: 80rpx;
  181. border-radius: 10rpx;
  182. }
  183. .income-record {
  184. position: fixed;
  185. bottom: 160rpx;
  186. right: 40%;
  187. margin-bottom: 40rpx;
  188. background: $uni-linear-gradient-color;
  189. -webkit-background-clip: text; /*将设置的背景颜色限制在文字中*/
  190. -webkit-text-fill-color: transparent; /*给文字设置成透明*/
  191. }
  192. }
  193. </style>