records.blade.php 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. @extends('layouts.base')
  2. @section('title', '收货地址管理')
  3. @section('content')
  4. <link href="{{static_url('yunshop/css/total.css')}}" media="all" rel="stylesheet" type="text/css" />
  5. <style>
  6. .vue-title {
  7. display: flex;
  8. margin: 5px 0;
  9. line-height: 32px;
  10. font-size: 16px;
  11. color: #333;
  12. font-weight: 600;
  13. }
  14. .vue-title-left {
  15. width: 4px;
  16. height: 18px;
  17. margin-top: 6px;
  18. background: #29ba9c;
  19. display: inline-block;
  20. margin-right: 10px;
  21. }
  22. .vue-title-content {
  23. font-size: 14px;
  24. flex: 1;
  25. }
  26. .member-info {
  27. display: flex;
  28. margin: 38px;
  29. justify-content: space-between;
  30. }
  31. .search-top {
  32. display: flex;
  33. height: 200px;
  34. }
  35. .top-item1 {
  36. flex: 1;
  37. }
  38. .top-item2 {
  39. width: 540px;
  40. }
  41. .audit,
  42. .is_follow {
  43. width: 60px;
  44. height: 22px;
  45. text-align: center;
  46. line-height: 22px;
  47. font-size: 14px;
  48. color: #fff;
  49. margin: 0 auto;
  50. border-radius: 4px;
  51. background-color: #13c7a7;
  52. }
  53. .un_follow {
  54. width: 70px;
  55. height: 22px;
  56. text-align: center;
  57. line-height: 22px;
  58. font-size: 14px;
  59. color: #fff;
  60. margin: 0 auto;
  61. border-radius: 4px;
  62. background-color: #ffb025;
  63. }
  64. .name-over {
  65. line-height: 37px;
  66. overflow: hidden;
  67. white-space: nowrap;
  68. text-overflow: ellipsis;
  69. }
  70. .el-table_1_column_2 .cell {
  71. /* display: flex; */
  72. }
  73. /* 分页 */
  74. .pagination-right {
  75. text-align: center;
  76. margin: 50px auto;
  77. }
  78. /* 列表 */
  79. p {
  80. font-size: 12px;
  81. margin-top: 5px;
  82. }
  83. .cell {
  84. /* border:1px solid red; */
  85. text-align: center;
  86. }
  87. </style>
  88. <div class="all">
  89. <div id="app">
  90. <div class="total-head">
  91. <div class="top-item2">
  92. <div class="vue-title">
  93. <div class="vue-title-left"></div>
  94. <div class="vue-title-content">收货地址</div>
  95. </div>
  96. <div style="display:flex;margin-top:20px;">
  97. <div>
  98. <img style="width:90px;height:90px;" :src="avatar" alt="">
  99. </div>
  100. <div style="margin-left:10px;display:flex;flex-direction:column;justify-content: space-between;line-height:20px;">
  101. <p style="color: #333333;font-weight:600">姓名:[[realname]]</p>
  102. <p style="color: #333333;font-weight:600">昵称:[[nickname]]</p>
  103. <p style="color: #333333;font-weight:600">手机号:[[mobile]]</p>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="total-floo">
  109. <el-table :data="tableData" style="width: 100%;">
  110. <el-table-column label="ID">
  111. <template slot-scope="scope">
  112. <p>[[ scope.row.id ]]</p>
  113. </template>
  114. </el-table-column>
  115. <el-table-column label="收货人">
  116. <template slot-scope="scope">
  117. <p>[[ scope.row.username ]]</p>
  118. </template>
  119. </el-table-column>
  120. <el-table-column label="手机号">
  121. <template slot-scope="scope">
  122. <p>[[ scope.row.mobile ]]</p>
  123. </template>
  124. </el-table-column>
  125. <el-table-column label="省份">
  126. <template slot-scope="scope">
  127. <p>[[ scope.row.province ]]</p>
  128. </template>
  129. </el-table-column>
  130. <el-table-column label="城市">
  131. <template slot-scope="scope">
  132. <p>[[ scope.row.city ]]</p>
  133. </template>
  134. </el-table-column>
  135. <el-table-column label="区域">
  136. <template slot-scope="scope">
  137. <p>[[ scope.row.district]]</p>
  138. </template>
  139. </el-table-column>
  140. <el-table-column label="街道">
  141. <template slot-scope="scope">
  142. <p v-if="is_street==1">[[ scope.row.street]]</p>
  143. </template>
  144. </el-table-column>
  145. <el-table-column label="详细地址">
  146. <template slot-scope="scope">
  147. <p>[[ scope.row.address ]]</p>
  148. </template>
  149. </el-table-column>
  150. </el-table>
  151. </div>
  152. <div class="fixed total-floo">
  153. <div class="fixed_box">
  154. <el-form>
  155. <el-form-item>
  156. <el-button @click="returnEvent">返回</el-button>
  157. </el-form-item>
  158. </el-form>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <script>
  164. var vm = new Vue({
  165. el: '#app',
  166. delimiters: ['[[', ']]'],
  167. data() {
  168. return {
  169. avatar: "",
  170. nickname: "",
  171. tableData: [],
  172. realname: "",
  173. mobile: "",
  174. currentPage: 1,
  175. pagesize: 6,
  176. total: 1,
  177. is_street: ""
  178. }
  179. },
  180. created() {
  181. //优化在不同设备固定定位挡住的现象设置父元素的内边距
  182. window.onload = function() {
  183. let all = document.querySelector(".all");
  184. let h = window.innerHeight * 0.05;
  185. all.style.paddingBottom = h + "px";
  186. }
  187. let i = window.location.href.indexOf('id=');
  188. if (i !== -1) {
  189. let id = Number(window.location.href.slice(i + 3));
  190. this.postVipInfoList(id);
  191. }
  192. },
  193. methods: {
  194. //回退
  195. hisGo(i) {
  196. // console.log(i);
  197. history.go(i)
  198. },
  199. //返回
  200. returnEvent() {
  201. history.go(-1);
  202. },
  203. //会员信息列表
  204. postVipInfoList(id) {
  205. this.$http.post("{!!yzWebFullUrl('member.member-address.show')!!}", {
  206. member_id: id
  207. }).then(res => {
  208. let {
  209. member,
  210. address,
  211. is_street
  212. } = res.body.data;
  213. //会员头像
  214. this.avatar = member.avatar;
  215. //昵称
  216. this.nickname = member.nickname;
  217. //真实姓名
  218. this.realname = member.realname;
  219. //手机号码
  220. this.mobile = member.mobile;
  221. console.log(res);
  222. console.log(member);
  223. this.tableData = address
  224. //判断街道
  225. // console.log(is_street,89622);
  226. this.is_street = is_street;
  227. })
  228. },
  229. }
  230. })
  231. </script>
  232. @endsection