enterpriseSide.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. <template>
  2. <div class="enterpriseSide">
  3. <div style="padding: 0 24rpx; background: white">
  4. <div class="searchTop">
  5. <image :src="locationIcon" class="locationIcon"></image>
  6. <picker @change="bindPickerChange" :value="index" :range="array">
  7. <input v-model="searchArea" class="searchArea" disabled />
  8. </picker>
  9. <image :src="dhIcon" class="dhIcon"></image>
  10. <image :src="vector" class="vector"></image>
  11. </div>
  12. <div class="parkBgBox" :style="{ 'background-image': `url(${parkBg})` }">
  13. <div class="parkNameBox">这里是园区名称</div>
  14. </div>
  15. <div class="map2">
  16. <div
  17. class="mapdom2"
  18. style="float: left"
  19. v-for="(item, index) in mapList"
  20. :key="index"
  21. @click="jumpPage(item.path, item.isMustCompany)"
  22. >
  23. <img class="mapIcon2" :src="item.url" />
  24. <div class="maptxt">{{ item.label }}</div>
  25. </div>
  26. </div>
  27. </div>
  28. <div class="noticeBody">
  29. <image :src="tongzhi" class="tongzhiImg"></image>
  30. <div class="columLine"></div>
  31. <div class="noticeBox" @click="toNotice">
  32. <div class="noticeItem" v-for="item in 2">
  33. <div class="noticeTag">物业</div>
  34. <div class="noticeInfo">新年伊始,PAER招商开始啦啦啦啦啦啦</div>
  35. <div class="noticeTime">1小时前</div>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="parkDynamic">
  40. <div class="parkDynamicTitle">
  41. <div class="columLineBlue"></div>
  42. <div class="titleName">园区动态</div>
  43. </div>
  44. <div class="parkDynamicTab">
  45. <div
  46. v-for="(item, index) in tabList"
  47. :key="index"
  48. class="tabItem"
  49. :class="selectTab === item.name ? 'selectTabItem' : ''"
  50. @click="clickTab(item)"
  51. >
  52. {{ item.name }}
  53. </div>
  54. </div>
  55. <activity v-show="selectTab === '活动'" :faMsg="faMsg"></activity>
  56. <dynamic v-show="selectTab === '动态'"></dynamic>
  57. </div>
  58. <div class="serviceEvaluation">
  59. <div class="parkDynamicTitle">
  60. <div class="columLineBlue"></div>
  61. <div class="titleName">服务评价</div>
  62. </div>
  63. <div class="wyInfo">
  64. <div class="wyName">
  65. <image :src="wyhead" class="wyhead"></image>
  66. <span>XXXX物业</span>
  67. </div>
  68. <span style="color: #666666; font-size: 28rpx">好评率:100%</span>
  69. </div>
  70. <div class="evaluationBox">
  71. <div class="evaluationBoxName">点击笑脸给出您对园区服务的评价</div>
  72. <van-rate
  73. :value="value"
  74. :size="32"
  75. color="#ffd21e"
  76. :void-icon="voidMyIcon"
  77. :icon="myIcon"
  78. gutter="32rpx"
  79. void-color="#eee"
  80. bind:change="onChange"
  81. />
  82. </div>
  83. </div>
  84. <div class="contactInfo">
  85. <div class="infoBox">
  86. <span class="infoTitle">客服电话(24小时)</span>
  87. <span class="phoneNumber">0510-680**808</span>
  88. </div>
  89. <image :src="phoneCall" class="phoneCall"></image>
  90. </div>
  91. </div>
  92. </template>
  93. <script>
  94. import vanRate from "../../../wxcomponents/weapp/dist/rate/index";
  95. import dynamic from "./dynamic.vue";
  96. import Activity from "./activity.vue";
  97. import { getUserPower, getUserLocalStorageInfo } from "@/js_sdk/http";
  98. export default {
  99. components: {
  100. Activity,
  101. vanRate,
  102. dynamic,
  103. },
  104. name: "enterpriseSide",
  105. data() {
  106. return {
  107. faMsg:'home',
  108. locationIcon:
  109. "https://www.idea-co-sf.com/gardenProduct/image/locationIcon.png",
  110. dhIcon: "https://www.idea-co-sf.com/gardenProduct/image/dhIcon.png",
  111. vector: "https://www.idea-co-sf.com/gardenProduct/image/Vector.png",
  112. tongzhi: "https://www.idea-co-sf.com/gardenProduct/image/tongzhi.png",
  113. wyhead: "https://www.idea-co-sf.com/gardenProduct/image/wyHead.png",
  114. myIcon: "https://www.idea-co-sf.com/gardenProduct/image/icon.png",
  115. voidMyIcon: "https://www.idea-co-sf.com/gardenProduct/image/voidIcon.png",
  116. phoneCall: "https://www.idea-co-sf.com/gardenProduct/image/phoneCall.png",
  117. value: "5",
  118. searchArea: "当前园区名称",
  119. index: 0,
  120. array: ["中国", "美国", "巴西", "日本"],
  121. parkBg: "https://www.idea-co-sf.com/gardenProduct/image/parkBg.png",
  122. tabList: [
  123. { name: "活动" },
  124. { name: "周边" },
  125. { name: "房源" },
  126. { name: "动态" },
  127. ],
  128. selectTab: "活动",
  129. mapList: [
  130. {
  131. label: "待办提醒",
  132. url: "https://www.idea-co-sf.com/gardenProduct/image/dbtxIcon.png",
  133. path: "/pages/subPackages/companyHouse/companyHouse",
  134. },
  135. {
  136. label: "企业账单",
  137. url: "https://www.idea-co-sf.com/gardenProduct/image/qyzdIcon.png",
  138. path: "/pages/subPackages/enterPriseBill/index",
  139. isMustCompany: true,
  140. },
  141. {
  142. label: "经发填报",
  143. url: "https://www.idea-co-sf.com/gardenProduct/image/jftbIcon.png",
  144. path: "/pages/subPackages/economicDevelopmentReport/economic",
  145. isMustCompany: true,
  146. },
  147. {
  148. label: "园区周边",
  149. url: "https://www.idea-co-sf.com/gardenProduct/image/yqzb.png",
  150. path: "/pages/subPackages/companyHouse/companyHouse",
  151. },
  152. {
  153. label: "报事报修",
  154. url: "https://www.idea-co-sf.com/gardenProduct/image/bsbxIcon.png",
  155. path: "/pages/subPackages/reportRepair/index",
  156. isMustCompany: true,
  157. },
  158. {
  159. label: "活动报名",
  160. url: "https://www.idea-co-sf.com/gardenProduct/image/hdbmIcon.png",
  161. path: "/pages/subPackages/companyHouse/companyHouse",
  162. // isMustCompany: true,
  163. },
  164. {
  165. label: "入驻申请",
  166. url: "https://www.idea-co-sf.com/gardenProduct/image/rzsqIcon.png",
  167. path: "/pages/subPackages/companyHouse/companyHouse",
  168. },
  169. {
  170. label: "退租申请",
  171. url: "https://www.idea-co-sf.com/gardenProduct/image/tzsqIcon.png",
  172. path: "/pages/subPackages/companyHouse/companyHouse",
  173. isMustCompany: true,
  174. },
  175. {
  176. label: "关于园区",
  177. url: "https://www.idea-co-sf.com/gardenProduct/image/gyyqIcon.png",
  178. path: "/pages/subPackages/companyHouse/companyHouse",
  179. },
  180. {
  181. label: "产业政策",
  182. url: "https://www.idea-co-sf.com/gardenProduct/image/cyzcIcon.png",
  183. path: "/pages/subPackages/industrialPolicy/index",
  184. },
  185. {
  186. label: "资源预约",
  187. url: "https://www.idea-co-sf.com/gardenProduct/image/zyyyIcon.png",
  188. path: "/pages/subPackages/companyHouse/companyHouse",
  189. },
  190. ],
  191. };
  192. },
  193. methods: {
  194. toNotice() {
  195. uni.navigateTo({
  196. url:"/pages/subPackages/propertyNotice/index",
  197. })
  198. },
  199. bindPickerChange(e) {
  200. console.log(e);
  201. this.searchArea = this.array[e.detail.value];
  202. },
  203. jumpPage(path, isMustCompany) {
  204. console.log(path);
  205. if (isMustCompany && getUserLocalStorageInfo().userType == 3) {
  206. uni.showModal({
  207. title: "提示",
  208. cancelText: "暂不",
  209. confirmText: "去切换",
  210. content: "您还不是企业用户,请切换登录身份后再进行相关操作。",
  211. success: function (res) {
  212. if (res.confirm) {
  213. uni.navigateTo({
  214. url: "/pages/login2/login",
  215. success: function (e) {
  216. // uni.$emit('userType', 'OK')
  217. },
  218. });
  219. } else if (res.cancel) {
  220. console.log("用户点击取消");
  221. }
  222. },
  223. });
  224. } else {
  225. uni.navigateTo({
  226. url: path,
  227. fail: (fail) => {
  228. console.log(fail);
  229. },
  230. });
  231. }
  232. },
  233. clickTab(item) {
  234. this.selectTab = item.name;
  235. if (item.name==='周边'){
  236. uni.navigateTo({
  237. url:'/pages/subPackages/peripheralService/index'
  238. })
  239. }
  240. },
  241. },
  242. };
  243. </script>
  244. <style lang="scss">
  245. .enterpriseSide {
  246. background: #f5f7fa;
  247. .searchTop {
  248. //margin: 24rpx;
  249. background: white;
  250. position: relative;
  251. display: flex;
  252. align-items: center;
  253. .searchArea {
  254. position: relative;
  255. width: 532rpx;
  256. height: 64rpx;
  257. background: #f5f7fa;
  258. border-radius: 32rpx;
  259. padding-left: 68rpx;
  260. font-size: 28rpx;
  261. }
  262. .locationIcon {
  263. position: absolute;
  264. width: 28rpx;
  265. height: 28rpx;
  266. left: 24rpx;
  267. z-index: 10;
  268. }
  269. .dhIcon {
  270. width: 48rpx;
  271. height: 48rpx;
  272. margin-left: 16rpx;
  273. }
  274. .vector {
  275. position: absolute;
  276. width: 16rpx;
  277. height: 8rpx;
  278. left: 552rpx;
  279. }
  280. }
  281. .parkBgBox {
  282. position: relative;
  283. background-repeat: no-repeat;
  284. background-size: 100%;
  285. width: 702rpx;
  286. height: 320rpx;
  287. margin-top: 24rpx;
  288. .parkNameBox {
  289. position: absolute;
  290. box-sizing: border-box;
  291. width: 100%;
  292. height: 64rpx;
  293. background: rgba(3, 19, 41, 0.6);
  294. display: flex;
  295. align-items: center;
  296. padding-left: 24rpx;
  297. bottom: 0;
  298. color: white;
  299. font-size: 28rpx;
  300. border-radius: 0 0 16rpx 16rpx;
  301. }
  302. }
  303. .map2 {
  304. box-sizing: border-box;
  305. //position: absolute;
  306. z-index: 2;
  307. width: 100%;
  308. //height: 770rpx;
  309. //border-radius: 48rpx 48rpx 0rpx 0rpx;
  310. background: white;
  311. //margin-top: 402rpx;
  312. padding: 36rpx 0 0 0;
  313. overflow-y: auto;
  314. display: grid;
  315. grid-template-columns: repeat(5, 1fr);
  316. }
  317. .mapIcon2 {
  318. width: 92rpx;
  319. height: 92rpx;
  320. display: block;
  321. margin: auto;
  322. }
  323. .mapdom2 {
  324. height: 184rpx;
  325. }
  326. .noticeBody {
  327. padding: 24rpx 28rpx;
  328. background: white;
  329. display: flex;
  330. align-items: center;
  331. margin: 24rpx 0;
  332. .tongzhiImg {
  333. width: 86rpx;
  334. height: 96rpx;
  335. }
  336. .columLine {
  337. width: 2rpx;
  338. height: 80rpx;
  339. background: #e7eaf0;
  340. margin: 0 16rpx;
  341. }
  342. .noticeBox {
  343. display: flex;
  344. flex-direction: column;
  345. .noticeItem {
  346. display: flex;
  347. align-items: center;
  348. margin: 8rpx 0;
  349. .noticeTag {
  350. width: 56rpx;
  351. height: 30rpx;
  352. background: #ffffff;
  353. border-radius: 4rpx 4rpx 4rpx 4rpx;
  354. border: 2rpx solid #0365f9;
  355. color: #0365f9;
  356. font-size: 22rpx;
  357. text-align: center;
  358. }
  359. .noticeInfo {
  360. width: 326rpx;
  361. font-size: 24rpx;
  362. color: #18172a;
  363. overflow: hidden;
  364. white-space: nowrap;
  365. text-overflow: ellipsis;
  366. margin: 0 24rpx;
  367. }
  368. .noticeTime {
  369. color: #666666;
  370. font-size: 24rpx;
  371. }
  372. }
  373. }
  374. }
  375. .parkDynamic {
  376. width: 100%;
  377. background: white;
  378. padding: 24rpx;
  379. box-sizing: border-box;
  380. .parkDynamicTab {
  381. display: flex;
  382. padding: 26px 0;
  383. .tabItem {
  384. color: #666666;
  385. font-size: 28rpx;
  386. margin: 0 32rpx;
  387. }
  388. .selectTabItem {
  389. color: #18172a;
  390. border-bottom: 6rpx solid #034df7;
  391. }
  392. }
  393. }
  394. .serviceEvaluation {
  395. width: 100%;
  396. background: white;
  397. padding: 24rpx;
  398. box-sizing: border-box;
  399. margin-top: 24rpx;
  400. .wyInfo {
  401. display: flex;
  402. align-items: center;
  403. justify-content: space-between;
  404. .wyName {
  405. display: flex;
  406. align-items: center;
  407. font-size: 36rpx;
  408. color: rgba(24, 23, 42, 1);
  409. margin: 38rpx 8rpx 24rpx 8rpx;
  410. .wyhead {
  411. width: 88rpx;
  412. height: 88rpx;
  413. margin-right: 24rpx;
  414. }
  415. }
  416. }
  417. .evaluationBox {
  418. width: 702rpx;
  419. height: 196rpx;
  420. //margin: 24rpx;
  421. padding: 42rpx 0 42rpx 48rpx;
  422. background: #f5f7fa;
  423. border-radius: 8rpx;
  424. box-sizing: border-box;
  425. .evaluationBoxName {
  426. font-size: 28rpx;
  427. color: #18172a;
  428. margin-bottom: 32rpx;
  429. }
  430. }
  431. }
  432. .contactInfo {
  433. display: flex;
  434. justify-content: space-between;
  435. align-items: center;
  436. padding: 30rpx 48rpx;
  437. box-sizing: border-box;
  438. background: white;
  439. margin: 4rpx 0 74rpx 0;
  440. .infoBox {
  441. display: flex;
  442. flex-direction: column;
  443. .infoTitle {
  444. color: #666666;
  445. font-size: 28rpx;
  446. margin-bottom: 16rpx;
  447. }
  448. .phoneNumber {
  449. color: #18172a;
  450. font-size: 40rpx;
  451. font-weight: 600;
  452. }
  453. }
  454. .phoneCall {
  455. width: 88rpx;
  456. height: 88rpx;
  457. }
  458. }
  459. .columLineBlue {
  460. width: 10rpx;
  461. height: 32rpx;
  462. background: linear-gradient(180deg, #509fff 0%, #034df7 100%);
  463. border-radius: 1px 1px 1px 1px;
  464. margin-right: 16rpx;
  465. }
  466. .titleName {
  467. color: #18172a;
  468. font-size: 36rpx;
  469. font-weight: 500;
  470. }
  471. .parkDynamicTitle {
  472. display: flex;
  473. align-items: center;
  474. }
  475. }
  476. </style>