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
5b855600
Commit
5b855600
authored
Sep 09, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-zyw-sc' into 'dev_7.1.0'
Feature zyw sc See merge request
!118
parents
7ea623ed
0ef6c5c7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
2 deletions
+39
-2
myShare.js
src/pages/myShare/myShare.js
+21
-2
myShare.wxml
src/pages/myShare/myShare.wxml
+5
-0
myShare.wxss
src/pages/myShare/myShare.wxss
+13
-0
No files found.
src/pages/myShare/myShare.js
View file @
5b855600
...
...
@@ -4,6 +4,7 @@ const wxService = require('../../utils/wxService')
const
utils
=
require
(
'../../utils/util'
)
const
envInfo
=
require
(
'../../config/index'
).
envInfo
import
{
Integer
}
from
'../../utils/integerDigitalConvertion'
const
{
memberId
}
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
wxService
.
page
({
/**
...
...
@@ -22,7 +23,8 @@ wxService.page({
cardUrl
:
''
,
pagePath
:
''
,
contentList
:[],
currentShareContent
:
null
currentShareContent
:
null
,
contentPermission
:
false
,
},
// 点击切换
...
...
@@ -51,6 +53,24 @@ wxService.page({
this
.
data
.
currentShareContent
=
null
;
},
// 发布内容权限
getContentPermission
()
{
wxService
.
post
(
`/merchant/contentMobileTerminal/getReleasePermissions`
,
{
userId
:
memberId
,
plus
:
0
,
level
:
0
}).
then
(
res
=>
{
if
(
!
res
)
return
false
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
this
.
setData
({
contentPermission
:
data
})
}
}).
finally
(()
=>
{
})
},
// 获取分类
getCategoryList
(){
wxService
.
post
(
`/merchant/contentMobileTerminal/gatClassify`
).
then
(
res
=>
{
...
...
@@ -71,7 +91,6 @@ wxService.page({
// 获取发现内容
getContentList
(
classifyId
){
const
{
memberId
}
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
wxService
.
post
(
`/merchant/contentMobileTerminal/getContentList?pageNum=
${
this
.
data
.
pageNum
}
&pageSize=
${
this
.
data
.
pageSize
}
`
,
{
classifyId
:
classifyId
,
userId
:
memberId
...
...
src/pages/myShare/myShare.wxml
View file @
5b855600
...
...
@@ -25,6 +25,11 @@
</view>
</scroll-view>
</view>
<block wx:if="{{contentPermission}}">
<navigator open-type="navigate" url="/subPackage/page/pages/grassCommunity/grassCommunity">
<view class="add">+</view>
</navigator>
</block>
<card-modal
show-card-modal="{{showCardModal}}"
card-title="{{cardTitle}}"
...
...
src/pages/myShare/myShare.wxss
View file @
5b855600
...
...
@@ -53,6 +53,19 @@ scroll-view{
text-align: center;
color: #aaaaaa;
}
.add{
width: 82rpx;
height: 82rpx;
background-color: rgba(203, 60, 60, 1);
border-radius: 50%;
line-height:82rpx;
text-align: center;
font-size: 60rpx;
color: #ffffff;
position: fixed;
right: 22rpx;
bottom: 35rpx;
}
...
...
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