移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

274 lines
8.4 KiB

  1. <template>
  2. <div class="home_wrapper">
  3. <div class="head_main">
  4. <div class="location">
  5. <div class="address"><i class="icon"></i>{{deptName}}</div>
  6. <div class="address">{{bookName}}</div>
  7. </div>
  8. <div class="exit_btn" @click="goOut">
  9. <p>{{userName}}</p>
  10. <i class="icon"></i>
  11. </div>
  12. </div>
  13. <div class="index_info">
  14. <div class="title"></div>
  15. <div class="nav_box" style="margin-top: 3vh;" v-for="(item,idx) in menusList" :key="idx">
  16. <p class="nav_tit">{{item.modleName}}</p>
  17. <div class="nav_list">
  18. <router-link
  19. v-for="(childrenItem,childrenIdx) in item.menus"
  20. :key="childrenItem.id"
  21. :to="{name:childrenItem.menuUrl,query:{type:'code',typeX:childrenItem.urlPara}}"
  22. class="nav_item"
  23. :style="`background:url(${require('@/assets/images/sunVillage_info/' + childrenItem.menuIcon)}) no-repeat center top;background-size: 50%;`"
  24. >
  25. {{childrenItem.menuName}}
  26. </router-link>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="footer">
  31. 技术支持:北京农燊高科信息技术有限公司
  32. </div>
  33. </div>
  34. </template>
  35. <script>
  36. import {bookInfo, nologinMenus} from "@/api/sunVillage_info/fixedAssets";
  37. import Cookies from "js-cookie";
  38. export default {
  39. name: "certificateList",
  40. data() {
  41. return {
  42. wdqlList:[],
  43. qqbzList:[],
  44. deptIdOptions:[],
  45. villageVisbile:false,
  46. showBookList:false,
  47. deptName:'',
  48. //选中的值
  49. villageValue: "",
  50. //省市区区级list
  51. hcAreaInfoOption: [],
  52. hcAreaInfoFieldName: {
  53. text: "label",
  54. value: "value",
  55. children: "children",
  56. },
  57. bookName:'',
  58. queryParams: {
  59. pageNum: 1,
  60. pageSize: 100,
  61. },
  62. //账套列表
  63. bookVisbile:false,
  64. bookList:[],
  65. bookId:"",
  66. deptId:"",
  67. book:"",
  68. userName:"",
  69. menusList:[],
  70. };
  71. },
  72. created() {
  73. this.deptId = Cookies.get('deptId')
  74. this.bookId = Cookies.get('bookId')
  75. bookInfo(this.bookId).then((res) => {
  76. if (res.code == 200) {
  77. this.deptName = res.data.deptName;
  78. this.bookName = res.data.bookName;
  79. }
  80. });
  81. if(Cookies.get('user')){
  82. this.userName = JSON.parse(Cookies.get('user')).memberName
  83. }
  84. let query = {
  85. identityType:2
  86. }
  87. nologinMenus(query).then((res) => {
  88. if (res.code == 200) {
  89. this.menusList = res.data;
  90. }
  91. });
  92. },
  93. methods: {
  94. goCode(){
  95. this.$router.push({path:'/sunVillage_info/login_code'})
  96. },
  97. goOut(){
  98. // Cookies.remove("memberName");
  99. // Cookies.remove("idcard");
  100. Cookies.remove("user");
  101. this.$router.push({name:'sunVillageInfoIndexCode',query:{deptId:this.deptId,bookId:this.bookId}})
  102. }
  103. },
  104. }
  105. </script>
  106. <style scoped lang="scss">
  107. .fixed_btn{
  108. position: fixed;
  109. right: 0;
  110. width: 115PX;
  111. bottom: 15%;
  112. border-top-left-radius: 115PX;
  113. border-bottom-left-radius: 115PX;
  114. box-shadow: 0px 2px 5px #ccc;
  115. }
  116. .home_wrapper{
  117. background: #f1f2f2;
  118. width: 100vw;
  119. min-height: 100vh;
  120. .head_main{
  121. height: 340px;
  122. background: url('../../assets/images/sunVillage_info/index_head.png') no-repeat;
  123. background-size: 100% 100%;
  124. position: relative;
  125. .location{
  126. height: 42px;
  127. line-height: 42px;
  128. position: absolute;
  129. left: 38px;
  130. top: 72px;
  131. display: flex;
  132. .address{
  133. padding:0 18px;
  134. background:rgba(255,255,255,0.75);
  135. border-radius: 42px;
  136. font-size: 28px;
  137. color: #3f3d56;
  138. margin-right: 12px;
  139. display: flex;
  140. align-items:center;
  141. .icon{
  142. display: block;
  143. width: 20px;
  144. height: 26px;
  145. background: url('../../assets/images/sunVillage_info/index_icon_1.png') no-repeat;
  146. background-size: 100% 100%;
  147. margin-right: 10px;
  148. }
  149. }
  150. .user{
  151. .icon{
  152. width: 32px;
  153. height: 32px;
  154. background: url('../../assets/images/sunVillage_info/user_icon.png') no-repeat!important;
  155. background-size: 100% 100%;
  156. }
  157. }
  158. }
  159. .exit_btn{
  160. border-radius: 50%;
  161. display: flex;
  162. align-items: center;
  163. justify-content: center;
  164. position: absolute;
  165. top: 64px;
  166. right: 36px;
  167. p{
  168. background: #3f3d56;
  169. color: #ffffff;
  170. padding: 3PX 15PX;
  171. position: relative;
  172. right: -6PX;
  173. border-top-left-radius: 20PX;
  174. border-bottom-left-radius: 20PX;
  175. box-shadow: -3PX 2PX 4PX rgba(0,0,0,0.3);
  176. }
  177. .icon{
  178. width: 61px;
  179. height: 61px;
  180. background: url('../../assets/images/sunVillage_info/login_head_h_rights.png') no-repeat;
  181. background-size: 100% 100%;
  182. box-shadow: -3PX 2PX 4PX rgba(0,0,0,0.3);
  183. border-radius: 100%;
  184. }
  185. }
  186. }
  187. .index_info{
  188. padding-top: 4.1vh;
  189. .title{
  190. width: 521px;
  191. height: 52px;
  192. background: url('../../assets/images/sunVillage_info/index_title2_rights.png') no-repeat;
  193. background-size: 100% 100%;
  194. margin:0 auto;
  195. }
  196. .nav_box{
  197. margin: 0 auto;
  198. width: calc(100% - 60px);
  199. background: #ffffff;
  200. padding: 30px 30px 40px;
  201. border-radius: 15PX;
  202. box-shadow: 0px 2px 10px #cccccc;
  203. .nav_tit{
  204. font-size: 35px;
  205. margin-bottom: 15PX;
  206. font-weight: bold;
  207. }
  208. .nav_list{
  209. display: flex;
  210. flex-flow: wrap;
  211. /*justify-content: space-between;*/
  212. .nav_item{
  213. font-size: 24px;
  214. color: #333333;
  215. text-align: center;
  216. display: flex;
  217. align-items: center;
  218. justify-content: center;
  219. padding-top: 40PX;
  220. width: 25%;
  221. &:nth-child(3){
  222. margin-right: 0;
  223. }
  224. &.n_1{
  225. background: url('../../assets/images/sunVillage_info/index_block_1_rights.png') no-repeat center top;
  226. background-size: 34.5PX;
  227. }
  228. &.n_2{
  229. background: url('../../assets/images/sunVillage_info/index_block_2_rights.png') no-repeat center top;
  230. background-size: 34.5PX;
  231. }
  232. &.n_3 {
  233. background: url('../../assets/images/sunVillage_info/index_block_3_rights.png') no-repeat center top;
  234. background-size: 34.5PX;
  235. }
  236. &.n_4 {
  237. background: url('../../assets/images/sunVillage_info/index_block_4_rights.png') no-repeat center top;
  238. background-size: 34.5PX;
  239. }
  240. &.n_5 {
  241. background: url('../../assets/images/sunVillage_info/index_block_5.png') no-repeat;
  242. background-size: 100% 100%;
  243. }
  244. &.n_6 {
  245. background: url('../../assets/images/sunVillage_info/index_block_06.png') no-repeat center top;
  246. background-size: 34.5PX;
  247. }
  248. &.n_66 {
  249. background: url('../../assets/images/sunVillage_info/tcIcon.png') no-repeat center top;
  250. background-size: 44.5PX;
  251. }
  252. &.n_77 {
  253. background: url('../../assets/images/sunVillage_info/index_block_77.png') no-repeat center top;
  254. background-size: 34.5PX;
  255. }
  256. }
  257. }
  258. }
  259. }
  260. .footer{
  261. position: absolute;
  262. bottom: 5.5vh;
  263. width: 100%;
  264. font-size: 22px;
  265. color: #3f3d56;
  266. text-align: center;
  267. }
  268. }
  269. </style>