Commit d0fab69f by 杨北旺

调整bug

1 parent 1c61e5a8
......@@ -53,7 +53,7 @@ Page({
const userInfo = wx.p.storage.get('userInfo')
const receiveWay = giftsData.receiveWay
if (!this.userPhone&& receiveWay == 1) return wx.p.wxApi.showToast('请输入手机号码')
if (receiveWay == 1&&this.userPhone.match(mPattern)) return wx.p.wxApi.showToast('请输入正确的手机号')
if (receiveWay == 1&&!this.userPhone.match(mPattern)) return wx.p.wxApi.showToast('请输入正确的手机号')
if (!this.userPhone&& receiveWay == 2) return wx.p.wxApi.showToast('请输入您车架号后6位领取')
if (this.userPhone.length < 6 && receiveWay == 2) return wx.p.wxApi.showToast('请输入您车架号后6位领取')
let para = {
......
......@@ -73,7 +73,7 @@ Page({
})
},
onLoad(options) {
let couponInfo = options.item
let couponInfo = JSON.parse(options.item)
this.getDetailData(couponInfo.id)
this.setData({
couponInfo
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!