Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
9140404b
Commit
9140404b
authored
Nov 05, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善信息领奖励
parent
7258a268
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
9 deletions
+36
-9
src/api/live.js
+5
-1
src/components/common/ImproveInformation.vue
+26
-7
src/pages/home/index.vue
+5
-1
No files found.
src/api/live.js
View file @
9140404b
...
...
@@ -100,5 +100,9 @@ export default {
//查看回放评论
queryPlaybackComments
(
options
){
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/liveBroadcastInfo/getLiveGuestAndLikeNumById`
,
options
);
}
},
//查询活动配置信息
getCustomerPerfectRewardDetail
()
{
return
requestGET
(
`
${
process
.
env
.
OLSHOP_URL
}
/user/getCustomerPerfectRewardDetail`
)
},
};
src/components/common/ImproveInformation.vue
View file @
9140404b
...
...
@@ -8,7 +8,7 @@
</div>
<div
class=
"title"
>
完善信息领奖励
</div>
<div
class=
"banner"
>
xxx
<image
:src=
"cusInfo.bannerUrl"
mode=
"aspectFit"
></image>
</div>
<div
class=
"bottom"
>
<div
class=
"bottom__left"
>
...
...
@@ -23,6 +23,7 @@
</
template
>
<
script
type=
"text/ecmascript-6"
>
import
live
from
"@/api/live"
;
const
app
=
getApp
()
export
default
{
name
:
"ImproveInformation"
,
...
...
@@ -30,21 +31,41 @@ export default {
return
{
show
:
false
,
// 弹窗显示
notPromptFlag
:
false
,
cusInfo
:
{
bannerUrl
:
""
,
},
}
},
components
:
{},
computed
:
{},
onShow
()
{
console
.
log
(
'ImproveInformation-onShow->'
)
this
.
init
();
},
created
()
{
this
.
open
();
this
.
init
();
console
.
log
(
'ImproveInformation-created->'
,
wx
.
getStorageSync
(
'sessionid'
))
},
mounted
()
{
},
methods
:
{
open
()
{
async
init
()
{
if
(
wx
.
getStorageSync
(
'notPromptFlag'
))
{
this
.
show
=
false
;
return
;
}
if
(
wx
.
getStorageSync
(
'sessionid'
))
{
let
res
=
await
live
.
getUserInfo
();
if
(
res
.
data
.
code
==
200
)
{
let
{
disableDialogPerfectCustomerInfoFlag
,
obtainPerfectCustomerInfoRewardFlag
}
=
res
.
data
.
data
;
if
(
disableDialogPerfectCustomerInfoFlag
==
"false"
||
obtainPerfectCustomerInfoRewardFlag
==
"false"
)
{
let
res2
=
await
live
.
getCustomerPerfectRewardDetail
();
if
(
res2
.
data
.
code
==
200
)
{
this
.
cusInfo
=
res2
.
data
.
data
;
}
this
.
show
=
true
;
}
}
}
},
notPrompt
()
{
this
.
notPromptFlag
=
!
this
.
notPromptFlag
;
...
...
@@ -59,9 +80,9 @@ export default {
confirm
()
{
app
.
$themeToLink
({
type
:
1
,
link
:
`/personalCenter/userInfo`
,
link
:
`/personalCenter/userInfo
?perfectCustomerInfo=1
`
,
})
this
.
close
();
//
this.close();
}
}
}
...
...
@@ -121,8 +142,6 @@ export default {
.banner
{
margin-top
:
20px
;
background
:
#333
;
height
:
100px
;
}
.bottom
{
...
...
src/pages/home/index.vue
View file @
9140404b
...
...
@@ -152,6 +152,8 @@
<TwoBAddCart></TwoBAddCart>
<!-- 麦贝思-客户选择标签 -->
<SWQUserSelectTag
ref=
"SWQUserSelectTag"
></SWQUserSelectTag>
<!-- 完善信息领取奖励 -->
<ImproveInformation
ref=
"ImproveInformation"
></ImproveInformation>
</div>
</template>
...
...
@@ -188,6 +190,7 @@ import GoodsFliters from "../../components/common/GoodsFliters";
import
SelectGoods
from
"../../components/common/SelectGoods"
;
import
TwoBAddCart
from
"../../components/common/TwoBAddCart"
;
import
SWQUserSelectTag
from
"../../components/common/SWQUserSelectTag"
;
import
ImproveInformation
from
"../../components/common/ImproveInformation"
;
import
{
setTabBarActive
,
checkTabbarPage
,
themeColor
,
checkShowConditionIds
,
setStoreInfo
,
getStoreInfo
}
from
"../../utils/mayi.js"
;
import
indexApi
from
"@/api/index.js"
;
import
{
throttle
,
concatUrl
}
from
"../../utils/index.js"
...
...
@@ -273,7 +276,8 @@ export default {
StoreAddr
,
pageLoading
,
CustomNav
,
SWQUserSelectTag
SWQUserSelectTag
,
ImproveInformation
},
computed
:
{
applySucessEntryFlag
()
{
...
...
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