TxDetail.vue 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. <template>
  2. <view class="container">
  3. <view class="bgf pof">
  4. <view class="flex-center search-content">
  5. <view class="search flex-y-center" style="margin-bottom: 0;">
  6. <icon type="search" size="16" />
  7. <input placeholder="请输入订单编号" class="flex-grow-1" type="text" value="" @confirm="firmSeach"
  8. @input="putSeach" />
  9. </view>
  10. <text @click="bindSeach">搜索</text>
  11. </view>
  12. <view class="box-pack-between header-hg100 flex-y-center ">
  13. <view class="flex-y-center flex-grow-1 ft26 header-text">
  14. <view class="flex-grow-1 flex-center" @click="onTopBtnTap()">
  15. {{start_text}}
  16. <view class="d3"></view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="list">
  22. <navigator class="item" :url="`./detail?id=${item.id}`"
  23. v-for="(item,index) in list" :key="index">
  24. <view class="top flex flex-y-center box-pack-between">
  25. <view class="name text-1">{{item.account}}</view>
  26. <view class="pay-info flex flex-y-center">
  27. <view class="pay-status" style="color:red;">
  28. {{item.state==1?'待审核' :item.state==2?'通过': item.state==3?'拒绝':''}}
  29. </view>
  30. </view>
  31. </view>
  32. <view class="content" style="border-bottom: 1rpx solid #f1f1f1;">
  33. <view class="box-pack-between">
  34. <view class="cell flex flex-y-center">
  35. <view class="title">提现金额:</view>
  36. <view class="desc" style="color:red">¥{{item.tx_cost}}</view>
  37. </view>
  38. <view class="cell flex flex-y-center">
  39. <view class="title">实际金额:</view>
  40. <view class="desc" style="color:red">¥{{item.sj_cost}}</view>
  41. </view>
  42. </view>
  43. <view class="cell flex flex-y-center">
  44. <view class="title">提现账号:</view>
  45. <view class="desc" style="color:red">
  46. {{item.account}}
  47. </view>
  48. </view>
  49. <view class="cell flex flex-y-center">
  50. <view class="title">真实姓名:</view>
  51. <view class="desc" style="color:red">
  52. {{item.username}}
  53. </view>
  54. </view>
  55. <view class="cell flex flex-y-center" v-if="item.type!=3">
  56. <view class="title">提现类型:</view>
  57. <view class="desc" style="color:red">
  58. {{item.type == 1 ?'微信':item.type ==2?'支付宝':"银行"}}
  59. </view>
  60. </view>
  61. <view class="cell flex flex-y-center" >
  62. <view class="title">申请时间:</view>
  63. <view class="desc" style="color:#000">
  64. {{item.time}}
  65. </view>
  66. </view>
  67. <view class="cell flex flex-y-center" v-if="item.state != 1">
  68. <view class="title">审核时间 :</view>
  69. <view class="desc">{{item.sh_time}}</view>
  70. </view>
  71. <view class="cell flex flex-y-center" v-if="item.state == 3">
  72. <view class="title">拒绝理由 :</view>
  73. <view class="desc">{{item.reason}}</view>
  74. </view>
  75. </view>
  76. </navigator>
  77. <view class="no-more" v-if="is_bottom">
  78. ---没有更多了---
  79. </view>
  80. </view>
  81. <uni-popup-top ref="popup" type="top" :top="top" :maskClass="maskClass">
  82. <view class="showpay">
  83. <view class="model">
  84. <view class="flex-center model-date box-pack-between">
  85. <view class="model-item" :class="time_index==1?'act':''">
  86. <picker mode='date' :value="start" :start="startDate" :end="endDate"
  87. @change="bindDateChange1" data-index="1">
  88. <view class="flex-center">
  89. <text>{{start}}</text>
  90. </view>
  91. </picker>
  92. </view>
  93. <view class="model-item" :class="time_index==2?'act':''">
  94. <picker mode='date' :value="end" :start="startDate" :end="endDate" @change="bindDateChange2"
  95. data-index="1">
  96. <view class="flex-center">
  97. <text>{{end}}</text>
  98. </view>
  99. </picker>
  100. </view>
  101. </view>
  102. <view class="flex">
  103. <view class="model-btn-close model-btn flex-center" @click="clear">
  104. 清空
  105. </view>
  106. <view class="model-btn-success flex-center model-btn" @click="sure">
  107. 确定
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </uni-popup-top>
  113. </view>
  114. </template>
  115. <script>
  116. import uniPopupTop from '@/components/zx-uni-popup/uni-popup-top.vue'
  117. export default {
  118. components: {
  119. uniPopupTop
  120. },
  121. data() {
  122. return {
  123. URL: getApp().globalData.URL,
  124. admin_id: "",
  125. list: [],
  126. page: 1,
  127. is_bottom: false,
  128. time_index: 0,
  129. time_index2: 0,
  130. start: "开始时间",
  131. end: "结束时间",
  132. top: "200rpx",
  133. maskClass: {
  134. 'position': 'fixed',
  135. 'bottom': 0,
  136. 'top': "100rpx",
  137. 'left': 0,
  138. 'right': 0,
  139. 'backgroundColor': 'rgba(0, 0, 0, 0.4)'
  140. },
  141. level_text: '门店',
  142. start_text: '日期查找',
  143. }
  144. },
  145. onLoad(options) {
  146. this.admin_id = uni.getStorageSync("admin_id");
  147. },
  148. onShow() {
  149. this.getData(1);
  150. },
  151. onReachBottom() {
  152. if (!this.is_bottom) {
  153. this.getData(this.page + 1)
  154. }
  155. },
  156. methods: {
  157. Onlevel(e, text) {
  158. this.level_text = text;
  159. this.list = [];
  160. this.getData(1);
  161. this.$refs.popup.close();
  162. },
  163. // 键盘完成事件
  164. firmSeach(e) {
  165. this.serch = e.detail.value;
  166. this.getData(1);
  167. this.$refs.popup.close();
  168. },
  169. // 监听input
  170. putSeach(e) {
  171. this.serch = e.detail.value;
  172. if (!e.detail.value) {
  173. this.getData(1);
  174. }
  175. },
  176. // 搜索
  177. bindSeach(e) {
  178. this.getData(1);
  179. this.$refs.popup.close();
  180. },
  181. bindDateChange1(e) {
  182. this.time_index = e.currentTarget.dataset.index;
  183. this.start = e.target.value;
  184. },
  185. bindDateChange2(e) {
  186. this.time_index2 = e.currentTarget.dataset.index;
  187. this.end = e.target.value;
  188. },
  189. sure(e) {
  190. this.getData(1);
  191. this.$refs.popup.close();
  192. this.start_text = this.end;
  193. },
  194. clear() {
  195. this.start = '开始时间';
  196. this.start_text = '日期查找';
  197. this.end = '结束时间';
  198. this.getData(1);
  199. this.$refs.popup.close();
  200. },
  201. onTopBtnTap() {
  202. this.$refs.popup.open();
  203. },
  204. getData(page) {
  205. if (page == 1) {
  206. this.list = []
  207. this.page = 1
  208. this.is_bottom = false
  209. }
  210. this.request({
  211. url: 'smdcshop/shared_withdrawal_index',
  212. data: {
  213. admin_id: this.admin_id,
  214. serch: this.serch,
  215. page,
  216. limit: 10,
  217. start: this.start == '开始时间' ? '' : this.start,
  218. end: this.end == '结束时间' ? '' : this.end,
  219. }
  220. }).then(res => {
  221. if (res.code == 200 && res.data.length) {
  222. this.list = this.list.concat(res.data)
  223. this.page = page
  224. } else {
  225. this.is_bottom = true
  226. }
  227. })
  228. },
  229. },
  230. }
  231. </script>
  232. <style lang="scss">
  233. .store-name {
  234. max-width: 150rpx;
  235. text-overflow: ellipsis;
  236. white-space: nowrap;
  237. overflow: hidden;
  238. }
  239. .header-text .act {
  240. color: red;
  241. }
  242. .header-text .act .d3 {
  243. border-color: red transparent transparent transparent;
  244. }
  245. .pof {
  246. position: fixed;
  247. left: 0;
  248. z-index: 999;
  249. background: #fff;
  250. width: 100%;
  251. }
  252. .search-content {
  253. width: 100%;
  254. height: 100rpx;
  255. font-size: 28rpx;
  256. top: 0;
  257. .search {
  258. width: 80%;
  259. border: 1rpx solid #F1F1F1;
  260. margin-right: 15rpx;
  261. padding: 10rpx;
  262. border-radius: 50rpx;
  263. icon {
  264. margin-right: 15rpx;
  265. }
  266. }
  267. }
  268. .model {
  269. width: 100%;
  270. z-index: 10;
  271. background: #FFFFFF;
  272. padding-bottom: 20rpx;
  273. .model-date {
  274. width: 100%;
  275. padding: 20rpx 80rpx;
  276. border-bottom: 1rpx solid #F1F1F1;
  277. .model-item {
  278. width: 270rpx;
  279. text-align: center;
  280. font-size: 28rpx;
  281. color: #999;
  282. position: relative;
  283. padding: 10rpx 0;
  284. text-align: center;
  285. border-radius: 8rpx;
  286. border: 1rpx solid #999;
  287. }
  288. .act {
  289. // color: #FFFFFF;
  290. // background: #FFBE2C;
  291. // border: 1rpx solid #FFBE2C;
  292. }
  293. }
  294. .model-btn {
  295. border-radius: 8rpx;
  296. box-shadow: 0px 0px 8rpx 0px rgba(51, 135, 255, 0.20);
  297. margin: 0 auto;
  298. margin-top: 20rpx;
  299. text-align: center;
  300. width: 41%;
  301. height: 80rpx;
  302. border-radius: none;
  303. }
  304. .model-btn-close {
  305. border: 1rpx solid #F1F1F1;
  306. color: #000;
  307. }
  308. .model-btn-success {
  309. color: #FFFFFF;
  310. background: linear-gradient(315deg, #3387ff 2%, #569bff 99%);
  311. }
  312. }
  313. page {
  314. background-color: #F4F5F7;
  315. }
  316. .showpay .active {
  317. color: red
  318. }
  319. .header-hg100 {
  320. height: 100rpx;
  321. top: 100rpx;
  322. width: 100%;
  323. }
  324. .list {
  325. padding: 210rpx 25rpx 0;
  326. }
  327. .list .item {
  328. background-color: #fff;
  329. border-radius: 8rpx;
  330. overflow: hidden;
  331. padding: 0 25rpx;
  332. margin-bottom: 30rpx;
  333. box-shadow: 0rpx 6rpx 10rpx 0rpx rgba(213, 213, 213, 0.04);
  334. }
  335. .list .item .top {
  336. height: 80rpx;
  337. border-bottom: 1rpx solid #f5f5f5;
  338. }
  339. .list .item .top .pay-info {
  340. flex: none;
  341. }
  342. .pay-type-icon {
  343. display: block;
  344. width: 28rpx;
  345. height: 28rpx;
  346. flex: none;
  347. margin-right: 8rpx;
  348. }
  349. .pay-status {
  350. font-size: 28rpx;
  351. color: #464646;
  352. }
  353. .list .item .content {
  354. padding: 20rpx 0;
  355. }
  356. .list .content .cell {
  357. margin-bottom: 16rpx;
  358. font-size: 26rpx;
  359. color: #99A0AD;
  360. }
  361. .list .content .cell:last-child {
  362. margin-bottom: 0;
  363. }
  364. .list .content .cell .title {
  365. color: #99A0AD;
  366. }
  367. .list .content .cell .desc {
  368. color: #666;
  369. }
  370. .qc-btn {
  371. background-color: #3387FF;
  372. color: #fff;
  373. border-radius: 6rpx;
  374. height: 48rpx;
  375. line-height: 48rpx;
  376. padding: 0 20rpx;
  377. margin-left: 10rpx;
  378. }
  379. .header-text {
  380. text-align: center;
  381. }
  382. .box-li {
  383. background-color: #fff;
  384. text-align: center;
  385. border-bottom: 1rpx solid #f1f1f1;
  386. height: 80rpx;
  387. line-height: 80rpx;
  388. font-size: 26rpx;
  389. }
  390. .goods_list {
  391. font-size: 28rpx;
  392. }
  393. .goods_list-title {
  394. padding: 20rpx 0;
  395. }
  396. .goods_list-price {
  397. font-size: 26rpx;
  398. color: red;
  399. }
  400. .goods_list-num {
  401. font-size: 26rpx;
  402. }
  403. .d3 {
  404. width: 0;
  405. height: 0;
  406. border-width: 12rpx;
  407. border-style: solid;
  408. border-color: #000 transparent transparent transparent;
  409. margin-top: 14rpx;
  410. margin-left: 6rpx;
  411. }
  412. </style>