Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
58b5efd9
Commit
58b5efd9
authored
Sep 26, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
邀请好友弹框
parent
84e14c8c
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
125 additions
and
6 deletions
+125
-6
shareBenefitModal.js
src/component/shareBenefitModal/shareBenefitModal.js
+40
-0
shareBenefitModal.json
src/component/shareBenefitModal/shareBenefitModal.json
+5
-0
shareBenefitModal.wxml
src/component/shareBenefitModal/shareBenefitModal.wxml
+17
-0
shareBenefitModal.wxss
src/component/shareBenefitModal/shareBenefitModal.wxss
+29
-0
userCenter.js
src/pages/userCenter/userCenter.js
+26
-1
userCenter.json
src/pages/userCenter/userCenter.json
+3
-1
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+1
-0
wantToBuyDetail.js
src/pages/wantToBuyDetail/wantToBuyDetail.js
+2
-1
myReleaseDetail.js
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.js
+1
-2
share.js
src/subPackage/page/pages/share/share.js
+1
-1
No files found.
src/component/shareBenefitModal/shareBenefitModal.js
0 → 100644
View file @
58b5efd9
// component/shareBebefitModal/shareBebefitModal.js
Component
({
/**
* 组件的属性列表
*/
properties
:
{
show
:
{
type
:
Boolean
,
value
:
''
},
benefitData
:
{
type
:
Object
,
value
:
''
}
},
/**
* 组件的初始数据
*/
data
:
{
},
/**
* 组件的方法列表
*/
methods
:
{
closeCardModal
()
{
this
.
setData
({
show
:
false
})
},
_getUserInfo
(
res
=
{})
{
this
.
setData
({
show
:
false
})
this
.
triggerEvent
(
'getAuth'
,
res
);
},
}
})
src/component/shareBenefitModal/shareBenefitModal.json
0 → 100644
View file @
58b5efd9
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
src/component/shareBenefitModal/shareBenefitModal.wxml
0 → 100644
View file @
58b5efd9
<!--component/cardModal/cardModal.wxml-->
<view>
<view class="commodity_screen2" bindtap='closeCardModal' style='opacity: 0.5;' hidden="{{!show}}" catchtouchmove='true'></view>
<view class="card-modal" hidden="{{!show}}" catchtouchmove='true'>
<view class="card-modal-content">
<image mode="widthFix" class="benefit-image" src="{{benefitData.inviteePage}}"></image>
<view wx:if="{{!benefitData.receiveAwardJumpType}}">
<button class="btn btn-primary" bindgetuserinfo="_getUserInfo" data-jflag="false" open-type='getUserInfo'>立即领取</button>
</view>
<view wx:else>
<button class="btn btn-primary" bindtap="closeCardModal">立即领取</button>
</view>
</view>
</view>
</view>
src/component/shareBenefitModal/shareBenefitModal.wxss
0 → 100644
View file @
58b5efd9
/* component/cardModal/cardModal.wxss */
@import "/app.wxss";
.commodity_screen2 {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background: #000;
opacity: 0.65;
overflow: hidden;
z-index: 9999;
color: #fff;
}
.card-modal{
position: fixed;
top:100rpx;
left: 100rpx;
z-index: 9999;
/* width: 640rpx; */
}
.card-modal-content{
/* width: 640rpx; */
height: 1000rpx;
background-color: rgba(255, 255, 255, 1);
box-shadow: 0px 4rpx 17rpx 0px rgba(0, 0, 0, 0.12);
}
\ No newline at end of file
src/pages/userCenter/userCenter.js
View file @
58b5efd9
...
...
@@ -30,8 +30,10 @@ wxService.page({
// cardMember: null,
pageBackgroundColor
:
0
,
guidePageModalShow
:
false
,
shareBenefitModalShow
:
false
,
currHomePageId
:
''
,
skuVOList
:
[]
skuVOList
:
[],
benefitData
:
''
},
/**
* 生命周期函数--监听页面加载
...
...
@@ -52,6 +54,29 @@ wxService.page({
this
.
generatePointObject
(
tentacleInfo
);
}
// 邀请奖励弹框
if
(
options
&&
options
.
type
==
10
){
this
.
setData
({
shareBenefitModalShow
:
true
})
this
.
getShareImg
()
}
},
// 获取邀请奖励图片
getShareImg
()
{
wxService
.
get
(
`/member/share/inviteFriends/buyer/getValid`
).
then
(
res
=>
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
wx
.
hideLoading
()
let
initiatorPage
=
JSON
.
parse
(
data
.
initiatorPage
)
this
.
setData
({
benefitData
:
data
})
}
}
})
},
/**
* 监听子组件事件
...
...
src/pages/userCenter/userCenter.json
View file @
58b5efd9
...
...
@@ -13,6 +13,7 @@
"guide-page-modal"
:
"/component/guidePageModal/guidePageModal"
,
"bottom-tabs"
:
"/component/bottomTabs/bottomTabs"
,
"authorization-modal"
:
"/component/authorization-modal/authorization-modal"
,
"plus"
:
"/component/plus/plus"
"plus"
:
"/component/plus/plus"
,
"share-benefit-modal"
:
"/component/shareBenefitModal/shareBenefitModal"
}
}
\ No newline at end of file
src/pages/userCenter/userCenter.wxml
View file @
58b5efd9
...
...
@@ -32,4 +32,5 @@
</block>
</view>
<guide-page-modal show="{{guidePageModalShow}}" />
<share-benefit-modal show="{{shareBenefitModalShow}}" benefit-data="{{benefitData}}"/>
<!--<authorization-modal isAuthorization='{{isAuthorization}}'/>-->
src/pages/wantToBuyDetail/wantToBuyDetail.js
View file @
58b5efd9
...
...
@@ -130,12 +130,13 @@ wxService.page({
// 分享
onTapShare
()
{
console
.
log
(
'00000'
,
this
.
data
.
contentInfo
)
const
{
memberId
,
member
}
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
let
content
=
{
title
:
this
.
data
.
contentInfo
.
headline
,
id
:
this
.
data
.
contentInfo
.
id
,
article
:
this
.
data
.
contentInfo
.
article
,
url
:
this
.
data
.
contentInfo
.
url
url
:
this
.
data
.
contentInfo
.
shareShowPictureRESDTOList
[
0
].
url
}
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
content
),
...
...
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.js
View file @
58b5efd9
...
...
@@ -28,7 +28,6 @@ wxService.page({
*/
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
();
console
.
log
(
'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm'
,
options
)
if
(
options
&&
options
.
id
)
{
this
.
setData
({
id
:
options
.
id
...
...
@@ -69,7 +68,7 @@ wxService.page({
title
:
this
.
data
.
contentInfo
.
headline
,
id
:
this
.
data
.
contentInfo
.
id
,
article
:
this
.
data
.
contentInfo
.
article
,
url
:
this
.
data
.
contentInfo
.
url
url
:
this
.
data
.
contentInfo
.
sspList
[
0
].
url
}
let
tentacleInfo
=
{
content
:
JSON
.
stringify
(
content
),
...
...
src/subPackage/page/pages/share/share.js
View file @
58b5efd9
...
...
@@ -93,7 +93,7 @@ wxService.page({
let
data
=
{
"autoColor"
:
true
,
"page"
:
'pages/userCenter/userCenter'
,
"page"
:
'pages/userCenter/userCenter
?type={{app.globalData.contants.SHARE_TYPE.INVITE_FRIENDS}}
'
,
"scene"
:
'123'
,
"width"
:
100
}
...
...
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