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
30942293
Commit
30942293
authored
Jul 22, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信支付
parent
57faab14
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
75 additions
and
2 deletions
+75
-2
app.json
src/app.json
+3
-1
IntegralMall.wxml
src/pages/IntegralMall/IntegralMall.wxml
+1
-0
IntegralMall.wxss
src/pages/IntegralMall/IntegralMall.wxss
+3
-0
memberOfOwn.js
src/pages/memberOfOwn/memberOfOwn.js
+34
-0
memberOfOwn.wxml
src/pages/memberOfOwn/memberOfOwn.wxml
+6
-0
memberOfOwn.wxss
src/pages/memberOfOwn/memberOfOwn.wxss
+18
-1
project.config.json
src/project.config.json
+2
-0
sitemap.json
src/sitemap.json
+8
-0
No files found.
src/app.json
View file @
30942293
...
...
@@ -37,5 +37,6 @@
"wx358b56af62edbde1"
,
"wxc3b64b09b1d3dfc2"
,
"wx857ea77f4f7f4f34"
]
],
"sitemapLocation"
:
"sitemap.json"
}
\ No newline at end of file
src/pages/IntegralMall/IntegralMall.wxml
View file @
30942293
...
...
@@ -11,6 +11,7 @@
<view class='coupon-info'>
<view class='coupon-time fs-24'>{{item.point}}积分</view>
<view class='coupon-name fs-28'>{{item.title}}</view>
<view class='coupon-name fs-24'>{{item.couponTimeDesc}}</view>
<view class='coupon-desc fs-24'>查看详情 >>></view>
</view>
<view class='coupon-code fs-24' data-id="{{item.id}}" data-point="{{item.point}}" catchtap='exchange'>立即兑换</view>
...
...
src/pages/IntegralMall/IntegralMall.wxss
View file @
30942293
...
...
@@ -62,6 +62,9 @@
.coupon-name{
color:#333;
}
.fons{
font-size: 24rpx;
}
.coupon-time{
color:#fc921e;
margin-bottom: 18rpx;
...
...
src/pages/memberOfOwn/memberOfOwn.js
View file @
30942293
...
...
@@ -51,6 +51,40 @@ wxService.page({
// }
},
//微信支付
onTapWxPay
(){
//调用接口回调拼接数据 TODO
this
.
getPayCodeParam
();
},
//获取小程序支付码配置参数
getPayCodeParam
(){
wxService
.
get
(
`/platform/brand/openOfflinePayView`
).
then
(
res
=>
{
if
(
!
res
)
return
false
;
const
{
result
,
data
}
=
res
&&
res
.
data
||
res
&&
res
.
result
if
(
result
==
0
)
{
wx
.
openOfflinePayView
({
appId
:
data
.
appId
,
nonceStr
:
data
.
nonceStr
,
package
:
data
.
package
,
signType
:
data
.
signType
,
timeStamp
:
data
.
timeStamp
,
paySign
:
data
.
paySign
,
success
:
function
(
res
)
{
console
.
log
(
'success'
,
res
)
},
fail
:
function
(
res
)
{
console
.
log
(
'error'
,
res
)
},
complete
:
function
(
res
)
{
console
.
log
(
'complete'
,
res
)
}
})
// this.setInternal();
}
})
},
/**
* 生命周期函数--监听页面显示
...
...
src/pages/memberOfOwn/memberOfOwn.wxml
View file @
30942293
...
...
@@ -17,7 +17,13 @@
</view>
<view class='user-qr-code'>
<canvas canvas-id="barcode" binderror="canvasIdErrorCallback" />
<view class='wx-pay-code' bindtap="onTapWxPay">微信支付</view>
</view>
</view>
<view class="form-info">
...
...
src/pages/memberOfOwn/memberOfOwn.wxss
View file @
30942293
...
...
@@ -59,7 +59,7 @@ page{
background-color: #ffffff;
border-radius: 7rpx;
display: flex;
height:
2
00rpx;
height:
3
00rpx;
flex-direction: column;
justify-content: center;
align-items: center;
...
...
@@ -125,3 +125,19 @@ textarea {
font-size: 14px;
box-sizing: border-box;
}
.wx-pay-code{
padding-left: 0;
width: 100%;
height: 80rpx;
display: flex;
justify-content: center;
align-items: center;
font-size: 14px;
box-sizing: border-box;
margin-top: 40rpx;
color: rgb(2, 186, 112);
}
.wx-pay-code:active{
opacity: 0.7;
}
\ No newline at end of file
src/project.config.json
View file @
30942293
...
...
@@ -19,6 +19,8 @@
"hidedInDevtools"
:
[]
},
"isGameTourist"
:
false
,
"simulatorType"
:
"wechat"
,
"simulatorPluginLibVersion"
:
{},
"condition"
:
{
"search"
:
{
"current"
:
-1
,
...
...
src/sitemap.json
0 → 100644
View file @
30942293
{
"desc"
:
"关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html"
,
"rules"
:
[{
"action"
:
"allow"
,
"page"
:
"*"
}]
}
\ No newline at end of file
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