Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
hmd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 14790cab
authored
Jul 21, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
定向礼包
1 parent
83964cbe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
packageEquity/pages/directional/directional.js
packageEquity/pages/directional/directional.wxml
packageEquity/pages/directional/directional.js
View file @
14790ca
...
...
@@ -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
}
...
...
packageEquity/pages/directional/directional.wxml
View file @
14790ca
...
...
@@ -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" />
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment