<!-- 用户名事件绑定 --> <view class="fl_form"> <text>您的姓名</text> <input type="text" placeholder='请输入您的姓名' value="{{userName}}" bindblur='userNameInput'></input> </view><!-- 所属部门事件绑定 -->
<view class="fl_form"> <text>所属部门</text> <input type="text" placeholder='请输入所属部门' value="{{userBranch}}" bindblur='userBranchInput'></input> </view><!-- 联系电话事件绑定 -->
<view class="fl_form"> <text>联系电话</text> <input type="text" placeholder='请输入联系电话' value="{{userTell}}" bindblur='userTellInput'></input> </view><!-- 日期选择器 mode="date" --> <view class="fl_form"> <picker mode="date" value="{{date}}" start="{{date}}" end="2020-01-01" bindchange="bindDateChange"> <view class="picker"> <text>选择日期</text> <text class="chosedate">{{date}}</text> </view> </picker> </view><!-- 时间选择器 mode="time" -->
<view class="fl_form newtime"> <picker mode="time" value="{{startime}}" start="09:00" end="21:00" bindchange="starttime"> <view class="picker"> <text>开始时间</text> <text class="chosedate">{{starttime}}</text> </view> </picker> <picker mode="time" value="{{endtime}}" start="09:00" end="21:00" bindchange="endtime"> <view class="picker end"> <text>结束时间</text> <text class="chosedate">{{endtime}}</text> </view> </picker> </view> <!-- 提交按钮 --> <button class="formbtn" bindtap='orderMeeting'>提交</button>
js代码:var util = require('../../utils/util.js') //引入微信自带的日期格式化const app = getApp()Page({ data: { date:util.formatDate(new Date), //格式化日期 starttime: '9:00', //开始时间 endtime: '21:00', //结束时间 userName: '', userBranch: '', userTell: ''
}, bindDateChange: function (e) { this.setData({ date: e.detail.value }) }, starttime: function (e) { this.setData({ starttime: e.detail.value }) }, endtime: function (e) { this.setData({ endtime: e.detail.value }) }, userNameInput: function (e) { // console.log(e.detail.value)设置用户名 this.setData({ userName: e.detail.value }) }, userBranchInput: function (e) { //设置部门 this.setData({ userBranch: e.detail.value }) }, userTellInput: function (e) { //设置电话
this.setData({ userTell: e.detail.value }) }, orderMeeting: function () { //提交input信息到后台 var userName = this.data.userName; console.log(userName) var userBranch = this.data.userBranch; console.log(userBranch) var userTell = this.data.userTell; console.log(userTell) var date = this.data.date; console.log(userTell)
}})
最新资讯
-

小程序制作平台选型踩坑记录:2026年五大主流方案横向对比
2026 年微信小程序月活达 10.7 亿、覆盖 108 个行业,本次横向对比即速应用、乔拓云、凡科、有赞、微盟五大主流平台,分三阶段给出选型结论,核心聚焦成本、扩展性、运营能力三大维度。 -

即速应用,赋能企业玩转微信小程序智慧经营
作为国内领军的智慧商业经营服务商,即速应用始终秉承“让每个企业都拥有自己的智慧店铺”的愿景,持续赋能更多企业玩转智慧经营。即速应用旗下拥有“小程序搭建工具-即速应用”、“私域流量专家-即客云”等产品,帮助商家打通互联网全生态营销闭环。 -

即客云2.0重磅更新,让微信小程序运营更简单!
即客云作为一款基于企业微信的第三方工具,现从多维度提供超过30种功能,自上线以来,已服务多家企业,受到一致好评。近期,我们根据客户反馈和市场调研正式推出升级版 即客云2.0!更新了私域运营SOP,群日历功能,批量拓客,客户雷达,消息推送,个人欢迎语,帮助企业更好运用企业微信;同时提升了社群运营工作标准化,提升运营效率,帮助企业实现客户增长,玩转私域流量。










