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.

393 lines
8.2 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <view class="app-container" style="background-color: #f7f7f7;">
  3. <view class="page-bg">
  4. <view class="withdrawal-management">
  5. <navigator hover-class="none" url="/pages/withdrawal-management/withdrawal-management">
  6. <button class="withdrawal-button">提现管理</button>
  7. </navigator>
  8. </view>
  9. <view class="withdrawal-limit">
  10. <view class="limit-symbol"></view>
  11. <view class="withdrawal-volume">{{accountInfo.wallet_balance}}</view>
  12. </view>
  13. <view class="Withdrawable-text">可提现</view>
  14. <view class="withdrawal-content">
  15. <image class="withdrawal-line"
  16. src="https://common-1257637852.cos.ap-guangzhou.myqcloud.com/paidui-pay/withdrawal-line.png" />
  17. </view>
  18. <view class="to-be-credited">待入账{{accountInfo.waiting_amount}}</view>
  19. <view class="divider-style"></view>
  20. <view class="information-id-content">
  21. <view class="content-id-item">
  22. <view class="id-text">
  23. 用户ID
  24. </view>
  25. <view class="id-value">
  26. {{accountInfo.id}}
  27. </view>
  28. </view>
  29. </view>
  30. <view class="queuing-information-content">
  31. <view class="recent-orders-title">
  32. <image class="title-stlye"
  33. src="https://common-1257637852.cos.ap-guangzhou.myqcloud.com/paidui-pay/title-stlye.png" />
  34. <view class="title-text">最近排队信息</view>
  35. </view>
  36. <view class="information-item">
  37. <view class="item-content" v-if="!queueList.length">
  38. <view class="item-content-text">暂无排队</view>
  39. </view>
  40. <view class="item-content" v-for="item in queueList" :key="item.id">
  41. <view class="item-content-titie">{{item.merchant.name}}</view>
  42. <view class="item-content-text">购买时排队<span class="style-text">{{item.buy_queue_index}}</span>当前<span
  43. class="style-text">{{item.now_queue_index}}</span>
  44. </view>
  45. </view>
  46. <navigator hover-class="none" url="/pages/queuing-information/queuing-information">
  47. <view class="see-more-content">
  48. <view class="see-more-text">查看更多</view>
  49. <view class="see-more-icon"></view>
  50. </view>
  51. </navigator>
  52. </view>
  53. </view>
  54. <view class="ordering-information">
  55. <view class="ordering-information-item" v-if="!orderList.length">
  56. <view class="order-number">暂无订单</view>
  57. </view>
  58. <view class="ordering-information-item" v-for="order in orderList" :key="order.out_trade_no">
  59. <view class="order-number">订单编号 {{order.out_trade_no}}</view>
  60. <view class="ordering-item-content">
  61. <view class="ordering-pic">
  62. <image class="order-chart" :src="order.merchant.logo" />
  63. </view>
  64. <view class="ordering-text">
  65. <view class="ordering-text-title">{{order.merchant.name}}</view>
  66. <view class="amount-of-money">金额<span class="price-style">{{order.amount}}</span></view>
  67. <view class="order-time">订单时间{{order.paid_at}}</view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. </template>
  75. <script>
  76. import {
  77. userAccountInfo,
  78. userQueueRebateList,
  79. userOrderList
  80. } from '../../common/api.js'
  81. export default {
  82. data() {
  83. return {
  84. accountInfo: {},
  85. queueList: [],
  86. orderList: []
  87. }
  88. },
  89. onLoad() {
  90. this.getAccountInfo();
  91. this.getQueueList();
  92. this.getOrderList();
  93. },
  94. methods: {
  95. getAccountInfo() {
  96. userAccountInfo().then(data => this.accountInfo = data)
  97. },
  98. getQueueList() {
  99. userQueueRebateList({
  100. page: 1,
  101. page_size: 2,
  102. status: 0,
  103. sort_type: 1
  104. }).then(data => this.queueList = data.list)
  105. },
  106. getOrderList() {
  107. userOrderList({
  108. page: 1,
  109. page_size: 5
  110. }).then(data => this.orderList = data.list)
  111. },
  112. }
  113. }
  114. </script>
  115. <style>
  116. .uni-page-body {
  117. background: #f7f7f7;
  118. }
  119. .page-bg {
  120. height: 525rpx;
  121. background: url("https://common-1257637852.cos.ap-guangzhou.myqcloud.com/paidui-pay/withdrawal-bg.png") no-repeat center center;
  122. background-size: cover;
  123. padding: 0 30rpx;
  124. }
  125. .withdrawal-management {
  126. position: absolute;
  127. top: 0;
  128. right: 0;
  129. }
  130. button.withdrawal-button {
  131. width: 160rpx;
  132. height: 60rpx;
  133. line-height: 60rpx;
  134. font-family: PingFangSC-Regular, sans-serif;
  135. font-size: 24rpx;
  136. color: #fff;
  137. background: #FCC565;
  138. margin: 0;
  139. border-top-left-radius: 0;
  140. border-top-right-radius: 0;
  141. border-bottom-right-radius: 0;
  142. border-bottom-left-radius: 30rpx;
  143. }
  144. button::after {
  145. border: none;
  146. }
  147. .withdrawal-limit {
  148. display: flex;
  149. justify-content: center;
  150. align-items: baseline;
  151. padding-top: 30rpx;
  152. text-align: center;
  153. }
  154. .limit-symbol {
  155. font-family: PingFangSC-Regular, sans-serif;
  156. font-size: 30rpx;
  157. color: #fff;
  158. }
  159. .withdrawal-volume {
  160. font-family: "Din";
  161. font-size: 60rpx;
  162. color: #fff;
  163. font-weight: bold;
  164. margin-left: 10rpx;
  165. }
  166. .Withdrawable-text {
  167. font-family: PingFangSC-Regular, sans-serif;
  168. font-size: 30rpx;
  169. color: #fff;
  170. text-align: center;
  171. margin-top: 10rpx;
  172. }
  173. .withdrawal-content {
  174. display: flex;
  175. justify-content: center;
  176. align-items: center;
  177. padding: 15rpx 0;
  178. }
  179. image.withdrawal-line {
  180. text-align: center;
  181. width: 200rpx;
  182. height: 1rpx;
  183. background-size: cover;
  184. }
  185. .to-be-credited {
  186. font-family: PingFangSC-Regular, sans-serif;
  187. font-size: 30rpx;
  188. color: #fff;
  189. text-align: center;
  190. }
  191. .divider-style {
  192. width: 690rpx;
  193. height: 1rpx;
  194. background: #F8A0A6;
  195. margin: 20rpx 0;
  196. }
  197. .information-id-content {
  198. display: flex;
  199. justify-content: center;
  200. align-items: center;
  201. }
  202. .content-id-item {
  203. display: flex;
  204. justify-content: center;
  205. align-items: center;
  206. }
  207. .id-text {
  208. font-family: PingFangSC-Regular, sans-serif;
  209. font-size: 24rpx;
  210. color: #fff;
  211. }
  212. .id-value {
  213. font-family: PingFangSC-Regular, sans-serif;
  214. font-size: 24rpx;
  215. color: #fff;
  216. }
  217. .queuing-information-content {
  218. background: #fff;
  219. border-radius: 20rpx;
  220. padding: 30rpx 0;
  221. margin-top: 30rpx;
  222. }
  223. .recent-orders-title {
  224. display: flex;
  225. justify-content: left;
  226. align-items: center;
  227. padding: 0 30rpx;
  228. border-bottom: 1rpx solid #eeeeee;
  229. padding-bottom: 30rpx;
  230. }
  231. image.title-stlye {
  232. width: 15rpx;
  233. height: 19rpx;
  234. background-size: cover;
  235. margin-right: 20rpx;
  236. }
  237. .title-text {
  238. font-family: PingFangSC-Regular, sans-serif;
  239. font-size: 30rpx;
  240. color: #454545;
  241. font-weight: bold;
  242. }
  243. .information-item {
  244. padding: 0 30rpx;
  245. }
  246. .item-content {
  247. display: flex;
  248. justify-content: left;
  249. align-items: center;
  250. margin-top: 30rpx;
  251. }
  252. .item-content-titie {
  253. font-family: PingFangSC-Regular, sans-serif;
  254. font-size: 24rpx;
  255. color: #454545;
  256. font-weight: bold;
  257. }
  258. .item-content-text {
  259. font-family: PingFangSC-Regular, sans-serif;
  260. font-size: 24rpx;
  261. color: #666;
  262. }
  263. span.style-text {
  264. font-family: PingFangSC-Regular, sans-serif;
  265. font-size: 24rpx;
  266. color: #F52F3E;
  267. font-weight: bold;
  268. padding: 0 15rpx;
  269. }
  270. .see-more-content {
  271. display: flex;
  272. justify-content: center;
  273. align-items: center;
  274. margin-top: 30rpx;
  275. }
  276. .see-more-text {
  277. font-family: PingFangSC-Regular, sans-serif;
  278. font-size: 24rpx;
  279. color: #F52F3E;
  280. }
  281. .see-more-icon {
  282. width: 0;
  283. height: 0;
  284. border-left: 14rpx solid #FDD5D8;
  285. border-top: 14rpx solid transparent;
  286. border-bottom: 14rpx solid transparent;
  287. margin-left: 10rpx;
  288. border-radius: 10rpx;
  289. }
  290. .ordering-information {
  291. padding: 30rpx;
  292. background: #fff;
  293. margin-top: 20rpx;
  294. border-radius: 20rpx;
  295. padding-top: 0;
  296. }
  297. .order-number {
  298. font-family: PingFangSC-Regular, sans-serif;
  299. font-size: 26rpx;
  300. color: #454545;
  301. padding: 30rpx 0;
  302. }
  303. .ordering-pic {
  304. width: 120rpx;
  305. height: 120rpx;
  306. background-size: cover;
  307. border-radius: 15rpx;
  308. }
  309. image.order-chart {
  310. width: 120rpx;
  311. height: 120rpx;
  312. background-size: cover;
  313. border-radius: 15rpx;
  314. }
  315. .ordering-text {
  316. margin-left: 30rpx;
  317. }
  318. .ordering-text-title {
  319. font-family: PingFangSC-Regular, sans-serif;
  320. font-size: 30rpx;
  321. color: #454545;
  322. }
  323. .amount-of-money {
  324. font-family: PingFangSC-Regular, sans-serif;
  325. font-size: 24rpx;
  326. color: #999;
  327. padding: 10rpx 0;
  328. }
  329. span.price-style {
  330. font-family: PingFangSC-Regular, sans-serif;
  331. font-size: 24rpx;
  332. color: #F52F3E;
  333. }
  334. .order-time {
  335. font-family: PingFangSC-Regular, sans-serif;
  336. font-size: 24rpx;
  337. color: #999;
  338. }
  339. .ordering-item-content {
  340. display: flex;
  341. justify-content: left;
  342. align-items: center;
  343. border-bottom: 1rpx solid #eee;
  344. padding-bottom: 30rpx;
  345. }
  346. </style>