transferRecord.blade.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. @extends('layouts.base')
  2. @section('title', '转让记录')
  3. @section('content')
  4. <link href="{{static_url('yunshop/balance/balance.css')}}" media="all" rel="stylesheet" type="text/css"/>
  5. <link href="{{static_url('yunshop/css/member.css')}}" media="all" rel="stylesheet" type="text/css"/>
  6. <link rel="stylesheet" type="text/css" href="{{static_url('yunshop/goods/vue-goods1.css')}}"/>
  7. <style>
  8. .el-form-item__label {
  9. width: 300px;
  10. text-align: right;
  11. }
  12. .alert.alert-warning {
  13. border: 1px;
  14. color: red;
  15. border-radius: 3px;
  16. box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(255, 152, 0, 0.4);
  17. background-color: #fcf4f4;
  18. }
  19. .note-span {
  20. width: 290px;
  21. text-align: right;
  22. margin-right: 10px;
  23. }
  24. .el-radio-group {
  25. display: inline-block;
  26. line-height: 1;
  27. vertical-align: inherit;
  28. }
  29. .content {
  30. background: #eff3f6;
  31. padding: 10px !important;
  32. }
  33. .con {
  34. padding-bottom: 40px;
  35. position: relative;
  36. border-radius: 8px;
  37. min-height: 100vh;
  38. }
  39. .con .setting .block {
  40. padding: 10px;
  41. background-color: #fff;
  42. border-radius: 8px;
  43. }
  44. .con .setting .block .title {
  45. font-size: 18px;
  46. margin-bottom: 15px;
  47. display: flex;
  48. align-items: center;
  49. }
  50. .con .confirm-btn {
  51. width: calc(100% - 266px);
  52. position: fixed;
  53. bottom: 0;
  54. right: 0;
  55. margin-right: 10px;
  56. line-height: 63px;
  57. background-color: #ffffff;
  58. box-shadow: 0px 8px 23px 1px rgba(51, 51, 51, 0.3);
  59. background-color: #fff;
  60. text-align: center;
  61. }
  62. b {
  63. font-size: 14px;
  64. }
  65. .el-checkbox__inner {
  66. border: solid 1px #56be69 !important;
  67. }
  68. </style>
  69. <div id="app" v-cloak class="main">
  70. <div class="block">
  71. <div class="vue-head">
  72. <div class="vue-main-title" style="margin-bottom:20px">
  73. <div class="vue-main-title-left"></div>
  74. <div class="vue-main-title-content">转让记录</div>
  75. <div class="vue-main-title-button">
  76. </div>
  77. </div>
  78. <div class="vue-search">
  79. <el-form :inline="true" :model="search_form" class="demo-form-inline">
  80. <el-form-item label="">
  81. <el-input
  82. placeholder="转让者ID/昵称/手机号"
  83. v-model="search_form.transfer"
  84. clearable>
  85. </el-input>
  86. </el-form-item>
  87. <el-form-item label="">
  88. <el-input
  89. placeholder="被转让者ID/昵称/手机号"
  90. v-model="search_form.recipient"
  91. clearable>
  92. </el-input>
  93. </el-form-item>
  94. <el-form-item label="">
  95. <el-button type="primary" @click="search(1)">搜索</el-button>
  96. </el-form-item>
  97. </el-form>
  98. </div>
  99. </div>
  100. </div>
  101. <div style="background: #eff3f6;width:100%;height:15px;"></div>
  102. <div class="block">
  103. <div class="vue-main">
  104. <div class="vue-main-form">
  105. <div class="vue-main-title" style="margin-bottom:20px">
  106. <div class="vue-main-title-left"></div>
  107. <div class="vue-main-title-content">
  108. 转让记录列表
  109. <span style="margin-left:20px;font-size: 10px;font-weight: 0;color: #9b9da4">
  110. 总数:[[total]] &nbsp;
  111. </span>
  112. </div>
  113. </div>
  114. <el-table :data="tansfer_list.data" style="width: 100%">
  115. <el-table-column label="编号" align="center" prop="" width="auto">
  116. <template slot-scope="scope">
  117. [[scope.row.id]]
  118. </template>
  119. </el-table-column>
  120. <el-table-column label="转让人" align="center" prop="" width="auto">
  121. <template slot-scope="scope">
  122. <div>
  123. <el-image style='width:30px;height:30px;padding:1px;border:1px solid #ccc'
  124. :src="scope.row.transfer_info.avatar"
  125. alt="">
  126. </el-image>
  127. </div>
  128. <div>
  129. <el-button type="text" @click="memberNav(scope.row.transfer_info.uid)">
  130. [[scope.row.transfer_info.nickname]]
  131. </el-button>
  132. </div>
  133. </template>
  134. </el-table-column>
  135. <el-table-column label="被转让人" align="center" prop="created_at" width="auto">
  136. <template slot-scope="scope">
  137. <div>
  138. <el-image style='width:30px;height:30px;padding:1px;border:1px solid #ccc'
  139. :src="scope.row.recipient_info.avatar"
  140. alt="">
  141. </el-image>
  142. </div>
  143. <div>
  144. <el-button type="text" @click="memberNav(scope.row.recipient_info.uid)">
  145. [[scope.row.recipient_info.nickname]]
  146. </el-button>
  147. </div>
  148. </template>
  149. </el-table-column>
  150. <el-table-column label="转让金额" align="center" prop="" width="auto">
  151. <template slot-scope="scope">
  152. [[scope.row.money]]
  153. </template>
  154. </el-table-column>
  155. <el-table-column label="转让时间" align="center" prop="" width="auto">
  156. <template slot-scope="scope">
  157. [[scope.row.created_at]]
  158. </template>
  159. </el-table-column>
  160. <el-table-column label="状态" align="center" prop="" width="auto">
  161. <template slot-scope="scope">
  162. <span v-if="scope.row.status==1" class='label label-success'>转让成功</span>
  163. <span v-else class='label label-default'>转让失败</span>
  164. </template>
  165. </el-table-column>
  166. </el-table>
  167. </div>
  168. </div>
  169. </div>
  170. <!-- 分页 -->
  171. <div class="vue-page">
  172. <el-row>
  173. <el-col align="right">
  174. <el-pagination layout="prev, pager, next,jumper" @current-change="search" :total="total"
  175. :page-size="per_page" :current-page="current_page" background
  176. ></el-pagination>
  177. </el-col>
  178. </el-row>
  179. </div>
  180. </div>
  181. <script>
  182. var vm = new Vue({
  183. el: '#app',
  184. // 防止后端冲突,修改ma语法符号
  185. delimiters: ['[[', ']]'],
  186. data() {
  187. return {
  188. search_form: {
  189. transfer: '',
  190. recipient: '',
  191. },
  192. tansfer_list: {},
  193. total: 0,
  194. per_page: 0,
  195. current_page: 0,
  196. pageSize: 0,
  197. }
  198. },
  199. created() {
  200. this.getData(1)
  201. },
  202. //定义全局的方法
  203. beforeCreate() {
  204. },
  205. filters: {},
  206. methods: {
  207. getData(page) {
  208. let search = this.search_form
  209. let loading = this.$loading({
  210. target: document.querySelector(".content"),
  211. background: 'rgba(0, 0, 0, 0)'
  212. });
  213. this.$http.post('{!! yzWebFullUrl('finance.balance.transfer-record') !!}', {
  214. search: search,
  215. page: page
  216. }).then(function (response) {
  217. if (response.data.result) {
  218. this.tansfer_list = response.data.data.tansferList
  219. this.search_form = response.data.data.search
  220. this.total = response.data.data.tansferList.total
  221. this.per_page = response.data.data.tansferList.per_page
  222. this.current_page = response.data.data.tansferList.current_page
  223. loading.close();
  224. } else {
  225. this.$message({
  226. message: response.data.msg,
  227. type: 'error'
  228. });
  229. }
  230. loading.close();
  231. }, function (response) {
  232. this.$message({
  233. message: response.data.msg,
  234. type: 'error'
  235. });
  236. loading.close();
  237. });
  238. },
  239. search(page) {
  240. this.getData(page)
  241. },
  242. memberNav(uid) {
  243. let url = '{!! yzWebFullUrl('member.member.detail') !!}';
  244. window.open(url + "&id=" + uid)
  245. }
  246. },
  247. })
  248. </script>
  249. @endsection