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 bae41163
authored
Jan 19, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改ID
1 parent
58163d92
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
9 deletions
packageActivity/pages/redEnvelope/index/index.js
packageActivity/pages/redEnvelope/record/components/DeliveryBox/DeliveryBox.js
packageActivity/pages/redEnvelope/record/components/DeliveryBox/DeliveryBox.scss
packageActivity/pages/redEnvelope/record/components/DeliveryBox/DeliveryBox.wxml
packageActivity/pages/redEnvelope/record/record.scss
packageActivity/pages/redEnvelope/record/record.wxml
packageActivity/pages/solitaire/components/Coupon/Coupon.scss
packageActivity/pages/solitaire/components/Coupon/Coupon.wxml
packageActivity/pages/solitaire/index/index.js
packageActivity/pages/redEnvelope/index/index.js
View file @
bae4116
...
@@ -43,12 +43,15 @@ Page({
...
@@ -43,12 +43,15 @@ Page({
if
(
!
res
)
{
if
(
!
res
)
{
const
{
const
{
userInfo
userInfo
}
=
this
.
data
,
{
}
=
this
.
data
let
{
id
,
activityId
,
activityId
,
businessId
,
businessId
,
source
,
source
,
linkId
linkId
}
=
this
.
options
}
=
this
.
options
if
(
!
activityId
)
activityId
=
id
if
(
!
userInfo
.
nickName
)
return
this
.
getNickNameAndHeadUrl
()
if
(
!
userInfo
.
nickName
)
return
this
.
getNickNameAndHeadUrl
()
try
{
try
{
const
{
const
{
...
@@ -131,7 +134,7 @@ Page({
...
@@ -131,7 +134,7 @@ Page({
// 绑定来源 0:权益会员卡;1:调查问卷;2:群接龙
// 绑定来源 0:权益会员卡;1:调查问卷;2:群接龙
if
(
source
>
-
1
)
query
+=
`&source=
${
source
}
`
if
(
source
>
-
1
)
query
+=
`&source=
${
source
}
`
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
.
setData
({
this
.
setData
({
show
:
true
show
:
true
...
...
packageActivity/pages/redEnvelope/record/components/DeliveryBox/DeliveryBox.js
View file @
bae4116
...
@@ -36,6 +36,7 @@ Component({
...
@@ -36,6 +36,7 @@ Component({
type
=
'digit'
type
=
'digit'
}
}
list
.
push
({
list
.
push
({
describeId
,
maxlength
,
maxlength
,
type
,
type
,
detail
:
''
,
detail
:
''
,
...
...
packageActivity/pages/redEnvelope/record/components/DeliveryBox/DeliveryBox.scss
View file @
bae4116
...
@@ -32,6 +32,13 @@
...
@@ -32,6 +32,13 @@
border-radius
:
16rpx
;
border-radius
:
16rpx
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
display
:
flex
;
align-items
:
center
;
padding-left
:
40rpx
;
.icon
{
width
:
52rpx
;
height
:
52rpx
;
}
}
}
}
}
.btn
{
.btn
{
...
...
packageActivity/pages/redEnvelope/record/components/DeliveryBox/DeliveryBox.wxml
View file @
bae4116
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
<view class="delivery-content">
<view class="delivery-content">
<block wx:for="{{list}}" wx:key="index">
<block wx:for="{{list}}" wx:key="index">
<view class="delivery-item">
<view class="delivery-item">
<view class="icon">
<glsx-image src="activity/icon-{{item.describeId}}.png"></glsx-image>
</view>
<van-field value="{{item.detail}}" type="{{item.type}}" maxlength="{{item.maxlength}}" placeholder="{{item.placeholder}}" bindchange="onChange" data-index="{{index}}" />
<van-field value="{{item.detail}}" type="{{item.type}}" maxlength="{{item.maxlength}}" placeholder="{{item.placeholder}}" bindchange="onChange" data-index="{{index}}" />
</view>
</view>
</block>
</block>
...
...
packageActivity/pages/redEnvelope/record/record.scss
View file @
bae4116
...
@@ -68,8 +68,9 @@ page {
...
@@ -68,8 +68,9 @@ page {
}
}
.btn
{
.btn
{
width
:
96rpx
;
min-
width
:
96rpx
;
height
:
52rpx
;
height
:
52rpx
;
padding
:
0
20rpx
;
background
:
#3772EC
;
background
:
#3772EC
;
border-radius
:
26rpx
;
border-radius
:
26rpx
;
position
:
absolute
;
position
:
absolute
;
...
...
packageActivity/pages/redEnvelope/record/record.wxml
View file @
bae4116
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<view class="btn text-center" data-code="{{item.code}}" bindtap="open">查看</view>
<view class="btn text-center" data-code="{{item.code}}" bindtap="open">查看</view>
</block>
</block>
<block wx:if="{{item.exchangeType == 0 && item.status == 8 && !item.isAddressFlag}}">
<block wx:if="{{item.exchangeType == 0 && item.status == 8 && !item.isAddressFlag}}">
<view class="btn text-center" data-award-info-id="{{item.awardInfoId}}" bindtap="writeDelivery">填写</view>
<view class="btn text-center" data-award-info-id="{{item.awardInfoId}}" bindtap="writeDelivery">
去
填写</view>
</block>
</block>
</view>
</view>
</block>
</block>
...
...
packageActivity/pages/solitaire/components/Coupon/Coupon.scss
View file @
bae4116
...
@@ -26,10 +26,24 @@
...
@@ -26,10 +26,24 @@
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
.icon-title
{
position
:
absolute
;
left
:
50%
;
transform
:
translateX
(
-50%
);
top
:
-230rpx
;
width
:
438rpx
;
height
:
76rpx
;
}
.card
{
.card
{
flex-direction
:
column
;
flex-direction
:
column
;
.content-icon
{
.content-icon
{
position
:
absolute
;
left
:
50%
;
transform
:
translateX
(
-50%
);
width
:
228rpx
;
height
:
228rpx
;
top
:
-120rpx
;
top
:
-120rpx
;
}
}
...
...
packageActivity/pages/solitaire/components/Coupon/Coupon.wxml
View file @
bae4116
<block wx:if="{{show}}">
<block wx:if="{{show}}">
<view class="box">
<view class="box">
<view class="content">
<view class="content">
<view class="icon-title">
<glsx-image src="activity/success.png"></glsx-image>
></view>
<view class="card flex">
<view class="card flex">
<view class=""></view>
<view class="content-icon">
<glsx-image src="activity/coupon.png"></glsx-image>
</view>
<view class="name">
<view class="name">
恭喜你获得{{item.couponName}}一张
恭喜你获得{{item.couponName}}一张
</view>
</view>
...
...
packageActivity/pages/solitaire/index/index.js
View file @
bae4116
...
@@ -35,6 +35,7 @@ Page({
...
@@ -35,6 +35,7 @@ Page({
const
{
const
{
options
options
}
=
this
}
=
this
this
.
options
.
relayLotteryId
=
options
.
id
if
(
options
.
isLogin
)
this
.
getGroupEnterInfo
(
options
)
if
(
options
.
isLogin
)
this
.
getGroupEnterInfo
(
options
)
else
this
.
jumpLoading
()
//直接打开时跳转、防止sessionId失效
else
this
.
jumpLoading
()
//直接打开时跳转、防止sessionId失效
},
},
...
@@ -64,7 +65,7 @@ Page({
...
@@ -64,7 +65,7 @@ Page({
console
.
log
(
'openGid:'
,
data
)
console
.
log
(
'openGid:'
,
data
)
const
res
=
await
wx
.
p
.
api
.
userApi
.
openGIdtoChatId
({
const
res
=
await
wx
.
p
.
api
.
userApi
.
openGIdtoChatId
({
merchantId
:
options
.
merchantId
,
merchantId
:
options
.
merchantId
,
openGid
:
'GtsOh6zJoHmautQCAxaxaUzIxYNo'
||
data
openGid
:
data
})
})
console
.
log
(
'chatId:'
,
res
.
data
)
console
.
log
(
'chatId:'
,
res
.
data
)
options
.
chatId
=
res
.
data
||
''
options
.
chatId
=
res
.
data
||
''
...
@@ -297,10 +298,8 @@ Page({
...
@@ -297,10 +298,8 @@ Page({
try
{
try
{
const
{
const
{
params
,
params
,
userInfo
}
=
this
.
data
,
{
}
=
this
.
data
,
{
relayLotteryId
,
id
:
relayLotteryId
,
chatId
}
=
this
.
options
}
=
this
.
options
console
.
log
(
params
)
console
.
log
(
params
)
if
(
!
params
.
name
)
throw
'请输入名称!'
if
(
!
params
.
name
)
throw
'请输入名称!'
...
...
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