index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. <template>
  2. <view>
  3. <water-rmark :info="`ww0335`" />
  4. <div class="managementBody" v-show="userType == 2">
  5. <image
  6. src="https://www.idea-co-sf.com/gardenProduct/image/banner.png"
  7. class="banner"
  8. ></image>
  9. <div class="needBox">
  10. <div
  11. class="needLeft"
  12. @click="toMsgPage('/pages/subPackages/todo/index')"
  13. >
  14. <div class="needLeftLeft">
  15. <span style="color: #18172a; font-size: 4.5vw; margin-bottom: 1vw"
  16. >我的待办</span
  17. >
  18. <span style="color: #666666; font-size: 3.5vw"
  19. >需处理待办<span
  20. style="color: #0365f9; font-weight: 600; margin-left: 0.5vw"
  21. >{{ handleSize }}</span
  22. ></span
  23. >
  24. </div>
  25. <img
  26. src="https://www.idea-co-sf.com/gardenProduct/image/dbImage.png"
  27. class="needImg"
  28. />
  29. </div>
  30. <div
  31. class="needRight"
  32. @tap.stop="toMsgPage('/pages/subPackages/toread/index')"
  33. >
  34. <div class="needLeftLeft">
  35. <span style="color: #18172a; font-size: 4.5vw; margin-bottom: 1vw"
  36. >我的待阅</span
  37. >
  38. <span style="color: #666666; font-size: 3.5vw"
  39. >需处理待阅<span
  40. style="color: #22b565; font-weight: 600; margin-left: 0.5vw"
  41. >{{ readSize }}</span
  42. ></span
  43. >
  44. </div>
  45. <img
  46. src="https://www.idea-co-sf.com/gardenProduct/image/dyImage.png"
  47. class="needImg"
  48. />
  49. </div>
  50. </div>
  51. <div class="titleTips">
  52. <div class="myLine"></div>
  53. <div>服务入口</div>
  54. </div>
  55. <div class="map">
  56. <div
  57. class="mapdom"
  58. style="float: left"
  59. v-for="(item, index) in mapList"
  60. :key="index"
  61. @click="jumpPage(item.path)"
  62. >
  63. <img class="mapIcon" :src="item.url" />
  64. <div class="maptxt">{{ item.label }}</div>
  65. </div>
  66. </div>
  67. </div>
  68. <!-- 企业端页面-->
  69. <div class="enterpriseBody" v-show="userType == 1 || userType == 3">
  70. <enterprise-side></enterprise-side>
  71. </div>
  72. </view>
  73. </template>
  74. <script>
  75. // import {demo} from "@/js_sdk/http"
  76. import {
  77. getUserPower,
  78. getUserLocalStorageInfo,
  79. getReadSizeByTypes,
  80. } from "@/js_sdk/http";
  81. import waterRmark from "@/pages/watermark";
  82. import EnterpriseSide from "./components/enterpriseSide.vue";
  83. import { getHandleSizeTypes } from "../../js_sdk/http";
  84. export default {
  85. components: { EnterpriseSide, waterRmark },
  86. data() {
  87. return {
  88. readSize: 0,
  89. handleSize: 0,
  90. userType: false,
  91. mapList: [
  92. // {
  93. // label: "智慧党建",
  94. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/1@2x.png",
  95. // path: "/pages/subPackages/buildmap/index",
  96. // },
  97. // {
  98. // label: "经发填报",
  99. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/1@2x.png",
  100. // path: "/pages/subPackages/companyHouse/companyHouse",
  101. // },
  102. {
  103. label: "企业库",
  104. url: "https://www.idea-co-sf.com/gardenProduct/image/qyk.png",
  105. path: "/pages/subPackages/companyHouse/companyHouse",
  106. },
  107. {
  108. label: "走访上报",
  109. url: "https://www.idea-co-sf.com/gardenProduct/image/zfsb.png",
  110. path: "/pages/subPackages/companyreport/companyreport",
  111. },
  112. {
  113. label: "资源预约",
  114. url: "https://www.idea-co-sf.com/gardenProduct/image/tupian1.png",
  115. path: "/pages/subPackages/resourceReservation_manage/index",
  116. },
  117. // {
  118. // label: "上市跟进",
  119. // url: https://www.idea-co-sf.com/gardenProduct/image/ssgj.png"),
  120. // },
  121. {
  122. label: "招商管理",
  123. url: "https://www.idea-co-sf.com/gardenProduct/image/zsgl.png",
  124. path: "/pages/subPackages/merchants/merchants",
  125. },
  126. // {
  127. // label: "活动发布",
  128. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/3@2x.png",
  129. // path: "/pages/subPackages/eventRelease/index",
  130. // },
  131. // {
  132. // label: "安全管理自检",
  133. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/8@2x.png",
  134. // path: "/pages/subPackages/secureselftest2/index",
  135. // },
  136. // {
  137. // label: "安全管理统计",
  138. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/8@2x.png",
  139. // path: "/pages/subPackages/secureselftest/index",
  140. // },
  141. // {
  142. // label: "安全自检计划",
  143. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/9@2x.png",
  144. // path: "/pages/subPackages/secureselfplan/index",
  145. // },
  146. {
  147. label: "报修受理",
  148. url: "https://www.idea-co-sf.com/gardenProduct/image/bxpd.png",
  149. path: "/pages/subPackages/todo/repairAcceptance",
  150. },
  151. // {
  152. // label: "报修处理",
  153. // url: "https://www.idea-co-sf.com/gardenProduct/image/bxcl.png",
  154. // path: "/pages/subPackages/todo/repairAcceptance",
  155. // },
  156. {
  157. label: "房间管理",
  158. url: "https://www.idea-co-sf.com/gardenProduct/image/fjgl.png",
  159. path: "/pages/subPackages/propertyManagement/maintenance",
  160. },
  161. // {
  162. // label: "园区通知",
  163. // url: "https://www.idea-co-sf.com/gardenProduct/image/tzfb.png",
  164. // // path: "",
  165. // },
  166. {
  167. label: "物业通知",
  168. url: "https://www.idea-co-sf.com/gardenProduct/image/tupian2.png",
  169. path: "/pages/subPackages/propertyNotice_manage/index?type=2",
  170. },
  171. {
  172. label: "园区通知",
  173. url: "https://www.idea-co-sf.com/gardenProduct/image/tupian2.png",
  174. path: "/pages/subPackages/propertyNotice_manage/index?type=1",
  175. },
  176. {
  177. label: "活动发布",
  178. url: "https://www.idea-co-sf.com/gardenProduct/image/hdfb.png",
  179. path: "/pages/subPackages/activityPromulgate/list",
  180. },
  181. {
  182. label: "周边发布",
  183. url: "https://www.idea-co-sf.com/gardenProduct/image/zbfb.png",
  184. path: "/pages/subPackages/surroundingReleases/index",
  185. },
  186. // {
  187. // label: "整改填报",
  188. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/15@2x.png",
  189. // path: "/pages/subPackages/modifyReport/index",
  190. // },
  191. // {
  192. // label: "整改派单",
  193. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/14@2x.png",
  194. // path: "/pages/subPackages/modifySend/index",
  195. // },
  196. // {
  197. // label: "整改处理",
  198. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/13@2x.png",
  199. // path: "/pages/subPackages/modifyHandle/index",
  200. // },
  201. // {
  202. // label: "活动核销",
  203. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/1@2x.png",
  204. // path: "/pages/subPackages/activity/index",
  205. // },
  206. // {
  207. // label: "可视化大屏",
  208. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/1@2x.png",
  209. // path: "/pages/subPackages/bigscreen/bigscreen",
  210. // },
  211. // {
  212. // label: "场馆审核",
  213. // url: "https://hswkxc.idea-sf.com/fileService/static/slices/1@2x.png",
  214. // path: "/pages/subPackages/venueRoom/meetingroom",
  215. // },
  216. ],
  217. };
  218. },
  219. onShareAppMessage() {},
  220. mounted() {
  221. // demo();
  222. },
  223. onShow() {
  224. this.getUserPower();
  225. this.getReadSize();
  226. this.getHandleSize();
  227. },
  228. onLoad(e) {
  229. // uni.$on("userType", (userType) => {
  230. // if (userType === "OK") {
  231. // this.userType = !this.userType;
  232. // }
  233. // });
  234. },
  235. methods: {
  236. getReadSize() {
  237. const data = {
  238. userId: getUserLocalStorageInfo().userId,
  239. types: "1",
  240. };
  241. getReadSizeByTypes(data).then((res) => {
  242. this.readSize = res;
  243. });
  244. },
  245. getHandleSize() {
  246. const data = {
  247. userId: getUserLocalStorageInfo().userId,
  248. types: "0,1,8,9,10,11",
  249. };
  250. getHandleSizeTypes(data).then((res) => {
  251. this.handleSize = res;
  252. });
  253. },
  254. toMsgPage(e) {
  255. uni.navigateTo({
  256. url: e,
  257. fail: (fail) => {},
  258. });
  259. },
  260. // getUserLocalStorageInfo
  261. async getUserPower() {
  262. let that = this;
  263. console.log("getUserLocalStorageInfo", getUserLocalStorageInfo());
  264. that.userType = getUserLocalStorageInfo().userType;
  265. if (that.userType == 3) {
  266. uni.showModal({
  267. title: "提示",
  268. cancelText: "暂不",
  269. confirmText: "去切换",
  270. content: "您还不是企业用户,请切换登录身份后再进行相关操作。",
  271. success: function (res) {
  272. if (res.confirm) {
  273. uni.navigateTo({
  274. url: "/pages/login2/login",
  275. success: function (e) {
  276. // uni.$emit('userType', 'OK')
  277. },
  278. });
  279. } else if (res.cancel) {
  280. console.log("用户点击取消");
  281. }
  282. },
  283. });
  284. }
  285. // if (getUserLocalStorageInfo().user.id == 1) return;
  286. // let newList = [];
  287. // let { data } = await getUserPower(getUserLocalStorageInfo().user.id);
  288. // for (let i = 0; i < that.mapList.length; i++) {
  289. // let index = data.findIndex((e) => e == that.mapList[i].label);
  290. // if (index != -1) {
  291. // newList.push(that.mapList[i]);
  292. // }
  293. // }
  294. // that.mapList = newList;
  295. },
  296. jumpPage(path) {
  297. uni.navigateTo({
  298. url: path,
  299. fail: (fail) => {},
  300. });
  301. },
  302. },
  303. };
  304. </script>
  305. <style lang="scss">
  306. page {
  307. background: white;
  308. }
  309. .managementBody {
  310. padding: 4vw;
  311. }
  312. .banner {
  313. width: 92vw;
  314. height: 250rpx;
  315. //position: absolute;
  316. z-index: 1;
  317. }
  318. .mapdom {
  319. width: 25%;
  320. height: 184rpx;
  321. }
  322. .maptxt {
  323. width: 100%;
  324. height: 34rpx;
  325. font-size: 24rpx;
  326. font-family: PingFang SC-Medium, PingFang SC;
  327. font-weight: 500;
  328. color: #18172a;
  329. text-align: center;
  330. margin-top: 8rpx;
  331. }
  332. .mapIcon {
  333. width: 65rpx;
  334. height: 80rpx;
  335. //background: linear-gradient(141deg, #89BCFF 0%, #2782FA 100%);
  336. display: block;
  337. margin: auto;
  338. }
  339. .map {
  340. //position: absolute;
  341. z-index: 2;
  342. width: calc(100% - 24rpx);
  343. //height: 770rpx;
  344. border-radius: 48rpx 48rpx 0rpx 0rpx;
  345. background: white;
  346. //margin-top: 402rpx;
  347. padding: 24rpx 12rpx;
  348. overflow-y: auto;
  349. }
  350. .needBox {
  351. display: flex;
  352. align-items: center;
  353. justify-content: space-between;
  354. margin: 2vw 0;
  355. .needLeft {
  356. display: flex;
  357. justify-content: space-around;
  358. background: rgba(238, 244, 255, 1);
  359. border-radius: 8rpx;
  360. align-items: center;
  361. width: 45vw;
  362. height: 23vw;
  363. }
  364. .needRight {
  365. display: flex;
  366. justify-content: space-around;
  367. background: #def6f8;
  368. border-radius: 8rpx;
  369. align-items: center;
  370. width: 45vw;
  371. height: 23vw;
  372. }
  373. .needLeftLeft {
  374. display: flex;
  375. flex-direction: column;
  376. }
  377. .needImg {
  378. width: 100rpx;
  379. height: 100rpx;
  380. }
  381. }
  382. .titleTips {
  383. display: flex;
  384. align-items: center;
  385. font-size: 4.7vw;
  386. font-weight: 600;
  387. color: #18172a;
  388. margin: 4vw 0 2vw 0;
  389. .myLine {
  390. width: 13rpx;
  391. height: 40rpx;
  392. background: linear-gradient(180deg, #509fff 0%, #034df7 100%);
  393. margin-right: 20rpx;
  394. }
  395. }
  396. </style>