procurement_card.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <template>
  2. <view class="card" :style="{padding: proStatus ? '32rpx 32rpx 0 32rpx' : '32rpx'}">
  3. <view class="card_title">
  4. <view class="card_user_icon">
  5. 发起者
  6. </view>
  7. <view class="card_user">
  8. 科医人医疗激光设备贸易公司
  9. </view>
  10. </view>
  11. <view class="card_time">2023-04-26 16:20:10</view>
  12. <view class="card_content">
  13. <image class="card_content_img" src="" mode=""></image>
  14. <view class="card_content_title">
  15. 韩国恩盛进口氢洁气小气泡清韩进口氢
  16. 洁气小气泡清...
  17. </view>
  18. </view>
  19. <view class="card_form">
  20. <view class="form">
  21. <view class="form_title">
  22. 期望单价:
  23. </view>
  24. <view class="form_price">
  25. ¥100.00
  26. </view>
  27. </view>
  28. </view>
  29. <view class="card_form">
  30. <view class="form">
  31. <view class="form_title">
  32. 采购数量:
  33. </view>
  34. <view class="form_price">
  35. ¥100.00
  36. </view>
  37. </view>
  38. <view class="form_title">
  39. >
  40. </view>
  41. </view>
  42. <view class="card_form">
  43. <view class="form">
  44. <view class="form_title">
  45. 参与机构数:
  46. </view>
  47. <view class="form_price">
  48. ¥100.00
  49. </view>
  50. </view>
  51. </view>
  52. <view class="card_foot" v-if='proStatus'>
  53. <view class="foot_title">
  54. 您已参与
  55. </view>
  56. <view class="foot_continue">
  57. <view class="foot_change" @click="procurementChange">
  58. 修改
  59. </view>
  60. <!-- <view class="foot_delete" @click="procurementDelete">
  61. 删除
  62. </view> -->
  63. <view class="foot_exit" @click="procurementExit">
  64. 退出
  65. </view>
  66. </view>
  67. </view>
  68. <!-- <view class="card_foot_2" @click="procurementAdd">
  69. <view class="foot_title">
  70. 我要参与
  71. </view>
  72. </view>
  73. <view class="card_foot_2">
  74. <view class="foot_title_2">
  75. 您已参与
  76. </view>
  77. </view> -->
  78. <view class="card_status">
  79. <image v-if='proStatus' style="width: 100%;height: 100%;" src="@/static/procurement/success.png" mode="aspectFill"></image>
  80. <image v-else style="width: 100%;height: 100%;" src="@/static/procurement/delete.png" mode="aspectFill"></image>
  81. </view>
  82. <view class="card_bg" v-if='!proStatus'></view>
  83. </view>
  84. </template>
  85. <script>
  86. export default {
  87. props: {
  88. procuretInfo: {
  89. id: 1,
  90. msg: '12313'
  91. }
  92. },
  93. data() {
  94. return {
  95. //data 数据
  96. card: {},
  97. }
  98. },
  99. computed: {
  100. // 状态
  101. proStatus() {
  102. return this.procuretInfo % 2 === 0
  103. },
  104. },
  105. methods: {
  106. handlerChange() {
  107. },
  108. handlerDelete() {},
  109. // 删除
  110. procurementDelete() {},
  111. // 修改
  112. procurementChange() {
  113. this.$emit('popupChange', this.procuretInfo)
  114. },
  115. // 参与
  116. procurementAdd() {
  117. this.$emit('popupAdd', this.procuretInfo)
  118. },
  119. // 退出
  120. procurementExit() {
  121. this.$emit('modelData', this.procuretInfo)
  122. },
  123. }
  124. }
  125. </script>
  126. <style scoped lang="scss">
  127. .card{
  128. border-radius: 8rpx;
  129. width: 100%;
  130. background: #fff;
  131. padding: 32rpx 32rpx 0 32rpx;
  132. box-sizing: border-box;
  133. position: relative;
  134. }
  135. .card_title {
  136. display: flex;
  137. align-items: center;
  138. margin-bottom: 32rpx;
  139. }
  140. .card .card_user_icon {
  141. width: 96rpx;
  142. height: 40rpx;
  143. border-radius: 8rpx;
  144. font-size: 24rpx;
  145. background-color: #F3B574;
  146. color: #fff;
  147. display: flex;
  148. justify-content: center;
  149. align-items: center;
  150. }
  151. .card .card_user {
  152. margin-left: 32rpx;
  153. height: 40rpx;
  154. display: flex;
  155. justify-content: center;
  156. align-items: center;
  157. color: black;
  158. font-size: 32rpx;
  159. }
  160. .card .card_time {
  161. height: 37rpx;
  162. font-size: 26rpx;
  163. font-weight: 400;
  164. color: #999999;
  165. margin-bottom: 32rpx;
  166. }
  167. .card .card_content{
  168. radius: 8rpx 8rpx 8rpx 8rpx;
  169. opacity: 1;
  170. background: #FFF8EF;
  171. height: 160rpx;
  172. padding: 12rpx 16rpx;
  173. display: flex;
  174. justify-content: space-around;
  175. align-items: center;
  176. box-sizing: border-box;
  177. margin-bottom: 32rpx;
  178. }
  179. .card .card_content_img {
  180. width: 136rpx;
  181. height: 136rpx;
  182. border-radius: 8rpx;
  183. }
  184. .card_content .card_content_title {
  185. width: 442rpx;
  186. height: 85rpx;
  187. font-size: 26rpx;
  188. font-family: PingFangSC-Regular, PingFang SC;
  189. font-weight: 400;
  190. color: #333333;
  191. line-height: 48rpx;
  192. }
  193. .card .card_form {
  194. margin-bottom: 32rpx;
  195. height: 37rpx;
  196. display: flex;
  197. justify-content: space-between;
  198. align-items: center;
  199. }
  200. .card_form .form {
  201. display: flex;
  202. height: 100%;
  203. }
  204. .card_form .form_title {
  205. color: #999999;
  206. height: 100%;
  207. line-height: 37rpx;
  208. font-size: 26rpx;
  209. }
  210. .card_form .form_price {
  211. height: 100%;
  212. line-height: 37rpx;
  213. color: #333333;
  214. font-size: 26rpx;
  215. }
  216. .card .card_foot {
  217. height: 100rpx;
  218. display: flex;
  219. justify-content: space-between;
  220. align-content: center;
  221. border-top: 1px solid #E1E1E1;
  222. }
  223. .card_foot .foot_title {
  224. color: #999999;
  225. height: 100%;
  226. line-height: 100rpx;
  227. font-size: 26rpx;
  228. }
  229. .card .foot_continue {
  230. display: flex;
  231. align-items: center;
  232. justify-content: center;
  233. height: 100%;
  234. }
  235. .foot_continue .foot_change {
  236. color: #F3B574;
  237. font-size: 26rpx;
  238. margin-right: 32rpx;
  239. }
  240. .foot_continue .foot_delete {
  241. font-size: 26rpx;
  242. color: #F85050;
  243. }
  244. .foot_continue .foot_exit {
  245. font-size: 26rpx;
  246. color: #F85050;
  247. }
  248. .card_foot_2 {
  249. border-top: 1px solid #E1E1E1;
  250. height: 100rpx;
  251. justify-content: center;
  252. align-items: center;
  253. display: flex;
  254. }
  255. .card_foot_2 .foot_title {
  256. color: #F3B574;
  257. font-size: 32rpx;
  258. font-weight: 500;
  259. }
  260. .card_foot_2 .foot_title_2 {
  261. color: #999999;
  262. font-size: 32rpx;
  263. font-weight: 400;
  264. }
  265. .card_status {
  266. position: absolute;
  267. width: 150rpx;
  268. height: 100rpx;
  269. top: 48rpx;
  270. right: 48rpx;
  271. }
  272. .card_bg {
  273. position: absolute;
  274. left: 0;
  275. top: 0;
  276. height: 100%;
  277. width: 100%;
  278. background-color: rgba(255, 255, 255, 0.7);
  279. }
  280. </style>