Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-lottery
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ddaaea3e
authored
Apr 12, 2023
by
Lays-lzq
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/message'
parents
ee9eeb3d
eed16eee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
9 deletions
+60
-9
pages/message/img/right.png
+0
-0
pages/message/index.vue
+60
-9
No files found.
pages/message/img/right.png
0 → 100644
View file @
ddaaea3e
709 Bytes
pages/message/index.vue
View file @
ddaaea3e
...
@@ -43,15 +43,30 @@
...
@@ -43,15 +43,30 @@
<template
v-if=
"winInfo.exchangeType === LOTTERY_EXCHANGE_TYPE.offline"
>
<template
v-if=
"winInfo.exchangeType === LOTTERY_EXCHANGE_TYPE.offline"
>
前往
<span
@
click=
"openRecordHandler"
>
抽奖记录
</span>
使用兑换码进行兑换
前往
<span
@
click=
"openRecordHandler"
>
抽奖记录
</span>
使用兑换码进行兑换
</
template
>
</
template
>
<!-- 实物 邮寄 -->
<
template
v-if=
"winInfo.exchangeType === LOTTERY_EXCHANGE_TYPE.mailing && !winInfo.address"
>
填写
<span
@
click=
"openAddressHandler"
>
收货地址
</span>
等待官方邮寄
</
template
>
<!-- 虚拟物品 -->
<!-- 虚拟物品 -->
<!-- <template v-if="lotteryInfo.prizeType === LOTTERY_MESSAGE_PRIZE_TYPE.online"
<!-- <template v-if="lotteryInfo.prizeType === LOTTERY_MESSAGE_PRIZE_TYPE.online"
>已进入您<span @click="openWalletHandler">个人中心-钱包</span>请查收</template
>已进入您<span @click="openWalletHandler">个人中心-钱包</span>请查收</template
> -->
> -->
</div>
</div>
<div
v-if=
"winInfo.exchangeType === LOTTERY_EXCHANGE_TYPE.mailing"
class=
"lottery-message__rules"
@
click=
"openAddressHandler"
>
<p
class=
"lottery-message__rules-title"
>
收货地址:
</p>
<div
class=
"lottery-message__rules-content"
>
<div>
<div
v-if=
"!winInfo.address"
>
请填写
<span>
收货地址
</span>
等待官方邮寄
</div>
<div
v-else
>
<div
class=
"title"
>
{{ winInfo.name }} {{ winInfo.contactPhone }}
</div>
<div
class=
"adress"
>
{{ winInfo.address }}
</div>
</div>
</div>
<!-- <div class="img"> -->
<img
v-if=
"!winInfo.address"
src=
"./img/right.png"
alt=
""
/>
<!-- </div> -->
</div>
</div>
<div
class=
"lottery-message__rules"
>
<div
class=
"lottery-message__rules"
>
<p
class=
"lottery-message__rules-title"
>
中奖说明:
</p>
<p
class=
"lottery-message__rules-title"
>
中奖说明:
</p>
<div
class=
"lottery-message__rules-content"
>
{{ lotteryInfo.winningInstructions }}
</div>
<div
class=
"lottery-message__rules-content"
>
{{ lotteryInfo.winningInstructions }}
</div>
...
@@ -137,6 +152,11 @@ export default {
...
@@ -137,6 +152,11 @@ export default {
contactPhone: addressInfo?.mobile || '',
contactPhone: addressInfo?.mobile || '',
name: addressInfo?.name || ''
name: addressInfo?.name || ''
}
}
this.winInfo = { ...this.winInfo,
address: `
$
{
addressInfo
?.
province
||
''
}
-
$
{
addressInfo
?.
city
||
''
}
-
$
{
addressInfo
?.
area
||
''
}
-
$
{
addressInfo
?.
detail
}
`,
contactPhone: addressInfo?.mobile || '',
name: addressInfo?.name || ''
}
setLotteryAddress(params).then(res => {
setLotteryAddress(params).then(res => {
const { code, errorCode, errorMessage } = res
const { code, errorCode, errorMessage } = res
if (code === 200 && errorCode === 0) {
if (code === 200 && errorCode === 0) {
...
@@ -214,6 +234,9 @@ export default {
...
@@ -214,6 +234,9 @@ export default {
})
})
},
},
openAddressHandler() {
openAddressHandler() {
if (this.winInfo.address) {
return
}
// 触发打开编辑地址
// 触发打开编辑地址
this.connection.emit('openAddressHandler', this.lotteryInfo)
this.connection.emit('openAddressHandler', this.lotteryInfo)
},
},
...
@@ -305,8 +328,8 @@ export default {
...
@@ -305,8 +328,8 @@ export default {
color
:
#ff2a2a
;
color
:
#ff2a2a
;
}
}
&
__rules
{
&
__rules
{
width
:
10
0%
;
width
:
9
0%
;
margin-top
:
20
px
;
margin-top
:
8
px
;
max-height
:
100px
;
max-height
:
100px
;
overflow
:
hidden
;
overflow
:
hidden
;
overflow-y
:
auto
;
overflow-y
:
auto
;
...
@@ -315,13 +338,41 @@ export default {
...
@@ -315,13 +338,41 @@ export default {
padding
:
10px
;
padding
:
10px
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#666
;
color
:
#666
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
color
:
#666666
;
line-height
:
18px
;
span
{
color
:
#0091ff
;
}
}
}
&
__rules-title
{
&
__rules-title
{
color
:
#333
;
font-size
:
12px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#333333
;
}
}
&
__rules-content
{
&
__rules-content
{
margin-top
:
5px
;
display
:
flex
;
line-height
:
16px
;
justify-content
:
space-between
;
align-items
:
center
;
margin-top
:
8px
;
img
{
width
:
16px
;
height
:
16px
;
}
.title
{
font-size
:
12px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
}
.adress
{
margin-top
:
5px
;
font-size
:
12px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666666
;
}
}
}
&
__keywords
{
&
__keywords
{
color
:
#0091ff
;
color
:
#0091ff
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment