帧视界壹通告,付费看视频的微信小程序
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.

268 lines
6.0 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year 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">{{ money.money }}</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">{{ money.todayMoney }}</view>
  17. </view>
  18. <view class="bb">
  19. <view class="top">累计收益</view>
  20. <view class="bottom">{{ money.userSumMoney }}</view>
  21. </view>
  22. <view class="bb">
  23. <view class="top">已提现</view>
  24. <view class="bottom">{{ money.userMoney }}</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 list" :key="index">
  34. <view class="cardImage">
  35. <!-- <image src="../static/addBankCard/1.svg" style="width: 100%;height: 100%;"></image> -->
  36. </view>
  37. <view class="cardInfo">
  38. <view class="cardNum">
  39. {{ item.bankId }}
  40. </view>
  41. <view class="cardName">
  42. {{ item.bankAddress }}
  43. </view>
  44. </view>
  45. <view class="cardIcon">
  46. <image src="../static/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. queryParams: {
  66. pageNo: 1,
  67. pageSize: 10
  68. },
  69. total : 0,
  70. list : [],
  71. money : {}
  72. };
  73. },
  74. onShow() {
  75. this.getData()
  76. this.infoGetInfoMoney()
  77. },
  78. //滚动到屏幕底部
  79. onReachBottom() {
  80. console.log(1111111);
  81. if(this.queryParams.pageSize < this.total){
  82. this.queryParams.pageSize += 10
  83. this.getData()
  84. }
  85. },
  86. methods: {
  87. // 跳转到收益记录页面
  88. gotoIncomeRecordPage() {
  89. uni.navigateTo({
  90. url: '/pages_mine/mine/incomeRecord'
  91. });
  92. },
  93. // 跳转到提现页面
  94. gotoWithdrawPage() {
  95. uni.navigateTo({
  96. url:'/pages_mine/mine/withdraw'
  97. })
  98. },
  99. getData(){
  100. this.$api('infoGetBankCardPage', this.queryParams, res => {
  101. if(res.code == 200){
  102. this.list = res.result.records
  103. this.total = res.result.total
  104. }
  105. })
  106. },
  107. infoGetInfoMoney(){
  108. this.$api('infoGetInfoMoney', res => {
  109. if(res.code == 200){
  110. this.money = res.result
  111. }
  112. })
  113. },
  114. }
  115. }
  116. </script>
  117. <style lang="scss" scoped>
  118. .purse {
  119. .content {
  120. .content-top {
  121. display: flex;
  122. flex-direction: column;
  123. align-items: center;
  124. padding-top: 60rpx;
  125. padding-bottom: 40rpx;
  126. background-color: #f8faff;
  127. height: 18vh;
  128. .aaa {
  129. color: #000000;
  130. .top {
  131. font-size: 50rpx;
  132. }
  133. .bottom {
  134. font-size: 28rpx;
  135. display: flex;
  136. justify-content: center;
  137. align-items: center;
  138. }
  139. }
  140. .b {
  141. display: flex;
  142. justify-content: center;
  143. align-items: center;
  144. gap: 100rpx;
  145. width: 100%;
  146. margin: 30rpx 40rpx 0 40rpx;
  147. color: #4b4b4d;
  148. .bb {
  149. display: flex;
  150. flex-direction: column;
  151. align-items: center;
  152. justify-content: center;
  153. gap: 10px;
  154. }
  155. }
  156. }
  157. .content-bottom {
  158. border-radius: 50rpx 50rpx 0 0;
  159. box-shadow: 0 -10rpx 10rpx rgba(0, 0, 0, 0.2); /* 仅上边的阴影效果 */
  160. background-color: #fff;
  161. overflow: auto;
  162. height: calc(82vh - 240rpx);
  163. width: 100vw;
  164. .card-record {
  165. font-size: 34rpx;
  166. padding: 40rpx 0 0 40rpx;
  167. }
  168. .cards {
  169. display: flex;
  170. flex-direction: column;
  171. gap: 20rpx;
  172. //width: 100vw;
  173. padding: 40rpx;
  174. .cardItem {
  175. display: flex;
  176. gap: 20rpx;
  177. height: 100rpx;
  178. //border: 1px solid red;
  179. //width: 100vw;
  180. .cardImage {
  181. width: 30%;
  182. //height: 100%;
  183. }
  184. .cardInfo {
  185. display: flex;
  186. flex-direction: column;
  187. justify-content: space-evenly;
  188. gap: 6rpx;
  189. width: 60%;
  190. .cardName {
  191. font-size: 28rpx;
  192. color: #8f92a1;
  193. }
  194. .cardNum {
  195. font-size: 24rpx;
  196. color: #000000;
  197. }
  198. }
  199. .cardIcon {
  200. width: 10%;
  201. }
  202. }
  203. }
  204. }
  205. }
  206. .withdraw-button {
  207. position: fixed;
  208. bottom: 80rpx;
  209. left: 16px; // 与页面左边保持一定距离
  210. right: 16px; // 与页面右边保持一定距离
  211. background: $uni-linear-gradient-btn-color; // 按钮背景渐变
  212. color: white; // 按钮文字颜色
  213. text-align: center; // 文字居中
  214. padding: 10px 0; // 内边距,增加按钮的高度
  215. font-size: 18px; // 按钮文字大小
  216. z-index: 1000; // 确保按钮位于其他内容的上方
  217. display: flex;
  218. justify-content: center;
  219. align-items: center;
  220. width: 50%;
  221. height: 80rpx;
  222. border-radius: 10rpx;
  223. }
  224. .income-record {
  225. position: fixed;
  226. bottom: 160rpx;
  227. right: 40%;
  228. margin-bottom: 40rpx;
  229. background: $uni-linear-gradient-color;
  230. -webkit-background-clip: text; /*将设置的背景颜色限制在文字中*/
  231. -webkit-text-fill-color: transparent; /*给文字设置成透明*/
  232. }
  233. }
  234. </style>