enterpriseSide.vue 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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)"
  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 v-for="(item,index) in tabList" :key="index" class="tabItem" :class="selectTab===item.name?'selectTabItem':''" @click="clickTab(item)">
  46. {{item.name}}
  47. </div>
  48. </div>
  49. <activity v-show="selectTab==='活动'"></activity>
  50. </div>
  51. </div>
  52. </template>
  53. <script>
  54. import vanPopup from "../../../wxcomponents/weapp/dist/popup/index";
  55. import Activity from "./activity.vue";
  56. export default {
  57. components: {
  58. Activity,
  59. vanPopup
  60. },
  61. name: "enterpriseSide",
  62. data(){
  63. return{
  64. locationIcon:require('../image/locationIcon.png'),
  65. dhIcon:require('../image/dhIcon.png'),
  66. vector:require('../image/Vector.png'),
  67. tongzhi:require('../image/tongzhi.png'),
  68. searchArea: '当前园区名称',
  69. index: 0,
  70. array:['中国', '美国', '巴西', '日本'],
  71. parkBg:require('../image/parkBg.png'),
  72. tabList:[
  73. {name:'活动' },
  74. {name:'周边' },
  75. {name:'房源' },
  76. {name:'动态' },
  77. ],
  78. selectTab:'活动',
  79. mapList: [
  80. {
  81. label: "待办提醒",
  82. url: require("../image/dbtxIcon.png"),
  83. path: "/pages/subPackages/companyHouse/companyHouse",
  84. },
  85. {
  86. label: "企业账单",
  87. url: require("../image/qyzdIcon.png"),
  88. path: "/pages/subPackages/companyHouse/companyHouse",
  89. },
  90. {
  91. label: "经发填报",
  92. url: require("../image/jftbIcon.png"),
  93. path: "/pages/subPackages/companyHouse/companyHouse",
  94. },
  95. {
  96. label: "园区周边",
  97. url: require("../image/yqzb.png"),
  98. path: "/pages/subPackages/companyHouse/companyHouse",
  99. },
  100. {
  101. label: "报事报修",
  102. url: require("../image/bsbxIcon.png"),
  103. path: "/pages/subPackages/companyHouse/companyHouse",
  104. },
  105. {
  106. label: "活动报名",
  107. url: require("../image/hdbmIcon.png"),
  108. path: "/pages/subPackages/companyHouse/companyHouse",
  109. },
  110. {
  111. label: "入驻申请",
  112. url: require("../image/rzsqIcon.png"),
  113. path: "/pages/subPackages/companyHouse/companyHouse",
  114. },
  115. {
  116. label: "退租申请",
  117. url: require("../image/tzsqIcon.png"),
  118. path: "/pages/subPackages/companyHouse/companyHouse",
  119. },
  120. {
  121. label: "关于园区",
  122. url: require("../image/gyyqIcon.png"),
  123. path: "/pages/subPackages/companyHouse/companyHouse",
  124. },
  125. ],
  126. }
  127. },
  128. methods:{
  129. bindPickerChange(e){
  130. console.log(e)
  131. this.searchArea = this.array[e.detail.value]
  132. },
  133. jumpPage(path) {
  134. uni.navigateTo({
  135. url: path,
  136. fail: (fail) => {},
  137. });
  138. },
  139. clickTab(item){
  140. this.selectTab = item.name
  141. }
  142. }
  143. }
  144. </script>
  145. <style lang="scss">
  146. .enterpriseSide{
  147. background: #F5F7FA;
  148. .searchTop{
  149. //margin: 24rpx;
  150. background: white;
  151. position: relative;
  152. display: flex;
  153. align-items: center;
  154. .searchArea{
  155. position: relative;
  156. width: 532rpx;
  157. height: 64rpx;
  158. background: #F5F7FA;
  159. border-radius: 32rpx;
  160. padding-left: 68rpx;
  161. font-size: 28rpx;
  162. }
  163. .locationIcon{
  164. position: absolute;
  165. width: 28rpx;
  166. height: 28rpx;
  167. left: 24rpx;
  168. z-index: 10;
  169. }
  170. .dhIcon{
  171. width: 48rpx;
  172. height: 48rpx;
  173. margin-left: 16rpx;
  174. }
  175. .vector{
  176. position: absolute;
  177. width: 16rpx;
  178. height: 8rpx;
  179. left: 552rpx;
  180. }
  181. }
  182. .parkBgBox{
  183. position: relative;
  184. background-repeat: no-repeat;
  185. background-size: 100%;
  186. width: 702rpx;
  187. height: 320rpx;
  188. margin-top: 24rpx;
  189. .parkNameBox{
  190. position: absolute;
  191. box-sizing: border-box;
  192. width: 100%;
  193. height: 64rpx;
  194. background: rgba(3, 19, 41, 0.60);
  195. display: flex;
  196. align-items: center;
  197. padding-left: 24rpx;
  198. bottom: 0;
  199. color: white;
  200. font-size: 28rpx;
  201. border-radius: 0 0 16rpx 16rpx;
  202. }
  203. }
  204. .map2 {
  205. box-sizing: border-box;
  206. //position: absolute;
  207. z-index: 2;
  208. width: 100%;
  209. //height: 770rpx;
  210. //border-radius: 48rpx 48rpx 0rpx 0rpx;
  211. background: white;
  212. //margin-top: 402rpx;
  213. padding: 36rpx 0 0 0;
  214. overflow-y: auto;
  215. display: grid;
  216. grid-template-columns: repeat(5,1fr);
  217. }
  218. .mapIcon2{
  219. width: 92rpx;
  220. height: 92rpx;
  221. display: block;
  222. margin: auto;
  223. }
  224. .mapdom2{
  225. height: 184rpx;
  226. }
  227. .noticeBody{
  228. padding: 24rpx 28rpx;
  229. background: white;
  230. display: flex;
  231. align-items: center;
  232. margin: 24rpx 0;
  233. .tongzhiImg{
  234. width: 86rpx;
  235. height: 96rpx;
  236. }
  237. .columLine{
  238. width: 2rpx;
  239. height: 80rpx;
  240. background: #E7EAF0;
  241. margin: 0 16rpx;
  242. }
  243. .noticeBox{
  244. display: flex;
  245. flex-direction: column;
  246. .noticeItem{
  247. display: flex;
  248. align-items: center;
  249. margin: 8rpx 0;
  250. .noticeTag{
  251. width: 56rpx;
  252. height: 30rpx;
  253. background: #FFFFFF;
  254. border-radius: 4rpx 4rpx 4rpx 4rpx;
  255. border: 2rpx solid #0365F9;
  256. color: #0365F9;
  257. font-size: 22rpx;
  258. text-align: center;
  259. }
  260. .noticeInfo{
  261. width: 326rpx;
  262. font-size: 24rpx;
  263. color: #18172A;
  264. overflow: hidden;
  265. white-space: nowrap;
  266. text-overflow: ellipsis;
  267. margin: 0 24rpx;
  268. }
  269. .noticeTime{
  270. color: #666666;
  271. font-size: 24rpx;
  272. }
  273. }
  274. }
  275. }
  276. .parkDynamic{
  277. width: 100%;
  278. background: white;
  279. padding: 24rpx;
  280. .parkDynamicTitle{
  281. display:flex;
  282. align-items: center;
  283. }
  284. .parkDynamicTab{
  285. display: flex;
  286. padding: 26px 0;
  287. .tabItem{
  288. color: #666666;
  289. font-size: 28rpx;
  290. margin: 0 32rpx;
  291. }
  292. .selectTabItem{
  293. color:#18172A;
  294. border-bottom:6rpx solid #034DF7;
  295. }
  296. }
  297. }
  298. .columLineBlue{
  299. width: 10rpx;
  300. height: 32rpx;
  301. background: linear-gradient( 180deg, #509FFF 0%, #034DF7 100%);
  302. border-radius: 1px 1px 1px 1px;
  303. margin-right: 16rpx;
  304. }
  305. .titleName{
  306. color: #18172A;
  307. font-size: 36rpx;
  308. font-weight: 500;
  309. }
  310. }
  311. </style>