Sanakey
2020-08-13 d98d05000c3d14e1f12a7754ebeea11ec1fa0f0b
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
<!--pages/detail/detail.wxml-->
<import src="../template/cart-input/cart-input-template.wxml" />
<!--<import src="../template/contact-btn/contact-btn-template.wxml" />-->
<!--<import src="../../src/wxParse/wxParse.wxml" />-->
 
<view class="detail-container" style="height:{{clientHeight}};overflow:{{overflow}};">
 
    <swiper vertical="{{false}}" indicator-dots="true" autoplay="true" interval="5000" indicator-active-color="#229BC9">
        <block wx:for="{{goodsItem.images}}" wx:for-item="listItem" wx:for-index="listIndex" wx:key="index">
            <swiper-item>
                <image src="{{listItem}}" bindtap="viewImg" data-src="{{listItem}}" mode="widthFix"></image>
            </swiper-item>
        </block>
    </swiper>
  <view class="detail-price">
    <view class="des-price" wx:if="{{goodsItem.isShowPrice}}">{{goodsItem.CurrencySign}}{{goodsItem.Price}} 
    <text class="des-sale-price" wx:if="{{goodsItem.isShowPrice&&goodsItem.Price!=goodsItem.SalesPrice&&goodsItem.SalesPrice!=0}}">{{goodsItem.CurrencySign}}{{goodsItem.SalesPrice}}</text>
    </view>
    <view class="contdown" wx:if="{{goodsItem.isStartupPanicBuying&&goodsItem.PanicBuyingStartTimeBalance>0}}">
      <view style="color:#fff;">距离本商品开抢还剩:</view>
      <view class="contdown-div"><van-count-down bind:finish="onCountDownFinish" time="{{ goodsItem.PanicBuyingStartTimeBalance*1000 }}" /></view>
    </view>
    <view class="contdown" wx:if="{{goodsItem.isStartupPanicBuying&&goodsItem.PanicBuyingStartTimeBalance<=0&&goodsItem.PanicBuyingEndTimeBalance>0}}">
      <view style="color:#fff;">距离本商品结束还剩:</view>
      <view class="contdown-div"><van-count-down bind:finish="onCountDownFinish" time="{{ goodsItem.PanicBuyingEndTimeBalance*1000 }}" /></view>
    </view>
  </view>
    <view class="des">
        <view class="des-title" wx:if="{{goodsItem.isShowMatCode}}">{{goodsItem.MatCode}}</view>
        <view class="des-title" wx:if="{{goodsItem.isShowMatName}}">{{goodsItem.MatName}}</view>
    <view class="des-quantity" wx:if="{{goodsItem.isRestrictQuantity}}">剩余:{{goodsItem.Quantity}} {{goodsItem.Uom||'份'}} <text wx:if="{{goodsItem.RestrictBuyingQuantity>0}}" class="info-text">(限购 {{goodsItem.RestrictBuyingQuantity}} {{goodsItem.Uom||'份'}})</text></view>
        <!-- <view class="des-price" wx:if="{{goodsItem.isShowPrice}}">{{goodsItem.CurrencySign}}{{goodsItem.Price}}
            <view class="des-sale-price" wx:if="{{goodsItem.isShowPrice&&goodsItem.Price!=goodsItem.SalesPrice&&goodsItem.SalesPrice!=0}}">{{goodsItem.CurrencySign}}{{goodsItem.SalesPrice}}</view>
        </view> -->
        <view wx:if="{{goodsItem.isShowPoints}}">可获得积分: {{goodsItem.Points}}</view>
        <!-- <c-posterCreate id="posterCreate" bind:createPoster="createNewImg"></c-posterCreate>  -->
        <c-shareGoodsPoster class="icon-share-poster" qr-code="{{QrCode}}" goods-item-img="{{goodsItem.PhotoPath}}" goods-item-name="{{goodsItem.MatName}}" goods-item-price="{{goodsItem.DepositAmount}}" goods-item-sign="{{goodsItem.CurrencySign}}"></c-shareGoodsPoster>
    </view>
    <view class="text " wx:if="{{goodsItem.ItemMemo}}">{{goodsItem.MatName4Label}}
        <text>{{goodsItem.ItemMemo}}</text>
    </view>
    <image wx:if="{{goodsItem.DepositDescription}}" src="{{goodsItem.DepositDescription}}" bindtap="viewImg" data-src="{{goodsItem.DepositDescription}}" mode="widthFix"></image>
 
 
 
    <!-- <view class="ticket-list">
    <block wx:for="{{CouponList}}" wx:key="index">
      <view class="ticket-li" wx:if="{{item.Status!==2&&item.Status!==4}}">
        <view class="ticket-a">
          <view class="ticket-img" wx:if="{{item.Photo}}">
            <image src='{{item.Photo}}'></image>
          </view>
          <view class="ticket-left">
            <view class="pro-content">
              <text class="pro-info">{{item.CouponName}}</text>
              <view class="pro-price" wx:if="{{item.Type==2}}">
                <text class="big-price">¥{{item.Total}} </text>
                <text class="price-info">满{{item.SufficeAmount}}可用</text>
              </view>
              <view class="pro-price" wx:if="{{item.Type==1}}">
              <text class="big-price"><text class="price-info">优惠</text>{{item.Discount}}% </text>
              <text class="price-info">满{{item.SufficeAmount}}可用</text>
            </view>
              <text class="pro-date">限{{item.EffectiveDateStart}}到{{item.EffectiveDateEnd}}使用</text>
            </view>
          </view>
 
          <view class="ticket-right">
            <view class="change-block" wx:if="{{item.Status!==2}}">
              <view class="progress-bar" wx:if="{{item.Status!==3&&item.Status!==4}}">
                <view class="progress-bar-block">
                  <view class="t-progress-bar">
                    <text style="width:{{item.ProgressRate}}%"></text>
                  </view>
                </view>
                <text class="progress-text">已抢{{item.ProgressRate}}%</text>
              </view>
              <i class="had" wx:if="{{item.Status==3}}"></i>
              <text class="ticket-btn btn-receive" bindtap="btnTap" wx:if="{{item.Status==0}}" data-couponid="{{item.CouponCode}}" data-index="{{index}}">立即领取</text>
              <text class="ticket-btn-go-look" wx:if="{{item.Status==1}}">已抢完</text>
              <text class="ticket-btn-go-look" wx:if="{{item.Status==3}}">已领取</text>
            </view>
          </view>
 
        </view>
 
      </view>
    </block>
  </view> -->
 
    <view class="nav">
        <!-- <block wx:for="{{navTitle}}" wx:key="key">
      <view class="title {{num==item.id?'selected':''}}" data-num="{{item.id}}" bindtap="navTap">{{item.text}}</view>
    </block> -->
        <view class="title {{num==0?'selected':''}}" data-num="0" bindtap="navTap">商品描述</view>
        <view wx:if="{{goodsItem.isShowMatAttr}}" class="title {{num==1?'selected':''}}" data-num="1" bindtap="navTap">商品属性</view>
        <view wx:if="{{goodsItem.isShowReviewStatus}}" class="title {{num==2?'selected':''}}" data-num="2" bindtap="navTap">商品评论</view>
    </view>
 
    <view class="details-img has-footer" wx:if="{{num==0}}">
        <view class="details-text">
            <view class="text" wx:if="{{goodsItem.isShowBrand}}">品牌:
                <text>{{goodsItem.Brand}}</text>
            </view>
            <view class="text" wx:if="{{goodsItem.isShowMatName}}">名称:
                <text>{{goodsItem.MatName}}</text>
            </view>
            <view class="text" wx:if="{{goodsItem.isShopMatCode}}">编号:
                <text>{{goodsItem.ShopMatCode}}</text>
            </view>
            <view class="text" wx:if="{{goodsItem.isShowSpecial}}">规格:
                <text>{{goodsItem.Special}}</text>
            </view>
            <!-- <view class="text" wx:if="{{goodsItem.Price}}">价格:
        <text class="price">{{goodsItem.CurrencySign}}{{goodsItem.Price}}</text>
      </view> -->
            <view class="text " wx:if="{{goodsItem.isShowPoints}}">积分:
                <text>{{goodsItem.Points}}</text>
            </view>
            <view class="text " wx:if="{{goodsItem.StockDisplay}}">库存:
                <text>{{goodsItem.StockStatusName}}</text>
            </view>
            <view class="text " wx:if="{{goodsItem.isStartupMatName2}}">{{goodsItem.MatName2Label}}
                <text>{{goodsItem.MatName2}}</text>
            </view>
            <view class="text " wx:if="{{goodsItem.isStartupMatName3}}">{{goodsItem.MatName3Label}}
                <text>{{goodsItem.MatName3}}</text>
            </view>
            <view class="text " wx:if="{{goodsItem.isStartupMatName4}}">{{goodsItem.MatName4Label}}
                <text>{{goodsItem.MatName4}}</text>
            </view>
        </view>
 
 
        <!-- <block wx:for="{{goodsItem.images}}" wx:for-item="listItem" wx:for-index="listIndex" wx:key="key"> -->
        <!-- </block> -->
 
        <c-wxparse parse-data="{{description}}"></c-wxparse>
    </view>
    <view class="detalis-text" wx:if="{{num==1}}">
        <block wx:for="{{goodsItem.matattr}}" wx:for-item="listItem" wx:for-index="listIndex" wx:key="key">
            <view class="attr-title">{{listItem.AttrGroupName}}</view>
            <block wx:for="{{listItem.Attrs}}" wx:for-item="Item" wx:for-index="Index" wx:key="key">
                <view class="text ">{{Item.AttrName}}{{Item.AttrName?":":""}}
                    <text>{{Item.Text}}</text>
                </view>
            </block>
        </block>
 
        <view class="text ">{{goodsItem.MatName3Label}}
            <text>{{goodsItem.MatName3}}</text>
        </view>
        <view class="text ">{{goodsItem.MatName4Label}}
            <text>{{goodsItem.MatName4}}</text>
        </view>
    </view>
    <view class="reviews" wx:if="{{num==2}}">
        担保交易,提供完整售后服务
    </view>
 
    <!--下单-->
  <view>
    <van-notice-bar
    class="notice-bar"
    wx:if="{{goodsItem.isStartupPanicBuying}}"
    text="{{noticeText}}"
  />
  </view>
    <view class="buy-nav">
        <!-- <view  wx:if="{{isPaidDeposit}}" class="now-buy bought" data-name="order">
      已经抢购
    </view>
    <view wx:else class="now-buy" bindtap="buyNow" data-name="order">
      支付{{goodsItem.CurrencySign+goodsItem.DepositAmount||0}}立即抢订
    </view> -->
        <view wx:if="{{isPaidDeposit}}" class="now-buy bought" data-name="order">
            已经抢购
        </view>
    
        <!-- <c-authorize-info style="width:100%;" wx:else bind:authorize="buyNow">
            <view >66666666</view>
            <view slot="content" class="now-buy" data-name="order">
                支付{{goodsItem.CurrencySign+goodsItem.DepositAmount||0}}立即抢订
            </view>
        </c-authorize-info> -->
    <view wx:elif="{{!isCanBuy}}" class="now-buy bought" data-name="order">
      支付{{goodsItem.CurrencySign+goodsItem.DepositAmount||0}}立即抢订
    </view>
        <c-authorize-phone  is-must-authorize="{{true}}" style="width:100%;" wx:elif="{{isCanBuy&&!isPaidDeposit}}" bind:authorize="buyNow">
            <view slot="content" class="now-buy" data-name="order">
                支付{{goodsItem.CurrencySign+goodsItem.DepositAmount||0}}立即抢订
            </view>
        </c-authorize-phone>
    
        <!-- <button wx:else class="now-buy clear-btn" open-type="getUserInfo"  bindgetuserinfo="buyNow" data-name="order">
      支付{{goodsItem.CurrencySign+goodsItem.DepositAmount||0}}立即抢订
    </button> -->
        <!-- <button open-type="getUserInfo" class="btn-next" bindgetuserinfo="{{actionType}}">
    下一步
  </button> -->
 
    </view>
 
 
 
</view>
 
 
<c-contact></c-contact>
 
<!-- <c-authorize-tel bind:getPhoneNumber="getPhoneNumber" wx:if="{{isPullTelephone&&!cltcode}}"></c-authorize-tel> -->