123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- <template>
- <view class="card" :style="{padding: proStatus ? '32rpx 32rpx 0 32rpx' : '32rpx'}">
- <view class="card_title">
- <view class="card_user_icon">
- 发起者
- </view>
- <view class="card_user">
- 科医人医疗激光设备贸易公司
- </view>
- </view>
- <view class="card_time">2023-04-26 16:20:10</view>
- <view class="card_content">
- <image class="card_content_img" src="" mode=""></image>
- <view class="card_content_title">
- 韩国恩盛进口氢洁气小气泡清韩进口氢
- 洁气小气泡清...
- </view>
- </view>
- <view class="card_form">
- <view class="form">
- <view class="form_title">
- 期望单价:
- </view>
- <view class="form_price">
- ¥100.00
- </view>
- </view>
- </view>
- <view class="card_form">
- <view class="form">
- <view class="form_title">
- 采购数量:
- </view>
- <view class="form_price">
- ¥100.00
- </view>
- </view>
- <view class="form_title">
- >
- </view>
- </view>
- <view class="card_form">
- <view class="form">
- <view class="form_title">
- 参与机构数:
- </view>
- <view class="form_price">
- ¥100.00
- </view>
- </view>
- </view>
- <view class="card_foot" v-if='proStatus'>
- <view class="foot_title">
- 您已参与
- </view>
- <view class="foot_continue">
- <view class="foot_change" @click="procurementChange">
- 修改
- </view>
- <!-- <view class="foot_delete" @click="procurementDelete">
- 删除
- </view> -->
- <view class="foot_exit" @click="procurementExit">
- 退出
- </view>
- </view>
- </view>
- <!-- <view class="card_foot_2" @click="procurementAdd">
- <view class="foot_title">
- 我要参与
- </view>
- </view>
- <view class="card_foot_2">
- <view class="foot_title_2">
- 您已参与
- </view>
- </view> -->
- <view class="card_status">
- <image v-if='proStatus' style="width: 100%;height: 100%;" src="@/static/procurement/success.png" mode="aspectFill"></image>
- <image v-else style="width: 100%;height: 100%;" src="@/static/procurement/delete.png" mode="aspectFill"></image>
- </view>
- <view class="card_bg" v-if='!proStatus'></view>
- </view>
- </template>
- <script>
- export default {
- props: {
- procuretInfo: {
- id: 1,
- msg: '12313'
- }
- },
- data() {
- return {
- //data 数据
- card: {},
- }
- },
- computed: {
- // 状态
- proStatus() {
- return this.procuretInfo % 2 === 0
- },
- },
- methods: {
- handlerChange() {
-
- },
- handlerDelete() {},
- // 删除
- procurementDelete() {},
- // 修改
- procurementChange() {
- this.$emit('popupChange', this.procuretInfo)
- },
- // 参与
- procurementAdd() {
- this.$emit('popupAdd', this.procuretInfo)
- },
- // 退出
- procurementExit() {
- this.$emit('modelData', this.procuretInfo)
- },
- }
- }
- </script>
- <style scoped lang="scss">
- .card{
- border-radius: 8rpx;
- width: 100%;
- background: #fff;
- padding: 32rpx 32rpx 0 32rpx;
- box-sizing: border-box;
- position: relative;
- }
- .card_title {
- display: flex;
- align-items: center;
- margin-bottom: 32rpx;
- }
- .card .card_user_icon {
- width: 96rpx;
- height: 40rpx;
- border-radius: 8rpx;
- font-size: 24rpx;
- background-color: #F3B574;
- color: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .card .card_user {
- margin-left: 32rpx;
- height: 40rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- color: black;
- font-size: 32rpx;
- }
- .card .card_time {
- height: 37rpx;
- font-size: 26rpx;
- font-weight: 400;
- color: #999999;
- margin-bottom: 32rpx;
- }
- .card .card_content{
- radius: 8rpx 8rpx 8rpx 8rpx;
- opacity: 1;
- background: #FFF8EF;
- height: 160rpx;
- padding: 12rpx 16rpx;
- display: flex;
- justify-content: space-around;
- align-items: center;
- box-sizing: border-box;
- margin-bottom: 32rpx;
- }
- .card .card_content_img {
- width: 136rpx;
- height: 136rpx;
- border-radius: 8rpx;
- }
- .card_content .card_content_title {
- width: 442rpx;
- height: 85rpx;
- font-size: 26rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #333333;
- line-height: 48rpx;
- }
- .card .card_form {
- margin-bottom: 32rpx;
- height: 37rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .card_form .form {
- display: flex;
- height: 100%;
- }
- .card_form .form_title {
- color: #999999;
- height: 100%;
- line-height: 37rpx;
- font-size: 26rpx;
- }
- .card_form .form_price {
- height: 100%;
- line-height: 37rpx;
- color: #333333;
- font-size: 26rpx;
- }
- .card .card_foot {
- height: 100rpx;
- display: flex;
- justify-content: space-between;
- align-content: center;
- border-top: 1px solid #E1E1E1;
- }
- .card_foot .foot_title {
- color: #999999;
- height: 100%;
- line-height: 100rpx;
- font-size: 26rpx;
- }
- .card .foot_continue {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 100%;
- }
- .foot_continue .foot_change {
- color: #F3B574;
- font-size: 26rpx;
- margin-right: 32rpx;
- }
- .foot_continue .foot_delete {
- font-size: 26rpx;
- color: #F85050;
- }
- .foot_continue .foot_exit {
- font-size: 26rpx;
- color: #F85050;
- }
- .card_foot_2 {
- border-top: 1px solid #E1E1E1;
- height: 100rpx;
- justify-content: center;
- align-items: center;
- display: flex;
- }
- .card_foot_2 .foot_title {
- color: #F3B574;
- font-size: 32rpx;
- font-weight: 500;
- }
- .card_foot_2 .foot_title_2 {
- color: #999999;
- font-size: 32rpx;
- font-weight: 400;
- }
- .card_status {
- position: absolute;
- width: 150rpx;
- height: 100rpx;
- top: 48rpx;
- right: 48rpx;
- }
- .card_bg {
- position: absolute;
- left: 0;
- top: 0;
- height: 100%;
- width: 100%;
- background-color: rgba(255, 255, 255, 0.7);
- }
- </style>
|