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

299 line
9.2 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. <img src="../../../static/images/sunVillage_info/sunVillage_info_index_code_right_header.png" style="display:block;width:94%;margin:0 auto;" alt="">
  14. <div class="index_info">
  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. width: 100vw;
  130. min-height: 100vh;
  131. background: #F5F6F9 url('../../../static/images/sunVillage_info/page_bg.png') no-repeat top center;
  132. background-size: 100% auto;
  133. .head_main{
  134. position: relative;
  135. display: flex;
  136. align-items: self-start;
  137. justify-content: space-between;
  138. width: 94%;
  139. margin: 0 auto;
  140. padding: 2vh 0 0;
  141. .location{
  142. line-height: 42px;
  143. display: flex;
  144. flex-direction: column;
  145. align-items: self-start;
  146. .address{
  147. padding:0 18PX;
  148. background:rgba(255,255,255,0.75);
  149. border-radius: 42px;
  150. font-size: 28px;
  151. color: #3f3d56;
  152. margin-right: 12px;
  153. display: flex;
  154. align-items:center;
  155. margin-bottom: 10PX;
  156. .icon{
  157. display: block;
  158. width: 20px;
  159. height: 26px;
  160. background: url('../../../static/images/sunVillage_info/index_icon_1.png') no-repeat;
  161. background-size: 100% 100%;
  162. margin-right: 10PX;
  163. }
  164. }
  165. .user{
  166. .icon{
  167. width: 32px;
  168. height: 32px;
  169. background: url('../../assets/images/sunVillage_info/user_icon.png') no-repeat!important;
  170. background-size: 100% 100%;
  171. }
  172. }
  173. }
  174. .exit_btn{
  175. border-radius: 50%;
  176. display: flex;
  177. align-items: center;
  178. justify-content: center;
  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(6n+1){
  243. margin-top: 15PX;
  244. }
  245. &:nth-child(1){
  246. margin-top: 0PX;
  247. }
  248. &.n_1{
  249. background: url('../../assets/images/sunVillage_info/index_block_1_rights.png') no-repeat center top;
  250. background-size: 34.5PX;
  251. }
  252. &.n_2{
  253. background: url('../../assets/images/sunVillage_info/index_block_2_rights.png') no-repeat center top;
  254. background-size: 34.5PX;
  255. }
  256. &.n_3 {
  257. background: url('../../assets/images/sunVillage_info/index_block_3_rights.png') no-repeat center top;
  258. background-size: 34.5PX;
  259. }
  260. &.n_4 {
  261. background: url('../../assets/images/sunVillage_info/index_block_4_rights.png') no-repeat center top;
  262. background-size: 34.5PX;
  263. }
  264. &.n_5 {
  265. background: url('../../assets/images/sunVillage_info/index_block_5.png') no-repeat;
  266. background-size: 100% 100%;
  267. }
  268. &.n_6 {
  269. background: url('../../assets/images/sunVillage_info/index_block_06.png') no-repeat center top;
  270. background-size: 34.5PX;
  271. }
  272. &.n_66 {
  273. background: url('../../assets/images/sunVillage_info/tcIcon.png') no-repeat center top;
  274. background-size: 44.5PX;
  275. }
  276. &.n_77 {
  277. background: url('../../assets/images/sunVillage_info/index_block_77.png') no-repeat center top;
  278. background-size: 34.5PX;
  279. }
  280. }
  281. }
  282. }
  283. }
  284. .footer{
  285. margin-top: 15PX;
  286. bottom: 5.5vh;
  287. width: 100%;
  288. font-size: 22px;
  289. color: #3f3d56;
  290. text-align: center;
  291. }
  292. }
  293. </style>