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

255 lines
7.8 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="$router.push({name:'sunVillageInfoLogin'})">
  9. <i class="icon"></i>
  10. </div>
  11. </div>
  12. <div class="index_info">
  13. <div class="title"></div>
  14. <div class="nav_list">
  15. <!--党务-->
  16. <router-link
  17. v-for="(item,idx) in xsgsList"
  18. :key="item.id"
  19. :to="{name:item.menuUrl,query:{type:'code',typeX:item.urlPara}}"
  20. class="nav_item"
  21. >
  22. <img :src="require('@/assets/images/sunVillage_info/' + item.menuIcon)">
  23. </router-link>
  24. <!-- &lt;!&ndash;村务&ndash;&gt;-->
  25. <!-- <router-link :to="{name:'sunVillageInfoListContract',query:{type:'code',typeX:'3'}}" class="nav_item n2">-->
  26. <!-- <img src="../../assets/images/sunVillage_info/index_code_btn_7.png">-->
  27. <!-- </router-link>-->
  28. <!-- &lt;!&ndash;财务&ndash;&gt;-->
  29. <!-- <router-link :to="{name:'sunVillageInfoListFinance',query:{type:'code'}}" class="nav_item n1">-->
  30. <!-- <img src="../../assets/images/sunVillage_info/index_code_btn_1.png">-->
  31. <!-- </router-link>-->
  32. <!-- &lt;!&ndash;零工&ndash;&gt;-->
  33. <!-- <router-link :to="{name:'sunVillageInfoListTourists',query:{type:'code'}}" class="nav_item n2">-->
  34. <!-- <img src="../../assets/images/sunVillage_info/index_code_btn_2.png">-->
  35. <!-- </router-link>-->
  36. <!-- &lt;!&ndash;合同&ndash;&gt;-->
  37. <!-- <router-link :to="{name:'sunVillageInfoListContract',query:{type:'code',typeX:'1'}}" class="nav_item n1">-->
  38. <!-- <img src="../../assets/images/sunVillage_info/index_code_btn_5.png">-->
  39. <!-- </router-link>-->
  40. <!-- &lt;!&ndash;村庄图&ndash;&gt;-->
  41. <!-- <router-link :to="{name:'sunVillageInfoListPhoto',query:{type:'code'}}" class="nav_item n2">-->
  42. <!-- <img src="../../assets/images/sunVillage_info/index_code_btn_4.png">-->
  43. <!-- </router-link>-->
  44. <!-- &lt;!&ndash;重大事项&ndash;&gt;-->
  45. <!-- <router-link :to="{name:'sunVillageInfoListIssues',query:{type:'code'}}" class="nav_item n1">-->
  46. <!-- <img src="../../assets/images/sunVillage_info/index_code_btn_3.png">-->
  47. <!-- </router-link>-->
  48. </div>
  49. </div>
  50. <div class="footer">
  51. 技术支持:北京农燊高科信息技术有限公司
  52. </div>
  53. <img src="../../assets/images/sunVillage_info/index_btn_green.png" class="fixed_btn" @click="goCode">
  54. </div>
  55. </template>
  56. <script>
  57. import {bookInfo, nologinMenus} from "@/api/sunVillage_info/fixedAssets";
  58. import Cookies from "js-cookie";
  59. export default {
  60. name: "certificateList",
  61. data() {
  62. return {
  63. xsgsList:[],
  64. deptIdOptions:[],
  65. villageVisbile:false,
  66. showBookList:false,
  67. deptName:'',
  68. //选中的值
  69. villageValue: "",
  70. //省市区区级list
  71. hcAreaInfoOption: [],
  72. hcAreaInfoFieldName: {
  73. text: "label",
  74. value: "value",
  75. children: "children",
  76. },
  77. bookName:'',
  78. queryParams: {
  79. pageNum: 1,
  80. pageSize: 100,
  81. },
  82. //账套列表
  83. bookVisbile:false,
  84. bookList:[],
  85. bookName:"",
  86. bookId:"",
  87. book:"",
  88. };
  89. },
  90. created() {
  91. if(this.$route.query.bookId){
  92. bookInfo(this.$route.query.bookId).then((res) => {
  93. if (res.code == 200) {
  94. let seconds = 3600;
  95. let expires = new Date(new Date() * 1 + seconds * 1000);
  96. Cookies.set("bookName", res.data.bookName, {
  97. expires: expires,
  98. });
  99. Cookies.set("deptName", res.data.deptName, {
  100. expires: expires,
  101. });
  102. this.deptName = res.data.deptName;
  103. this.bookName = res.data.bookName;
  104. }
  105. });
  106. Cookies.set("bookId", this.$route.query.bookId, {
  107. expires: 30,
  108. });
  109. }
  110. Cookies.set("deptId", this.$route.query.deptId, {
  111. expires: 30,
  112. });
  113. let query = {
  114. identityType:1
  115. }
  116. nologinMenus(query).then((res) => {
  117. if (res.code == 200) {
  118. this.xsgsList = res.data[0].menus;
  119. }
  120. });
  121. },
  122. methods: {
  123. goCode(){
  124. if (Cookies.get('user')){
  125. this.$router.push({path:'/sunVillage_info/index_code_rights'})
  126. }else{
  127. this.$router.push({path:'/sunVillage_info/login_code'})
  128. }
  129. }
  130. },
  131. }
  132. </script>
  133. <style scoped lang="scss">
  134. .fixed_btn{
  135. position: fixed;
  136. right: 0;
  137. width: 115PX;
  138. bottom: 15%;
  139. border-top-left-radius: 115PX;
  140. border-bottom-left-radius: 115PX;
  141. box-shadow: 0px 2px 5px #ccc;
  142. }
  143. .home_wrapper{
  144. background: #f1f2f2;
  145. width: 100vw;
  146. min-height: 100vh;
  147. .head_main{
  148. height: 340px;
  149. background: url('../../assets/images/sunVillage_info/index_head_red.png') no-repeat;
  150. background-size: 100% 100%;
  151. position: relative;
  152. .location{
  153. height: 42px;
  154. line-height: 42px;
  155. position: absolute;
  156. left: 38px;
  157. top: 72px;
  158. display: flex;
  159. .address{
  160. padding:0 18px;
  161. background:rgba(255,255,255,0.75);
  162. border-radius: 42px;
  163. font-size: 28px;
  164. color: #3f3d56;
  165. margin-right: 12px;
  166. display: flex;
  167. align-items:center;
  168. .icon{
  169. display: block;
  170. width: 20px;
  171. height: 26px;
  172. background: url('../../assets/images/sunVillage_info/index_icon_1.png') no-repeat;
  173. background-size: 100% 100%;
  174. margin-right: 10px;
  175. }
  176. }
  177. }
  178. .exit_btn{
  179. width: 61px;
  180. height: 61px;
  181. border-radius: 50%;
  182. display: flex;
  183. align-items: center;
  184. justify-content: center;
  185. position: absolute;
  186. top: 64px;
  187. right: 36px;
  188. .icon{
  189. width: 100%;
  190. height: 100%;
  191. background: url('../../assets/images/sunVillage_info/login_head_h_green.png') no-repeat;
  192. background-size: 100% 100%;
  193. }
  194. }
  195. }
  196. .index_info{
  197. padding-top: 4.1vh;
  198. .title{
  199. width: 521px;
  200. height: 52px;
  201. background: url('../../assets/images/sunVillage_info/index_title2.png') no-repeat;
  202. background-size: 100% 100%;
  203. margin:0 auto;
  204. }
  205. .nav_list{
  206. margin-top: 6vh;
  207. padding:0 30px;
  208. display: flex;
  209. flex-flow: wrap;
  210. margin-bottom: 40PX;
  211. .nav_item{
  212. width: calc(50% - 10px);
  213. /*height: 180px;*/
  214. border-radius: 30px;
  215. font-size: 24px;
  216. color: #3f3d56;
  217. text-align: center;
  218. display: flex;
  219. align-items: center;
  220. justify-content: center;
  221. margin-bottom: 20px;
  222. img{
  223. width: 100%;
  224. }
  225. &:nth-child(even){
  226. margin-left: 20px;
  227. }
  228. }
  229. }
  230. }
  231. .footer{
  232. position: absolute;
  233. bottom: 5.5vh;
  234. width: 100%;
  235. font-size: 22px;
  236. color: #3f3d56;
  237. text-align: center;
  238. }
  239. }
  240. </style>