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

276 lines
5.8 KiB

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