You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

102 lines
1.7 KiB

// pages/order/payment.js
Page({
/**
* 页面的初始数据
*/
data: {
orderId: '',
price: '',
company: '常州互利智能科技有限公司',
account: '123 4567 1234 456 1234',
bank: '中国银行',
},
copyAct() {
var that = this
wx.setClipboardData({
data: that.data.orderId,
success: function (res) {
wx.showToast({
title: '复制成功',
icon: 'none',
duration: 2000
})
}
})
},
copyAccount() {
var that = this
var content = '收款方 '+that.data.company+'\n'+'收款账号 '+that.data.account+'\n'+'开户银行'+that.data.bank
wx.setClipboardData({
data: content,
success: function (res) {
wx.showToast({
title: '复制成功',
icon: 'none',
duration: 2000
})
}
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
var that = this
that.setData({
orderId: options.orderId,
price: options.price,
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
// wx.hideHomeButton(); //隐藏返回主页按钮
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
wx.navigateTo({
url: '/pages/order/order?currentTab=0&otype=pay&isPay=1',
})
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})