index.vue 9.1 KB

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