| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <template>
- <view>
- <view class="card" v-for="(item,index) in list" :key="index">
- <view style="display: flex;padding-bottom: 10rpx;">
- <image :src="item.image"></image>
- <view class="content">
- <text class="title">{{item.name}}</text>
- <view class="data-container">
- <view class="data">
- <text>可用积分:- {{item.pointsValue || 0}}</text>
- <text>可用热力:- {{item.hotValue || 0}}</text>
- <text>支付现金:¥{{item.cashvalue || 0}}</text>
- </view>
- <view class="price">
- <text>价格</text>
- <text>¥{{item.price}}</text>
- </view>
- </view>
- </view>
- </view>
- <view @click="confirm(item)" class="bottom" v-if="item.pointsGoodsStatus==1">
- <button class="cu-btn round text-white theme-bg-color" style="width: 180upx;height: 60upx;" >确认收货</button>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props:{
- list:Array
- },
- data() {
- return {
-
- }
- },
- methods: {
- confirm(item){
- this.$emit('confirm',item)
- }
- }
- }
- </script>
- <style lang="scss">
- .card{
- margin: 15rpx;
- background-color: #FFFFFF;
- border-radius: 12rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- padding: 15rpx;
-
- image{
- width: 180rpx;
- height: 180rpx;
- }
-
- .bottom{
- display: flex;
- justify-content: flex-end;
- padding:10rpx 0;
- margin-right: -10rpx;
- }
-
- .content{
- position: relative;
- width: 80%;
- padding-left: 20rpx;
- .title{
- font-size: 32rpx;
- }
-
-
-
- .data-container{
- display: flex;
- justify-content: space-between;
- width: 100%;
-
- .data{
- padding-top: 20rpx;
- font-size: 28rpx;
- color: #a3a3a3;
- display: flex;
- flex-direction: column;
- }
-
- .price{
- color: #ff0000;
- display: flex;
- justify-content: flex-end;
- align-items: flex-end;
- }
- }
-
- }
- }
- </style>
|