enterpriseSide.vue 12 KB

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