Jacob
2026-10-13 1d3f1ad9b368d1e15391e26d16497b8940cb5c74
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<template>
   <view :class="{borderShow:isBorader}">
       <view class="combination" v-if="bargList.length">
           <view class="title acea-row row-between">
               <view class="acea-row row-column">
                   <image  class="image pic" src="https://ossacmall.bluedeer.com.cn/app/static/images/kanjia.png"></image>
               </view>
               
               <navigator url="/pages/activity/goods_bargain/index" hover-class="none" class="more acea-row row-center-wrapper">GO<text class="text iconfont icon-xiangyou"></text></navigator>
           </view>
           <view class="conter acea-row">
               <scroll-view scroll-x="true" style="white-space: nowrap; vertical-align: middle;" show-scrollbar="false">
                   <view class="itemCon" v-for="(item, index) in bargList" :key="index" @click="bargDetail(item)">
                       <view class="item">
                           <view class="pictrue">
                               <image class="image" :src="item.image"></image>
                           </view>
                           <view class="text lines1">
                               <view class="name line1">{{item.title}}</view>
                               <view class="money">¥<text class="text num">{{item.minPrice}}</text></view>
                               <view class="btn">参与砍价</view>
                           </view>
                       </view>
                   </view>
               </scroll-view>
           </view>
       </view>
   </view>
</template>
 
<script>
   let app = getApp();
   import {
       toLogin
   } from '@/libs/login.js';
   import {
       getBargainIndexApi
   } from '@/api/activity.js';
   import { mapGetters } from 'vuex';
   export default {
       name: 'c_bargain',
       computed: mapGetters({
           'userData': 'userInfo',
           'uid': 'uid'
       }),
       data() {
           return {
               bargList: [],
               isBorader:false
           };
       },
       created() {
           this.getBargainList();
       },
       mounted() {
       },
       methods: {
           // 砍价列表
           getBargainList() {
               getBargainIndexApi().then(res => {
                   this.bargList = res.data ? res.data.productList : [];
               })
           },
           bargDetail(item){
              uni.navigateTo({
                  url: `/pages/activity/goods_bargain_details/index?id=${item.id}&startBargainUid=${this.uid}`
              });
           }
       }
   }
</script>
 
<style lang="scss" scoped>
   .pic{
       width: 130rpx;
       height: 30rpx;
   }
   .default{
       width: 690rpx;
       height: 300rpx;
       border-radius: 14rpx;
       margin: 26rpx auto 0 auto;
       background-color: #ccc;
       text-align: center;
       line-height: 300rpx;
       .iconfont{
           font-size: 80rpx;
       }
   }
   .combination{
       width: auto;
       background-image: url("https://ossacmall.bluedeer.com.cn/app/static/images/kjbj.png");
       background-repeat: no-repeat;
       background-size: 100%;
       background-color: #fff;
       border-radius: 14rpx;
       margin: 0 auto 30rpx auto;
       padding: 25rpx 20rpx 25rpx 20rpx;
       
       .title {
           .sign {
               font-size: 32rpx;
               color: $theme-color;
               margin-bottom: 2rpx;
               font-weight: bold;
               margin-bottom: 10rpx;
           }
       
           .name {
               
               .text {
                   color: #333333;
                   font-size: 26rpx;
                   font-weight: 400;
               }
           }
       
           .more {
               width: 86rpx;
               height: 40rpx;
               background: linear-gradient(142deg, #FFE9CE 0%, #FFD6A7 100%);
               opacity: 1;
               border-radius: 18px;
               font-size: 22rpx;
               color: #FE960F;
               padding-left: 8rpx;
               font-weight: 800;
               .iconfont {
                   font-size: 21rpx;
               }
           }
       }
       .conter{
           margin-top: 28rpx;
           .itemCon {
               display: inline-block;
               width: 220rpx;
               margin-right: 24rpx;
           }
           .item{
               width:100%;
               .pictrue{
                   width: 100%;
                   height: 220rpx;
                   border-radius: 6rpx;
                   .image{
                       width: 100%;
                       height: 100%;
                       border-radius: 6rpx;
                   }
               }
               .text{
                   margin-top: 4rpx;
                   .y_money {
                       font-size: 24rpx;
                       color: #999999;
                       text-decoration: line-through;
                   }
                   .name {
                       font-size: 24rpx;
                       color: #000;
                       margin-top: 14rpx;
                   }
                   .money {
                       color: #FD502F;
                       font-size: 28rpx;
                       height: 100%;
                       font-weight: bold;
                       margin: 10rpx 0;
                       .num {
                           font-size: 28rpx;
                       }
                   }
                   .btn{
                       width: 220rpx;
                       height: 48rpx;
                       line-height: 48rpx;
                       text-align: center;
                       background: linear-gradient(129deg, #FF5555 0%, #FF0000 100%);
                       opacity: 1;
                       border-radius: 0px 0px 14rpx 14rpx;
                       color: #FFFFFF;
                       font-size: 26rpx;
                       margin-top: 6rpx;
                   }
               }
           }
       }
   }
</style>