home.vue 6.7 KB

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