Commit 04adec83 by 高淑倩

modify: 兑换成功失败提示

parent 143141d4
......@@ -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'
})
}
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment