Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
home-with-kids-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5711f7e1
authored
2020-01-16 12:05:17 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
f69c73a6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
12 deletions
src/image/poster/poster_c1.png
src/pages/blessing/blessing.js
src/pages/blessing/blessing.scss
src/pages/blessing/blessing.wxml
src/pages/index/index.js
src/image/poster/poster_c1.png
View file @
5711f7e
537 KB
|
W:
|
H:
385 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/pages/blessing/blessing.js
View file @
5711f7e
...
...
@@ -996,8 +996,6 @@ Page({
name
,
data
}
=
evt
.
detail
;
console
.
log
(
"evt:"
,
evt
);
console
.
log
(
"data:"
,
data
);
if
(
data
&&
data
.
evttype
&&
data
.
evttype
==
"join"
)
{
console
.
log
(
"55555"
);
}
...
...
src/pages/blessing/blessing.scss
View file @
5711f7e
...
...
@@ -348,10 +348,9 @@ $blessContentLabelWidth: 650px;
.more-template
{
font-size
:
36px
;
color
:
#dfa244
;
text-align
:
right
;
margin-right
:
40px
;
margin-top
:
24px
;
// text-align: right;
// margin-right: 40px;
// margin-top: 48px;
.t1
{
text-decoration
:
underline
;
...
...
@@ -360,11 +359,12 @@ $blessContentLabelWidth: 650px;
&
-item
{
display
:
flex
;
justify-content
:
flex-end
;
justify-content
:
center
;
.btn
{
@extend
.bb
;
margin
:
24px
45px
8px
0
;
margin
:
32px
auto
;
width
:
480px
;
height
:
76px
;
line-height
:
76px
;
padding
:
0
20px
;
...
...
src/pages/blessing/blessing.wxml
View file @
5711f7e
...
...
@@ -123,6 +123,8 @@
<!-- 分情况显示btn-wrap -->
<!-- 单人 -->
<block wx:if="{{detailData.type == 0}}">
<!-- 自己 -->
<block wx:if="{{ownerMember.mySelf == 1}}">
<!-- 未定制 -->
<view wx:if="{{detailData.customMade == 0}}" class="btn-wrap">
<button bindtap="onPosterHandler" class="btn btn1">分享图片祝福</button>
...
...
@@ -137,6 +139,11 @@
<button open-type="share" class="btn btn2">送祝福给亲友</button>
</view>
</block>
<block wx:else>
<view bindtap="onBlessMakeHandler" class="btn btn2">定制我的祝福</view>
<button open-type="share" class="btn btn2">送祝福给亲友</button>
</block>
</block>
<!-- 组队 -->
<block wx:if="{{detailData.type == 1}}">
<!-- 未定制 -->
...
...
src/pages/index/index.js
View file @
5711f7e
...
...
@@ -18,8 +18,7 @@ Page({
queueCode
:
""
,
// 队列标识,每次请求,会返回一个队列标识,用户加载更多时候请携带queueCode参数
active
:
0
,
curBanner
:
{},
blessContent
:
[
{
blessContent
:
[{
type
:
"text"
,
content
:
"文本内容"
,
color
:
"0xffffff"
,
...
...
@@ -29,7 +28,8 @@ Page({
type
:
"image"
,
content
:
"url"
,
},
]
],
options
:
{}
},
onShareAppMessage
(
res
)
{
if
(
res
.
from
===
'button'
)
{
...
...
@@ -49,13 +49,34 @@ Page({
})
},
onLoad
(
options
)
{
this
.
setData
({
options
})
this
.
initData
();
},
initData
()
{
this
.
queryTabList
().
then
((
result
)
=>
{
let
{
options
,
tabList
}
=
this
.
data
;
if
(
options
.
t
==
"bless"
)
{
let
tabIndex
=
0
;
tabList
.
forEach
((
element
,
idx
)
=>
{
if
(
element
.
type
==
2
)
{
tabIndex
=
idx
;
}
});
this
.
setData
({
curTab
:
this
.
data
.
tabList
[
0
]
curTab
:
tabList
[
tabIndex
],
active
:
tabIndex
})
}
else
{
this
.
setData
({
curTab
:
tabList
[
0
]
})
}
this
.
resetPage
();
this
.
queryBannerList
();
this
.
queryVideoList
();
...
...
Please
register
or
sign in
to post a comment