Commit 14790cab by 杨北旺

定向礼包

1 parent 83964cbe
......@@ -56,13 +56,13 @@ Page({
if (!this.userPhone&& receiveWay == 1) 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位领取')
if (receiveWay == 2&&this.userPhone.length < 6) return wx.p.wxApi.showToast('请输入您车架号后6位领取')
let para = {
directionalGiftId: giftsData.id,
nickName: userInfo.nickName,
nickUrl: userInfo.headImgUrl,
phone: userInfo.phone,
receiveCondition: this.userPhone,
receiveCondition: this.userPhone || '',
merchantId: merchantId,
directionalGiftChildId: this.childId
}
......
......@@ -26,7 +26,7 @@
<glsx-image webp class="page_bg_icon {{giveMemberFlag==1?'page_bg_icon_wine':''}}" src="{{IMGURKBASE}}{{pageBg[giveMemberFlag].mid}}.png" />
<view style="background: url({{IMGURL}}{{IMGURKBASE}}{{pageBg[giveMemberFlag].int}}.png);background-size: 100% 100%;" class="btn_wrap_bg">
<view class="title">领取会员</view>
<view class="input_wrap {{giveMemberFlag==1?'input_wrap_wine':''}}">
<view wx:if="{{giftsData.receiveRule!=3}}" class="input_wrap {{giveMemberFlag==1?'input_wrap_wine':''}}">
<input maxlength="{{giftsData.receiveWay==1?'11':'6'}}" bind:input="intPhone" class="int_widget" placeholder="{{giftsData.receiveWay==1?'请输入手机号领取':'请输入您车架号后6位领取'}}" placeholder-class="input-placeholder" />
</view>
<glsx-image bind:tap="toRecivedGifts" webp class="btn_icon" src="{{IMGURKBASE}}direct_btn_bg.png" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!