home.vue 6.6 KB

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