home.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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>
  63. </template>
  64. <script>
  65. export default {
  66. components: {
  67. },
  68. data() {
  69. return {
  70. status:0
  71. }
  72. },
  73. onLoad(){
  74. },
  75. methods: {
  76. friendcircle(){
  77. uni.navigateTo({
  78. url:'/pages/grain_pulse/friendcircle'
  79. })
  80. },
  81. todetails(){
  82. console.log(1111)
  83. uni.navigateTo({
  84. url:'/pages/grain_pulse/details'
  85. })
  86. }
  87. }
  88. }
  89. </script>
  90. <style scoped>
  91. /* 《--头部 */
  92. .header{
  93. padding:0 12.5px;
  94. background:#fff;
  95. border-radius:0 0 10px 10px;
  96. }
  97. /* 头部--》 */
  98. /* 《--定位 */
  99. .location{
  100. width:15.5px;height:17.5px;margin-right:2.5px;
  101. }
  102. .locationwrap{
  103. font-size:16px;
  104. }
  105. /* 定位 --》 */
  106. /* 《--分布 */
  107. .map{
  108. padding:8.5px 0;
  109. }
  110. .cangku{
  111. width:16.5px;height:16.5px;margin-right:5px;
  112. }
  113. .distribution{
  114. background:#F5F6FA;
  115. width: 71.5px;
  116. height:32px;
  117. border-radius:15px;
  118. font-size:12px;
  119. }
  120. /* 分布--》 */
  121. /* 《--搜索 */
  122. .cu-bar .search-form{
  123. background:#F5F6F9;
  124. margin:0;
  125. margin-bottom:18px;
  126. padding:10px 18px;
  127. }
  128. .icon-scarch{
  129. width:15px;
  130. height:15px;
  131. margin-right:5px;
  132. }
  133. /* 搜索--》 */
  134. /* 《--内容 */
  135. .content{
  136. margin-top:13px;
  137. }
  138. /* 内容--》 */
  139. /* 《--圈友说 */
  140. .friendcircle{
  141. background:#fff;
  142. margin:0 9px;
  143. border-radius:4px;
  144. }
  145. .friendcircle .title{
  146. font-size:16px;
  147. padding:11.5px 14.5px;
  148. }
  149. .icon-friendcircle{
  150. width:17px;height: 17px;margin-right:5.5px;
  151. }
  152. .bg{
  153. width:110px;height:124px;
  154. }
  155. .friendcircle-content{
  156. padding:0 17px 18px;
  157. }
  158. .friendcircle-content-right{
  159. margin-left:15.5px;
  160. }
  161. .friendcircle-content-right-item{
  162. background: linear-gradient(90deg, #F5F6FA 0%, #FFFFFF 100%);
  163. border-radius:12.5px;
  164. margin-bottom:10px;
  165. width:205.5px;
  166. font-size:12px;
  167. padding:3px 0;
  168. }
  169. .headportrait{
  170. width:22.5px;height:22.5px;
  171. margin-right:8.5px;
  172. }
  173. /* 圈友说--》 */
  174. /* 《--类型 */
  175. .list-type{
  176. background: linear-gradient(180deg, #F5F6FA 0%, #FFFFFF 100%);
  177. width:100%;
  178. padding-top:5px;
  179. height:49px;
  180. overflow-x: scroll;
  181. }
  182. .typeitem{
  183. margin:10px;
  184. position:relative;
  185. display:inline-block;
  186. padding-top:8px;
  187. padding-bottom:5px;
  188. }
  189. .typeitem.active{
  190. font-size:16px;
  191. }
  192. .typeitem.active:after{
  193. content:'';
  194. display:block;
  195. position:absolute;
  196. height:3px;
  197. bottom:0;
  198. background:#22C572;
  199. width:50%;
  200. left:50%;
  201. transform: translateX(-50%);
  202. }
  203. /* 类型--》 */
  204. /* 《--数据 */
  205. .listitem{
  206. background:#fff;
  207. margin:10px;
  208. padding:15px 19px;
  209. }
  210. .listitem-left{
  211. width:98.5px;
  212. height:96.5px;
  213. margin-right:8px;
  214. border-radius:5px;
  215. }
  216. .companyname{
  217. font-size:14px;
  218. color:#333;
  219. }
  220. .introduce{
  221. font-size:12px;
  222. color:#676E80;
  223. }
  224. .companylocation{
  225. color:#676E80;
  226. background:#F5F6FA;
  227. margin-top:8px;
  228. padding:4px 10px;
  229. border-radius:15px;
  230. }
  231. .distance{
  232. color:#AFB3BF;
  233. padding:4px;
  234. margin-top:8px;
  235. }
  236. /* 数据--》 */
  237. </style>