Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c900419c
authored
Oct 24, 2022
by
张晓玮
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'zhangxw_dev_3.0' into 'v3.0'
Zhangxw dev 3.0 See merge request
!61
2 parents
c43b0ccf
7628dfd7
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
39 additions
and
26 deletions
components/installPopup/installPopup.scss
packageActivity/pages/order/order.js
packageActivity/pages/visitor/visitor.wxml
pages/tab/index/components/activityDiagnosis/activityDiagnosis.scss
pages/tab/index/components/activityDiagnosis/activityDiagnosis.wxml
pages/tab/index/index.js
pages/tab/index/index.json
pages/tab/index/index.wxml
components/installPopup/installPopup.scss
View file @
c900419
...
...
@@ -28,6 +28,7 @@
}
.mobile
{
display
:
flex
;
align-items
:
center
;
font-size
:
30rpx
;
color
:
#1B233D
;
margin-top
:
10rpx
;
...
...
packageActivity/pages/order/order.js
View file @
c900419
...
...
@@ -29,7 +29,7 @@ Page({
},
onRoute
(
options
)
{
let
activityId
=
options
.
activityI
d
let
activityId
=
options
.
i
d
ActivityApi
.
getActivityOrderList
({
activityId
}).
then
(
res
=>
{
...
...
packageActivity/pages/visitor/visitor.wxml
View file @
c900419
...
...
@@ -16,7 +16,7 @@
<image webp src="{{item.customerImageUrl ? item.customerImageUrl : IMGURL+'order_person_default.png'}}"></image>
<view class="name-mobile">
<view class="name">
{{item.customerNickName}}
{{item.customerNickName
|| ""
}}
<text class="order-statue {{item.orderStatus == 0 ? '' : 'green'}}">{{item.orderStatus == 0 ? '未下单' : '已下单'}}</text>
</view>
<view class="mobile" wx:if="{{item.customerPhone}}">{{item.customerPhone}}</view>
...
...
pages/tab/index/components/activityDiagnosis/activityDiagnosis.scss
View file @
c900419
/* pages/tab/index/components/activityDiagnosis/activityDiagnosis.wxss */
.content
{
.content
-box
{
padding
:
0
22rpx
50rpx
24rpx
;
.content-item
{
width
:
100%
;
...
...
pages/tab/index/components/activityDiagnosis/activityDiagnosis.wxml
View file @
c900419
<!--pages/tab/index/components/activityDiagnosis/activityDiagnosis.wxml-->
<wxs src="../index.wxs" module="fn"></wxs>
<view class="content">
<view class="content
-box
">
<block wx:for="{{activityList}}" wx:key="index">
<view class="content-item">
<view class="item-bg">
...
...
pages/tab/index/index.js
View file @
c900419
...
...
@@ -52,9 +52,9 @@ Page({
this
.
getData
()
},
getData
(
onPullDown
)
{
this
.
getActivityList
(
1
,
onPullDown
)
this
.
getActivityList
(
2
,
onPullDown
)
getData
()
{
this
.
getActivityList
(
1
)
this
.
getActivityList
(
2
)
},
// 计算文本宽度
...
...
@@ -132,12 +132,14 @@ Page({
if
(
num
==
1
)
{
this
.
setData
({
activeList
:
onPullDown
?
res
.
list
:
[...
activeList
,
...
res
.
list
],
activeTotal
:
res
.
total
activeTotal
:
res
.
total
,
activeTrigger
:
false
})
}
else
{
this
.
setData
({
activityEndList
:
onPullDown
?
res
.
list
:
[...
activityEndList
,
...
res
.
list
],
total
:
res
.
total
total
:
res
.
total
,
activeTrigger
:
false
})
}
})
...
...
@@ -176,26 +178,37 @@ Page({
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
// 下拉刷新
activityRefresh
(
e
)
{
let
{
type
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
activePageNum
:
1
,
pageNum
:
1
})
this
.
get
Data
(
true
)
this
.
get
ActivityList
(
type
,
true
)
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
let
{
activePageNum
,
pageNum
,
activeTotal
,
total
,
tabIndex
}
=
this
.
data
wx
.
$util
.
onReachBottom
({
pageNum
:
tabIndex
==
0
?
activePageNum
:
pageNum
,
total
:
tabIndex
==
0
?
activeTotal
:
total
},
()
=>
{
this
.
getActivityList
(
tabIndex
+
1
)
})
// 上拉触底加载
scrollonReachBottom
(
e
)
{
let
{
type
}
=
e
.
currentTarget
.
dataset
let
{
activePageNum
,
pageNum
,
activeTotal
,
total
,
pageSize
}
=
this
.
data
// 判断当前页是否是末页
if
(
type
==
1
)
{
if
(
Math
.
floor
(
activeTotal
/
pageSize
)
==
activePageNum
-
1
)
return
this
.
setData
({
activePageNum
:
activePageNum
+
1
})
this
.
getActivityList
(
type
)
}
else
{
if
(
Math
.
floor
(
total
/
pageSize
)
==
pageNum
-
1
)
return
this
.
setData
({
pageNum
:
pageNum
+
1
})
this
.
getActivityList
(
type
)
}
},
/**
* 用户点击右上角分享
*/
...
...
pages/tab/index/index.json
View file @
c900419
...
...
@@ -4,6 +4,5 @@
"activity-diagnosis"
:
"./components/activityDiagnosis/activityDiagnosis"
},
"navigationStyle"
:
"custom"
,
"onReachBottomDistance"
:
100
,
"enablePullDownRefresh"
:
true
"onReachBottomDistance"
:
100
}
pages/tab/index/index.wxml
View file @
c900419
...
...
@@ -21,13 +21,13 @@
</block>
</view>
<!-- 活动中 -->
<scroll-view scroll-y class="content" hidden="{{tabIndex != 0}}">
<scroll-view scroll-y class="content"
refresher-enabled bindrefresherrefresh="activityRefresh" bindscrolltolower="scrollonReachBottom" data-type="{{1}}" refresher-triggered="{{activeTrigger}}"
hidden="{{tabIndex != 0}}">
<block>
<active-box activeList="{{activeList}}" nothing="{{nothing}}" activeDateIndex="{{activeDateIndex}}" allTaskCount="{{allTaskCount}}"></active-box>
</block>
</scroll-view>
<!-- 活动诊断 -->
<scroll-view scroll-y class="content" hidden="{{tabIndex != 1}}">
<scroll-view scroll-y class="content"
refresher-enabled bindrefresherrefresh="activityRefresh" bindscrolltolower="scrollonReachBottom" data-type="{{2}}" refresher-triggered="{{activeTrigger}}"
hidden="{{tabIndex != 1}}">
<block>
<activity-diagnosis activityList="{{activityEndList}}" nothing="{{nothing}}"></activity-diagnosis>
</block>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment