// pages/home/agreement/index.js import { getCustomerList } from "../../../api/saas" const util = require('../../../utils/util') Page({ /** * 页面的初始数据 */ 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 } } })