forked from Tencent/tdesign-miniprogram-starter-retail
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade tdesign-miniprogram version to 1.0.0 (Tencent#74)
* chore: upgrade tdesign-miniprogram version to 1.0.0 * fix: fix cr
- Loading branch information
Showing
31 changed files
with
365 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
<view class="load-more wr-class" style="{{listIsEmpty && (status === 0 || status === 2) ? 'display: none' : '' }}" bindtap="tapHandle"> | ||
<!-- 加载中 --> | ||
<view | ||
class="load-more wr-class" | ||
style="{{listIsEmpty && (status === 0 || status === 2) ? 'display: none' : '' }}" | ||
bindtap="tapHandle" | ||
> | ||
<!-- 加载中 --> | ||
|
||
<t-loading | ||
t-class="t-class-loading" | ||
t-class-text="t-class-loading-text" | ||
t-class-indicator="t-class-indicator" | ||
loading="{{status === 1}}" | ||
text="加载中..." | ||
theme="circular" | ||
size="40rpx" | ||
/> | ||
<t-loading | ||
t-class="t-class-loading" | ||
t-class-text="t-class-loading-text" | ||
t-class-indicator="t-class-indicator" | ||
loading="{{status === 1}}" | ||
text="加载中..." | ||
theme="circular" | ||
size="40rpx" | ||
/> | ||
|
||
<!-- 已全部加载 --> | ||
<t-divider wx:if="{{status === 2}}" t-class="t-class-divider" t-class-content="t-class-divider-content"> | ||
<text slot="content">{{noMoreText}}</text> | ||
</t-divider> | ||
<!-- 已全部加载 --> | ||
<t-divider wx:if="{{status === 2}}" t-class="t-class-divider" t-class-content="t-class-divider-content"> | ||
<text slot="content">{{noMoreText}}</text> | ||
</t-divider> | ||
|
||
<!-- 加载失败 --> | ||
<t-loading | ||
t-class="t-class-loading" | ||
theme="error" | ||
loading="{{status===3}}" | ||
bind:reload="tapHandle" | ||
/> | ||
<!-- 加载失败 --> | ||
<view class="load-more__error" wx:if="{{status===3}}"> | ||
加载失败 | ||
<text class="load-more__refresh-btn" bind:tap="tapHandle">刷新</text> | ||
</view> | ||
</view> | ||
|
||
<!-- 支持通过slot传入页面/列表的空态,load-more来控制空态的显示状态 --> | ||
<slot wx:if="{{listIsEmpty && (status === 0 || status === 2)}}" name="empty" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,40 @@ | ||
<view class="coupon-page-container"> | ||
<view class="notice-bar-content"> | ||
<view class="notice-bar-text"> | ||
以下商品可使用 | ||
<text class="height-light">{{couponTypeDesc}}</text> | ||
优惠券 | ||
</view> | ||
<t-icon | ||
t-class="notice-bar-icon" | ||
name="help-circle" | ||
size="32rpx" | ||
color="#AAAAAA" | ||
bind:tap="openStoreList" | ||
/> | ||
</view> | ||
<view class="goods-list-container"> | ||
<goods-list | ||
wr-class="goods-list-wrap" | ||
goodsList="{{goods}}" | ||
bind:click="goodClickHandle" | ||
bind:addcart="cartClickHandle" | ||
/> | ||
</view> | ||
<floating-button count="{{cartNum}}" /> | ||
<t-popup visible="{{showStoreInfoList}}" placement="bottom" bind:visible-change="closeStoreList"> | ||
<t-icon | ||
slot="closeBtn" | ||
name="close" | ||
size="40rpx" | ||
bind:tap="closeStoreList" | ||
/> | ||
<view class="popup-content-wrap"> | ||
<view class="popup-content-title"> | ||
规则详情 | ||
</view> | ||
<view class="desc-group-wrap"> | ||
<view wx:if="{{detail && detail.timeLimit}}" class="item-wrap"> | ||
<view class="item-title">优惠券有效时间</view> | ||
<view class="item-label">{{detail.timeLimit}}</view> | ||
</view> | ||
<view wx:if="{{detail && detail.desc}}" class="item-wrap"> | ||
<view class="item-title">优惠券说明</view> | ||
<view class="item-label">{{detail.desc}}</view> | ||
</view> | ||
<view wx:if="{{detail && detail.useNotes}}" class="item-wrap"> | ||
<view class="item-title">使用须知</view> | ||
<view class="item-label">{{detail.useNotes}}</view> | ||
</view> | ||
</view> | ||
</view> | ||
</t-popup> | ||
<view class="notice-bar-content"> | ||
<view class="notice-bar-text"> | ||
以下商品可使用 | ||
<text class="height-light">{{couponTypeDesc}}</text> | ||
优惠券 | ||
</view> | ||
<t-icon name="help-circle" size="32rpx" color="#AAAAAA" bind:tap="openStoreList" /> | ||
</view> | ||
<view class="goods-list-container"> | ||
<goods-list | ||
wr-class="goods-list-wrap" | ||
goodsList="{{goods}}" | ||
bind:click="goodClickHandle" | ||
bind:addcart="cartClickHandle" | ||
/> | ||
</view> | ||
<floating-button count="{{cartNum}}" /> | ||
<t-popup visible="{{showStoreInfoList}}" placement="bottom" bind:visible-change="closeStoreList"> | ||
<t-icon slot="closeBtn" name="close" size="40rpx" bind:tap="closeStoreList" /> | ||
<view class="popup-content-wrap"> | ||
<view class="popup-content-title"> 规则详情 </view> | ||
<view class="desc-group-wrap"> | ||
<view wx:if="{{detail && detail.timeLimit}}" class="item-wrap"> | ||
<view class="item-title">优惠券有效时间</view> | ||
<view class="item-label">{{detail.timeLimit}}</view> | ||
</view> | ||
<view wx:if="{{detail && detail.desc}}" class="item-wrap"> | ||
<view class="item-title">优惠券说明</view> | ||
<view class="item-label">{{detail.desc}}</view> | ||
</view> | ||
<view wx:if="{{detail && detail.useNotes}}" class="item-wrap"> | ||
<view class="item-title">使用须知</view> | ||
<view class="item-label">{{detail.useNotes}}</view> | ||
</view> | ||
</view> | ||
</view> | ||
</t-popup> | ||
</view> | ||
<t-toast id="t-toast" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.