Commit b6f15814 by zhangxw

预约领券 车架号必填配置

1 parent b9570b53
...@@ -84,6 +84,7 @@ Page({ ...@@ -84,6 +84,7 @@ Page({
info = data info = data
info.yqMerchantEnableFlag = data.yqMerchantEnableFlag == 'Y' ? true : false info.yqMerchantEnableFlag = data.yqMerchantEnableFlag == 'Y' ? true : false
info.shopMerchantEnableFlag = data.shopMerchantEnableFlag == 'Y' ? true : false info.shopMerchantEnableFlag = data.shopMerchantEnableFlag == 'Y' ? true : false
info.vinFlag = data.vinFlag == 1 ? true : false
console.log('data', data); console.log('data', data);
} else { } else {
this.showToast(message) this.showToast(message)
...@@ -94,6 +95,23 @@ Page({ ...@@ -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) { changeYQSwitch(e) {
console.log('e', e); console.log('e', e);
...@@ -256,6 +274,7 @@ Page({ ...@@ -256,6 +274,7 @@ Page({
} }
config.yqMerchantEnableFlag = config.yqMerchantEnableFlag ? 'Y' : 'N' config.yqMerchantEnableFlag = config.yqMerchantEnableFlag ? 'Y' : 'N'
config.shopMerchantEnableFlag = config.shopMerchantEnableFlag ? 'Y' : 'N' config.shopMerchantEnableFlag = config.shopMerchantEnableFlag ? 'Y' : 'N'
config.vinFlag = config.vinFlag ? 1 : 0
let { let {
id, id,
createdBy, createdBy,
......
...@@ -7,24 +7,26 @@ page { ...@@ -7,24 +7,26 @@ page {
} }
.main { .main {
padding: 0 var(--fontSize20) var(--fontSize136); padding: 0 var(--fontSize20);
height: calc(100vh - env(safe-area-inset-bottom));
} }
.isFullSucreen { .content{
padding-bottom: var(--fontSize185) !important; box-sizing: border-box;
height: calc(100% - var(--fontSize200));
} }
.isFullSucreen-btn { .isFullSucreen-btn {
padding-bottom: 34px !important; padding-bottom: constant(safe-area-inset-bottom) !important;
padding-bottom: env(safe-area-inset-bottom) !important;
} }
.switch-v { .switch-v {
margin: var(--fontSize20); padding: var(--fontSize20);
background: #FFFFFF; background: #FFFFFF;
// box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a; // box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a;
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
box-sizing: border-box; width: calc(100% - var(--fontSize40));
width: calc(710 / 750 * 100%);
height: var(--fontSize88); height: var(--fontSize88);
background-color: #F7F8FA; background-color: #F7F8FA;
display: flex; display: flex;
...@@ -34,17 +36,17 @@ page { ...@@ -34,17 +36,17 @@ page {
} }
.switch-v .label { .switch-v .label {
width: var(--fontSize308);
height: var(--fontSize40);
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-weight: 400; font-weight: 400;
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #292D33; color: #292D33;
letter-spacing: 0; letter-spacing: 0;
.tips-text{
color: #999EA8;
}
} }
.switch-v switch { .switch-v switch {
padding-right: var(--fontSize52);
zoom: .8; zoom: .8;
} }
...@@ -95,7 +97,7 @@ page { ...@@ -95,7 +97,7 @@ page {
.techicianInfoEdit { .techicianInfoEdit {
box-sizing: border-box; box-sizing: border-box;
padding: 0 var(--fontSize24) 0 var(--fontSize32); padding: 0 var(--fontSize12) 0 var(--fontSize32);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
......
<!--tabMine/pages/collectCoupons/collectCoupons.wxml--> <!--tabMine/pages/collectCoupons/collectCoupons.wxml-->
<view class="main {{isFullSucreen?'isFullSucreen':''}}"> <view class="main {{isFullSucreen?'isFullSucreen':''}}">
<view class="switch-v"> <scroll-view class="content" scroll-y enhanced="{{true}}" show-scrollbar="{{false}}">
<view class="label">设置园区店集中接待电话</view> <view class="switch-v">
<switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.yqMerchantEnableFlag}}" bindchange="changeYQSwitch" data-target="info.yqMerchantEnableFlag" /> <view class="label">
</view> <view>领券必填项:车架号是否必填</view>
<view class="setItem {{info.yqMerchantEnableFlag?'':'itemOP'}}"> <view class="tips-text">(车主需输入车架号后六位)</view>
<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>
</view> </view>
<image class="icon-edit" bind:tap="editYQInfo" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" /> <switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.vinFlag}}" bindchange="changeCouponSwitch" data-target="info.vinFlag" />
</view> </view>
</view> <view class="switch-v">
<view class="switch-v"> <view class="label">设置园区店集中接待电话</view>
<view class="label">设置单店驻店接待电话</view> <switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.yqMerchantEnableFlag}}" bindchange="changeYQSwitch" data-target="info.yqMerchantEnableFlag" />
<switch color="#347BFF" class=" {{userInfo.userType == 2 ?'disabled':''}}" disabled="{{!isYqdSuper}}" checked="{{info.shopMerchantEnableFlag}}" bindchange="change4sSwitch" data-target="info.shopMerchantEnableFlag" /> </view>
</view> <view class="setItem {{info.yqMerchantEnableFlag?'':'itemOP'}}">
<block wx:for="{{info.shopMerchantConfigList}}" wx:key="index"> <view class="item-label">{{info.yqMerchantName}}</view>
<view class="setItem {{info.shopMerchantEnableFlag?'':'itemOP'}}"> <view class="input-item techicianInfoEdit" wx:if="{{info.isEdit}}">
<view class="item-label">{{item.shopMerchantName}}</view> <input placeholder="接待联系人" class="input name" placeholder-class="placeholder-class" maxlength="16" value="{{ info.contactName }}" bindinput="input" data-name="info.contactName" always-embed></input>
<view class="input-item techicianInfoEdit" wx:if="{{item.isEdit}}"> <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>
<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> <view class="btn" bind:tap="submitContactInfo">确认</view>
<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>
<view class="input-item techicianInfo" wx:else> <view class="input-item techicianInfo" wx:else>
<view class="left"> <view class="left">
<view class="label"> <view class="label">
<view class="name">{{item.contactName}}</view> <view class="name">{{info.contactName}}</view>
</view> </view>
<view class="phone">手机号 {{item.contactPhoneNumber}}</view> <view class="phone">手机号 {{info.contactPhoneNumber}}</view>
</view> </view>
<image class="icon-edit" bind:tap="editShopInfo" data-index="{{index}}" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" /> <image class="icon-edit" bind:tap="editYQInfo" src="{{IMG_URL}}/miniProgram/grayEditIcon.png" />
</view> </view>
</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>
<view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}"> <view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<tips-bottom custom-class="tips" style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" /> <tips-bottom custom-class="tips" style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!