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
5d388639
authored
2019-12-28 00:10:58 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
23e73af5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
11 deletions
src/component/shortcut/shortcut.scss
src/component/shortcut/shortcut.wxml
src/image/shortcut/contact.jpg
src/pages/reward-completed/reward-completed.js
src/pages/reward/reward.js
src/component/shortcut/shortcut.scss
View file @
5d38863
@import
'../../assets/scss/mixins'
;
@import
'../../assets/scss/utils'
;
.comp
{
position
:
fixed
;
bottom
:
20%
;
...
...
@@ -21,15 +24,29 @@
font-size
:
64px
;
}
.pics
{
.pics
{
height
:
$btnSize
;
}
.point
{
.point
{
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.6
);
}
.contact
{
$contactWidth
:
140px
;
.contact
{
background-color
:
transparent
;
@extend
.fcc
;
color
:
#ffffff
;
width
:
$contactWidth
;
height
:
$contactWidth
;
margin-left
:
-18px
;
margin-top
:
-8px
;
.img
{
width
:
$contactWidth
;
height
:
$contactWidth
;
border-radius
:
8px
;
}
}
}
...
...
src/component/shortcut/shortcut.wxml
View file @
5d38863
...
...
@@ -5,7 +5,8 @@
<view wx:for="{{pics}}" wx:key="{{index}}" data-data="{{item}}" bindtap="onTapHandler" class="btn">
<image mode="aspectFit" src="{{'../../image/shortcut/'+item+'.png'}}" class="pics ani-tada" />
</view>
<button class="btn point" wx:if="{{contact}}" open-type="contact" show-message-card="true" send-message-title="家有儿孙" end-message-path="/pages/index/index" send-message-img="https://kdcdn.oss-cn-shenzhen.aliyuncs.com/weapp/jyes/assets/logo.jpeg" bindcontact="handleContact">
<span class="iconfont iconicon-test3 contact"></span>
<button class="contact" wx:if="{{contact}}" open-type="contact" show-message-card="true" send-message-title="家有儿孙" end-message-path="/pages/index/index" send-message-img="https://kdcdn.oss-cn-shenzhen.aliyuncs.com/weapp/jyes/assets/logo.jpg" bindcontact="handleContact">
<!-- <span class="iconfont iconicon-test3 contact"></span> -->
<image class="img" mode="widthFix" src="../../image/shortcut/contact.jpg" />
</button>
</view>
...
...
src/image/shortcut/contact.jpg
0 → 100644
View file @
5d38863
2.69 KB
src/pages/reward-completed/reward-completed.js
View file @
5d38863
...
...
@@ -163,7 +163,7 @@ Page({
},
/**
* 返回首页
* 返回首页
*/
toIndex
()
{
app
.
router
.
push
({
...
...
src/pages/reward/reward.js
View file @
5d38863
...
...
@@ -107,12 +107,20 @@ Page({
signType
:
'MD5'
,
success
(
res
)
{
// console.log("success:", res);
// 支付成功
app
.
router
.
push
({
path
:
"rewardCompleted"
,
query
:
{
c
:
res2
.
orderCode
// orderCode
// app.router.push({
// path: "rewardCompleted",
// query: {
// c: res2.orderCode // orderCode
// }
// })
wx
.
showModal
({
content
:
'赞赏成功'
,
showCancel
:
false
,
success
(
res
)
{
app
.
router
.
push
({
openType
:
"back"
,
})
}
})
},
...
...
Please
register
or
sign in
to post a comment