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.
 

47 lines
812 B

// pages/myCars/carsDetail/carsDetail.js
Page({
data: {
carDetail:{},
},
onLoad: function (options) {
var that = this;
var item = JSON.parse(options.item);
this.setData({
carDetail:item,
});
},
// 保存按钮点击
saveCarsChange:function(){
},
// 新增按钮点击
creatNewCar:function(){
wx.navigateTo({
url: '../creatNewCar/creatNewCar',
})
},
getPhone:function(event){
var phone =event.detail.value;
if (phone == "") {
wx.showToast({
title: '请输入手机号码',
})
return false;
} else if (!(/^1[34578]\d{9}$/.test(phone))) {
wx.showToast({
title: '号码不正确',
})
return false;
} else {
this.setData({
custometPhone: phone,
})
}
}
})