123456789101112131415161718192021222324252627282930313233343536373839 |
- // pages/buy/buy.js
- Page({
- /**
- * 页面的初始数据
- */
- data: {
- payType: 1
- },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad(options) {
- },
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady() {
- },
- /**
- * 生命周期函数--监听页面显示
- */
- onShow() {
- },
- handlePayType (e) {
- var type = Number(e.currentTarget.dataset.type)
- console.log(type);
- this.setData({
- payType: type
- })
- }
- })
|