index.vue 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <template>
  2. <view>
  3. <div class="managementBody" v-show="true">
  4. <image src="../../static/index/banner.png" class="banner"></image>
  5. <div class="needBox">
  6. <div class="needLeft">
  7. <div class="needLeftLeft" @click="toMsgPage('/pages/subPackages/todo/index')">
  8. <span style="color: #18172A;font-size: 4.5vw;margin-bottom: 1vw">我的待办</span>
  9. <span style="color: #666666;font-size: 3.5vw">需处理待办<span style="color: #0365F9;font-weight: 600;margin-left: 0.5vw">3</span></span>
  10. </div>
  11. <img src="../../static/index/dbImage.png" class="needImg">
  12. </div>
  13. <div class="needRight" @click="toMsgPage('/pages/subPackages/toread/index')">
  14. <div class="needLeftLeft">
  15. <span style="color: #18172A;font-size: 4.5vw;margin-bottom: 1vw">我的待阅</span>
  16. <span style="color: #666666;font-size: 3.5vw">需处理待阅<span style="color: #22B565;font-weight: 600;margin-left: 0.5vw">12</span></span>
  17. </div>
  18. <img src="../../static/index/dyImage.png" class="needImg">
  19. </div>
  20. </div>
  21. <div class="titleTips">
  22. <div class="myLine"></div>
  23. <div>服务入口</div>
  24. </div>
  25. <div class="map">
  26. <div
  27. class="mapdom"
  28. style="float: left"
  29. v-for="(item, index) in mapList"
  30. :key="index"
  31. @click="jumpPage(item.path)"
  32. >
  33. <img class="mapIcon" :src="item.url" />
  34. <div class="maptxt">{{ item.label }}</div>
  35. </div>
  36. </div>
  37. </div>
  38. <!-- 企业端页面-->
  39. <div class="enterpriseBody" v-show="false">
  40. <enterprise-side></enterprise-side>
  41. </div>
  42. </view>
  43. </template>
  44. <script>
  45. // import {demo} from "@/js_sdk/http"
  46. import { getUserPower, getUserLocalStorageInfo } from "@/js_sdk/http";
  47. import EnterpriseSide from "./components/enterpriseSide.vue";
  48. export default {
  49. components: {EnterpriseSide},
  50. data() {
  51. return {
  52. mapList: [
  53. // {
  54. // label: "智慧党建",
  55. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/1@2x.png",
  56. // path: "/pages/subPackages/buildmap/index",
  57. // },
  58. // {
  59. // label: "经发填报",
  60. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/1@2x.png",
  61. // path: "/pages/subPackages/companyHouse/companyHouse",
  62. // },
  63. {
  64. label: "企业库",
  65. url: require("./indexIcon/qyk.png"),
  66. path: "/pages/subPackages/companyHouse/companyHouse",
  67. },
  68. {
  69. label: "走访上报",
  70. url: require("./indexIcon/zfsb.png"),
  71. path: "/pages/subPackages/companyreport/companyreport",
  72. },
  73. {
  74. label: "上市跟进",
  75. url: require("./indexIcon/ssgj.png"),
  76. },
  77. {
  78. label: "招商管理",
  79. url: require("./indexIcon/zsgl.png"),
  80. path: "/pages/subPackages/merchants/merchants",
  81. },
  82. // {
  83. // label: "我的待办",
  84. // url: require("./indexIcon/zsgl.png"),
  85. // path: "/pages/subPackages/todo/index",
  86. // },
  87. // {
  88. // label: "我的待阅",
  89. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/6@2x.png",
  90. // path: "/pages/subPackages/toread/index",
  91. // },
  92. // {
  93. // label: "会议室审核",
  94. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/12@2x.png",
  95. // path: "/pages/subPackages/meetingroom/meetingroom",
  96. // },
  97. // {
  98. // label: "周边发布",
  99. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/3@2x.png",
  100. // path: "/pages/subPackages/peripheralService/index",
  101. // },
  102. // {
  103. // label: "活动发布",
  104. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/3@2x.png",
  105. // path: "/pages/subPackages/eventRelease/index",
  106. // },
  107. // {
  108. // label: "安全管理自检",
  109. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/8@2x.png",
  110. // path: "/pages/subPackages/secureselftest2/index",
  111. // },
  112. // {
  113. // label: "安全管理统计",
  114. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/8@2x.png",
  115. // path: "/pages/subPackages/secureselftest/index",
  116. // },
  117. // {
  118. // label: "安全自检计划",
  119. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/9@2x.png",
  120. // path: "/pages/subPackages/secureselfplan/index",
  121. // },
  122. {
  123. label: "报修派单",
  124. url: require("./indexIcon/bxpd.png"),
  125. path: "/pages/subPackages/repairDispatch-app/index",
  126. },
  127. {
  128. label: "报修处理",
  129. url: require("./indexIcon/bxcl.png"),
  130. path: "/pages/subPackages/repairprocessing-app/index",
  131. },
  132. {
  133. label: "房间管理",
  134. url: require("./indexIcon/fjgl.png"),
  135. path: "/pages/subPackages/repairprocessing-app/index",
  136. },
  137. {
  138. label: "通知发布",
  139. url: require("./indexIcon/tzfb.png"),
  140. path: "/pages/subPackages/repairprocessing-app/index",
  141. },
  142. {
  143. label: "活动发布",
  144. url: require("./indexIcon/hdfb.png"),
  145. path: "/pages/subPackages/repairprocessing-app/index",
  146. },
  147. {
  148. label: "周边发布",
  149. url: require("./indexIcon/zbfb.png"),
  150. path: "/pages/subPackages/repairprocessing-app/index",
  151. },
  152. // {
  153. // label: "整改填报",
  154. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/15@2x.png",
  155. // path: "/pages/subPackages/modifyReport/index",
  156. // },
  157. // {
  158. // label: "整改派单",
  159. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/14@2x.png",
  160. // path: "/pages/subPackages/modifySend/index",
  161. // },
  162. // {
  163. // label: "整改处理",
  164. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/13@2x.png",
  165. // path: "/pages/subPackages/modifyHandle/index",
  166. // },
  167. // {
  168. // label: "活动核销",
  169. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/1@2x.png",
  170. // path: "/pages/subPackages/activity/index",
  171. // },
  172. // {
  173. // label: "可视化大屏",
  174. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/1@2x.png",
  175. // path: "/pages/subPackages/bigscreen/bigscreen",
  176. // },
  177. // {
  178. // label: "场馆审核",
  179. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/1@2x.png",
  180. // path: "/pages/subPackages/venueRoom/meetingroom",
  181. // },
  182. ],
  183. };
  184. },
  185. onShareAppMessage() {},
  186. mounted() {
  187. // demo();
  188. },
  189. onLoad() {
  190. this.getUserPower();
  191. },
  192. methods: {
  193. toMsgPage(e){
  194. uni.navigateTo({
  195. url: e,
  196. fail: (fail) => {},
  197. });
  198. },
  199. // getUserLocalStorageInfo
  200. async getUserPower() {
  201. if (getUserLocalStorageInfo().user.id == 1) return;
  202. let that = this;
  203. let newList = [];
  204. let { data } = await getUserPower(getUserLocalStorageInfo().user.id);
  205. for (let i = 0; i < that.mapList.length; i++) {
  206. let index = data.findIndex((e) => e == that.mapList[i].label);
  207. if (index != -1) {
  208. newList.push(that.mapList[i]);
  209. }
  210. }
  211. that.mapList = newList;
  212. },
  213. jumpPage(path) {
  214. uni.navigateTo({
  215. url: path,
  216. fail: (fail) => {},
  217. });
  218. },
  219. },
  220. };
  221. </script>
  222. <style lang="scss">
  223. page {
  224. background: white;
  225. }
  226. .managementBody{
  227. padding: 4vw;
  228. }
  229. .banner {
  230. width: 92vw;
  231. height: 250rpx;
  232. //position: absolute;
  233. z-index: 1;
  234. }
  235. .mapdom {
  236. width: 25%;
  237. height: 184rpx;
  238. }
  239. .maptxt {
  240. width: 100%;
  241. height: 34rpx;
  242. font-size: 24rpx;
  243. font-family: PingFang SC-Medium, PingFang SC;
  244. font-weight: 500;
  245. color: #18172A;
  246. text-align: center;
  247. margin-top: 8rpx;
  248. }
  249. .mapIcon {
  250. width: 65rpx;
  251. height: 80rpx;
  252. //background: linear-gradient(141deg, #89BCFF 0%, #2782FA 100%);
  253. display: block;
  254. margin: auto;
  255. }
  256. .map {
  257. //position: absolute;
  258. z-index: 2;
  259. width: calc(100% - 24rpx);
  260. //height: 770rpx;
  261. border-radius: 48rpx 48rpx 0rpx 0rpx;
  262. background: white;
  263. //margin-top: 402rpx;
  264. padding: 24rpx 12rpx;
  265. overflow-y: auto;
  266. }
  267. .needBox{
  268. display: flex;
  269. align-items: center;
  270. justify-content: space-between;
  271. margin: 2vw 0;
  272. .needLeft{
  273. display: flex;
  274. justify-content: space-around;
  275. background: rgba(238, 244, 255, 1);
  276. border-radius: 8rpx;
  277. align-items: center;
  278. width: 45vw;
  279. height: 23vw;
  280. }
  281. .needRight{
  282. display: flex;
  283. justify-content: space-around;
  284. background: #DEF6F8;
  285. border-radius: 8rpx;
  286. align-items: center;
  287. width: 45vw;
  288. height: 23vw;
  289. }
  290. .needLeftLeft{
  291. display: flex;
  292. flex-direction: column;
  293. }
  294. .needImg{
  295. width: 100rpx;
  296. height: 100rpx;
  297. }
  298. }
  299. .titleTips{
  300. display: flex;
  301. align-items: center;
  302. font-size: 4.7vw;
  303. font-weight: 600;
  304. color:#18172A;
  305. margin:4vw 0 2vw 0;
  306. .myLine{
  307. width: 13rpx;
  308. height: 40rpx;
  309. background: linear-gradient( 180deg, #509FFF 0%, #034DF7 100%);
  310. margin-right: 20rpx;
  311. }
  312. }
  313. </style>