csjl.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <template>
  2. <view class="contaienr">
  3. <view class="searchbox">
  4. <u-search @search="searchKyeword" @custom="searchKyeword" :showAction="true" actionText="搜索" :animation="true"></u-search>
  5. </view>
  6. <view class="card_list">
  7. <view class="item" v-for="(row, index) in listData">
  8. <view class="box">
  9. <view class="img">
  10. <image style="width:48rpx" class="icon" mode="widthFix" src="../../static/jf/icon_place_blue_24@2x.png"></image>
  11. </view>
  12. <view>
  13. <view class="smtitle" style="position: relative;">
  14. {{row.gmfmc}}
  15. </view>
  16. </view>
  17. </view>
  18. <view class="info">
  19. <view class="info_item">
  20. <view class="icon">
  21. <image class="icon_img" src="../../static/jf/icon_oil_gray_16@2x.png" mode=""></image>
  22. </view>
  23. <view class="title">
  24. {{row.gmqyxh}}
  25. </view>
  26. </view>
  27. <view class="info_item">
  28. <view class="icon">
  29. <image class="icon_img" src="../../static/jf/icon_amount_gray_16@2x.png" mode=""></image>
  30. </view>
  31. <view class="title">
  32. {{row.gmss}}
  33. </view>
  34. </view>
  35. <view class="info_item">
  36. <view class="icon">
  37. <image class="icon_img" src="../../static/jf/icon_time_gray_16@2x.png" mode=""></image>
  38. </view>
  39. <view class="title">
  40. {{row.createTime}}
  41. </view>
  42. </view>
  43. <u-line dashed></u-line>
  44. <view class="info_item" style="text-align: right;padding: 24rpx 0 0;display: inline-block;width: 100%;">
  45. <view class="button" @click="goPage(row)">查看</view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. import { jyzSellPage } from '@/api/jfsc.js'
  54. export default{
  55. data(){
  56. return{
  57. keyword:'',
  58. listData:[],
  59. pages:{
  60. size: 10,
  61. total: 0,
  62. current:1,
  63. },
  64. cartList:[
  65. {id:1,ishave:true,name:'吉林省玄武科技有限公司(经办人 周琦)',price:1000,count:1,img:''},
  66. {id:2,ishave:false,name:'李思思',price:800,count:1,img:'https://gw.alicdn.com/imgextra/O1CN01AQckRr1UNL8YJGGu0_!!2849252505.jpg'},
  67. {id:3,ishave:true,name:'吉林省玄武科技有限公司(经办人 周琦)',price:1200,count:1,img:'https://gw.alicdn.com/imgextra/O1CN01AQckRr1UNL8YJGGu0_!!2849252505.jpg'}
  68. ]
  69. }
  70. },
  71. onLoad() {
  72. this.inits()
  73. },
  74. methods:{
  75. searchKyeword(){
  76. this.inits()
  77. },
  78. inits(){
  79. uni.showLoading({
  80. title: '加载中'
  81. });
  82. jyzSellPage(this.keyword,this.pages.current).then(res=>{
  83. //this.pages.current++
  84. this.listData = res.data.records
  85. if(res.data.length<10 ) this.status = 'nomore';
  86. }).finally(()=>{
  87. uni.hideLoading()
  88. })
  89. },
  90. back(){
  91. uni.switchTab({
  92. url: "/pages/my/index", // 确保 url 是正确的
  93. });
  94. },
  95. goPage(row){
  96. if(row.gmflx==1){
  97. uni.navigateTo({
  98. url:`/jyzPage/jyz/personjl?id=${row.id}`
  99. })
  100. }else{
  101. uni.navigateTo({
  102. url:`/jyzPage/jyz/qiyejl?id=${row.id}`
  103. })
  104. }
  105. }
  106. }
  107. }
  108. </script>
  109. <style lang="scss">
  110. /deep/ .uni-navbar__content{
  111. border-bottom: none !important;
  112. }
  113. .contaienr{
  114. padding: 0 24rpx;
  115. box-sizing: border-box;
  116. background: #F8F8F8;
  117. position: relative;
  118. min-height: 100vh;
  119. .searchbox{
  120. padding: 24rpx 0;
  121. box-sizing: border-box;
  122. }
  123. .card_list{
  124. border-radius: 24rpx;
  125. box-sizing: border-box;
  126. .info{
  127. padding: 24rpx 12rpx 0;
  128. box-sizing: border-box;
  129. .info_item{
  130. padding: 8rpx 0;
  131. box-sizing: border-box;
  132. display: grid;
  133. grid-template-columns:60rpx calc(100% - 60rpx);
  134. .icon{
  135. .icon_img{
  136. width: 32rpx;
  137. height: 32rpx;
  138. }
  139. }
  140. .title{
  141. height: 40rpx;
  142. font-family: PingFangSC, PingFang SC;
  143. font-weight: 400;
  144. font-size: 28rpx;
  145. color: #666666;
  146. line-height: 40rpx;
  147. text-align: left;
  148. font-style: normal;
  149. }
  150. .button{
  151. width: 160rpx;
  152. height: 64rpx;
  153. background: linear-gradient( to top, #65CBFF 0%, #0260FE 100%);
  154. border-radius: 32rpx;
  155. font-family: PingFangSC, PingFang SC;
  156. font-weight: 500;
  157. font-size: 32rpx;
  158. color: #FFFFFF;
  159. line-height: 64rpx;
  160. text-align: center;
  161. font-style: normal;
  162. float: right;
  163. }
  164. .dlq{
  165. background: #FFFFFF;
  166. box-shadow: 0rpx 2rpx 16rpx 0rpx rgba(0,0,0,0.08);
  167. border-radius: 16rpx;
  168. font-family: PingFangSC, PingFang SC;
  169. font-weight: 500;
  170. font-size: 28rpx;
  171. color: #106DFF;
  172. line-height: 40rpx;
  173. text-align: right;
  174. font-style: normal;
  175. float: right;
  176. }
  177. }
  178. }
  179. .item{
  180. margin-bottom: 12rpx;
  181. background: linear-gradient( 180deg, #F0F5FF 0%, #FFFFFF 100%);
  182. border-radius: 16rpx;
  183. border: 2rpx solid #FFFFFF;
  184. padding: 24rpx;
  185. box-sizing: border-box;
  186. border-radius: 24rpx;
  187. .box{
  188. display: grid;
  189. grid-template-columns: 80rpx calc(100% - 80rpx);
  190. .control{
  191. display: grid;
  192. grid-template-columns: 50% 50%;
  193. .num{
  194. height: 44rpx;
  195. font-family: DIN, DIN;
  196. font-weight: 500;
  197. font-size: 36rpx;
  198. color: #FF1D1D;
  199. line-height: 44rpx;
  200. text-align: left;
  201. font-style: normal;
  202. padding-left: 10rpx;
  203. box-sizing: border-box;
  204. }
  205. }
  206. .img{
  207. text-align: center;
  208. .icon{
  209. height: 128rpx;
  210. border-radius: 16rpx;
  211. }
  212. }
  213. .smtitle{
  214. height: 48rpx;
  215. font-family: PingFangSC, PingFang SC;
  216. font-weight: 500;
  217. font-size: 32rpx;
  218. color: #111111;
  219. line-height: 48rpx;
  220. text-align: left;
  221. font-style: normal;
  222. padding-left: 10rpx;
  223. box-sizing: border-box;
  224. display: -webkit-box;
  225. -webkit-box-orient: vertical;
  226. -webkit-line-clamp: 2;
  227. overflow: hidden;
  228. text-overflow: ellipsis;
  229. }
  230. .checkbox{
  231. width: 32rpx;
  232. height: 32rpx;
  233. border-radius: 50%;
  234. margin-top: 23px;
  235. .cancel{
  236. display: inline-block;
  237. width: 88rpx;
  238. height: 40rpx;
  239. background: rgba(153,153,153,0.1);
  240. border-radius: 8rpx;
  241. height: 32rpx;
  242. font-family: PingFangSC, PingFang SC;
  243. font-weight: 500;
  244. font-size: 24rpx;
  245. color: #999999;
  246. line-height: 40rpx;
  247. text-align: center;
  248. font-style: normal;
  249. }
  250. .have{
  251. display: inline-block;
  252. width: 88rpx;
  253. height: 40rpx;
  254. background: rgba(153,153,153,0.1);
  255. border-radius: 8rpx;
  256. height: 32rpx;
  257. font-family: PingFangSC, PingFang SC;
  258. font-weight: 500;
  259. font-size: 24rpx;
  260. color: #106DFF;
  261. line-height: 32rpx;
  262. text-align: center;
  263. font-style: normal;
  264. }
  265. .num{
  266. display: inline-block;
  267. width: 88rpx;
  268. height: 40rpx;
  269. height: 32rpx;
  270. font-family: DIN, DIN;
  271. font-weight: 500;
  272. font-size: 24rpx;
  273. color: #999999;
  274. line-height: 32rpx;
  275. text-align: center;
  276. font-style: normal;
  277. }
  278. }
  279. .isSelect{
  280. background: linear-gradient(to bottom,#0260FE,#61C6FF);
  281. }
  282. }
  283. }
  284. }
  285. }
  286. </style>