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

index_code.vue 8.4 KiB

2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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':xsgsList.length < 9 , 'footer2':xsgsList.length > 8}">
  51. {{configValue == ""?'技术支持:北京农燊高科信息技术有限公司':configValue}}
  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 { sysConfig } from "@/api/homesteadSurvey/index";
  59. import Cookies from "js-cookie";
  60. export default {
  61. name: "sunVillageInfoIndexCode",
  62. data() {
  63. return {
  64. xsgsList:[],
  65. deptIdOptions:[],
  66. villageVisbile:false,
  67. showBookList:false,
  68. deptName:'',
  69. //选中的值
  70. villageValue: "",
  71. //省市区区级list
  72. hcAreaInfoOption: [],
  73. hcAreaInfoFieldName: {
  74. text: "label",
  75. value: "value",
  76. children: "children",
  77. },
  78. bookName:'',
  79. queryParams: {
  80. pageNum: 1,
  81. pageSize: 100,
  82. },
  83. //账套列表
  84. bookVisbile:false,
  85. bookList:[],
  86. bookName:"",
  87. bookId:"",
  88. book:"",
  89. configValue:''
  90. };
  91. },
  92. created() {
  93. console.log(this.$store)
  94. if(this.$route.query.bookId){
  95. bookInfo(this.$route.query.bookId).then((res) => {
  96. if (res.code == 200) {
  97. let seconds = 3600;
  98. let expires = new Date(new Date() * 1 + seconds * 1000);
  99. Cookies.set("bookName", res.data.bookName, {
  100. expires: expires,
  101. });
  102. Cookies.set("deptName", res.data.deptName, {
  103. expires: expires,
  104. });
  105. this.deptName = res.data.deptName;
  106. this.bookName = res.data.bookName;
  107. }
  108. });
  109. Cookies.set("bookId", this.$route.query.bookId, {
  110. expires: 30,
  111. });
  112. }
  113. Cookies.set("deptId", this.$route.query.deptId, {
  114. expires: 30,
  115. });
  116. let query = {
  117. identityType:1
  118. }
  119. nologinMenus(query).then((res) => {
  120. if (res.code == 200) {
  121. this.xsgsList = res.data[0].menus;
  122. }
  123. });
  124. let params={
  125. configKey: "system.company.name"}
  126. sysConfig(params).then((res) => {
  127. if (res.code == 200) {
  128. this.configValue = res.rows[0].configValue;
  129. }
  130. });
  131. },
  132. methods: {
  133. goCode(){
  134. if (Cookies.get('user')){
  135. this.$router.push({path:'/sunVillage_info/index_code_rights'})
  136. }else{
  137. this.$router.push({path:'/sunVillage_info/login_code'})
  138. }
  139. }
  140. },
  141. }
  142. </script>
  143. <style scoped lang="scss">
  144. .fixed_btn{
  145. position: fixed;
  146. right: 0;
  147. width: 40PX;
  148. bottom: 15%;
  149. border-top-left-radius: 115PX;
  150. border-bottom-left-radius: 115PX;
  151. box-shadow: 0px 2px 5px #ccc;
  152. }
  153. .home_wrapper{
  154. background: #f1f2f2;
  155. width: 100vw;
  156. min-height: 100vh;
  157. .head_main{
  158. height: 340px;
  159. background: url('../../assets/images/sunVillage_info/index_head_red.png') no-repeat;
  160. background-size: 100% 100%;
  161. position: relative;
  162. .location{
  163. height: 42px;
  164. line-height: 42px;
  165. position: absolute;
  166. left: 38px;
  167. top: 72px;
  168. display: flex;
  169. .address{
  170. padding:0 18px;
  171. background:rgba(255,255,255,0.75);
  172. border-radius: 42px;
  173. font-size: 28px;
  174. color: #3f3d56;
  175. margin-right: 12px;
  176. display: flex;
  177. align-items:center;
  178. .icon{
  179. display: block;
  180. width: 20px;
  181. height: 26px;
  182. background: url('../../assets/images/sunVillage_info/index_icon_1.png') no-repeat;
  183. background-size: 100% 100%;
  184. margin-right: 10px;
  185. }
  186. }
  187. }
  188. .exit_btn{
  189. width: 61px;
  190. height: 61px;
  191. border-radius: 50%;
  192. display: flex;
  193. align-items: center;
  194. justify-content: center;
  195. position: absolute;
  196. top: 64px;
  197. right: 36px;
  198. .icon{
  199. width: 100%;
  200. height: 100%;
  201. background: url('../../assets/images/sunVillage_info/login_head_h_green.png') no-repeat;
  202. background-size: 100% 100%;
  203. }
  204. }
  205. }
  206. .index_info{
  207. padding-top: 4.1vh;
  208. .title{
  209. width: 521px;
  210. height: 52px;
  211. background: url('../../assets/images/sunVillage_info/index_title2.png') no-repeat;
  212. background-size: 100% 100%;
  213. margin:0 auto;
  214. }
  215. .nav_list{
  216. margin-top: 6vh;
  217. padding:0 30px;
  218. display: flex;
  219. flex-flow: wrap;
  220. margin-bottom: 40PX;
  221. .nav_item{
  222. width: calc(50% - 10px);
  223. /*height: 180px;*/
  224. border-radius: 30px;
  225. font-size: 24px;
  226. color: #3f3d56;
  227. text-align: center;
  228. display: flex;
  229. align-items: center;
  230. justify-content: center;
  231. margin-bottom: 20px;
  232. img{
  233. width: 100%;
  234. }
  235. &:nth-child(even){
  236. margin-left: 20px;
  237. }
  238. }
  239. }
  240. }
  241. .footer{
  242. position: absolute;
  243. bottom: 5.5vh;
  244. width: 100%;
  245. font-size: 22px;
  246. color: #3f3d56;
  247. text-align: center;
  248. }
  249. .footer2{
  250. width: 100%;
  251. font-size: 22px;
  252. color: #3f3d56;
  253. text-align: center;
  254. margin-top: 15PX;
  255. padding-bottom: 30PX;
  256. }
  257. }
  258. </style>