打电话函数

-----打电话
call:function(){
console.log("call");
wx.makePhoneCall({
phoneNumber: '15366404483' //仅为示例,并非真实的电话号码
})
},
 
---------图文集
<view bindtap="call" style="display: flex;flex-direction: row;justify-content:space-between">
<view><text style="font-size: 35rpx">江西南昌市青云普区三店西路788号</text></view>
<view style="margin-right:5%;margin-top:5px"><image style="width:20px; height: 20px;" src="../../images/11.jpg"/></view>
</view>
 
 
-------数据分析 
formSubmit: function (e) {
wx.reportAnalytics('commit_message', {
name_id:'ltq1'
});
console.log("ltq");
},
 
--------输入框
<form bindsubmit="formSubmit" >
<input style="border:solid;width:20px" name="detail" placeholder="预约方式:手机号/微信号/QQ号" />
<input name="realname" placeholder="咨询内容(可选)" />
<button formType="submit" type="primary">预约</button>
</form>
 
 
formSubmit: function (e) {
// detail
var detail = e.detail.value.detail;
// realname
var realname = e.detail.value.realname;
// mobile
var mobile = e.detail.value.mobile;
console.log(detail+realname+mobile)
}
posted @ 2018-01-18 13:20  贪吃的柳柳  阅读(237)  评论(0编辑  收藏  举报