income.blade.php 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. @extends('layouts.base')
  2. @section('title', '会员收入详情')
  3. @section('content')
  4. <link href="{{static_url('yunshop/css/member.css')}}" media="all" rel="stylesheet" type="text/css" />
  5. <style scoped>
  6. /* 全屏背景 */
  7. body {
  8. background: #eff3f6;
  9. }
  10. /* 头部 */
  11. .total-head {
  12. padding: 10px;
  13. margin: 20px 0;
  14. background: white;
  15. box-sizing: border-box;
  16. border-radius: 5px;
  17. }
  18. .vue-title {
  19. display: flex;
  20. margin: 5px 0;
  21. line-height: 32px;
  22. font-size: 16px;
  23. color: #333;
  24. font-weight: 600;
  25. }
  26. .vue-title-left {
  27. width: 4px;
  28. height: 18px;
  29. margin-top: 6px;
  30. background: #29ba9c;
  31. display: inline-block;
  32. margin-right: 10px;
  33. }
  34. .vue-title-content {
  35. font-size: 14px;
  36. flex: 1;
  37. }
  38. .member-info {
  39. /* border:1px solid red; */
  40. /* width:calc(100% - 100px); */
  41. display: flex;
  42. /* margin: 38px; */
  43. justify-content: space-between;
  44. }
  45. .item1 {
  46. display: flex;
  47. margin-left:14px;
  48. }
  49. /* 收入的金额 */
  50. .user-info {
  51. width: 200px;
  52. color: #333;
  53. /* display: flex; */
  54. margin-left: 19px;
  55. overflow: hidden;
  56. /* flex-direction: column; */
  57. justify-content: space-between;
  58. /* font-family: SourceHanSansCN-Regular; */
  59. font-family: arial, "Hiragino Sans GB", "Microsoft Yahei", 微软雅黑, 宋体, 宋体, Tahoma, Arial, Helvetica, STHeiti;
  60. font-size: 14px;
  61. /* font-weight: normal;
  62. font-stretch: normal; */
  63. letter-spacing: 1px;
  64. line-height: 33px;
  65. margin-top: -5px;
  66. }
  67. .user-info div:nth-child(1){
  68. color: rgb(51, 51, 51);
  69. font-weight: 600;
  70. }
  71. .user-info div:not(div:nth-child(1)) {
  72. /* color: #868686; */
  73. /* font-weight: 600; */
  74. color: rgb(134, 134, 134);
  75. }
  76. .member_income_box{
  77. display: flex;
  78. /* border:1px yellow solid; */
  79. width: 819px;
  80. justify-content:space-around;
  81. margin-right:9%;
  82. }
  83. .item2-price,
  84. .item3-price,
  85. .item4-price {
  86. font-family: SourceHanSansCN-Bold;
  87. font-size: 32px;
  88. font-weight: 600;
  89. font-stretch: normal;
  90. letter-spacing: 2px;
  91. color: #f3766c;
  92. line-height: 55px;
  93. }
  94. .item2-price {
  95. color: #f3766c;
  96. }
  97. .item3-price {
  98. color: #faa701;
  99. }
  100. .item4-price {
  101. color: #2cc08d;
  102. }
  103. .item2-income,
  104. .item3-income,
  105. .item4-income {
  106. font-family: SourceHanSansCN-Regular;
  107. font-size: 20px;
  108. font-weight: normal;
  109. font-stretch: normal;
  110. letter-spacing: 1px;
  111. color: #595959;
  112. text-align: center;
  113. margin-top:2px;
  114. }
  115. /* 收入的类型 */
  116. .el-table .cell {
  117. font-family: SourceHanSansCN-Regular;
  118. font-size: 14px;
  119. font-weight: normal;
  120. font-stretch: normal;
  121. letter-spacing: 0px;
  122. color: #666666;
  123. }
  124. .el-table th>.cell {
  125. font-weight: 600;
  126. }
  127. .el-table__row .cell {
  128. letter-spacing: 1px;
  129. }
  130. [v-cloak] {
  131. display: none;
  132. }
  133. .icon-solid {
  134. width: 1px;
  135. height: 46px;
  136. margin-top:20px;
  137. background-color: #dedede;
  138. }
  139. .el-table thead {
  140. height:72px;
  141. }
  142. </style>
  143. <div class="all">
  144. <div id="app" v-cloak>
  145. <div class="total-head">
  146. <div class="vue-title">
  147. <div class="vue-title-left"></div>
  148. <div class="vue-title-content">收入详情</div>
  149. </div>
  150. <div class="member-info">
  151. <div class="item1">
  152. <!-- 会员头像信息 -->
  153. <div class="avatar">
  154. <img style="width:90px;height:90px;" :src="avatar" alt="">
  155. </div>
  156. <!-- 会员个人信息 -->
  157. <div class="user-info">
  158. <div>会员id:[[uid]]</div>
  159. <div>姓名:[[realname]]</div>
  160. <div>手机号码:[[mobile]]</div>
  161. </div>
  162. </div>
  163. <div class="member_income_box">
  164. <!-- 会员收入和余额 -->
  165. <div class="item2">
  166. <div class="item2-price">[[income]]</div>
  167. <div class="item2-income">累计收入</div>
  168. </div>
  169. <div class="icon-solid"></div>
  170. <div class="item3">
  171. <div class="item3-price">[[withdraw]]</div>
  172. <div class="item3-income">累计提现</div>
  173. </div>
  174. <div class="icon-solid"></div>
  175. <div class="item4">
  176. <div class="item4-price">[[no_withdraw]]</div>
  177. <div class="item4-income">未提现</div>
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. <div class="total-floo">
  183. <!-- 会员收入详情 -->
  184. <el-table :data="tableData" style="width:100%" :row-style="{height:'82px'}" >
  185. <el-table-column height="50px" prop="type_name" align="center" label="收入类型">
  186. </el-table-column>
  187. <el-table-column prop="income" align="center" label="收入总金额">
  188. </el-table-column>
  189. <el-table-column prop="withdraw" align="center" label="已提现金额">
  190. </el-table-column>
  191. <el-table-column prop="no_withdraw" align="center" label="未提现金额">
  192. </el-table-column>
  193. </el-table>
  194. </div>
  195. </div>
  196. </div>
  197. <script>
  198. var vm = new Vue({
  199. el: "#app",
  200. delimiters: ['[[', ']]'],
  201. data() {
  202. return {
  203. tableData: [],
  204. avatar: "",
  205. uid: "",
  206. mobile: "",
  207. realname: "",
  208. income: "",
  209. no_withdraw: "",
  210. withdraw: ""
  211. }
  212. },
  213. created() {
  214. let i = window.location.href.indexOf('id=');
  215. if (i !== -1) {
  216. this.isid = true
  217. let id = Number(window.location.href.slice(i + 3));
  218. this.id = id
  219. this.postAgent(id);
  220. }
  221. },
  222. methods: {
  223. //回退
  224. hisGo(i) {
  225. // console.log(i);
  226. history.go(i)
  227. },
  228. postAgent(id) {
  229. this.$http.post("{!!yzWebFullUrl('member.member-income.show')!!}", {
  230. id
  231. }).then(res => {
  232. console.log(res);
  233. let {
  234. member,
  235. incomeAll,
  236. item
  237. } = res.body.data
  238. //头像
  239. this.avatar = member.avatar;
  240. //会员id
  241. this.uid = member.uid;
  242. //昵称
  243. this.mobile = member.mobile;
  244. //姓名
  245. this.realname = member.realname;
  246. //累计收入
  247. this.income = incomeAll.income;
  248. //累计提现
  249. this.withdraw = incomeAll.withdraw
  250. //未提现
  251. this.no_withdraw = incomeAll.no_withdraw
  252. for (let i in item) {
  253. this.tableData.push(item[i]);
  254. }
  255. console.log(this.tableData);
  256. })
  257. }
  258. }
  259. })
  260. </script>
  261. @endsection