95451d57c8341d7a07d98e5dc89397ee1b6aed05.svn-base 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. <template>
  2. <div>
  3. <div class="box">
  4. <div class="row allAlignment center head_on_box">
  5. <p
  6. class="logo"
  7. style="font-size:.6rem;color:#E1E1DF;font-family: 'Franklin Gothic Medium'"
  8. >
  9. <i style="color:#F76649;">HX</i>669
  10. </p>
  11. <p style="color:#fffffe;font-size:.36rem">转账记录</p>
  12. <!-- <img class="log" src="../assets/st-imges/indexlogo.png" alt=""> -->
  13. <div class="row allAlignment center">
  14. <img class="user-ion" @click="toRouter()" src="@/assets/st-imges/close.png" alt>
  15. <!-- <div v-if="nameShow" class="row allAlignment center username">
  16. {{name}}
  17. </div>-->
  18. <img
  19. style="margin-left: 0.44rem;"
  20. class="user-ion"
  21. src="@/assets/st-imges/contact.png"
  22. alt
  23. >
  24. </div>
  25. </div>
  26. </div>
  27. <div class="boxIn row item-center">
  28. <div class="date row center">
  29. <yd-button-group>
  30. <yd-button size="large" bgcolor="rgba(0,0,0,0)" @click.native="openStart">{{startTime}}</yd-button>
  31. </yd-button-group>
  32. </div>
  33. <p style="margin:0 .22rem">至</p>
  34. <div class="date row center">
  35. <yd-button-group>
  36. <yd-button size="large" bgcolor="rgba(0,0,0,0)" @click.native="openEnd">
  37. <div>{{endTime}}</div>
  38. </yd-button>
  39. </yd-button-group>
  40. </div>
  41. <button class="dateBtn" @click="reset()">查询</button>
  42. </div>
  43. <div class="row average box-btn item-center">
  44. <button @click="classify(0)" :class="classnum==0?'active':''">充值记录</button>
  45. <button @click="classify(1)" :class="classnum==1?'active':''">转账记录</button>
  46. </div>
  47. <div
  48. class="row center"
  49. style="height:.88rem;color:#ebebeb;font-size:.32rem;background:#666;margin-top:.1rem;"
  50. v-if="!list.list"
  51. >对不起,您当前没有数据</div>
  52. <div>
  53. <div class="datalist">
  54. <div>
  55. <yd-infinitescroll :callback="loadList" ref="infinitescrollDemo">
  56. <yd-list theme="5" slot="list">
  57. <yd-list-item>
  58. <yd-list-other slot="other">
  59. <div class="datalistbox" v-for="(item,index) in list" :key="index">
  60. <div class="row" v-if="code" :style="code?'':'display:none'">
  61. <div style="margin-right:.3rem;">
  62. <p>充值时间 :</p>
  63. <p>订&nbsp; 单&nbsp;&nbsp;号 :</p>
  64. <p>充值金额 :</p>
  65. <p>充值方式 :</p>
  66. </div>
  67. <div>
  68. <p>{{item.apply_time}}</p>
  69. <p>{{item.order_id}}</p>
  70. <p style="color:#f76649">{{item.money}}元</p>
  71. <p>{{item.recharge_type}}</p>
  72. </div>
  73. </div>
  74. <div class="row" v-if="!code" :style="!code?'':'display:none'">
  75. <div style="margin-right:.3rem;">
  76. <p>转账金额:</p>
  77. <p>提交时间:</p>
  78. <p>审核时间:</p>
  79. <p>打款时间:</p>
  80. <p>银行卡号:</p>
  81. <p>银行信息:</p>
  82. <p>平台余额:</p>
  83. </div>
  84. <div>
  85. <p style="color: rgb(247, 102, 73);">{{item.money}}元</p>
  86. <p>{{item.apply_time}}</p>
  87. <p>{{item.status==1?item.apply_time:item.status==0?'待审核':'未通过'}}</p>
  88. <p>{{item.give_time}}</p>
  89. <p>{{item.bank_no}}</p>
  90. <p>{{item.bank_info}}</p>
  91. <p>{{item.money_cash}}</p>
  92. </div>
  93. </div>
  94. </div>
  95. </yd-list-other>
  96. </yd-list-item>
  97. </yd-list>
  98. </yd-infinitescroll>
  99. </div>
  100. </div>
  101. </div>
  102. <yd-cell-group style="display:none;">
  103. <yd-cell-item arrow>
  104. <yd-datetime
  105. type="date"
  106. ref="datetimeStart"
  107. :end-date="endTime"
  108. slot="right"
  109. v-model="startTime"
  110. ></yd-datetime>
  111. </yd-cell-item>
  112. </yd-cell-group>
  113. <yd-cell-group style="display:none;">
  114. <yd-cell-item arrow>
  115. <yd-datetime
  116. type="date"
  117. ref="datetimeEnd"
  118. :start-date="startTime"
  119. :end-date="date"
  120. slot="right"
  121. v-model="endTime"
  122. ></yd-datetime>
  123. </yd-cell-item>
  124. </yd-cell-group>
  125. </div>
  126. </template>
  127. <script>
  128. import "@/css/index.css";
  129. export default {
  130. name: "AccessRecords",
  131. data() {
  132. return {
  133. img: require("@/assets/st-imges/date.png"),
  134. img1: require("@/assets/st-imges/home.png"),
  135. img2: require("@/assets/st-imges/gengduo-1.png"),
  136. close: require("@/assets/st-imges/close.png"),
  137. kefu: require("@/assets/st-imges/kefu.png"),
  138. list: "",
  139. // 当前时间 同时也是日历结束时间
  140. date: "",
  141. classnum: 0,
  142. // 日历开始时间
  143. startDate: "",
  144. // 查询开始时间
  145. startTime: "",
  146. // 查询结束时间
  147. endTime: "",
  148. // 是否请求
  149. isrequest: true,
  150. code: "",
  151. // 分页
  152. page: 1,
  153. pageSize: 5,
  154. timers: true
  155. };
  156. },
  157. created() {
  158. this.initialTime();
  159. },
  160. methods: {
  161. //判断登录是否过期
  162. getuserData() {
  163. if (localStorage.getItem("token")) {
  164. this.$http
  165. .post(this.$ports.login.getAgent, {
  166. token: localStorage.getItem("token")
  167. })
  168. .then(res => {
  169. if (res.data.status == -4001) {
  170. this.$store.dispatch("SET_TOKEN", "");
  171. this.$store.dispatch("GET_ISSHOW", false);
  172. this.$dialog.toast({
  173. mes: "对不起您的登录已过期,请您重新登录",
  174. timeout: 3000
  175. });
  176. this.$router.push("/");
  177. }
  178. });
  179. }
  180. },
  181. reset() {
  182. this.list = [];
  183. this.page = 1;
  184. // 重置下拉加载
  185. this.$refs.infinitescrollDemo.$emit("ydui.infinitescroll.reInit");
  186. this.loadList();
  187. },
  188. classify(num) {
  189. this.classnum = num;
  190. this.reset();
  191. },
  192. initialTime() {
  193. // 现在的时间
  194. let date = new Date();
  195. // 日历开始时间
  196. let date2 = new Date(date);
  197. date2.setMonth(date.getMonth() - 3);
  198. this.startDate += `${date2.getFullYear()}-${
  199. date2.getMonth() + 1 < 10
  200. ? "0" + (date2.getMonth() + 1)
  201. : date2.getMonth() + 1
  202. }-${date2.getDate() < 10 ? "0" + date2.getDate() : date2.getDate()}`;
  203. this.date += `${date.getFullYear()}-${
  204. date.getMonth() + 1 < 10
  205. ? "0" + (date.getMonth() + 1)
  206. : date.getMonth() + 1
  207. }-${date.getDate() < 10 ? "0" + date.getDate() : date.getDate()}`;
  208. // 查询结束时间
  209. this.endTime += `${date.getFullYear()}-${
  210. date.getMonth() + 1 < 10
  211. ? "0" + (date.getMonth() + 1)
  212. : date.getMonth() + 1
  213. }-${date.getDate() < 10 ? "0" + date.getDate() : date.getDate()}`;
  214. this.startTime = `${date.getFullYear()}-${
  215. date.getMonth() - 2 < 10
  216. ? "0" + (date.getMonth() - 2)
  217. : date.getMonth() - 2
  218. }-${date.getDate() < 10 ? "0" + date.getDate() : date.getDate()}`;
  219. console.log(this.startDate);
  220. },
  221. // 导航
  222. toRouter() {
  223. this.$router.go(-2);
  224. },
  225. loadList() {
  226. // 补全时间
  227. let date = new Date();
  228. let hours = date.getHours();
  229. let min = date.getMinutes();
  230. let sec = date.getSeconds();
  231. if (this.isrequest) {
  232. this.$http
  233. .post(
  234. this.classnum == 0
  235. ? this.$ports.login.rechargeRecord
  236. : this.$ports.login.moneyOutRecord,
  237. {
  238. currentPage: this.page,
  239. pageSize: this.pageSize,
  240. startTime: this.startTime + " 00:00:00", //此处是补全开始时间的时间
  241. endTime:
  242. this.endTime +
  243. " " +
  244. (hours < 10 ? "0" + hours : hours) +
  245. ":" +
  246. (min < 10 ? "0" + min : min) +
  247. ":" +
  248. (sec < 10 ? "0" + sec : sec),
  249. token: localStorage.getItem("token")
  250. }
  251. )
  252. .then(res => {
  253. // console.log(res, "www111");
  254. /* 单次请求数据完毕 */
  255. if (res.data.data) {
  256. let table = res.data.data.list;
  257. this.list = [...this.list, ...table];
  258. if (res.data.data.code == 1) {
  259. this.code = true;
  260. } else {
  261. this.code = false;
  262. }
  263. }
  264. if (res.data.data.list.length < 10) {
  265. this.$dialog.toast({ mes: "当前已经没有记录", timeout: 1000 });
  266. /* 所有数据加载完毕 */
  267. this.$refs.infinitescrollDemo.$emit(
  268. "ydui.infinitescroll.loadedDone"
  269. );
  270. return;
  271. } else {
  272. /* 单次请求数据完毕 */
  273. this.$refs.infinitescrollDemo.$emit(
  274. "ydui.infinitescroll.finishLoad"
  275. );
  276. this.page++;
  277. }
  278. });
  279. }
  280. },
  281. // 日历开关
  282. openStart() {
  283. this.$refs.datetimeStart.open();
  284. },
  285. openEnd() {
  286. this.$refs.datetimeEnd.open();
  287. }
  288. },
  289. mounted() {
  290. this.loadList();
  291. this.$public.ajaxTimerFun(function(timing) {
  292. if (_this.timers) {
  293. _this.getuserData();
  294. } else {
  295. clearInterval(timing);
  296. }
  297. }, 1000 * 60);
  298. },
  299. beforeDestroy() {
  300. this.timers = false;
  301. }
  302. };
  303. </script>
  304. <style scoped>
  305. div /deep/ .yd-list-theme5 .yd-list-item .yd-list-mes {
  306. padding: 0;
  307. }
  308. div /deep/ .yd-list-theme5 .yd-list-item .yd-list-other {
  309. padding: 0;
  310. }
  311. div /deep/ .yd-list-other {
  312. display: block;
  313. }
  314. .yd-list-theme5 .yd-list-item {
  315. padding: 0;
  316. }
  317. div /deep/ .yd-list-img {
  318. display: none;
  319. }
  320. .box-btn {
  321. width: 100%;
  322. height: 1rem;
  323. background: #fff;
  324. }
  325. .box-btn button {
  326. width: 2rem;
  327. height: 0.6rem;
  328. border: none;
  329. background: #dcdcdc;
  330. color: #363636;
  331. font-size: 0.24rem;
  332. border-radius: 0.05rem;
  333. }
  334. .box-btn button.active {
  335. background: #a0a0a0;
  336. color: #dcdcdc !important;
  337. }
  338. .yd-btn-block {
  339. height: 100%;
  340. width: 100%;
  341. }
  342. .dateBtn {
  343. width: 0.94rem;
  344. height: 0.6rem;
  345. border: none;
  346. border-radius: 0.08rem;
  347. background-image: linear-gradient(7deg, #565656 0%, #999999 100%),
  348. linear-gradient(#4a4949, #4a4949);
  349. color: #ffffff;
  350. margin-left: 0.22rem;
  351. }
  352. .boxIn {
  353. background: #e4e4e4;
  354. height: 0.88rem;
  355. padding: 0 0.32rem;
  356. }
  357. .date {
  358. height: 0.6rem;
  359. border-radius: 0.25rem;
  360. background: #ccc;
  361. }
  362. .listbox p {
  363. width: 5rem;
  364. height: 0.45rem;
  365. }
  366. .paging {
  367. width: 100%;
  368. height: 0.88rem;
  369. position: absolute;
  370. bottom: 0;
  371. }
  372. .paging p {
  373. width: 0.6rem;
  374. height: 0.6rem;
  375. margin-left: 0.05rem;
  376. border-radius: 0.08rem;
  377. background: #ccc;
  378. display: flex;
  379. justify-content: center;
  380. align-items: center;
  381. color: #363636;
  382. }
  383. .paging p input {
  384. width: 0.6rem;
  385. height: 0.6rem;
  386. background: #ebebeb;
  387. border: 2px solid #ccc;
  388. border-radius: 0.08rem;
  389. }
  390. .paging p button {
  391. width: 0.6rem;
  392. height: 0.6rem;
  393. border: none;
  394. background: #555;
  395. color: #efefef;
  396. display: flex;
  397. justify-content: center;
  398. align-items: center;
  399. border-radius: 0.08rem;
  400. }
  401. .paging p button:active {
  402. background: rgb(126, 125, 125);
  403. color: #ccc;
  404. }
  405. .datalistbox {
  406. width: 100%;
  407. margin-top: 0.3rem;
  408. background: #efefef;
  409. padding: 0.2rem 0.3rem;
  410. font-size: 0.28rem;
  411. color: #555555;
  412. line-height: 0.4rem;
  413. }
  414. .datalistbox div p {
  415. height: 0.5rem;
  416. font-size: 0.3rem;
  417. line-height: 0.45 rem;
  418. font-weight: bold;
  419. }
  420. .datalist {
  421. position: relative;
  422. }
  423. .datalistlet {
  424. background-color: #cccccc;
  425. }
  426. .datalist .active {
  427. background: #f76649 !important;
  428. color: #efefef !important;
  429. }
  430. .msg {
  431. height: 0.88rem;
  432. margin-top: 0.3rem;
  433. color: #ccc;
  434. background: #333;
  435. }
  436. .classifyactive {
  437. color: #f76649;
  438. border-bottom: 2px solid #f76649;
  439. }
  440. .classify {
  441. height: 0.88rem;
  442. font-size: 0.3rem;
  443. line-height: 0.66rem;
  444. font-weight: normal;
  445. color: #777777;
  446. background-color: #efefef;
  447. padding: 0.1rem 0;
  448. }
  449. .active {
  450. color: rgb(247, 102, 73) !important;
  451. }
  452. .box {
  453. background: #ebebeb;
  454. padding-left: 0.14rem;
  455. }
  456. .date {
  457. width: 2.5rem;
  458. background: #ccc;
  459. height: 0.6rem;
  460. }
  461. #NavSlide {
  462. width: 100%;
  463. overflow: hidden;
  464. }
  465. #NavSlide nav {
  466. padding-top: 0.1rem;
  467. display: -webkit-box;
  468. display: -ms-flexbox;
  469. display: flex;
  470. -webkit-box-align: middle;
  471. -ms-flex-align: middle;
  472. align-items: middle;
  473. overflow: auto;
  474. }
  475. div /deep/ .yd-datetime-content,
  476. div /deep/ .yd-datetime-shade,
  477. div /deep/ .yd-datetime-indicator {
  478. height: 2rem !important;
  479. }
  480. div /deep/ .yd-button {
  481. padding: 0;
  482. width: 100%;
  483. height: 100%;
  484. }
  485. div /deep/ .yd-button button {
  486. margin: 0;
  487. border-radius: 0;
  488. }
  489. #NavSlide p {
  490. text-align: center;
  491. font-size: 0.28rem;
  492. -ms-flex-negative: 0;
  493. flex-shrink: 0;
  494. padding: 0 0.1rem;
  495. color: #b8b8b8;
  496. }
  497. /* #NavSlide p a{
  498. color: #E5E5E5;
  499. text-decoration: none;
  500. } */
  501. #NavSlide p span.active {
  502. color: #363636;
  503. }
  504. .head_on_box {
  505. padding: 0 0.32rem;
  506. }
  507. .box {
  508. height: 0.88rem;
  509. background: linear-gradient(to bottom, #999999, #6a6a6b);
  510. overflow: hidden;
  511. }
  512. .user-ion {
  513. width: 0.3rem;
  514. height: 0.3rem;
  515. }
  516. #NavSlide p {
  517. width: 1.1rem;
  518. }
  519. </style>