app-user-info.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>移动端账号-详情</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <!-- 所有的 css js 资源 -->
  8. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  9. <link rel="stylesheet" href="../../static/sa.css">
  10. <script src="../../static/kj/vue.min.js"></script>
  11. <script src="../../static/kj/element-ui/index.js"></script>
  12. <script src="../../static/kj/httpVueLoader.js"></script>
  13. <script src="../../static/kj/jquery.min.js"></script>
  14. <script src="../../static/kj/layer/layer.js"></script>
  15. <script src="../../static/sa.js"></script>
  16. <style type="text/css">
  17. .c-panel .c-label{width: 8em;}
  18. </style>
  19. </head>
  20. <body>
  21. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  22. <!-- ------- 内容部分 ------- -->
  23. <div class="s-body">
  24. <div class="c-panel">
  25. <el-form v-if="m">
  26. <el-row :gutter="50">
  27. <el-col :span="12">
  28. <sa-info name="手机号码" br>{{m.phone}}</sa-info>
  29. </el-col>
  30. <el-col :span="12">
  31. <sa-info name="姓名" br>{{m.name}}</sa-info>
  32. </el-col>
  33. </el-row>
  34. <el-row :gutter="50">
  35. <el-col :span="12">
  36. <sa-info type="enum" name="类型" :value="m.userType" :jv="{1: '普通边民', 2: '边民组长', 3: '收购商', 4: '司机', 5: '外籍商户', 6: '合作社'}" br></sa-info>
  37. </el-col>
  38. <el-col :span="12">
  39. <sa-info type="enum" name="状态" :value="m.status" :jv="{0: '禁用', 1: '启用'}" br></sa-info>
  40. </el-col>
  41. </el-row>
  42. <el-row :gutter="50">
  43. <el-col :span="12">
  44. <sa-info type="enum" name="是否认证" :value="m.auth" :jv="{0: '未认证', 1: '已认证'}" br></sa-info>
  45. </el-col>
  46. <el-col :span="12">
  47. <sa-info name="人证时间" br>{{m.authTime}}</sa-info>
  48. </el-col>
  49. </el-row>
  50. <el-row :gutter="50">
  51. <el-col :span="12">
  52. <sa-info name="登录次数" br>{{m.loginCount}}</sa-info>
  53. </el-col>
  54. <el-col :span="12">
  55. <sa-info name="上次登录时间" br>{{m.lastLoginTime}}</sa-info>
  56. </el-col>
  57. </el-row>
  58. <!-- <sa-info name="外联id,user_type=1=>边民ID;user_type=3=>商户ID" br>{{m.fkId}}</sa-info> -->
  59. </el-form>
  60. </div>
  61. </div>
  62. <!-- ------- 底部按钮 ------- -->
  63. <div class="s-foot">
  64. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  65. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  66. </div>
  67. </div>
  68. <script>
  69. var app = new Vue({
  70. components: {
  71. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  72. },
  73. el: '.vue-box',
  74. data: {
  75. id: sa.p('id', 0), // 获取数据ID
  76. m: null
  77. },
  78. methods: {
  79. },
  80. mounted: function() {
  81. sa.ajax('/sp-admin/AppUser/getById?id=' + this.id, function(res) {
  82. this.m = res.data;
  83. if(res.data == null) {
  84. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  85. }
  86. }.bind(this))
  87. }
  88. })
  89. </script>
  90. </body>
  91. </html>