yqList.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <template>
  2. <view>
  3. <cu-custom bgColor="bg-blue" :isBack="true" backUrl="/pages/indexcf/indexcf">
  4. <block slot="content">园区列表</block>
  5. </cu-custom>
  6. <view :style="[{top:CustomBar + 'px'}]">
  7. <!-- <view class="search-box">
  8. <view class="choose-box">
  9. <jp-picker v-model="parkId" rangeKey="label" rangeValue="value" :range="parkList" empty="选择园区">
  10. </jp-picker>
  11. </view>
  12. <view class="input-box">
  13. <input type="text" placeholder="请输入楼宇名称" v-model="curWord" confirm-type="search"></input>
  14. </view>
  15. <text class="cuIcon-search color-white" @click="doSearch"></text>
  16. </view> -->
  17. <view>
  18. <view class="cu-item" :class="modalName=='move-box-'+ index?'move-cur':''"
  19. v-for="(item, index) in yqList" :key="index" :data-target="'move-box-' + index">
  20. <view class="item-box" @click="gotoYQInfo(item)">
  21. <view class="item-title">
  22. <view>
  23. <text class="line-zs"></text>{{item.name}}
  24. </view>
  25. <view class="btn-box" v-if="stype == 5">
  26. <view class="edit-botton" @click.stop="edit(item.id)">修改</view>
  27. <view class="del-botton" @click.stop="del(item.id)">删除</view>
  28. </view>
  29. </view>
  30. <view class="item-line">
  31. <view class="item-name">地址:</view>
  32. <view class="item-content">{{item.site}}</view>
  33. </view>
  34. <view class="item-line">
  35. <view class="item-name">距离机场:</view>
  36. <view class="item-content">{{item.distance}}</view>
  37. </view>
  38. <view class="item-line">
  39. <view class="item-name">面积:</view>
  40. <view class="item-content">{{item.area}}㎡
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view style="height: 2vh;"></view>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. import loginService from '@/api/auth/loginService.js'
  52. export default {
  53. onShow(option) {},
  54. components: {},
  55. data() {
  56. return {
  57. yqList: [{
  58. name: "亭湖区电子信息产业园",
  59. site: "盐城市亭湖区南洋镇太湖路99号",
  60. distance: "10km",
  61. longitude: 120.232445,
  62. latitude: 33.430631,
  63. area: 5000
  64. },
  65. {
  66. name: "睿思亭湖数字基地",
  67. site: "江苏省盐城市亭湖区中亭路9号",
  68. distance: "5.4km",
  69. longitude: 120.209738,
  70. latitude: 33.400009,
  71. area: 4500
  72. },
  73. {
  74. name: "盐城环保产业园",
  75. site: "光伏路与经一路交叉口西北150米",
  76. distance: "13.4km",
  77. longitude: 120.269329,
  78. latitude: 33.440453,
  79. area: 5500
  80. },
  81. {
  82. name: "江苏盐城光电产业园",
  83. site: "盐城市亭湖区青墩连接线与太湖路交叉路口",
  84. distance: "11km",
  85. longitude: 120.237555,
  86. latitude: 33.432122,
  87. area: 4800
  88. },
  89. {
  90. name: "盐东镇科技产业园",
  91. site: "盐城市亭湖区利民村3组",
  92. distance: "22.2km",
  93. longitude: 120.355611,
  94. latitude: 33.473836,
  95. area: 4580
  96. },
  97. {
  98. name: "兴泰(亭湖)产业园",
  99. site: "江苏省盐城市亭湖区瑞鹤路",
  100. distance: "14km",
  101. longitude: 120.275086,
  102. latitude: 33.44331,
  103. area: 4500,
  104. },
  105. {
  106. name: "江苏新青洋智能装备产业园",
  107. site: "江苏省盐城市亭湖区盐才路1号",
  108. distance: "16.3km",
  109. longitude: 120.192397,
  110. latitude: 33.468225,
  111. area: 4500
  112. },
  113. ],
  114. searchForm: {},
  115. curWord: "", //当前搜索关键词
  116. dataList: [], // 数据列表
  117. modalName: null,
  118. tablePage: {
  119. total: 0,
  120. currentPage: 1,
  121. pageSize: 10,
  122. orders: []
  123. },
  124. loading: true,
  125. parkList: [],
  126. parkId: '',
  127. stype: '', // 企业 => 3 楼宇 => 2 园区 => 1 zfadmin => 4 admin=> 5
  128. }
  129. },
  130. created() {
  131. // this.stype = uni.getStorageSync('stype')
  132. // this.getParkList()
  133. },
  134. methods: {
  135. gotoYQInfo(item) {
  136. uni.navigateTo({
  137. url: '/pages/map/parkShow?parkId=' + 5 +
  138. '&parkName=' + item.name +
  139. '&parkImage=' + '../../static/img/th-park-5.jpg'
  140. });
  141. },
  142. },
  143. }
  144. </script>
  145. <style>
  146. .ellipsis-description {
  147. font-size: 12px;
  148. line-height: $line-height-base;
  149. display: -webkit-box;
  150. /*作为弹性伸缩盒子模型显示*/
  151. -webkit-line-clamp: 1;
  152. /*显示的行数;如果要设置2行加...则设置为2*/
  153. overflow: hidden;
  154. /*超出的文本隐藏*/
  155. text-overflow: ellipsis;
  156. /* 溢出用省略号*/
  157. -webkit-box-orient: vertical;
  158. /*伸缩盒子的子元素排列:从上到下*/
  159. }
  160. .item-box {
  161. width: 710rpx;
  162. margin-left: 20rpx;
  163. background: #FFFFFF;
  164. box-shadow: 0px 1px 3px 0px rgba(9, 2, 4, 0.1);
  165. border-radius: 10px;
  166. padding-top: 20rpx;
  167. padding-left: 38rpx;
  168. padding-right: 10rpx;
  169. margin-top: 20rpx;
  170. }
  171. .item-title {
  172. position: relative;
  173. display: flex;
  174. justify-content: space-between;
  175. font-size: 30rpx;
  176. color: #333;
  177. font-weight: bold;
  178. align-items: center;
  179. }
  180. .item-line {
  181. display: flex;
  182. height: 48rpx;
  183. margin-top: 20rpx;
  184. }
  185. .subtitle {
  186. color: #E5880E;
  187. }
  188. .item-name {
  189. font-size: 30rpx;
  190. color: #333;
  191. }
  192. .item-content {
  193. color: #1497EF;
  194. font-size: 30rpx;
  195. }
  196. .btn-box {
  197. display: flex;
  198. }
  199. .line-zs {
  200. width: 2rpx;
  201. height: 30rpx;
  202. background: #36A7F3;
  203. }
  204. .edit-botton {
  205. width: 100rpx;
  206. height: 48rpx;
  207. line-height: 48rpx;
  208. color: #fff;
  209. font-size: 28rpx;
  210. margin-right: 20rpx;
  211. border-radius: 10rpx;
  212. background: #5A9EE9;
  213. text-align: center;
  214. }
  215. .del-botton {
  216. width: 100rpx;
  217. height: 48rpx;
  218. line-height: 48rpx;
  219. color: #fff;
  220. font-size: 28rpx;
  221. margin-right: 20rpx;
  222. border-radius: 10rpx;
  223. background: #F27C85;
  224. text-align: center;
  225. }
  226. .color-white {
  227. color: #fff;
  228. font-size: 40rpx;
  229. line-height: 60rpx;
  230. }
  231. .search-box {
  232. background: #36A7F3;
  233. display: flex;
  234. padding-left: 20rpx;
  235. padding-right: 20rpx;
  236. padding-bottom: 10rpx;
  237. }
  238. .input-box {
  239. margin-left: 20rpx;
  240. background: #fff;
  241. height: 60rpx;
  242. width: 420rpx;
  243. display: flex;
  244. align-items: center;
  245. border-radius: 30rpx;
  246. padding-left: 10rpx;
  247. margin-right: 20rpx;
  248. }
  249. .choose-box {
  250. background: #fff;
  251. width: 200rpx;
  252. border-radius: 30rpx;
  253. height: 60rpx;
  254. display: flex;
  255. align-items: center;
  256. justify-content: center;
  257. }
  258. .cu-bar .search-form {
  259. background-color: white;
  260. }
  261. </style>