home.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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" @click="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. enter(){
  93. //入驻
  94. uni.navigateTo({
  95. url:'/pages/grain_pulse/enter'
  96. })
  97. },
  98. friendcircle(){
  99. uni.navigateTo({
  100. url:'/pages/grain_pulse/friendcircle'
  101. })
  102. },
  103. todetails(){
  104. uni.navigateTo({
  105. url:'/pages/grain_pulse/details'
  106. })
  107. },
  108. naviageToPage(item){
  109. uni.navigateTo({
  110. url:item
  111. })
  112. }
  113. }
  114. }
  115. </script>
  116. <style scoped>
  117. /* 《--头部 */
  118. .header{
  119. padding:0 12.5px;
  120. background:#fff;
  121. border-radius:0 0 10px 10px;
  122. }
  123. /* 头部--》 */
  124. /* 《--定位 */
  125. .location{
  126. width:15.5px;height:17.5px;margin-right:2.5px;
  127. }
  128. .locationwrap{
  129. font-size:16px;
  130. }
  131. /* 定位 --》 */
  132. /* 《--分布 */
  133. .map{
  134. padding:8.5px 0;
  135. }
  136. .cangku{
  137. width:16.5px;height:16.5px;margin-right:5px;
  138. }
  139. .distribution{
  140. background:#F5F6FA;
  141. width: 71.5px;
  142. height:32px;
  143. border-radius:15px;
  144. font-size:12px;
  145. }
  146. /* 分布--》 */
  147. /* 《--搜索 */
  148. .cu-bar .search-form{
  149. background:#F5F6F9;
  150. margin:0;
  151. margin-bottom:18px;
  152. padding:10px 18px;
  153. }
  154. .icon-scarch{
  155. width:15px;
  156. height:15px;
  157. margin-right:5px;
  158. }
  159. /* 搜索--》 */
  160. /* 《--内容 */
  161. .content{
  162. margin-top:13px;
  163. }
  164. /* 内容--》 */
  165. /* 《--圈友说 */
  166. .friendcircle{
  167. background:#fff;
  168. margin:0 9px;
  169. border-radius:4px;
  170. }
  171. .friendcircle .title{
  172. font-size:16px;
  173. padding:11.5px 14.5px;
  174. }
  175. .icon-friendcircle{
  176. width:17px;height: 17px;margin-right:5.5px;
  177. }
  178. .bg{
  179. width:110px;height:124px;
  180. }
  181. .friendcircle-content{
  182. padding:0 17px 18px;
  183. }
  184. .friendcircle-content-right{
  185. margin-left:15.5px;
  186. }
  187. .friendcircle-content-right-item{
  188. background: linear-gradient(90deg, #F5F6FA 0%, #FFFFFF 100%);
  189. border-radius:12.5px;
  190. margin-bottom:10px;
  191. width:205.5px;
  192. font-size:12px;
  193. padding:3px 0;
  194. }
  195. .headportrait{
  196. width:22.5px;height:22.5px;
  197. margin-right:8.5px;
  198. }
  199. /* 圈友说--》 */
  200. /* 《--类型 */
  201. .list-type{
  202. background: linear-gradient(180deg, #F5F6FA 0%, #FFFFFF 100%);
  203. width:100vw;
  204. padding-top:5px;
  205. height:49px;
  206. overflow-x: scroll;
  207. white-space: nowrap;
  208. }
  209. .typeitem{
  210. margin:10px;
  211. position:relative;
  212. display:inline-block;
  213. padding-top:8px;
  214. padding-bottom:5px;
  215. }
  216. .typeitem.active{
  217. font-size:16px;
  218. }
  219. .typeitem.active:after{
  220. content:'';
  221. display:block;
  222. position:absolute;
  223. height:3px;
  224. bottom:0;
  225. background:#22C572;
  226. width:50%;
  227. left:50%;
  228. transform: translateX(-50%);
  229. }
  230. /* 类型--》 */
  231. /* 《--数据 */
  232. .listitem{
  233. background:#fff;
  234. margin:10px;
  235. padding:15px 19px;
  236. }
  237. .listitem-left{
  238. width:98.5px;
  239. height:96.5px;
  240. margin-right:8px;
  241. border-radius:5px;
  242. }
  243. .companyname{
  244. font-size:14px;
  245. color:#333;
  246. }
  247. .introduce{
  248. font-size:12px;
  249. color:#676E80;
  250. }
  251. .companylocation{
  252. color:#676E80;
  253. background:#F5F6FA;
  254. margin-top:8px;
  255. padding:4px 10px;
  256. border-radius:15px;
  257. }
  258. .distance{
  259. color:#AFB3BF;
  260. padding:4px;
  261. margin-top:8px;
  262. }
  263. /* 数据--》 */
  264. .enter{
  265. position:fixed;
  266. right:0;
  267. top:80%;
  268. width:56.5px;height:28px;
  269. }
  270. .enter-content{
  271. position:absolute;
  272. right:5px;
  273. top:50%;
  274. transform: translateY(-50%);
  275. color:#fff;
  276. }
  277. </style>