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
f421c6fb
Commit
f421c6fb
authored
Mar 26, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限时活动优化
parent
0da35328
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
+15
-4
static/nativeComponents/TimeLimitedDiscount/activityListItem/index.wxml
+1
-1
static/nativeComponents/TimeLimitedDiscount/index.js
+2
-1
static/nativeComponents/TimeLimitedDiscount/index.json
+2
-1
static/nativeComponents/TimeLimitedDiscount/index.wxml
+10
-1
No files found.
static/nativeComponents/TimeLimitedDiscount/activityListItem/index.wxml
View file @
f421c6fb
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
{{datas.singleItemActivityName}}
{{datas.singleItemActivityName}}
</view>
</view>
<view class="cover">
<view class="cover">
<image src="{{datas.singleItemActivityCoverImage}}"></image>
<image
mode="center"
src="{{datas.singleItemActivityCoverImage}}"></image>
</view>
</view>
<view class="countDown flex" wx:if="{{countDownShow}}">
<view class="countDown flex" wx:if="{{countDownShow}}">
<van-count-down
<van-count-down
...
...
static/nativeComponents/TimeLimitedDiscount/index.js
View file @
f421c6fb
...
@@ -232,7 +232,7 @@ const componentOptions = {
...
@@ -232,7 +232,7 @@ const componentOptions = {
new
Date
(
item
.
endTime
.
replace
(
/-/g
,
"/"
)).
getTime
()
-
new
Date
(
item
.
endTime
.
replace
(
/-/g
,
"/"
)).
getTime
()
-
new
Date
().
getTime
();
new
Date
().
getTime
();
item
.
singleItemActivityCoverImage
=
DFSImg
(
item
.
singleItemActivityCoverImage
=
DFSImg
(
item
.
singleItemActivityCoverImage
item
.
singleItemActivityCoverImage
,
400
,
400
);
);
item
.
isStart
=
item
.
isStart
=
new
Date
(
item
.
startTime
.
replace
(
/-/g
,
"/"
)).
getTime
()
>
new
Date
(
item
.
startTime
.
replace
(
/-/g
,
"/"
)).
getTime
()
>
...
@@ -245,6 +245,7 @@ const componentOptions = {
...
@@ -245,6 +245,7 @@ const componentOptions = {
if
(
hideNum
==
actList
.
length
)
{
if
(
hideNum
==
actList
.
length
)
{
this
.
setData
({
hideAll
:
true
});
this
.
setData
({
hideAll
:
true
});
}
}
this
.
setData
({
isLoading
:
false
});
}
}
}
}
});
});
...
...
static/nativeComponents/TimeLimitedDiscount/index.json
View file @
f421c6fb
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
"component"
:
true
,
"component"
:
true
,
"usingComponents"
:
{
"usingComponents"
:
{
"activity-list-item"
:
"./activityListItem/index"
,
"activity-list-item"
:
"./activityListItem/index"
,
"van-count-down"
:
"/static/vant/count-down/index"
"van-count-down"
:
"/static/vant/count-down/index"
,
"skeleton-block"
:
"../module/SkeletonBlock/index"
}
}
}
}
static/nativeComponents/TimeLimitedDiscount/index.wxml
View file @
f421c6fb
...
@@ -119,12 +119,21 @@
...
@@ -119,12 +119,21 @@
</view>
</view>
<!-- 活动列表 -->
<!-- 活动列表 -->
<activity-list-item
<activity-list-item
wx:if="{{datas.componentData.dimension == 1}}"
wx:if="{{datas.componentData.dimension == 1
&& !isLoading
}}"
wx:for="{{datas.componentData.actList}}"
wx:for="{{datas.componentData.actList}}"
wx:key="index"
wx:key="index"
datas="{{item}}"
datas="{{item}}"
num="{{index}}"
num="{{index}}"
countDownShow="{{datas.componentData['countDownShow']}}"
countDownShow="{{datas.componentData['countDownShow']}}"
></activity-list-item>
></activity-list-item>
<view wx:if="{{isLoading}}">
<skeleton-block
loading="{{isLoading}}"
type="{{'row'}}"
height="60"
row="1"
col="1"
></skeleton-block>
</view>
</view>
</view>
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