home.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <template>
  2. <view>
  3. <view class="header">
  4. <view class="flex justify-between map">
  5. <view class='Medium flex align-item-center locationwrap'>
  6. <image class='location' src="../../static/img/liangmai/icon_ditu.png" mode=""></image>
  7. 黑龙江中天昊元…
  8. </view>
  9. <view class='Regular flex align-item-center distribution justify-center'>
  10. <image class='cangku' src="../../static/img/liangmai/cangku.png" mode=""></image>
  11. 分布
  12. </view>
  13. </view>
  14. <view class="cu-bar search">
  15. <view class="search-form round" @click="naviageToPage('/pages/grain_pulse/search')">
  16. <image class='icon-scarch' src="../../static/img/liangmai/sousuo.png" mode=""></image>
  17. <view class='Regular'> 请输入货名或标题</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="content" >
  22. <view @click='friendcircle' class="friendcircle">
  23. <view class='title flex align-item-center Medium'>
  24. <image class='icon-friendcircle' src="../../static/img/liangmai/icon.png" mode=""></image>
  25. 圈友说
  26. </view>
  27. <view class='friendcircle-content flex justify-between'>
  28. <image class='bg' src="../../static/img/liangmai/bg.png" mode=""></image>
  29. <view class='friendcircle-content-right'>
  30. <view class='friendcircle-content-right-item Regular flex align-item-center'><image class='headportrait' src="../../static/img/add@3x.png" mode=""></image>中天昊元粮库中天昊元…</view>
  31. <view class='friendcircle-content-right-item Regular flex align-item-center'><image class='headportrait' src="../../static/img/add@3x.png" mode=""></image>中天昊元粮库中天昊元…</view>
  32. <view class='friendcircle-content-right-item Regular flex align-item-center'><image class='headportrait' src="../../static/img/add@3x.png" mode=""></image>中天昊元粮库中天昊元…</view>
  33. <view class='friendcircle-content-right-item Regular flex align-item-center'><image class='headportrait' src="../../static/img/add@3x.png" mode=""></image>中天昊元粮库中天昊元…</view>
  34. </view>
  35. </view>
  36. </view>
  37. <scroll-view scroll-x="true" scroll-with-animation="true" class='list-type'>
  38. <view v-for='item in searchTypes' :class='mainBusinessType==item.name?"Semibold active":"Regular"' class="typeitem">{{item.name}}</view>
  39. </scroll-view>
  40. <view @click='todetails' v-for='item in datalist' class="listitem">
  41. <view class="flex">
  42. <image class='listitem-left' src="../../static/img/authentication/bankup(2).png" mode=""></image>
  43. <view class="listitem-right">
  44. <view class="companyname Medium">中天昊元粮库中天昊元粮库</view>
  45. <view class='Regular introduce'>我是企业介绍我是企业介绍我是企业介绍我是</view>
  46. </view>
  47. </view>
  48. <view class="flex align-item-center justify-between">
  49. <view class='companylocation flex align-item-center Regular'>
  50. <image class='location' src="../../static/img/liangmai/icon_ditu.png" mode=""></image>
  51. 辽宁省营口市鲅鱼圈区xx路108号
  52. </view>
  53. <view class='distance Regular'>50m</view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="enter">
  58. <image style='width:56.5px;height:28px;' src="../../static/img/liangmai/ruzhu.png" mode=""></image>
  59. <view class='enter-content'>入驻</view>
  60. </view>
  61. </view>
  62. </template>
  63. <script>
  64. export default {
  65. components: {
  66. },
  67. data() {
  68. return {
  69. status:0,
  70. mainBusinessType:'全部',
  71. pageSize: 10,
  72. currentPage: 1,
  73. searchTypes:[
  74. {name:'全部',value:'1'},{name:'粮库',value:'1'},{name:'加工厂',value:'1'},
  75. {name:'烘干塔',value:'1'},{name:'饲料厂',value:'1'},{name:'养殖场',value:'1'},
  76. {name:'粮贸',value:'1'},{name:'期货',value:'1'}
  77. ],
  78. datalist:[]
  79. }
  80. },
  81. onShow(){
  82. this.$api.doRequest('get','/settledCompanyInfo/selectSettledCompanyInfo',{mainBusinessType:this.mainBusinessType,pageSize: this.pageSize,
  83. currentPage: this.currentPage,pcFlag:2}).then(res => {
  84. if(res.data.code==200){
  85. this.datalist=res.data.data.records
  86. }
  87. })
  88. },
  89. onLoad(){
  90. },
  91. methods: {
  92. friendcircle(){
  93. uni.navigateTo({
  94. url:'/pages/grain_pulse/friendcircle'
  95. })
  96. },
  97. todetails(){
  98. uni.navigateTo({
  99. url:'/pages/grain_pulse/details'
  100. })
  101. },
  102. naviageToPage(item){
  103. uni.navigateTo({
  104. url:item
  105. })
  106. }
  107. }
  108. }
  109. </script>
  110. <style scoped>
  111. /* 《--头部 */
  112. .header{
  113. padding:0 12.5px;
  114. background:#fff;
  115. border-radius:0 0 10px 10px;
  116. }
  117. /* 头部--》 */
  118. /* 《--定位 */
  119. .location{
  120. width:15.5px;height:17.5px;margin-right:2.5px;
  121. }
  122. .locationwrap{
  123. font-size:16px;
  124. }
  125. /* 定位 --》 */
  126. /* 《--分布 */
  127. .map{
  128. padding:8.5px 0;
  129. }
  130. .cangku{
  131. width:16.5px;height:16.5px;margin-right:5px;
  132. }
  133. .distribution{
  134. background:#F5F6FA;
  135. width: 71.5px;
  136. height:32px;
  137. border-radius:15px;
  138. font-size:12px;
  139. }
  140. /* 分布--》 */
  141. /* 《--搜索 */
  142. .cu-bar .search-form{
  143. background:#F5F6F9;
  144. margin:0;
  145. margin-bottom:18px;
  146. padding:10px 18px;
  147. }
  148. .icon-scarch{
  149. width:15px;
  150. height:15px;
  151. margin-right:5px;
  152. }
  153. /* 搜索--》 */
  154. /* 《--内容 */
  155. .content{
  156. margin-top:13px;
  157. }
  158. /* 内容--》 */
  159. /* 《--圈友说 */
  160. .friendcircle{
  161. background:#fff;
  162. margin:0 9px;
  163. border-radius:4px;
  164. }
  165. .friendcircle .title{
  166. font-size:16px;
  167. padding:11.5px 14.5px;
  168. }
  169. .icon-friendcircle{
  170. width:17px;height: 17px;margin-right:5.5px;
  171. }
  172. .bg{
  173. width:110px;height:124px;
  174. }
  175. .friendcircle-content{
  176. padding:0 17px 18px;
  177. }
  178. .friendcircle-content-right{
  179. margin-left:15.5px;
  180. }
  181. .friendcircle-content-right-item{
  182. background: linear-gradient(90deg, #F5F6FA 0%, #FFFFFF 100%);
  183. border-radius:12.5px;
  184. margin-bottom:10px;
  185. width:205.5px;
  186. font-size:12px;
  187. padding:3px 0;
  188. }
  189. .headportrait{
  190. width:22.5px;height:22.5px;
  191. margin-right:8.5px;
  192. }
  193. /* 圈友说--》 */
  194. /* 《--类型 */
  195. .list-type{
  196. background: linear-gradient(180deg, #F5F6FA 0%, #FFFFFF 100%);
  197. width:100vw;
  198. padding-top:5px;
  199. height:49px;
  200. overflow-x: scroll;
  201. white-space: nowrap;
  202. }
  203. .typeitem{
  204. margin:10px;
  205. position:relative;
  206. display:inline-block;
  207. padding-top:8px;
  208. padding-bottom:5px;
  209. }
  210. .typeitem.active{
  211. font-size:16px;
  212. }
  213. .typeitem.active:after{
  214. content:'';
  215. display:block;
  216. position:absolute;
  217. height:3px;
  218. bottom:0;
  219. background:#22C572;
  220. width:50%;
  221. left:50%;
  222. transform: translateX(-50%);
  223. }
  224. /* 类型--》 */
  225. /* 《--数据 */
  226. .listitem{
  227. background:#fff;
  228. margin:10px;
  229. padding:15px 19px;
  230. }
  231. .listitem-left{
  232. width:98.5px;
  233. height:96.5px;
  234. margin-right:8px;
  235. border-radius:5px;
  236. }
  237. .companyname{
  238. font-size:14px;
  239. color:#333;
  240. }
  241. .introduce{
  242. font-size:12px;
  243. color:#676E80;
  244. }
  245. .companylocation{
  246. color:#676E80;
  247. background:#F5F6FA;
  248. margin-top:8px;
  249. padding:4px 10px;
  250. border-radius:15px;
  251. }
  252. .distance{
  253. color:#AFB3BF;
  254. padding:4px;
  255. margin-top:8px;
  256. }
  257. /* 数据--》 */
  258. .enter{
  259. position:fixed;
  260. right:0;
  261. top:80%;
  262. width:56.5px;height:28px;
  263. }
  264. .enter-content{
  265. position:absolute;
  266. right:5px;
  267. top:50%;
  268. transform: translateY(-50%);
  269. color:#fff;
  270. }
  271. </style>