index.vue 9.2 KB

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