home.vue 6.5 KB

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