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({
...
@@ -35,7 +35,7 @@ Page({
const
{
const
{
options
options
}
=
this
}
=
this
console
.
log
(
this
.
options
)
console
.
log
(
options
)
if
(
options
.
isLogin
)
this
.
getRedEnvelopeH5
()
if
(
options
.
isLogin
)
this
.
getRedEnvelopeH5
()
else
this
.
jumpLoading
()
//直接打开时跳转、防止sessionId失效
else
this
.
jumpLoading
()
//直接打开时跳转、防止sessionId失效
},
},
...
@@ -84,11 +84,10 @@ Page({
...
@@ -84,11 +84,10 @@ Page({
if
(
code
==
0
)
{
if
(
code
==
0
)
{
if
(
data
.
id
&&
data
.
link
)
{
if
(
data
.
id
&&
data
.
link
)
{
// /**sourceType 0-自研,1-外采 */
// /**sourceType 0-自研,1-外采 */
if
(
sourceType
==
1
)
wx
.
p
.
router
.
redirectTo
(
'/packageEquity/pages/receiveRed/receiveRed'
,
{
if
(
sourceType
==
1
)
{
isOpenMember
:
source
==
0
,
this
.
showRedModel
()
activityRedEnvelopeLink
:
data
.
link
this
.
jumpUrl
=
data
.
link
})
}
else
this
.
jumpRedEnvelopeH5
({
else
this
.
jumpRedEnvelopeH5
({
activityId
,
activityId
,
linkId
:
data
.
id
,
linkId
:
data
.
id
,
source
source
...
@@ -157,6 +156,9 @@ Page({
...
@@ -157,6 +156,9 @@ Page({
if
(
recordId
)
query
+=
`&recordId=
${
recordId
}
`
if
(
recordId
)
query
+=
`&recordId=
${
recordId
}
`
if
(
awardInfoId
)
query
+=
`&awardInfoId=
${
awardInfoId
}
`
if
(
awardInfoId
)
query
+=
`&awardInfoId=
${
awardInfoId
}
`
this
.
linkQuery
=
query
this
.
linkQuery
=
query
this
.
showRedModel
()
},
showRedModel
()
{
this
.
setData
({
this
.
setData
({
show
:
true
show
:
true
})
})
...
@@ -165,28 +167,29 @@ Page({
...
@@ -165,28 +167,29 @@ Page({
countDown
()
{
countDown
()
{
let
{
let
{
count
,
count
,
timer
,
isJump
isJump
}
=
this
.
data
}
=
this
.
data
let
_this
=
this
let
_this
=
this
if
(
this
.
data
.
count
==
0
)
{
if
(
count
==
0
)
{
!
isJump
&&
this
.
jump
()
!
isJump
&&
this
.
jump
()
if
(
this
.
timer
)
clearTimeout
(
this
.
timer
)
return
return
}
}
clearTimeout
(
timer
)
this
.
timer
=
setTimeout
(()
=>
{
timer
=
new
setTimeout
(()
=>
{
_this
.
setData
({
_this
.
setData
({
count
:
count
-
1
count
:
count
-
1
})
})
this
.
countDown
()
this
.
countDown
()
},
1
000
)
},
1
e3
)
},
},
jump
()
{
jump
()
{
this
.
setData
({
this
.
setData
({
isJump
:
true
,
isJump
:
true
,
show
:
false
,
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}` //开发环境
// url: `${domain}/dj-scrm-wx-work-main-lwk/#/?${this.linkQuery}` //开发环境
wx
.
p
.
router
.
redirectToH5
(
url
)
wx
.
p
.
router
.
redirectToH5
(
url
)
},
},
...
...
packageActivity/pages/redEnvelope/record/record.scss
View file @
55832d6
...
@@ -35,7 +35,9 @@ page {
...
@@ -35,7 +35,9 @@ page {
color
:
#999999
;
color
:
#999999
;
}
}
}
}
.info
{
max-width
:
380rpx
;
}
.icon
{
.icon
{
width
:
128rpx
;
width
:
128rpx
;
height
:
128rpx
;
height
:
128rpx
;
...
...
packageActivity/pages/solitaire/index/index.js
View file @
55832d6
...
@@ -245,18 +245,9 @@ Page({
...
@@ -245,18 +245,9 @@ Page({
},
},
userInfo
userInfo
}
=
this
.
data
}
=
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'
,
{
wx
.
p
.
router
.
redirectTo
(
'/packageActivity/pages/redEnvelope/index/index'
,
{
activityId
:
rewardId
,
activityId
:
rewardId
,
merchantId
:
userInfo
.
merchantId
,
merchantId
:
userInfo
.
merchantId
,
// linkId: data.id,
source
:
2
,
source
:
2
,
recordId
,
recordId
,
isLogin
:
1
,
isLogin
:
1
,
...
...
packageEquity/pages/freecard/freecard.js
View file @
55832d6
...
@@ -13,7 +13,11 @@ Page({
...
@@ -13,7 +13,11 @@ Page({
imgList
:
new
Array
(
3
),
imgList
:
new
Array
(
3
),
authStatus
:
true
,
authStatus
:
true
,
hasUserInfo
:
false
,
hasUserInfo
:
false
,
isOpenMember
:
false
isOpenMember
:
false
,
txtObj
:
{
noMember
:
'恭喜领取成功'
,
member
:
'恭喜您已成为会员用户'
},
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
let
{
let
{
...
@@ -129,6 +133,7 @@ Page({
...
@@ -129,6 +133,7 @@ Page({
},
},
// 领取会员卡
// 领取会员卡
toPostFreeCard
(
merchantId
,
phone
,
userInfo
)
{
toPostFreeCard
(
merchantId
,
phone
,
userInfo
)
{
wx
.
p
.
wxApi
.
showLoading
()
let
para
=
{
let
para
=
{
merchantId
,
merchantId
,
phone
phone
...
@@ -177,6 +182,7 @@ Page({
...
@@ -177,6 +182,7 @@ Page({
})
})
},
},
receiveRed
(
equityFreeCardId
)
{
receiveRed
(
equityFreeCardId
)
{
wx
.
p
.
wxApi
.
showLoading
()
let
{
let
{
isOpenMember
,
isOpenMember
,
nickName
,
nickName
,
...
@@ -188,6 +194,7 @@ Page({
...
@@ -188,6 +194,7 @@ Page({
}
}
if
(
bindingSource
)
params
.
bindingSource
=
bindingSource
if
(
bindingSource
)
params
.
bindingSource
=
bindingSource
wx
.
p
.
api
.
equityApi
.
checkReceiveRed
(
params
).
then
(
async
res
=>
{
wx
.
p
.
api
.
equityApi
.
checkReceiveRed
(
params
).
then
(
async
res
=>
{
wx
.
hideLoading
()
console
.
log
(
res
,
'checkReceiveRed---'
)
console
.
log
(
res
,
'checkReceiveRed---'
)
let
{
let
{
code
,
code
,
...
@@ -207,12 +214,19 @@ Page({
...
@@ -207,12 +214,19 @@ Page({
isOpenMember
:
true
,
isOpenMember
:
true
,
addWelfareOfficer
:
'bg-member-welfare'
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
,
activityId
:
data
.
activityRedEnvelopeId
,
businessId
:
equityFreeCardId
,
businessId
:
equityFreeCardId
,
source
:
0
,
source
:
0
,
isLogin
:
1
isLogin
:
1
})
})
},
1.5e3
)
}
}
else
this
.
jumpMine
()
}
else
this
.
jumpMine
()
}
}
})
})
...
@@ -222,9 +236,11 @@ Page({
...
@@ -222,9 +236,11 @@ Page({
// 先判断登录
// 先判断登录
const
authStatus
=
await
wx
.
p
.
router
.
intercept
(
false
)
const
authStatus
=
await
wx
.
p
.
router
.
intercept
(
false
)
if
(
authStatus
)
return
if
(
authStatus
)
return
wx
.
p
.
wxApi
.
showLoading
()
wx
.
p
.
api
.
equityApi
.
checkOpenMember
({
wx
.
p
.
api
.
equityApi
.
checkOpenMember
({
isTrialCardFlag
:
1
isTrialCardFlag
:
1
}).
then
(
res
=>
{
}).
then
(
res
=>
{
wx
.
hideLoading
()
if
(
res
.
code
==
-
1
&&
res
.
errId
==
2008
)
{
if
(
res
.
code
==
-
1
&&
res
.
errId
==
2008
)
{
this
.
showTips
(
res
.
message
||
'服务不可用'
)
this
.
showTips
(
res
.
message
||
'服务不可用'
)
return
return
...
...
packageEquity/pages/freecard/freecard.scss
View file @
55832d6
...
@@ -83,3 +83,36 @@
...
@@ -83,3 +83,36 @@
height
:
20rpx
;
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
\ 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>
<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" />
<glsx-image src="equity/bg-card.png" class="image-class" />
</view>
</view>
<scroll-view class="box" scroll-y style="margin-top:calc({{statusBarHeight + navigationBarHeight - 30}}px);" refresher-enabled="{{false}}">
<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 style="height: calc(100vh - {{statusBarHeight + navigationBarHeight - 30}}px);">
<view class="img-box">
<view class="img-box">
<glsx-image src="equity/card.png" class="img-card" />
<glsx-image src="equity/card.png" class="img-card" />
...
@@ -12,8 +23,8 @@
...
@@ -12,8 +23,8 @@
<glsx-image class="img-equity" src="equity/card-{{index}}.png" />
<glsx-image class="img-equity" src="equity/card-{{index}}.png" />
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
<view class="card-btn isFullSucreen">
<view class="card-btn isFullSucreen">
<view class="tips">限时领红包</view>
<view class="tips">限时领红包</view>
<button wx:if="{{authStatus}}" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" class="text-center btn-defalut">免费领取</button>
<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>
<button wx:elif="{{!hasUserInfo}}" catchtap="jumpAuthUserInfo" class="text-center btn-defalut">免费领取</button>
...
@@ -21,5 +32,6 @@
...
@@ -21,5 +32,6 @@
<view class="btn-defalut" bindtap="toCheckMember">免费领取</view>
<view class="btn-defalut" bindtap="toCheckMember">免费领取</view>
</view>
</view>
<view class="h-20"></view>
<view class="h-20"></view>
</view>
<glsx-privacy appletName="业主甄选"></glsx-privacy>
\ No newline at end of file
\ No newline at end of file
</view>
<glsx-privacy appletName="业主甄选"></glsx-privacy>
</block>
\ No newline at end of file
\ No newline at end of file
packageMine/pages/questionnaire/components/Finish/Finish.js
View file @
55832d6
...
@@ -30,31 +30,15 @@ Component({
...
@@ -30,31 +30,15 @@ Component({
notIntercept
:
true
notIntercept
:
true
}
}
if
(
data
.
activityType
==
3
)
{
if
(
data
.
activityType
==
3
)
{
const
{
options
=
{
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
:
{
activityId
,
activityId
,
businessId
:
data
.
id
,
businessId
:
data
.
id
,
merchantId
,
merchantId
,
source
:
1
,
source
:
1
,
isLogin
:
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
)
{
if
(
data
.
activityType
==
2
)
{
options
.
couponId
=
activityId
options
.
couponId
=
activityId
url
=
'/packageMall/pages/coupon/coupon'
url
=
'/packageMall/pages/coupon/coupon'
...
@@ -66,9 +50,8 @@ Component({
...
@@ -66,9 +50,8 @@ Component({
options
options
}
}
})
})
this
.
countDown
()
}
}
}
else
this
.
countDown
()
this
.
countDown
()
}
}
},
},
timer
:
null
,
timer
:
null
,
...
@@ -82,10 +65,8 @@ Component({
...
@@ -82,10 +65,8 @@ Component({
const
{
const
{
jumpOption
jumpOption
}
=
this
.
data
}
=
this
.
data
if
(
jumpOption
)
{
if
(
jumpOption
)
wx
.
p
.
router
.
redirectTo
(
jumpOption
.
url
,
jumpOption
.
options
)
if
(
jumpOption
.
type
==
3
)
wx
.
p
.
router
.
redirectTo
(
'/packageActivity/pages/redEnvelope/index/index'
,
jumpOption
.
options
)
else
wx
.
p
.
router
.
goHome
()
else
wx
.
p
.
router
.
redirectTo
(
jumpOption
.
url
,
jumpOption
.
options
)
}
else
wx
.
p
.
router
.
goHome
()
},
},
countDown
()
{
countDown
()
{
this
.
timer
=
setTimeout
(()
=>
{
this
.
timer
=
setTimeout
(()
=>
{
...
...
pages/tab/index/index.js
View file @
55832d6
...
@@ -8,7 +8,6 @@ Page({
...
@@ -8,7 +8,6 @@ Page({
navStyle
,
navStyle
,
noticeContent
:
''
,
noticeContent
:
''
,
bannerList
:
[],
bannerList
:
[],
isEmpty
:
false
,
codeList
:
[{
codeList
:
[{
title
:
'官方'
,
title
:
'官方'
,
desc
:
'福利群'
,
desc
:
'福利群'
,
...
@@ -53,17 +52,6 @@ Page({
...
@@ -53,17 +52,6 @@ Page({
})
})
}
}
this
.
getStrategyList
();
this
.
getStrategyList
();
if
(
options
?.
jumpH5Url
)
{
this
.
setData
({
isEmpty
:
true
})
wx
.
p
.
router
.
jumpH5
(
options
.
jumpH5Url
)
setTimeout
(()
=>
{
this
.
setData
({
isEmpty
:
false
})
},
1600
)
}
this
.
shareTitle
=
"甄选福利"
this
.
shareTitle
=
"甄选福利"
},
},
...
...
pages/tab/index/index.wxml
View file @
55832d6
<view wx:if="{{isEmpty}}"></view>
<view class="container">
<view wx:else>
<view class="container">
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="甄选福利">
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}" page-title="甄选福利">
<view class="bar-text">甄选福利</view>
<view class="bar-text">甄选福利</view>
</navigation-bar>
</navigation-bar>
...
@@ -51,7 +49,6 @@
...
@@ -51,7 +49,6 @@
<block wx:if="{{strategyList.length}}">
<block wx:if="{{strategyList.length}}">
<MoneySavingTips list="{{strategyList}}" bind:selectStrategy="selectStrategy"></MoneySavingTips>
<MoneySavingTips list="{{strategyList}}" bind:selectStrategy="selectStrategy"></MoneySavingTips>
</block>
</block>
</view>
</view>
</view>
<!-- 弹框 -->
<!-- 弹框 -->
<view wx:if="{{showModal}}" class="modal_widget">
<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