enterpriseSide.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  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">
  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 === '活动'"></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. locationIcon:
  108. "https://www.idea-co-sf.com/gardenProduct/image/locationIcon.png",
  109. dhIcon: "https://www.idea-co-sf.com/gardenProduct/image/dhIcon.png",
  110. vector: "https://www.idea-co-sf.com/gardenProduct/image/Vector.png",
  111. tongzhi: "https://www.idea-co-sf.com/gardenProduct/image/tongzhi.png",
  112. wyhead: "https://www.idea-co-sf.com/gardenProduct/image/wyHead.png",
  113. myIcon: "https://www.idea-co-sf.com/gardenProduct/image/icon.png",
  114. voidMyIcon: "https://www.idea-co-sf.com/gardenProduct/image/voidIcon.png",
  115. phoneCall: "https://www.idea-co-sf.com/gardenProduct/image/phoneCall.png",
  116. value: "5",
  117. searchArea: "当前园区名称",
  118. index: 0,
  119. array: ["中国", "美国", "巴西", "日本"],
  120. parkBg: "https://www.idea-co-sf.com/gardenProduct/image/parkBg.png",
  121. tabList: [
  122. { name: "活动" },
  123. { name: "周边" },
  124. { name: "房源" },
  125. { name: "动态" },
  126. ],
  127. selectTab: "活动",
  128. mapList: [
  129. {
  130. label: "待办提醒",
  131. url: "https://www.idea-co-sf.com/gardenProduct/image/dbtxIcon.png",
  132. path: "/pages/subPackages/companyHouse/companyHouse",
  133. },
  134. {
  135. label: "企业账单",
  136. url: "https://www.idea-co-sf.com/gardenProduct/image/qyzdIcon.png",
  137. path: "/pages/subPackages/enterPriseBill/index",
  138. isMustCompany: true,
  139. },
  140. {
  141. label: "经发填报",
  142. url: "https://www.idea-co-sf.com/gardenProduct/image/jftbIcon.png",
  143. path: "/pages/subPackages/economicDevelopmentReport/economic",
  144. isMustCompany: true,
  145. },
  146. {
  147. label: "园区周边",
  148. url: "https://www.idea-co-sf.com/gardenProduct/image/yqzb.png",
  149. path: "/pages/subPackages/companyHouse/companyHouse",
  150. },
  151. {
  152. label: "报事报修",
  153. url: "https://www.idea-co-sf.com/gardenProduct/image/bsbxIcon.png",
  154. path: "/pages/subPackages/reportRepair/index",
  155. isMustCompany: true,
  156. },
  157. {
  158. label: "活动报名",
  159. url: "https://www.idea-co-sf.com/gardenProduct/image/hdbmIcon.png",
  160. path: "/pages/subPackages/companyHouse/companyHouse",
  161. // isMustCompany: true,
  162. },
  163. {
  164. label: "入驻申请",
  165. url: "https://www.idea-co-sf.com/gardenProduct/image/rzsqIcon.png",
  166. path: "/pages/subPackages/companyHouse/companyHouse",
  167. },
  168. {
  169. label: "退租申请",
  170. url: "https://www.idea-co-sf.com/gardenProduct/image/tzsqIcon.png",
  171. path: "/pages/subPackages/companyHouse/companyHouse",
  172. isMustCompany: true,
  173. },
  174. {
  175. label: "关于园区",
  176. url: "https://www.idea-co-sf.com/gardenProduct/image/gyyqIcon.png",
  177. path: "/pages/subPackages/companyHouse/companyHouse",
  178. },
  179. ],
  180. };
  181. },
  182. methods: {
  183. bindPickerChange(e) {
  184. console.log(e);
  185. this.searchArea = this.array[e.detail.value];
  186. },
  187. jumpPage(path, isMustCompany) {
  188. console.log(path);
  189. if (isMustCompany && getUserLocalStorageInfo().userType == 3) {
  190. uni.showModal({
  191. title: "提示",
  192. cancelText: "暂不",
  193. confirmText: "去切换",
  194. content: "您还不是企业用户,请切换登录身份后再进行相关操作。",
  195. success: function (res) {
  196. if (res.confirm) {
  197. uni.navigateTo({
  198. url: "/pages/login2/login",
  199. success: function (e) {
  200. // uni.$emit('userType', 'OK')
  201. },
  202. });
  203. } else if (res.cancel) {
  204. console.log("用户点击取消");
  205. }
  206. },
  207. });
  208. } else {
  209. uni.navigateTo({
  210. url: path,
  211. fail: (fail) => {
  212. console.log(fail);
  213. },
  214. });
  215. }
  216. },
  217. clickTab(item) {
  218. this.selectTab = item.name;
  219. },
  220. },
  221. };
  222. </script>
  223. <style lang="scss">
  224. .enterpriseSide {
  225. background: #f5f7fa;
  226. .searchTop {
  227. //margin: 24rpx;
  228. background: white;
  229. position: relative;
  230. display: flex;
  231. align-items: center;
  232. .searchArea {
  233. position: relative;
  234. width: 532rpx;
  235. height: 64rpx;
  236. background: #f5f7fa;
  237. border-radius: 32rpx;
  238. padding-left: 68rpx;
  239. font-size: 28rpx;
  240. }
  241. .locationIcon {
  242. position: absolute;
  243. width: 28rpx;
  244. height: 28rpx;
  245. left: 24rpx;
  246. z-index: 10;
  247. }
  248. .dhIcon {
  249. width: 48rpx;
  250. height: 48rpx;
  251. margin-left: 16rpx;
  252. }
  253. .vector {
  254. position: absolute;
  255. width: 16rpx;
  256. height: 8rpx;
  257. left: 552rpx;
  258. }
  259. }
  260. .parkBgBox {
  261. position: relative;
  262. background-repeat: no-repeat;
  263. background-size: 100%;
  264. width: 702rpx;
  265. height: 320rpx;
  266. margin-top: 24rpx;
  267. .parkNameBox {
  268. position: absolute;
  269. box-sizing: border-box;
  270. width: 100%;
  271. height: 64rpx;
  272. background: rgba(3, 19, 41, 0.6);
  273. display: flex;
  274. align-items: center;
  275. padding-left: 24rpx;
  276. bottom: 0;
  277. color: white;
  278. font-size: 28rpx;
  279. border-radius: 0 0 16rpx 16rpx;
  280. }
  281. }
  282. .map2 {
  283. box-sizing: border-box;
  284. //position: absolute;
  285. z-index: 2;
  286. width: 100%;
  287. //height: 770rpx;
  288. //border-radius: 48rpx 48rpx 0rpx 0rpx;
  289. background: white;
  290. //margin-top: 402rpx;
  291. padding: 36rpx 0 0 0;
  292. overflow-y: auto;
  293. display: grid;
  294. grid-template-columns: repeat(5, 1fr);
  295. }
  296. .mapIcon2 {
  297. width: 92rpx;
  298. height: 92rpx;
  299. display: block;
  300. margin: auto;
  301. }
  302. .mapdom2 {
  303. height: 184rpx;
  304. }
  305. .noticeBody {
  306. padding: 24rpx 28rpx;
  307. background: white;
  308. display: flex;
  309. align-items: center;
  310. margin: 24rpx 0;
  311. .tongzhiImg {
  312. width: 86rpx;
  313. height: 96rpx;
  314. }
  315. .columLine {
  316. width: 2rpx;
  317. height: 80rpx;
  318. background: #e7eaf0;
  319. margin: 0 16rpx;
  320. }
  321. .noticeBox {
  322. display: flex;
  323. flex-direction: column;
  324. .noticeItem {
  325. display: flex;
  326. align-items: center;
  327. margin: 8rpx 0;
  328. .noticeTag {
  329. width: 56rpx;
  330. height: 30rpx;
  331. background: #ffffff;
  332. border-radius: 4rpx 4rpx 4rpx 4rpx;
  333. border: 2rpx solid #0365f9;
  334. color: #0365f9;
  335. font-size: 22rpx;
  336. text-align: center;
  337. }
  338. .noticeInfo {
  339. width: 326rpx;
  340. font-size: 24rpx;
  341. color: #18172a;
  342. overflow: hidden;
  343. white-space: nowrap;
  344. text-overflow: ellipsis;
  345. margin: 0 24rpx;
  346. }
  347. .noticeTime {
  348. color: #666666;
  349. font-size: 24rpx;
  350. }
  351. }
  352. }
  353. }
  354. .parkDynamic {
  355. width: 100%;
  356. background: white;
  357. padding: 24rpx;
  358. box-sizing: border-box;
  359. .parkDynamicTab {
  360. display: flex;
  361. padding: 26px 0;
  362. .tabItem {
  363. color: #666666;
  364. font-size: 28rpx;
  365. margin: 0 32rpx;
  366. }
  367. .selectTabItem {
  368. color: #18172a;
  369. border-bottom: 6rpx solid #034df7;
  370. }
  371. }
  372. }
  373. .serviceEvaluation {
  374. width: 100%;
  375. background: white;
  376. padding: 24rpx;
  377. box-sizing: border-box;
  378. margin-top: 24rpx;
  379. .wyInfo {
  380. display: flex;
  381. align-items: center;
  382. justify-content: space-between;
  383. .wyName {
  384. display: flex;
  385. align-items: center;
  386. font-size: 36rpx;
  387. color: rgba(24, 23, 42, 1);
  388. margin: 38rpx 8rpx 24rpx 8rpx;
  389. .wyhead {
  390. width: 88rpx;
  391. height: 88rpx;
  392. margin-right: 24rpx;
  393. }
  394. }
  395. }
  396. .evaluationBox {
  397. width: 702rpx;
  398. height: 196rpx;
  399. //margin: 24rpx;
  400. padding: 42rpx 0 42rpx 48rpx;
  401. background: #f5f7fa;
  402. border-radius: 8rpx;
  403. box-sizing: border-box;
  404. .evaluationBoxName {
  405. font-size: 28rpx;
  406. color: #18172a;
  407. margin-bottom: 32rpx;
  408. }
  409. }
  410. }
  411. .contactInfo {
  412. display: flex;
  413. justify-content: space-between;
  414. align-items: center;
  415. padding: 30rpx 48rpx;
  416. box-sizing: border-box;
  417. background: white;
  418. margin: 4rpx 0 74rpx 0;
  419. .infoBox {
  420. display: flex;
  421. flex-direction: column;
  422. .infoTitle {
  423. color: #666666;
  424. font-size: 28rpx;
  425. margin-bottom: 16rpx;
  426. }
  427. .phoneNumber {
  428. color: #18172a;
  429. font-size: 40rpx;
  430. font-weight: 600;
  431. }
  432. }
  433. .phoneCall {
  434. width: 88rpx;
  435. height: 88rpx;
  436. }
  437. }
  438. .columLineBlue {
  439. width: 10rpx;
  440. height: 32rpx;
  441. background: linear-gradient(180deg, #509fff 0%, #034df7 100%);
  442. border-radius: 1px 1px 1px 1px;
  443. margin-right: 16rpx;
  444. }
  445. .titleName {
  446. color: #18172a;
  447. font-size: 36rpx;
  448. font-weight: 500;
  449. }
  450. .parkDynamicTitle {
  451. display: flex;
  452. align-items: center;
  453. }
  454. }
  455. </style>