Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
hmd
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 c598e4e9
authored
Aug 15, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复
1 parent
aef08587
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
20 deletions
api/request/http.js
mixins/countdownMixin.js
packageEquity/pages/allEquity/allEquity.json
packageEquity/pages/commodity/chargeDetail/chargeDetail.scss
packageMall/pages/coupon/coupon.js
packageMall/pages/detail/detail.scss
api/request/http.js
View file @
c598e4e
...
...
@@ -58,7 +58,7 @@ class Request {
merchantId
}
=
wx
.
p
.
storage
.
get
(
'merchant_info'
)
header
.
merchantId
=
wx
.
$merchant_id
||
merchantId
||
defaultMerchantId
let
projectName
=
this
.
getRopProject
(
params
.
method
)
let
projectName
=
params
.
projectName
if
(
!
projectName
)
projectName
=
this
.
getRopProject
(
params
.
method
)
const
path
=
pathEnum
[
projectName
]
params
=
this
.
getData
(
params
)
...
...
mixins/countdownMixin.js
View file @
c598e4e
import
{
iosTimeFormat
}
from
"~/utils/format"
;
module
.
exports
=
Behavior
({
methods
:
{
countDown
({
...
...
@@ -12,8 +13,8 @@ module.exports = Behavior({
let
activityStatus
=
this
.
data
[
name
][
key
]
// activityStatus 1:未开始,2进行中,3已结束
const
addZero
=
i
=>
i
<
10
?
`0
${
i
}
`
:
`
${
i
}
`
,
[
activityStartTime
,
activityEndTime
]
=
timer
,
start
=
wx
.
$util
.
iosTimeFormat
(
activityStartTime
),
end
=
wx
.
$util
.
iosTimeFormat
(
activityEndTime
)
start
=
iosTimeFormat
(
activityStartTime
),
end
=
iosTimeFormat
(
activityEndTime
)
if
((
new
Date
().
getTime
()
>
new
Date
(
end
).
getTime
())
||
activityStatus
==
3
)
{
this
.
setData
({
timeFlag
:
true
,
...
...
packageEquity/pages/allEquity/allEquity.json
View file @
c598e4e
{
"usingComponents"
:
{}
"usingComponents"
:
{},
"navigationBarTitleText"
:
"全部服务"
}
\ No newline at end of file
packageEquity/pages/commodity/chargeDetail/chargeDetail.scss
View file @
c598e4e
...
...
@@ -72,7 +72,7 @@ page{
.member_type_item
{
height
:
80rpx
;
width
:
188rpx
;
min-
width
:
188rpx
;
display
:
inline-flex
;
align-items
:
center
;
justify-content
:
center
;
...
...
@@ -80,6 +80,7 @@ page{
font-size
:
28rpx
;
color
:
#B1B1B3
;
background-color
:
#F2F2F2
;
padding
:
0
20rpx
;
}
.activeNav
{
...
...
packageMall/pages/coupon/coupon.js
View file @
c598e4e
...
...
@@ -48,9 +48,9 @@ Page({
})
.
then
(
data
=>
{
console
.
log
(
data
)
let
lists
=
this
.
unique
([...
list
,
...
data
.
list
])
//
let lists = this.unique([...list, ...data.list])
this
.
setData
({
list
:
lists
,
list
:
data
.
list
,
total
})
wx
.
hideLoading
()
...
...
@@ -124,17 +124,18 @@ Page({
useMemberType
,
detailInfo
}
=
options
console
.
log
(
userCouponId
)
wx
.
p
.
wxApi
.
showLoading
(
'加载中...'
)
this
.
setData
({
useMemberType
,
detailInfo
})
wx
.
p
.
api
.
couponsApi
.
getWWCoupon
({
userCouponId
if
(
userCouponId
)
{
console
.
log
(
userCouponId
)
this
.
setData
({
useMemberType
,
detailInfo
})
.
then
(
res
=>
{
wx
.
p
.
api
.
couponsApi
.
getWWCoupon
({
userCouponId
}).
then
(
res
=>
{
wx
.
hideLoading
()
wx
.
nextTick
(()
=>
{
this
.
setCouponData
(
res
)
...
...
@@ -145,6 +146,7 @@ Page({
verificationCode
:
code
})
})
}
if
(
options
&&
options
.
couponId
)
{
console
.
log
(
options
)
wx
.
p
.
wxApi
.
showLoading
(
'加载中...'
)
...
...
@@ -171,7 +173,6 @@ Page({
this
.
setData
({
detailInfo
:
couponInfo
})
// wx.hideLoading()
wx
.
p
.
api
.
couponsApi
.
getCouponInfo
(
options
).
then
(
res
=>
{
this
.
setCouponData
(
res
)
this
.
setData
({
...
...
@@ -188,9 +189,9 @@ Page({
}
else
{
if
(
callBack
)
callBack
(
couponInfo
)
}
wx
.
hideLoading
()
})
})
wx
.
hideLoading
()
},
setCouponData
(
res
)
{
if
(
res
.
receiveStartTime
)
res
.
receiveStartTime
=
new
Date
(
res
.
receiveStartTime
).
format
(
'yyyy.MM.dd hh:mm:ss'
)
...
...
packageMall/pages/detail/detail.scss
View file @
c598e4e
...
...
@@ -7,6 +7,7 @@
.layout
{
padding-bottom
:
calc
(
140rpx
+
var
(
--
constantSafeAreaInsetBottom
));
padding-bottom
:
calc
(
140rpx
+
var
(
--
envSafeAreaInsetBottom
));
animation
:
show-box-opacity
.5s
forwards
;
}
.navigation-bar
{
position
:
fixed
;
...
...
@@ -43,10 +44,10 @@
.navigation
.back
{
width
:
64rpx
;
height
:
64rpx
;
background
:
rgba
(
255
,
255
,
255
,
0
.5
)
;
background
:
#F9F7F7
;
border-radius
:
var
(
--
margin
);
position
:
absolute
;
left
:
2
0rpx
;
left
:
1
0rpx
;
}
.navigation
.back
.icon
{
...
...
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