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.
34 lines
718 B
34 lines
718 B
// pages/home/agreement/index.js
|
|
import Scene from '../../index/scene'
|
|
const util = require('../../../utils/util')
|
|
|
|
Scene({
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
show: false,
|
|
form: {
|
|
amount: 0
|
|
}
|
|
},
|
|
onImageLoad: function(e){
|
|
console.log(e)
|
|
},
|
|
tellPhone: function(){
|
|
wx.makePhoneCall({ phoneNumber: '020-82516486' })
|
|
// this.setData({ show: true })
|
|
},
|
|
onClose: function(){
|
|
this.setData({ show: false })
|
|
},
|
|
bindInput: function (e) {
|
|
this.data.form[e.target.id] = e.detail.value
|
|
},
|
|
onConfirm: function(){
|
|
if(util.isEmpty(this.data.form.amount) || Number(this.data.form.amount) <= 0){
|
|
util.showToast('请输入额度')
|
|
return
|
|
}
|
|
}
|
|
})
|