Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
5deff034
Commit
5deff034
authored
May 16, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限时折扣
parent
8bd32014
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
2 deletions
+50
-2
static/nativeComponents/TimeLimitedDiscount/index.wxml
+30
-2
static/nativeComponents/TimeLimitedDiscount/index.wxss
+20
-0
No files found.
static/nativeComponents/TimeLimitedDiscount/index.wxml
View file @
5deff034
<!-- 限时活动 -->
<view class="time-limited-discount
" style="padding-top:{{datas.componentData.paddingList[0].value*2}}rpx;padding-bottom:{{datas.componentData.paddingList[1].value*2}}rpx;padding-left:{{datas.componentData.paddingList[2].value*2}}rpx;padding-right:{{datas.componentData.paddingList[3].value*2}}rpx;--backgroundColor:{{datas.componentData.backgroundColor
}}">
<view class="time-limited-discount
time-limited-discount{{datas.componentData['styleType']}}" style="padding-top:{{datas.componentData.paddingList[0].value*2}}rpx;padding-bottom:{{datas.componentData.paddingList[1].value*2}}rpx;padding-left:{{datas.componentData.paddingList[2].value*2}}rpx;padding-right:{{datas.componentData.paddingList[3].value*2}}rpx;--backgroundColor:{{datas.componentData.backgroundColor}};--titleBackgroundColor:{{datas.componentData.styleTypeSecond['titleBackgroundColor']}}" wx:if="{{!isLoading
}}">
<!-- 标题 -->
<view class="tops {{datas.componentData['countDownShow']?'hideCountDown':''}}">
<view class="style2" wx:if="{{datas.componentData['styleType'] == 2}}" style="background:{{datas.componentData.styleTypeSecond['titleBackgroundColor']}}">
<view class="topInfo">
<view class="title">
限时特价
</view>
<view class="subheading" wx:if="{{datas.componentData['countDownShow']&&datas.componentData.dimension==0}}">
<view wx:if="{{datas.componentData['endTime']&&endTime>0}}">
<van-count-down
use-slot
time="{{endTime}}"
class="countDown"
bind:change="onChange"
>
<text class="endTime days">{{ timeData.days }}</text>
<text class="endTimedot">天</text>
<text class="endTime hours">{{ timeData.hours }}</text>
<text class="endTimedot">:</text>
<text class="endTime minute">{{ timeData.minutes }}</text>
<text class="endTimedot">:</text>
<text class="endTime second">{{ timeData.seconds }}</text>
</van-count-down>
</view>
<view class="countDown" wx:elif="{{isLoading}}">
活动已结束
</view>
</view>
</view>
</view>
<view class="tops {{datas.componentData['countDownShow']?'hideCountDown':''}}" wx:else>
<view class="topInfo">
<view class="title">
{{datas.componentData.dimension ==0?selectActivityValue:datas.componentData.actTitle}}
...
...
static/nativeComponents/TimeLimitedDiscount/index.wxss
View file @
5deff034
.time-limited-discount {
background: var(--backgroundColor);
font-size: 32rpx;
border-radius: 10px;
}
.time-limited-discount2{
padding: 0!important;
margin: 10px;
}
.tops {
padding: 8rpx 0;
...
...
@@ -50,6 +55,21 @@
.endTimedot {
padding: 0 10rpx;
}
.style2 {
padding: 14px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
.style2 .topInfo .title{
color: #fff;
}
.style2 .endTime{
background: #fff;
color: var(--titleBackgroundColor);
}
.style2 .subheading .endTimedot{
color: #fff;
}
.goods {
width: 100%;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment