my_grain_pulse.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <template>
  2. <view>
  3. <scroll-view scroll-x="true" scroll-with-animation="true" class='list-type'>
  4. <view v-for='item in searchTypes' @click='changetype(item)' :class='mainBusinessType==item.name?"Semibold active":"Regular"' class="typeitem">{{item.name}}</view>
  5. </scroll-view>
  6. <view class="listitem">
  7. <view class="flex" v-if='mainBusinessType=="我的企业"'>
  8. <image class='listitem-left' src="../../static/img/authentication/bankup(2).png" mode=""></image>
  9. <view class="listitem-right">
  10. <view class="flex justify-between">
  11. <view class="companyname Medium">中天昊元粮库</view>
  12. <view class='listitemStatus audit Regular'>审核中</view>
  13. </view>
  14. <view class='companylocation flex align-item-center Regular'>
  15. <image class='location' src="../../static/img/liangmai/icon_ditu.png" mode=""></image>
  16. 辽宁省营口市鲅鱼圈区xx路108号
  17. </view>
  18. <view>
  19. <view class="button Regular">隐藏</view>
  20. <view class="button Regular">编辑</view>
  21. <view class="button Regular">删除</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view v-else>
  26. <view class="flex">
  27. <image class='listitem-left' src="../../static/img/authentication/bankup(2).png" mode=""></image>
  28. <view class="listitem-right">
  29. <view class="flex justify-between">
  30. <view class="companyname Medium">中天昊元粮库中天昊元粮库</view>
  31. <image style='width:12px;height:12px;' :src="status1?'../../static/img/liangmai/my_shoucang1.png':'../../static/img/liangmai/my_shoucang.png'" mode=""></image>
  32. </view>
  33. <view class='Regular introduce'>我是企业介绍我是企业介绍我是企业介绍我是</view>
  34. </view>
  35. </view>
  36. <view class="flex align-item-center justify-between">
  37. <view class='companylocation flex align-item-center Regular'>
  38. <image class='location' src="../../static/img/liangmai/icon_ditu.png" mode=""></image>
  39. 辽宁省营口市鲅鱼圈区xx路108号
  40. </view>
  41. <view class='distance Regular'>50m</view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. components: {
  50. },
  51. data() {
  52. return {
  53. status:0,
  54. mainBusinessType:'我的企业',
  55. pageSize: 10,
  56. currentPage: 1,
  57. datalist:[],
  58. status1:true,
  59. searchTypes:[
  60. {name:'我的企业',value:'1'},{name:'我的收藏',value:'1'}
  61. ],
  62. }
  63. },
  64. onShow(){
  65. // this.$api.doRequest('get','/settledCompanyInfo/selectSettledCompanyInfo',{mainBusinessType:'全部',pageSize: this.pageSize,
  66. // currentPage: this.currentPage,pcFlag:2}).then(res => {
  67. // if(res.data.code==200){
  68. // this.datalist=res.data.data.records
  69. // }
  70. // })
  71. },
  72. onLoad(){
  73. },
  74. methods: {
  75. friendcircle(){
  76. uni.navigateTo({
  77. url:'/pages/grain_pulse/friendcircle'
  78. })
  79. },
  80. todetails(){
  81. uni.navigateTo({
  82. url:'/pages/grain_pulse/details'
  83. })
  84. },
  85. naviageToPage(item){
  86. uni.navigateTo({
  87. url:item
  88. })
  89. },
  90. changetype(item){
  91. }
  92. }
  93. }
  94. </script>
  95. <style scoped>
  96. /* 《--头部 */
  97. .header{
  98. padding:0 12.5px;
  99. background:#fff;
  100. border-radius:0 0 10px 10px;
  101. }
  102. /* 头部--》 */
  103. /* 《--定位 */
  104. .location{
  105. width:15.5px;height:17.5px;margin-right:2.5px;
  106. }
  107. .locationwrap{
  108. font-size:16px;
  109. }
  110. /* 定位 --》 */
  111. /* 《--分布 */
  112. .map{
  113. padding:8.5px 0;
  114. }
  115. .cangku{
  116. width:16.5px;height:16.5px;margin-right:5px;
  117. }
  118. .distribution{
  119. background:#F5F6FA;
  120. width: 71.5px;
  121. height:32px;
  122. border-radius:15px;
  123. font-size:12px;
  124. }
  125. /* 分布--》 */
  126. /* 《--搜索 */
  127. .cu-bar .search-form{
  128. background:#F5F6F9;
  129. margin:0;
  130. margin-bottom:18px;
  131. padding:10px 18px;
  132. }
  133. .icon-scarch{
  134. width:15px;
  135. height:15px;
  136. margin-right:5px;
  137. }
  138. /* 搜索--》 */
  139. /* 《--内容 */
  140. .content{
  141. margin-top:13px;
  142. }
  143. /* 内容--》 */
  144. /* 《--类型 */
  145. .list-type{
  146. background: #fff;
  147. width:100vw;
  148. padding-top:5px;
  149. height:49px;
  150. overflow-x: scroll;
  151. white-space: nowrap;
  152. }
  153. .typeitem{
  154. margin:10px;
  155. position:relative;
  156. display:inline-block;
  157. padding-bottom:10px;
  158. font-size:17px;
  159. }
  160. .typeitem.active:after{
  161. content:'';
  162. display:block;
  163. position:absolute;
  164. height:3px;
  165. bottom:0;
  166. background:#22C572;
  167. width:18px;
  168. left:50%;
  169. transform: translateX(-50%);
  170. }
  171. /* 类型--》 */
  172. /* 《--数据 */
  173. .listitem{
  174. background:#fff;
  175. margin:10px;
  176. padding:15px 19px;
  177. border-radius:10px;
  178. }
  179. .listitem-left{
  180. width:98.5px;
  181. height:96.5px;
  182. margin-right:8px;
  183. border-radius:5px;
  184. }
  185. .companyname{
  186. font-size:14px;
  187. color:#333;
  188. }
  189. .introduce{
  190. font-size:12px;
  191. color:#676E80;
  192. }
  193. .companylocation{
  194. color:#676E80;
  195. font-size:12px;
  196. margin-top:8px;
  197. padding:4px 9px;
  198. }
  199. .distance{
  200. color:#AFB3BF;
  201. padding:4px;
  202. margin-top:8px;
  203. }
  204. /* 数据--》 */
  205. .button{
  206. display:inline-block;
  207. border:1px solid #CDCDCD;
  208. padding:6px 15px;
  209. border-radius:15px;
  210. margin:5px 5px;
  211. }
  212. .listitemStatus{
  213. margin-left:2px;
  214. }
  215. .listitemStatus.audit{
  216. color:#FE6430;
  217. }
  218. .listitemStatus.notPass{
  219. color:#FB1E1E;
  220. }
  221. .listitemStatus.pass{
  222. color:#22C572;
  223. }
  224. </style>