tktbdetail.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <meta name="format-detection" content="telephone=no" />
  8. <title>潜山市党建引领信用村(社区)建设</title>
  9. <meta name="keywords" content="潜山市党建引领信用村(社区)建设">
  10. <meta name="description" content="潜山市党建引领信用村(社区)建设">
  11. <script src="static/js/vue.js"></script>
  12. <script type="text/javascript" src="static/js/vue-router.js"></script>
  13. <script src="static/js/index.js" type="text/javascript"></script>
  14. <script type="text/javascript" src="./static/js/jquery.min.js"></script>
  15. <script src="static/js/common.js"></script>
  16. <link href="static/css/common.css" rel="stylesheet" />
  17. <link href="static/css/style.css" rel="stylesheet" />
  18. <link rel="stylesheet" href="static/css/theme-chalk/index.css">
  19. <style></style>
  20. </head>
  21. <body class="qbox">
  22. <div class="qsback">
  23. <img src="static/images/back_white.png" class="backimg" />
  24. </div>
  25. <div id="appse">
  26. <header>
  27. <div>
  28. <img src="static/images/pic_up.png" class="qup"/>
  29. </div>
  30. </header>
  31. </div>
  32. <div id="app">
  33. <main>
  34. <img src="static/images/pic_tit.png" class="qtitimg"/>
  35. <div class="qd_txtbox">
  36. <div class="qd_txtt">基本信息</div>
  37. <div class="qd_txtb">
  38. <div class="qd_txtbt">尊敬的用户您好!</div>
  39. <div class="flex" >
  40. <div class="qd_txtbxa">
  41. <div class="flexcj qd_txtbxal">
  42. <img src="static/images/texa.png"/>
  43. </div>
  44. <div class="ovh">
  45. <div class="f26 c34 fw mb1 ovone">{{userName||"暂无信息"}}</div>
  46. <div class="f16 c6 ovone">姓名</div>
  47. </div>
  48. </div>
  49. <div class="qd_txtbxa">
  50. <div class="flexcj qd_txtbxal">
  51. <img src="static/images/texc.png"/>
  52. </div>
  53. <div class="ovh">
  54. <div class="f26 c34 fw mb1 ovone" v-if="creditLevel"><span class="cd3 fsi">{{creditLevel}}</span>级</div>
  55. <div class="f26 c34 fw mb1 ovone" v-else>暂无评级</div>
  56. <div class="f16 c6 ovone">信用等级</div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="qd_wel">
  63. <div class="qd_weltit ">
  64. <img src="static/images/tet_flbg.png"/>
  65. <div class="qd_weltita">{{title}}</div>
  66. </div>
  67. <div class="qd_weltxt flexcj mb3"><span></span>福利详细信息<span></span></div>
  68. <div class="qd_welb" style="padding-top: 0.16rem;padding-bottom: 0.16rem;">
  69. <div class="qd_medab">
  70. <div class="qd_medal">
  71. <img src="static/images/iconj.png" v-if="creditLevel=='AAA'"/>
  72. <img src="static/images/icony.png" v-if="creditLevel=='AA'"/>
  73. <img src="static/images/icont.png" v-if="creditLevel=='A'"/>
  74. <div class="qd_medalt">{{creditLevel}}</div>
  75. <div class="qd_medalx" v-if='creditLevel'>信用用户</div>
  76. </div>
  77. <ul v-for="(item,idx) in businesslist" :key='idx'>
  78. <li>
  79. <div class="cb5 fsi f26 fw mb12">{{item.businessName}}</div>
  80. <div class="mt28">
  81. <p v-html='item.businessPolicy'></p>
  82. </div>
  83. </li>
  84. </ul>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="qd_fixed" @click="getCode">
  89. <img src="static/images/csm.png" class="qd_fixedi"/>
  90. 出示信用码
  91. </div>
  92. </main>
  93. </div>
  94. </div>
  95. <script type="text/javascript">
  96. var app = new Vue({
  97. el: '#app',
  98. data: {
  99. id :'' ,
  100. base_url: 'http://118.31.23.65:5007/prod-api',
  101. businesslist:[],
  102. title:'',
  103. useinfo:'',
  104. phone:'',
  105. scoreflag:false,
  106. userName:'',
  107. idCard:'',
  108. creditLevel:''
  109. },
  110. created() {
  111. let search = location.search;
  112. let arr = search.split("?");
  113. this.id = decodeURI(this.getQueryString("id"))
  114. this.title = decodeURI(this.getQueryString("tit"))||'';
  115. if(window.localStorage.getItem('userinfo')){
  116. var userinfo=JSON.parse(window.localStorage.getItem('userinfo'))
  117. this.userName = userinfo.userName||'';
  118. this.creditLevel = userinfo.creditLevel||'';
  119. }
  120. this.getDataFn()
  121. },
  122. mounted() {
  123. },
  124. methods: {
  125. getDataFn(e){
  126. var that=this;
  127. $.ajax({
  128. url:this.base_url+ '/system/h5/menu/'+that.id,
  129. type: 'GET',
  130. data: {},
  131. dataType: 'json',
  132. success: function(res) {
  133. if (res.code == 200) {
  134. that.businesslist=res.data
  135. } else {
  136. that.$message({
  137. message: res.msg,
  138. type: 'error',
  139. center: true,
  140. });
  141. }
  142. }
  143. })
  144. },
  145. getUseFn() {
  146. var that = this;
  147. let params = {
  148. "idCard": that.idCard
  149. }
  150. $.ajax({
  151. url: this.base_url + '/system/h5/user/info',
  152. type: 'POST',
  153. data: JSON.stringify(params),
  154. dataType: 'json',
  155. success: function(res) {
  156. if (res.code == 200) {
  157. if(res.data){
  158. that.scoreflag=false;
  159. that.useinfo = res.data;
  160. }else{
  161. that.scoreflag=true;
  162. }
  163. } else {
  164. that.$message({
  165. message: res.msg,
  166. type: 'error',
  167. center: true,
  168. });
  169. }
  170. }
  171. })
  172. },
  173. getCode(){
  174. // 扫码出示
  175. if(!this.creditLevel){
  176. this.$message({
  177. message: "暂无信用评级",
  178. center: true,
  179. showClose:true
  180. });
  181. }else{
  182. // window.location.href="scancode.html?idCard=" + this.idCard
  183. window.location.href="category.html"
  184. }
  185. },
  186. // 获取路由参数
  187. getQueryString(name) {
  188. try {
  189. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
  190. var r = window.location.href.split('?')[1].match(reg);
  191. // console.log(reg,r)
  192. if(r != null) {
  193. return r[2];
  194. }
  195. return "";//如果此处只写return;则返回的是undefined
  196. } catch(e) {
  197. return "";//如果此处只写return;则返回的是undefined
  198. }
  199. },
  200. }
  201. })
  202. </script>
  203. <script type="text/javascript">
  204. $(document).ready(function() {
  205. $('.backimg').click(function() {
  206. window.history.go(-1)
  207. })
  208. })
  209. </script>
  210. <script src="static/js/footer.js" type="text/javascript" charset="utf-8"></script>
  211. </body>
  212. </html>