enterpriseSide.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  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" @tap="toServiceEva">
  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/peripheralService/index",
  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/aboutThePark/index",
  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/resourceReservation_manage/index",
  189. },
  190. ],
  191. };
  192. },
  193. methods: {
  194. toServiceEva(){
  195. uni.navigateTo({
  196. url:"/pages/subPackages/serviceEvaluation/index",
  197. })
  198. },
  199. toNotice() {
  200. uni.navigateTo({
  201. url:"/pages/subPackages/propertyNotice/index",
  202. })
  203. },
  204. bindPickerChange(e) {
  205. console.log(e);
  206. this.searchArea = this.array[e.detail.value];
  207. },
  208. jumpPage(path, isMustCompany) {
  209. console.log(path);
  210. if (isMustCompany && getUserLocalStorageInfo().userType == 3) {
  211. uni.showModal({
  212. title: "提示",
  213. cancelText: "暂不",
  214. confirmText: "去切换",
  215. content: "您还不是企业用户,请切换登录身份后再进行相关操作。",
  216. success: function (res) {
  217. if (res.confirm) {
  218. uni.navigateTo({
  219. url: "/pages/login2/login",
  220. success: function (e) {
  221. // uni.$emit('userType', 'OK')
  222. },
  223. });
  224. } else if (res.cancel) {
  225. console.log("用户点击取消");
  226. }
  227. },
  228. });
  229. } else {
  230. uni.navigateTo({
  231. url: path,
  232. fail: (fail) => {
  233. console.log(fail);
  234. },
  235. });
  236. }
  237. },
  238. clickTab(item) {
  239. // this.selectTab = item.name;
  240. if (item.name==='周边'){
  241. uni.navigateTo({
  242. url:'/pages/subPackages/peripheralService/index'
  243. })
  244. }else if(item.name==='房源'){
  245. uni.navigateTo({
  246. url:'/pages/subPackages/housingResources/index'
  247. })
  248. }
  249. },
  250. },
  251. };
  252. </script>
  253. <style lang="scss">
  254. .enterpriseSide {
  255. background: #f5f7fa;
  256. .searchTop {
  257. //margin: 24rpx;
  258. background: white;
  259. position: relative;
  260. display: flex;
  261. align-items: center;
  262. .searchArea {
  263. position: relative;
  264. width: 532rpx;
  265. height: 64rpx;
  266. background: #f5f7fa;
  267. border-radius: 32rpx;
  268. padding-left: 68rpx;
  269. font-size: 28rpx;
  270. }
  271. .locationIcon {
  272. position: absolute;
  273. width: 28rpx;
  274. height: 28rpx;
  275. left: 24rpx;
  276. z-index: 10;
  277. }
  278. .dhIcon {
  279. width: 48rpx;
  280. height: 48rpx;
  281. margin-left: 16rpx;
  282. }
  283. .vector {
  284. position: absolute;
  285. width: 16rpx;
  286. height: 8rpx;
  287. left: 552rpx;
  288. }
  289. }
  290. .parkBgBox {
  291. position: relative;
  292. background-repeat: no-repeat;
  293. background-size: 100%;
  294. width: 702rpx;
  295. height: 320rpx;
  296. margin-top: 24rpx;
  297. .parkNameBox {
  298. position: absolute;
  299. box-sizing: border-box;
  300. width: 100%;
  301. height: 64rpx;
  302. background: rgba(3, 19, 41, 0.6);
  303. display: flex;
  304. align-items: center;
  305. padding-left: 24rpx;
  306. bottom: 0;
  307. color: white;
  308. font-size: 28rpx;
  309. border-radius: 0 0 16rpx 16rpx;
  310. }
  311. }
  312. .map2 {
  313. box-sizing: border-box;
  314. //position: absolute;
  315. z-index: 2;
  316. width: 100%;
  317. //height: 770rpx;
  318. //border-radius: 48rpx 48rpx 0rpx 0rpx;
  319. background: white;
  320. //margin-top: 402rpx;
  321. padding: 36rpx 0 0 0;
  322. overflow-y: auto;
  323. display: grid;
  324. grid-template-columns: repeat(5, 1fr);
  325. }
  326. .mapIcon2 {
  327. width: 92rpx;
  328. height: 92rpx;
  329. display: block;
  330. margin: auto;
  331. }
  332. .mapdom2 {
  333. height: 184rpx;
  334. }
  335. .noticeBody {
  336. padding: 24rpx 28rpx;
  337. background: white;
  338. display: flex;
  339. align-items: center;
  340. margin: 24rpx 0;
  341. .tongzhiImg {
  342. width: 86rpx;
  343. height: 96rpx;
  344. }
  345. .columLine {
  346. width: 2rpx;
  347. height: 80rpx;
  348. background: #e7eaf0;
  349. margin: 0 16rpx;
  350. }
  351. .noticeBox {
  352. display: flex;
  353. flex-direction: column;
  354. .noticeItem {
  355. display: flex;
  356. align-items: center;
  357. margin: 8rpx 0;
  358. .noticeTag {
  359. width: 56rpx;
  360. height: 30rpx;
  361. background: #ffffff;
  362. border-radius: 4rpx 4rpx 4rpx 4rpx;
  363. border: 2rpx solid #0365f9;
  364. color: #0365f9;
  365. font-size: 22rpx;
  366. text-align: center;
  367. }
  368. .noticeInfo {
  369. width: 326rpx;
  370. font-size: 24rpx;
  371. color: #18172a;
  372. overflow: hidden;
  373. white-space: nowrap;
  374. text-overflow: ellipsis;
  375. margin: 0 24rpx;
  376. }
  377. .noticeTime {
  378. color: #666666;
  379. font-size: 24rpx;
  380. }
  381. }
  382. }
  383. }
  384. .parkDynamic {
  385. width: 100%;
  386. background: white;
  387. padding: 24rpx;
  388. box-sizing: border-box;
  389. .parkDynamicTab {
  390. display: flex;
  391. padding: 26px 0;
  392. .tabItem {
  393. color: #666666;
  394. font-size: 28rpx;
  395. margin: 0 32rpx;
  396. }
  397. .selectTabItem {
  398. color: #18172a;
  399. border-bottom: 6rpx solid #034df7;
  400. }
  401. }
  402. }
  403. .serviceEvaluation {
  404. width: 100%;
  405. background: white;
  406. padding: 24rpx;
  407. box-sizing: border-box;
  408. margin-top: 24rpx;
  409. .wyInfo {
  410. display: flex;
  411. align-items: center;
  412. justify-content: space-between;
  413. .wyName {
  414. display: flex;
  415. align-items: center;
  416. font-size: 36rpx;
  417. color: rgba(24, 23, 42, 1);
  418. margin: 38rpx 8rpx 24rpx 8rpx;
  419. .wyhead {
  420. width: 88rpx;
  421. height: 88rpx;
  422. margin-right: 24rpx;
  423. }
  424. }
  425. }
  426. .evaluationBox {
  427. width: 702rpx;
  428. height: 196rpx;
  429. //margin: 24rpx;
  430. padding: 42rpx 0 42rpx 48rpx;
  431. background: #f5f7fa;
  432. border-radius: 8rpx;
  433. box-sizing: border-box;
  434. .evaluationBoxName {
  435. font-size: 28rpx;
  436. color: #18172a;
  437. margin-bottom: 32rpx;
  438. }
  439. }
  440. }
  441. .contactInfo {
  442. display: flex;
  443. justify-content: space-between;
  444. align-items: center;
  445. padding: 30rpx 48rpx;
  446. box-sizing: border-box;
  447. background: white;
  448. margin: 4rpx 0 74rpx 0;
  449. .infoBox {
  450. display: flex;
  451. flex-direction: column;
  452. .infoTitle {
  453. color: #666666;
  454. font-size: 28rpx;
  455. margin-bottom: 16rpx;
  456. }
  457. .phoneNumber {
  458. color: #18172a;
  459. font-size: 40rpx;
  460. font-weight: 600;
  461. }
  462. }
  463. .phoneCall {
  464. width: 88rpx;
  465. height: 88rpx;
  466. }
  467. }
  468. .columLineBlue {
  469. width: 10rpx;
  470. height: 32rpx;
  471. background: linear-gradient(180deg, #509fff 0%, #034df7 100%);
  472. border-radius: 1px 1px 1px 1px;
  473. margin-right: 16rpx;
  474. }
  475. .titleName {
  476. color: #18172a;
  477. font-size: 36rpx;
  478. font-weight: 500;
  479. }
  480. .parkDynamicTitle {
  481. display: flex;
  482. align-items: center;
  483. }
  484. }
  485. </style>