移动端
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.
 
 

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