Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b6f15814
authored
Jul 12, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
预约领券 车架号必填配置
1 parent
b9570b53
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
45 deletions
tabMine/pages/collectCoupons/collectCoupons.js
tabMine/pages/collectCoupons/collectCoupons.sass
tabMine/pages/collectCoupons/collectCoupons.wxml
tabMine/pages/collectCoupons/collectCoupons.js
View file @
b6f1581
...
...
@@ -84,6 +84,7 @@ Page({
info
=
data
info
.
yqMerchantEnableFlag
=
data
.
yqMerchantEnableFlag
==
'Y'
?
true
:
false
info
.
shopMerchantEnableFlag
=
data
.
shopMerchantEnableFlag
==
'Y'
?
true
:
false
info
.
vinFlag
=
data
.
vinFlag
==
1
?
true
:
false
console
.
log
(
'data'
,
data
);
}
else
{
this
.
showToast
(
message
)
...
...
@@ -94,6 +95,23 @@ Page({
})
},
// 设置领券 车架号是否必填
changeCouponSwitch
(
e
)
{
let
{
userInfo
}
=
this
.
data
if
(
userInfo
.
userType
==
2
)
return
let
{
value
}
=
e
.
detail
let
{
target
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
[
target
]:
value
})
},
//设置园区店集中接待电话
changeYQSwitch
(
e
)
{
console
.
log
(
'e'
,
e
);
...
...
@@ -256,6 +274,7 @@ Page({
}
config
.
yqMerchantEnableFlag
=
config
.
yqMerchantEnableFlag
?
'Y'
:
'N'
config
.
shopMerchantEnableFlag
=
config
.
shopMerchantEnableFlag
?
'Y'
:
'N'
config
.
vinFlag
=
config
.
vinFlag
?
1
:
0
let
{
id
,
createdBy
,
...
...
tabMine/pages/collectCoupons/collectCoupons.sass
View file @
b6f1581
...
...
@@ -7,24 +7,26 @@ page {
}
.main
{
padding
:
0
var
(
--
fontSize20
)
var
(
--
fontSize136
)
;
padding
:
0
var
(
--
fontSize20
)
;
height
:
calc
(
100vh
-
env
(
safe-area-inset-bottom
))
;
}
.isFullSucreen
{
padding-bottom
:
var
(
--
fontSize185
)
!
important
;
.content
{
box-sizing
:
border-box
;
height
:
calc
(
100%
-
var
(
--
fontSize200
))
;
}
.isFullSucreen-btn
{
padding-bottom
:
34px
!
important
;
padding-bottom
:
constant
(
safe-area-inset-bottom
)
!
important
;
padding-bottom
:
env
(
safe-area-inset-bottom
)
!
important
;
}
.switch-v
{
margin
:
var
(
--
fontSize20
)
;
padding
:
var
(
--
fontSize20
)
;
background
:
#FFFFFF
;
// box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a;
border-radius
:
var
(
--
fontSize16
)
;
box-sizing
:
border-box
;
width
:
calc
(
710
/
750
*
100%
)
;
width
:
calc
(
100%
-
var
(
--
fontSize40
))
;
height
:
var
(
--
fontSize88
)
;
background-color
:
#F7F8FA
;
display
:
flex
;
...
...
@@ -34,17 +36,17 @@ page {
}
.switch-v
.label
{
width
:
var
(
--
fontSize308
)
;
height
:
var
(
--
fontSize40
)
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
var
(
--
fontSize28
)
;
color
:
#292D33
;
letter-spacing
:
0
;
.tips-text
{
color
:
#999EA8
;
}
}
.switch-v
switch
{
padding-right
:
var
(
--
fontSize52
)
;
zoom
:
.8
;
}
...
...
@@ -95,7 +97,7 @@ page {
.techicianInfoEdit
{
box-sizing
:
border-box
;
padding
:
0
var
(
--
fontSize
24
)
0
var
(
--
fontSize32
)
;
padding
:
0
var
(
--
fontSize
12
)
0
var
(
--
fontSize32
)
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
...
...
tabMine/pages/collectCoupons/collectCoupons.wxml
View file @
b6f1581
<!--tabMine/pages/collectCoupons/collectCoupons.wxml-->
<view class="main {{isFullSucreen?'isFullSucreen':''}}">
<view class="switch-v">
<view class="label">设置园区店集中接待电话</view>
<switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.yqMerchantEnableFlag}}" bindchange="changeYQSwitch" data-target="info.yqMerchantEnableFlag" />
</view>
<view class="setItem {{info.yqMerchantEnableFlag?'':'itemOP'}}">
<view class="item-label">{{info.yqMerchantName}}</view>
<view class="input-item techicianInfoEdit" wx:if="{{info.isEdit}}">
<input placeholder="接待联系人" class="input name" placeholder-class="placeholder-class" maxlength="16" value="{{ info.contactName }}" bindinput="input" data-name="info.contactName" always-embed></input>
<input placeholder="联系人手机号" class="input phone" type="number" maxlength="11" placeholder-class="placeholder-class" value="{{ info.contactPhoneNumber }}" bindinput="input" data-name="info.contactPhoneNumber" always-embed></input>
<view class="btn" bind:tap="submitContactInfo">确认</view>
</view>
<view class="input-item techicianInfo" wx:else>
<view class="left">
<view class="label">
<view class="name">{{info.contactName}}</view>
</view>
<view class="phone">手机号 {{info.contactPhoneNumber}}</view>
<scroll-view class="content" scroll-y enhanced="{{true}}" show-scrollbar="{{false}}">
<view class="switch-v">
<view class="label">
<view>领券必填项:车架号是否必填</view>
<view class="tips-text">(车主需输入车架号后六位)</view>
</view>
<
image class="icon-edit" bind:tap="editYQInfo" src="{{IMG_URL}}/miniProgram/grayEditIcon.pn
g" />
<
switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.vinFlag}}" bindchange="changeCouponSwitch" data-target="info.vinFla
g" />
</view>
</view>
<view class="switch-v">
<view class="label">设置单店驻店接待电话</view>
<switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.shopMerchantEnableFlag}}" bindchange="change4sSwitch" data-target="info.shopMerchantEnableFlag" />
</view>
<block wx:for="{{info.shopMerchantConfigList}}" wx:key="index">
<view class="setItem {{info.shopMerchantEnableFlag?'':'itemOP'}}">
<view class="item-label">{{item.shopMerchantName}}</view>
<view class="input-item techicianInfoEdit" wx:if="{{item.isEdit}}">
<input placeholder="接待联系人" class="input name" placeholder-class="placeholder-class" maxlength="16" data-index="{{index}}" value="{{ item.contactName }}" bindinput="shopInput" data-name="contactName" always-embed></input>
<input placeholder="联系人手机号" class="input phone" type="number" maxlength="11" placeholder-class="placeholder-class" data-index="{{index}}" value="{{ item.contactPhoneNumber }}" bindinput="shopInput" data-name="contactPhoneNumber" always-embed></input>
<view class="btn" bind:tap="submitShopInfo" data-index="{{index}}">确认</view>
<view class="switch-v">
<view class="label">设置园区店集中接待电话</view>
<switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.yqMerchantEnableFlag}}" bindchange="changeYQSwitch" data-target="info.yqMerchantEnableFlag" />
</view>
<view class="setItem {{info.yqMerchantEnableFlag?'':'itemOP'}}">
<view class="item-label">{{info.yqMerchantName}}</view>
<view class="input-item techicianInfoEdit" wx:if="{{info.isEdit}}">
<input placeholder="接待联系人" class="input name" placeholder-class="placeholder-class" maxlength="16" value="{{ info.contactName }}" bindinput="input" data-name="info.contactName" always-embed></input>
<input placeholder="联系人手机号" class="input phone" type="number" maxlength="11" placeholder-class="placeholder-class" value="{{ info.contactPhoneNumber }}" bindinput="input" data-name="info.contactPhoneNumber" always-embed></input>
<view class="btn" bind:tap="submitContactInfo">确认</view>
</view>
<view class="input-item techicianInfo" wx:else>
<view class="left">
<view class="label">
<view class="name">{{i
tem
.contactName}}</view>
<view class="name">{{i
nfo
.contactName}}</view>
</view>
<view class="phone">手机号 {{i
tem
.contactPhoneNumber}}</view>
<view class="phone">手机号 {{i
nfo
.contactPhoneNumber}}</view>
</view>
<image class="icon-edit" bind:tap="edit
ShopInfo" data-index="{{index}}
" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
<image class="icon-edit" bind:tap="edit
YQInfo
" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
</view>
</view>
</block>
<view class="switch-v">
<view class="label">设置单店驻店接待电话</view>
<switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.shopMerchantEnableFlag}}" bindchange="change4sSwitch" data-target="info.shopMerchantEnableFlag" />
</view>
<block wx:for="{{info.shopMerchantConfigList}}" wx:key="index">
<view class="setItem {{info.shopMerchantEnableFlag?'':'itemOP'}}">
<view class="item-label">{{item.shopMerchantName}}</view>
<view class="input-item techicianInfoEdit" wx:if="{{item.isEdit}}">
<input placeholder="接待联系人" class="input name" placeholder-class="placeholder-class" maxlength="16" data-index="{{index}}" value="{{ item.contactName }}" bindinput="shopInput" data-name="contactName" always-embed></input>
<input placeholder="联系人手机号" class="input phone" type="number" maxlength="11" placeholder-class="placeholder-class" data-index="{{index}}" value="{{ item.contactPhoneNumber }}" bindinput="shopInput" data-name="contactPhoneNumber" always-embed></input>
<view class="btn" bind:tap="submitShopInfo" data-index="{{index}}">确认</view>
</view>
<view class="input-item techicianInfo" wx:else>
<view class="left">
<view class="label">
<view class="name">{{item.contactName}}</view>
</view>
<view class="phone">手机号 {{item.contactPhoneNumber}}</view>
</view>
<image class="icon-edit" bind:tap="editShopInfo" data-index="{{index}}" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
</view>
</view>
</block>
</scroll-view>
</view>
<view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<tips-bottom custom-class="tips" style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
...
...
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