Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
dd41f392
Commit
dd41f392
authored
Nov 24, 2019
by
Junling Bu
Browse files
feat[litemall-wx]: 部分页面支持下拉刷新
parent
e211b61d
Changes
9
Hide whitespace changes
Inline
Side-by-side
litemall-wx/pages/cart/cart.json
View file @
dd41f392
{
"
backgroundColor"
:
"#f4f4f4"
,
"
enablePullDownRefresh"
:
true
,
"navigationBarTitleText"
:
"购物车"
}
\ No newline at end of file
litemall-wx/pages/comment/comment.js
View file @
dd41f392
...
...
@@ -66,6 +66,13 @@ Page({
this
.
getCommentCount
();
this
.
getCommentList
();
},
onPullDownRefresh
()
{
wx
.
showNavigationBarLoading
()
//在标题栏中显示加载
this
.
getCommentCount
();
this
.
getCommentList
();
wx
.
hideNavigationBarLoading
()
//完成停止加载
wx
.
stopPullDownRefresh
()
//停止下拉刷新
},
onReady
:
function
()
{
// 页面渲染完成
...
...
litemall-wx/pages/comment/comment.json
View file @
dd41f392
{
"enablePullDownRefresh"
:
true
,
"navigationBarTitleText"
:
"评价"
}
\ No newline at end of file
litemall-wx/pages/index/index.json
View file @
dd41f392
{
"navigationBarTitleText"
:
"首页"
,
"enablePullDownRefresh"
:
true
,
"usingComponents"
:
{
"zan-capsule"
:
"../../lib/zanui-weapp/capsule/index"
}
...
...
litemall-wx/pages/topicComment/topicComment.js
View file @
dd41f392
...
...
@@ -68,6 +68,13 @@ Page({
this
.
getCommentCount
();
this
.
getCommentList
();
},
onPullDownRefresh
()
{
wx
.
showNavigationBarLoading
()
//在标题栏中显示加载
this
.
getCommentCount
();
this
.
getCommentList
();
wx
.
hideNavigationBarLoading
()
//完成停止加载
wx
.
stopPullDownRefresh
()
//停止下拉刷新
},
onReady
:
function
()
{
// 页面渲染完成
...
...
litemall-wx/pages/topicComment/topicComment.json
View file @
dd41f392
{
"enablePullDownRefresh"
:
true
,
"navigationBarTitleText"
:
"评论"
}
\ No newline at end of file
litemall-wx/pages/ucenter/couponList/couponList.js
View file @
dd41f392
...
...
@@ -54,8 +54,11 @@ Page({
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
onPullDownRefresh
()
{
wx
.
showNavigationBarLoading
()
//在标题栏中显示加载
this
.
getCouponList
();
wx
.
hideNavigationBarLoading
()
//完成停止加载
wx
.
stopPullDownRefresh
()
//停止下拉刷新
},
/**
...
...
@@ -89,7 +92,7 @@ Page({
that
.
setData
({
scrollTop
:
0
,
couponList
:
res
.
data
.
list
,
showPage
:
true
,
showPage
:
res
.
data
.
total
>
that
.
data
.
limit
,
count
:
res
.
data
.
total
});
}
...
...
litemall-wx/pages/ucenter/couponList/couponList.json
View file @
dd41f392
{
"enablePullDownRefresh"
:
true
,
"navigationBarTitleText"
:
"我的优惠券"
}
\ No newline at end of file
litemall-wx/pages/ucenter/couponList/couponList.wxss
View file @
dd41f392
...
...
@@ -129,7 +129,7 @@ page {
.container .b .item {
position: relative;
height: 290rpx;
background:
gray
;
background:
#ccc7c7
;
margin-bottom: 30rpx;
margin-left: 30rpx;
margin-right: 30rpx;
...
...
Write
Preview
Supports
Markdown
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