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
9ba7cd91
Commit
9ba7cd91
authored
Sep 20, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
share
parent
cfc4800b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
waterFlowLayout.js
src/component/waterFlowLayout/waterFlowLayout.js
+12
-8
myShare.wxml
src/pages/myShare/myShare.wxml
+2
-0
No files found.
src/component/waterFlowLayout/waterFlowLayout.js
View file @
9ba7cd91
...
...
@@ -6,11 +6,15 @@ Component({
* 组件的属性列表
*/
properties
:
{
currentHasUserInfo
:
{
type
:
Boolean
,
type
:
false
},
imageData
:
{
type
:
Array
,
value
:
[],
},
type
:{
type
:
{
type
:
Number
,
value
:
[],
}
...
...
@@ -28,16 +32,16 @@ Component({
* 组件的方法列表
*/
methods
:
{
onTapLike
(
e
){
onTapLike
(
e
)
{
const
{
memberId
}
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
let
params
=
{
let
params
=
{
contentId
:
e
.
currentTarget
.
dataset
.
id
,
type
:
e
.
currentTarget
.
dataset
.
type
,
userId
:
memberId
}
this
.
triggerEvent
(
'updataLike'
,
params
)
},
onTapShare
(
e
){
onTapShare
(
e
)
{
console
.
log
(
e
)
let
params
=
{
url
:
e
.
currentTarget
.
dataset
.
url
,
...
...
@@ -47,16 +51,16 @@ Component({
id
:
e
.
currentTarget
.
dataset
.
id
}
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'_onTapShare'
,
params
)
this
.
triggerEvent
(
'_onTapShare'
,
params
)
})
},
//详情
gotoDetail
(
e
){
gotoDetail
(
e
)
{
// type 1:内容 2:我的发布
if
(
this
.
data
.
type
==
1
)
{
if
(
this
.
data
.
type
==
1
)
{
wxService
.
router
(
`/pages/wantToBuyDetail/wantToBuyDetail?id=
${
e
.
currentTarget
.
dataset
.
id
}
`
)
}
else
if
(
this
.
data
.
type
==
2
){
}
else
if
(
this
.
data
.
type
==
2
)
{
wxService
.
router
(
`/subPackage/page/pages/myReleaseDetail/myReleaseDetail?id=
${
e
.
currentTarget
.
dataset
.
id
}
`
)
}
}
...
...
src/pages/myShare/myShare.wxml
View file @
9ba7cd91
...
...
@@ -18,6 +18,8 @@
image-data="{{contentList}}"
bind:updataLike="gotoLike"
bind:_onTapShare="_onTapShare"
bind:getAuth="_getUserInfo"
currentHasUserInfo="{{currentHasUserInfo}}"
/>
</view>
<view class="empty" wx:if="{{!contentList || contentList.length < 1}}">
...
...
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