institution_detail.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {extend name="public/base_human"/}
  2. {block name="css"}
  3. <style>
  4. .content-box {background: white;width:100%;padding:10px 5%;}
  5. .title {display: flex;flex-direction: row;align-items: center;font-size:16px;font-weight: bold;}
  6. .tel {font-size:14px;margin-top:10px;border-bottom:1px solid #ddd;padding-bottom: 10px;}
  7. .join {display: flex;flex-direction: row;align-items: center;color:#777;font-size:14px;margin-top:10px;}
  8. .join .flex-1{flex:1;}
  9. .join .mobile{display: flex;flex-direction: row;align-items: center;}
  10. .address {color:#777;font-size:14px;margin-top:10px;}
  11. .tags {margin-top:10px;}
  12. .tags .van-tag{margin-right:5px;}
  13. .introduction-title {display: flex;flex-direction: row;align-items: center;margin-top:10px;border-top:1px solid #ddd;padding-top:10px;}
  14. .introduction-content {font-size:14px;margin-top:10px; white-space: pre-wrap;color:#666;}
  15. .booth {color:var(--red);font-size:16px;margin-top:10px;font-weight: bold;text-align: center;}
  16. </style>
  17. {/block}
  18. {block name="body"}
  19. <van-nav-bar
  20. class="nav-theme"
  21. :fixed="true"
  22. :placeholder="true"
  23. left-text="返回"
  24. left-arrow
  25. @click-left="onBack"
  26. >
  27. <template #title>
  28. <span class="text-white">机构详情</span>
  29. </template>
  30. </van-nav-bar>
  31. <div class="content-box">
  32. <div class="title">
  33. <div style="width: 6px; height: 6px; background: #dd4250; border-radius: 50%; margin-right: 11px;"><span></span></div>
  34. <div>{{info.name}}</div>
  35. </div>
  36. <div class="tel" @click.stop="call(info.tel)">
  37. <van-icon name="phone" color=" #dd4250"></van-icon>
  38. {{info.tel}}
  39. </div>
  40. <div class="tags">
  41. <van-tag type="primary" v-for="tag in info.cooperate" size="medium">{{tag}}</van-tag>
  42. </div>
  43. <div class="join" v-if="info.join">
  44. <div class="flex-1">参会人:{{info.join}}</div>
  45. <div class="flex-1 mobile" v-if="info.join_mobile" @click.stop="call(info.join_mobile)">
  46. <van-icon name="phone" color=" #dd4250"></van-icon>
  47. {{info.join_mobile}}
  48. </div>
  49. </div>
  50. <div class="address">
  51. 机构地址:{{info.address}}
  52. </div>
  53. <div class="booth" v-if="info.booth">
  54. 展位:{{info.booth}}
  55. </div>
  56. <div class="booth" v-if="!info.booth">
  57. 无展位
  58. </div>
  59. <div class="introduction">
  60. <div class="introduction-title">
  61. <div style="width: 6px; height: 6px; background: #dd4250; border-radius: 50%; margin-right: 11px;"><span></span></div>
  62. <div>机构简介</div>
  63. </div>
  64. <div class="introduction-content">{{info.introduction}}</div>
  65. </div>
  66. </div>
  67. {/block}
  68. {block name="script"}
  69. <script>
  70. function v_setup() {
  71. let base = {};
  72. base.info = {$info};
  73. base.onBack = () => {
  74. history.back();
  75. };
  76. base.call = (tel) => {
  77. // vant.showImagePreview([
  78. // '/static/mobile/images/wechat_qrcode_enterprise.jpg'
  79. // ]);
  80. location.href = "tel://" + tel;
  81. };
  82. return base;
  83. }
  84. </script>
  85. {/block}