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
04adec83
Commit
04adec83
authored
Jun 04, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 兑换成功失败提示
parent
143141d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
16 deletions
+33
-16
exchange-coupon-modal.js
src/component/exchange-coupon-modal/exchange-coupon-modal.js
+2
-2
userCenter.js
src/pages/userCenter/userCenter.js
+31
-14
No files found.
src/component/exchange-coupon-modal/exchange-coupon-modal.js
View file @
04adec83
...
...
@@ -80,12 +80,12 @@ Component({
if
(
result
==
0
){
wx
.
hideLoading
()
wx
.
showToast
({
title
:
`
${
res
.
desc
}
`
,
title
:
'兑换成功'
,
icon
:
'success'
})
}
else
{
wx
.
showToast
({
title
:
`
${
res
.
desc
}
`
,
title
:
'兑换失败'
,
icon
:
'none'
})
}
...
...
src/pages/userCenter/userCenter.js
View file @
04adec83
...
...
@@ -23,6 +23,37 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
// this.setData(
// {
// pages: [],
// groupLoadState: 'complete', // 活动分组加载标志
// homeApiLoading: true,
// render: null, // 渲染页面数据对象(安全渲染)
// isLastPage: false, // 页面段落加载完成
// renderPageOver: false // 渲染页面结束
// },
// () => {
// // this.loadMore()
// }
// )
// handlerDataOnPage = new utils.HandlerDataOnPage()
// renderPage = require('../../utils/renderPage').getRenderPage()
// handlerDataOnPage.init(this, 'pages')
// this.initPage()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
this
.
setData
(
{
pages
:
[],
...
...
@@ -42,20 +73,6 @@ wxService.page({
this
.
initPage
()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
},
touchStart
(
e
)
{
this
.
setData
({
startX
:
e
.
changedTouches
[
0
].
clientX
,
...
...
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