fix
Helius
2021-08-12 4705f9b4084d9ccddb601569b223f0fb41778a94
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<view class="detail_container">
  <swiper indicator-dots="true" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indicator-active-color='#00C085' indicator-color='#BDD8D0'>
    <block wx:for="{{imgUrls}}" wx:key="key">
      <swiper-item>
        <image src="{{item.imgPath}}" class="slide-image" bind:tap="onSwiperEvent" data-id="{{item.id}}" data-index="{{index}}" mode="widthFix"></image>
      </swiper-item>
    </block>
  </swiper>
 
  <view class="djs">
    <text class="js">拼团</text>
    <view class="time">
      <view>距结束仅剩</view>
      <view>{{djs.day}}天{{djs.hour}}时{{djs.minute}}分{{djs.second}}秒</view> 
    </view>
  </view>
 
  <view class="detail_section">
    <view class="detail_content">
      <view class="detail_top">
        <view class="detail-group">
          <view class='iprice detail_iprice'>¥{{currentGrooupPrice.gpPrice}} </view>
          
          <view class="groupNum">{{currentGrooupPrice.gpCount}}人团</view>
          <view class='grey original_iprice'  >¥{{goodsInfo.price}}</view>
          <view class="share" bind:tap="share">
            <image src="/image/share.png"></image>
          </view>
        </view>
        <view class="detail_info">
          <view class="detail_name threeblack">{{goodsInfo.title}}</view>
          <view class='grey'>月销:{{goodsInfo.dsVolume}}</view>
        </view>
        <view class='grey explain'>{{goodsInfo.briefIntroduction}}</view>
      </view>
    </view>
 
    <view class='item-line ' wx:if="{{showModel==1}}">
      <view class='fl color-gray font-12'>拼团类型</view>
      <view class="fr groupNums">
        <view wx:for="{{groupPriceList}}" wx:key="i" bindtap="changeGroupType"  data-index="{{index}}" class="groupNum {{currentGrooupPriceIndex==index?'active':''}} ">{{item.gpCount}}人团</view>
      </view>
    </view>
 
    <view class="line-weight"></view>
 
    <view class='item-box font-10 ' wx:if="{{showModel==1 && groupList.length>0}}">
      <view class='item-line'>
        <text class="font-10 fl"> {{groupList.length}}人正在拼团,您可以直接参与</text>
      <!-- 
        <navigator url='/pages/groupbuy/allPt' class="font-10 fr color_gray" bindtap="showAllPt"> 查看更多 > </navigator>
      -->
 
      </view>
 
      <view class="cllist  item-line" wx:for="{{groupList}}">
 
        <view class="slide-item ">
          <image src="{{item.avatarUrl}}" class="headimg" />
          <text class='name'>{{item.createBy}}</text>
        </view>
 
        <view class="slide-item cllist ">
          <text class='count'>{{item.groupPrice.gpCount}}人团(还差{{item.groupPrice.gpCount-1-item.theLast}}人)</text>
          <navigator >
            <button bindtap="joinBuy" data-gjId="{{item.id}}" size='mini' class="ctbtn">去参团</button>
          </navigator>
        </view>
 
 
      </view>
    </view>
 
 
    <view class='item-line '>
      <view class='fl color-gray font-12'>拼团玩法</view>
      <view class="fr">
        <text class='font-12 color_gray'>开团/参团>邀请好友参团>人满成团</text>
      </view>
    </view>
 
 
    <!--  组团信息 -->
    <view class="item-box" wx:if="{{showModel==2||showModel==3|| showModel==4|| showModel==5}}">
      <view class="item-line headDjs ">
        <text>{{ownerGroupInfo.createBy}}发起的拼团</text>
        <text  wx:iff="{{showModel==2}}" >剩余{{ptDjs.hour}}时{{ptDjs.minute}}分{{ptDjs.second}}秒</text>
      </view>
      <view class="cllist  item-line" wx:for="{{joinUserList}}">
        <view class="slide-item ">
          <image src="{{item.avatarUrl}}" class="headimg" />
          <text class='name'>{{item.createBy}}</text>
        </view>
        <view class="slide-item cllist ">
          <text class='count'>{{item.createTime}}</text>
        </view>
      </view> 
      <view class="queshi">还差{{ownerGroupInfo.theLast}}人成团</view>
    </view>
 
 
 
    <view class="detail_middle">
      <view class="couple">
        <view class='firms' bind:tap="showNorms">
          <view class='threeblack'>规格</view>
          <view class='couple_right'>
            <text>{{specification}}</text>
            <view class=" iconfont iconright"></view>
          </view>
        </view>
      </view>
 
    
 
      <!-- 图文说明 -->
      <view class='detail_imagetext'>
        <view class='imagetext_box'>
          <block wx:for="{{imagetext}}" wx:key="ids">
            <view class="imagetext_item {{currentTabsIndex==index?'selected':''}}" bindtap='onTabsItemEvent' data-index="{{index}}">
              {{item}}
            </view>
          </block>
        </view>
 
        <view class="imagetext_detail_box">
          <view class="tabs_content" hidden="{{currentTabsIndex!=0}}">
            <view>
              <rich-text class='price_content' nodes="{{goodsInfo.mobileDetails}}"></rich-text>
            </view>
          </view>
          <view class="tabs_content explain_tabs" hidden="{{currentTabsIndex!=1}}">
            <view wx:for="{{goodsInfo.params}}" wx:key="ids">
              <view class='title'>{{item.paramName}}</view>
              <view class='content name'>{{item.paramValue}}</view>
            </view>
 
          </view>
        </view>
      </view>
    </view>
  </view>
 
  <!--下架后进入产品页控制操作 -->
  <view class="detail_footer footer-grey" wx:if="{{goodsInfo.status == 2 || goodsInfo.delFlag == 1}}">
    <view class='detail_collected' bindtap="goIndex">
      <view class="iconfont icondianpu"></view>
      <text>店铺</text>
    </view>
    <view class='service'>
      <view class='contact_list'>
        <button open-type='contact'>
          <view class="iconfont iconkefu"></view>
          客服
        </button>
      </view>
    </view>
 
    <view class='detail_cart detail_pay'>加入购物车</view>
    <view class='detail_buy detail_pay'>已下架</view>
  </view>
  <!--下架后进入产品页控制操作END -->
 
 
 
  <!-- 底部按钮操作栏  -->
  <view class="detail_footer " wx:if="{{goodsInfo.status == 1 && goodsInfo.delFlag == 2}}">
 
    <view class='detail_collected' bindtap="goIndex">
      <view class="iconfont icondianpu"></view>
      <text>店铺</text>
    </view>
    <view class='service'>
      <view class='contact_list'>
        <button open-type='contact'>
          <view class="iconfont iconkefu"></view>
          客服
        </button>
      </view>
    </view>
 
 
    <view wx:if="{{goodsInfo.stockNum>0 && showModel==1 }}"  class='detail_cart detail_pay singer' 
    bindtap='singelBuy' >单独购买</view>
    <view wx:if="{{goodsInfo.stockNum>0 && showModel==1 }}" class='detail_cart detail_pay headBuy' bindtap='groupBuy'>
    
    <view>发起拼团</view>
     <view class="headprice" wx:if="{{currentGrooupPrice.gpHeadPrice}}" >团长价¥{{currentGrooupPrice.gpHeadPrice}} </view>
    </view>
 
 
 
    <button   
    open-type="share" wx:if="{{goodsInfo.stockNum>0 &&   showModel==2  }}" class='detail_cart detail_pay_big cleanbtn btn-center' >
    邀请好友参团</button>
 
    
    <button    bindtap="goOrder"   wx:if="{{goodsInfo.stockNum>0 &&   showModel==5 }}" class='detail_cart detail_pay_big cleanbtn btn-center' >
    立刻支付</button>
 
 
 
 
    <view wx:if="{{goodsInfo.stockNum>0 &&   showModel==3 }}" class='detail_cart detail_pay_big' bindtap='groupBuy'>和他TA组团</view>
 
 
    <view wx:if="{{showModel==4 }}" class='detail_cart detail_pay_over'  >拼团结束</view>
 
 
    <view wx:if="{{goodsInfo.stockNum<1}}" class='detail_cart detail_pay'>已售罄</view>
 
 
  </view>
 <!-- 底部按钮操作栏end  -->
 
 
 
 
  <view class="detail_couple">
    <view class='detail_coupon'></view>
  </view>
 
  <!--\\\\\\\\\\\\\\\\\\\\\\\\\\\\\规格选择\\\\\\\\\\\\\\\\\   -->
  <view class='popup-container' wx:if="{{normspopup}}">
    <view class='popup' bind:tap="popupTap"></view>
    <view class='norms-container'>
      <view class="norms-list">
        <view>
          <view class='norms-detail'>
            <block wx:for="{{normsList}}" wx:key="ids">
              <view class='norms-item' hidden="{{currentIndex!=index}}">
                <image src='{{item.imgPath}}'></image>
                <view class='norms-content'>
                  <text class='title'>{{goodsInfo.title}}</text>
                  <text class='stock grey'>库存:{{item.stock}}</text>
                  <text class='price'>¥{{currentGrooupPrice.gpPrice}}</text>
                </view>
              </view>
            </block>
            <view class='close iconfont icon-quxiao' bind:tap="cancelNorms"></view>
          </view>
        </view>
        <view class='norms-select'>
          <text class='threeblack'>规格</text>
          <view>
            <view class='norms-box'>
              <block wx:for="{{normsList}}" wx:key="ids">
                <view class='norms-box-item {{currentIndex == index?"selectedNorms":""}}' bindtap="norms" data-index="{{index}}" data-value="{{item.name}}" data-price="{{item.price}}" data-id="{{item.id}}">{{item.name}}</view>
              </block>
            </view>
          </view>
        </view>
 
        <view class='norms-number'>
          <text class='threeblack'>数量</text>
          <view class="cart-count-box">
            <!-- iconfont icon-jian -->
            <view class="cart-count-down " bindtap="minusCount" data-obj="{{obj}}" data-index="{{index}}">
              <image src='/image/jian.png'></image>
            </view>
 
            <text class="cart-count-num">{{num}}</text>
            <view class="cart-count-add" bindtap="addCount" data-index="{{index}}">
              <image src='/image/jia.png'></image>
            </view>
          </view>
        </view>
      </view>
      <view class='norms-footer'>
        <view class='norms-join' bindtap='buy'>立刻购买</view>
      </view>
    </view>
  </view>
  <!--\\\\\\\\\\\\\\\\\\\\\\\\\\\\\规格选择END\\\\\\\\\\\\\\\\\   -->
 
  <!--\\\\\\\\\\\\\\\\\\\\\\\\\\\\\优惠券\\\\\\\\\\\\\\\\\   -->
  <view class='popup-container' wx:if="{{popup}}">
    <view class='popup' bind:tap="popupTap"></view>
    <view class='coupons-list'>
 
      <view wx:for="{{couponList}}" wx:key="ids" data-id="{{item.id}}">
        <view class='coupons  counpons-list'>
          <view class="coupons-explain">
            <text>满减券</text>
          </view>
          <view class='money'>
            <view class='money-num'>
              <text style='font-size:34rpx'>¥</text>
              <text style='font-size:60rpx'>{{item.offsetAmount}}</text>
            </view>
            <view class='money-info'>
              <text>满{{item.minAmount}}元可用</text>
            </view>
          </view>
 
          <view class='content'>
            <view class="content-title">{{item.cname}}</view>
            <view class='content-info'></view>
            <view class='content-time'>有效期至{{item.endTimeWx}}</view>
          </view>
          <view class='right'>
            <view class='draw radius {{drawIndex==index?"active":""}}' wx:if="{{item.canReceive == 1}}" bindtap="getCoupon" data-value="{{item}}" data-index="{{index}}">
              <text>立即领取</text>
            </view>
 
            <view wx:else class='draw radius alreadyGet' bindtap="drawevent" data-value="{{item}}" data-index="{{index}}">
              <text>领取成功</text>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</view>
<!--\\\\\\\\\\\\\\\\\\\\\\\\\\\\\优惠券END\\\\\\\\\\\\\\\\\   -->
 
 
<view class="popup-item" wx:if="{{shareShow}}">
  <view class='popup' bind:tap="popupTap" wx:if="{{popupShow}}"></view>
  <view class="pupup-bottom popup-content">
    <view class="share-container">
      <view class="hr"></view>
      <text class="share-text">分享到</text>
    </view>
    <view class="share-box">
      <button open-type="share" data-index="{{index}}" bind:tap="popupTap">
        <image src="/image/wx.png"></image>
        微信
      </button>
      <view class="card">
        <form bindsubmit="formSubmit">
          <button formType="submit" style="width:200rpx;">
            <image src="/image/tp.png"></image>
            生成卡片 </button>
        </form>
      </view>
 
    </view>
    <view class="cancel padding" bind:tap="popupTap">取消</view>
  </view>
</view>
 
 
 
 
 
 
 
<!-- 回到首页 -->
<view class="index" bind:tap="goIndex" wx:if="{{isShare}}">
  <image src="/image/goIndex.png"></image>
</view>