Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
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 55832d66
authored
Jan 29, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复
1 parent
2b819d39
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
94 additions
and
71 deletions
packageActivity/pages/redEnvelope/index/index.js
packageActivity/pages/redEnvelope/record/record.scss
packageActivity/pages/solitaire/index/index.js
packageEquity/pages/freecard/freecard.js
packageEquity/pages/freecard/freecard.scss
packageEquity/pages/freecard/freecard.wxml
packageMine/pages/questionnaire/components/Finish/Finish.js
pages/tab/index/index.js
pages/tab/index/index.wxml
packageActivity/pages/redEnvelope/index/index.js
View file @
55832d6
...
...
@@ -35,7 +35,7 @@ Page({
const
{
options
}
=
this
console
.
log
(
this
.
options
)
console
.
log
(
options
)
if
(
options
.
isLogin
)
this
.
getRedEnvelopeH5
()
else
this
.
jumpLoading
()
//直接打开时跳转、防止sessionId失效
},
...
...
@@ -84,11 +84,10 @@ Page({
if
(
code
==
0
)
{
if
(
data
.
id
&&
data
.
link
)
{
// /**sourceType 0-自研,1-外采 */
if
(
sourceType
==
1
)
wx
.
p
.
router
.
redirectTo
(
'/packageEquity/pages/receiveRed/receiveRed'
,
{
isOpenMember
:
source
==
0
,
activityRedEnvelopeLink
:
data
.
link
})
else
this
.
jumpRedEnvelopeH5
({
if
(
sourceType
==
1
)
{
this
.
showRedModel
()
this
.
jumpUrl
=
data
.
link
}
else
this
.
jumpRedEnvelopeH5
({
activityId
,
linkId
:
data
.
id
,
source
...
...
@@ -157,6 +156,9 @@ Page({
if
(
recordId
)
query
+=
`&recordId=
${
recordId
}
`
if
(
awardInfoId
)
query
+=
`&awardInfoId=
${
awardInfoId
}
`
this
.
linkQuery
=
query
this
.
showRedModel
()
},
showRedModel
()
{
this
.
setData
({
show
:
true
})
...
...
@@ -165,28 +167,29 @@ Page({
countDown
()
{
let
{
count
,
timer
,
isJump
}
=
this
.
data
let
_this
=
this
if
(
this
.
data
.
count
==
0
)
{
if
(
count
==
0
)
{
!
isJump
&&
this
.
jump
()
if
(
this
.
timer
)
clearTimeout
(
this
.
timer
)
return
}
clearTimeout
(
timer
)
timer
=
new
setTimeout
(()
=>
{
this
.
timer
=
setTimeout
(()
=>
{
_this
.
setData
({
count
:
count
-
1
})
this
.
countDown
()
},
1
000
)
},
1
e3
)
},
jump
()
{
this
.
setData
({
isJump
:
true
,
show
:
false
,
})
let
url
=
`
${
domain
}
/scrm-wx-red-packet/#/redEnvelope?
${
this
.
linkQuery
}
`
//测试、预发布、生产
if
(
this
.
timer
)
clearTimeout
(
this
.
timer
)
/**jumpUrl 外采链接 */
let
url
=
this
.
jumpUrl
?
this
.
jumpUrl
:
`
${
domain
}
/scrm-wx-red-packet/#/redEnvelope?
${
this
.
linkQuery
}
`
//测试、预发布、生产
// url: `${domain}/dj-scrm-wx-work-main-lwk/#/?${this.linkQuery}` //开发环境
wx
.
p
.
router
.
redirectToH5
(
url
)
},
...
...
packageActivity/pages/redEnvelope/record/record.scss
View file @
55832d6
...
...
@@ -35,7 +35,9 @@ page {
color
:
#999999
;
}
}
.info
{
max-width
:
380rpx
;
}
.icon
{
width
:
128rpx
;
height
:
128rpx
;
...
...
packageActivity/pages/solitaire/index/index.js
View file @
55832d6
...
...
@@ -245,18 +245,9 @@ Page({
},
userInfo
}
=
this
.
data
// , {
// data
// } = await wx.p.api.questionnaireApi.bindRedEnvelopeLink({
// activityId: rewardId,
// bindingSource: 2,
// wechatName: userInfo.nickName,
// businessId: id
// })
wx
.
p
.
router
.
redirectTo
(
'/packageActivity/pages/redEnvelope/index/index'
,
{
activityId
:
rewardId
,
merchantId
:
userInfo
.
merchantId
,
// linkId: data.id,
source
:
2
,
recordId
,
isLogin
:
1
,
...
...
packageEquity/pages/freecard/freecard.js
View file @
55832d6
...
...
@@ -13,7 +13,11 @@ Page({
imgList
:
new
Array
(
3
),
authStatus
:
true
,
hasUserInfo
:
false
,
isOpenMember
:
false
isOpenMember
:
false
,
txtObj
:
{
noMember
:
'恭喜领取成功'
,
member
:
'恭喜您已成为会员用户'
},
},
navbarReady
(
e
)
{
let
{
...
...
@@ -129,6 +133,7 @@ Page({
},
// 领取会员卡
toPostFreeCard
(
merchantId
,
phone
,
userInfo
)
{
wx
.
p
.
wxApi
.
showLoading
()
let
para
=
{
merchantId
,
phone
...
...
@@ -177,6 +182,7 @@ Page({
})
},
receiveRed
(
equityFreeCardId
)
{
wx
.
p
.
wxApi
.
showLoading
()
let
{
isOpenMember
,
nickName
,
...
...
@@ -188,6 +194,7 @@ Page({
}
if
(
bindingSource
)
params
.
bindingSource
=
bindingSource
wx
.
p
.
api
.
equityApi
.
checkReceiveRed
(
params
).
then
(
async
res
=>
{
wx
.
hideLoading
()
console
.
log
(
res
,
'checkReceiveRed---'
)
let
{
code
,
...
...
@@ -207,12 +214,19 @@ Page({
isOpenMember
:
true
,
addWelfareOfficer
:
'bg-member-welfare'
})
}
else
wx
.
p
.
router
.
redirectTo
(
'/packageActivity/pages/redEnvelope/index/index'
,
{
}
else
{
this
.
setData
({
receiveSuccess
:
true
})
setTimeout
(()
=>
{
wx
.
p
.
router
.
redirectTo
(
'/packageActivity/pages/redEnvelope/index/index'
,
{
activityId
:
data
.
activityRedEnvelopeId
,
businessId
:
equityFreeCardId
,
source
:
0
,
isLogin
:
1
})
},
1.5e3
)
}
}
else
this
.
jumpMine
()
}
})
...
...
@@ -222,9 +236,11 @@ Page({
// 先判断登录
const
authStatus
=
await
wx
.
p
.
router
.
intercept
(
false
)
if
(
authStatus
)
return
wx
.
p
.
wxApi
.
showLoading
()
wx
.
p
.
api
.
equityApi
.
checkOpenMember
({
isTrialCardFlag
:
1
}).
then
(
res
=>
{
wx
.
hideLoading
()
if
(
res
.
code
==
-
1
&&
res
.
errId
==
2008
)
{
this
.
showTips
(
res
.
message
||
'服务不可用'
)
return
...
...
packageEquity/pages/freecard/freecard.scss
View file @
55832d6
...
...
@@ -83,3 +83,36 @@
height
:
20rpx
;
}
}
.red-bg-iamge
{
width
:
100%
;
position
:
absolute
;
left
:
0
;
top
:
0
;
.image-class
{
background-color
:
#fff
;
width
:
100%
;
height
:
320rpx
;
}
.img-card
{
position
:
absolute
;
bottom
:
-42rpx
;
left
:
35%
;
width
:
136rpx
;
height
:
136rpx
;
}
}
.receive-red
{
text-align
:
center
;
.title
{
font-weight
:
600
;
font-size
:
48rpx
;
color
:
#3871E1
;
text-align
:
center
;
line-height
:
48rpx
;
}
}
\ No newline at end of file
packageEquity/pages/freecard/freecard.wxml
View file @
55832d6
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" showBack="{{true}}" navTitleStyle="{{navTitleStyle}}" page-title="领取会员卡">领取会员卡</navigation-bar>
<view class="bg-iamge" style="height: calc({{statusBarHeight + navigationBarHeight - 30}}px);">
<block wx:if="{{receiveSuccess}}">
<view class="red-bg-iamge" style="height: calc({{statusBarHeight + navigationBarHeight + 26}}px);">
<glsx-image src="equity/bg-receive.png" class="image-class" />
<glsx-image src="equity/icon-receive.png" class="img-card" />
</view>
<view class="receive-red" style="margin-top:calc({{statusBarHeight + navigationBarHeight + 100}}px);">
<view class="title">{{txtObj[isOpenMember ? 'member' : 'noMember']}}</view>
</view>
</block>
<block wx:else>
<view class="bg-iamge" style="height: calc({{statusBarHeight + navigationBarHeight - 30}}px);">
<glsx-image src="equity/bg-card.png" class="image-class" />
</view>
<scroll-view class="box" scroll-y style="margin-top:calc({{statusBarHeight + navigationBarHeight - 30}}px);" refresher-enabled="{{false}}">
</view>
<scroll-view class="box" scroll-y style="margin-top:calc({{statusBarHeight + navigationBarHeight - 30}}px);" refresher-enabled="{{false}}">
<view style="height: calc(100vh - {{statusBarHeight + navigationBarHeight - 30}}px);">
<view class="img-box">
<glsx-image src="equity/card.png" class="img-card" />
...
...
@@ -12,8 +23,8 @@
<glsx-image class="img-equity" src="equity/card-{{index}}.png" />
</view>
</view>
</scroll-view>
<view class="card-btn isFullSucreen">
</scroll-view>
<view class="card-btn isFullSucreen">
<view class="tips">限时领红包</view>
<button wx:if="{{authStatus}}" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" class="text-center btn-defalut">免费领取</button>
<button wx:elif="{{!hasUserInfo}}" catchtap="jumpAuthUserInfo" class="text-center btn-defalut">免费领取</button>
...
...
@@ -21,5 +32,6 @@
<view class="btn-defalut" bindtap="toCheckMember">免费领取</view>
</view>
<view class="h-20"></view>
</view>
<glsx-privacy appletName="业主甄选"></glsx-privacy>
\ No newline at end of file
</view>
<glsx-privacy appletName="业主甄选"></glsx-privacy>
</block>
\ No newline at end of file
packageMine/pages/questionnaire/components/Finish/Finish.js
View file @
55832d6
...
...
@@ -30,31 +30,15 @@ Component({
notIntercept
:
true
}
if
(
data
.
activityType
==
3
)
{
const
{
userInfo
}
=
wx
.
p
.
router
.
getPageInstance
().
data
const
response
=
await
wx
.
p
.
api
.
questionnaireApi
.
receiveQuestionnaireRedEnvelope
({
questionnaireId
:
data
.
id
,
activityRedEnvelopeId
:
activityId
,
nickName
:
userInfo
.
nickName
})
if
(
response
.
isActivityRedEnvelopeFlag
&&
!
response
.
isReceiveFlag
)
this
.
setData
({
jumpOption
:
{
type
:
data
.
activityType
,
options
:
{
options
=
{
activityId
,
businessId
:
data
.
id
,
merchantId
,
source
:
1
,
isLogin
:
1
}
url
=
'/packageActivity/pages/redEnvelope/index/index'
}
})
// wx.p.router.redirectTo('/packageActivity/pages/redEnvelope/index/index', {
// })
this
.
countDown
()
}
else
{
if
(
data
.
activityType
==
2
)
{
options
.
couponId
=
activityId
url
=
'/packageMall/pages/coupon/coupon'
...
...
@@ -66,9 +50,8 @@ Component({
options
}
})
this
.
countDown
()
}
}
else
this
.
countDown
()
this
.
countDown
()
}
},
timer
:
null
,
...
...
@@ -82,10 +65,8 @@ Component({
const
{
jumpOption
}
=
this
.
data
if
(
jumpOption
)
{
if
(
jumpOption
.
type
==
3
)
wx
.
p
.
router
.
redirectTo
(
'/packageActivity/pages/redEnvelope/index/index'
,
jumpOption
.
options
)
else
wx
.
p
.
router
.
redirectTo
(
jumpOption
.
url
,
jumpOption
.
options
)
}
else
wx
.
p
.
router
.
goHome
()
if
(
jumpOption
)
wx
.
p
.
router
.
redirectTo
(
jumpOption
.
url
,
jumpOption
.
options
)
else
wx
.
p
.
router
.
goHome
()
},
countDown
()
{
this
.
timer
=
setTimeout
(()
=>
{
...
...
pages/tab/index/index.js
View file @
55832d6
...
...
@@ -8,7 +8,6 @@ Page({
navStyle
,
noticeContent
:
''
,
bannerList
:
[],
isEmpty
:
false
,
codeList
:
[{
title
:
'官方'
,
desc
:
'福利群'
,
...
...
@@ -53,17 +52,6 @@ Page({
})
}
this
.
getStrategyList
();
if
(
options
?.
jumpH5Url
)
{
this
.
setData
({
isEmpty
:
true
})
wx
.
p
.
router
.
jumpH5
(
options
.
jumpH5Url
)
setTimeout
(()
=>
{
this
.
setData
({
isEmpty
:
false
})
},
1600
)
}
this
.
shareTitle
=
"甄选福利"
},
...
...
pages/tab/index/index.wxml
View file @
55832d6
<view wx:if="{{isEmpty}}"></view>
<view wx:else>
<view class="container">
<view class="container">
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="甄选福利">
<view class="bar-text">甄选福利</view>
</navigation-bar>
...
...
@@ -51,7 +49,6 @@
<block wx:if="{{strategyList.length}}">
<MoneySavingTips list="{{strategyList}}" bind:selectStrategy="selectStrategy"></MoneySavingTips>
</block>
</view>
</view>
<!-- 弹框 -->
<view wx:if="{{showModal}}" class="modal_widget">
...
...
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