Commit f88c876c by wangzhihui

bug、样式需改

1 parent caf70095
......@@ -167,7 +167,7 @@
}
.operation {
width: 108rpx;
width:auto;
height: 44rpx;
position: relative;
......@@ -175,7 +175,7 @@
}
.store-list {
border-radius: 16rpx;
border-radius: 12rpx;
background: #f5f5f7;
.store {
......@@ -184,7 +184,7 @@
align-items: center;
border-bottom: 2rpx solid #ffffff;
padding: 16rpx 32rpx;
box-sizing:border-box;
.choose-open {
width: 32rpx;
height: 32rpx;
......@@ -256,12 +256,7 @@
}
/*swtich整体大小及背景色*/
.wx-switch-input {
width: 108rpx !important;
height: 44rpx !important;
// background: #347BFF !important;
// border: #347BFF !important;
}
/*白色样式(false的样式)*/
.wx-switch-input::before {
......@@ -287,26 +282,28 @@
.operation {
.switch-text {
padding:0 16rpx;
width: 108rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
font-size: 24rpx;
font-size: 22rpx;
view{
position: absolute;
top:10rpx;
z-index:99;
}
}
.active{
left:5rpx;
}
.active{
margin-left:8rpx;
white-space:nowrap;
}
.disabled{
left:52rpx;
margin-left:52rpx;
white-space:nowrap;
}
}
.active-switch{
.van-switch {
width: 108rpx !important;
height: 44rpx !important;
}
}
\ No newline at end of file
......@@ -28,12 +28,12 @@
<view class="account-header">
<view class="park-name">账号{{i+1}}<view class="yqMerchant-box"><view class="text-hide">{{account.yqMerchantName}}</view>{{account.yqMerchantId}}</view></view>
<view class="operation">
<view class="switch-text">
<van-switch class="active-switch" checked="{{ account.deletedState }}" active-color="#347BFF" inactive-color="#D0D2D6" data-index="{{index}}" data-account-index="{{i}}" bind:change="onChange" size="26px" />
<view class="switch-text">
<view class="active" wx:if="{{ account.deletedState}}">启用</view>
<view class="disabled" wx:else>禁用</view>
</view>
<van-switch checked="{{ account.deletedState }}" active-color="#347BFF" inactive-color="#D0D2D6" data-index="{{index}}" data-account-index="{{i}}" bind:change="onChange" size="26px" />
<!-- <switch class="wx-switch-input" checked="{{switch1Checked}}" color="#347BFF" bindchange="switch1Change" /> -->
</view>
</view>
<view class="store-list">
......
......@@ -3,7 +3,10 @@ import api from '../../api'
let toastList = {
staffName: "员工姓名不能为空",
staffPhone: "手机号不能为空",
staffSceneLabel: "所属业务不能为空"
staffSceneLabel: "所属业务不能为空",
merchantId:"归属门店不能为空",
yqMerchantId:'关联账号不能为空'
};
Component({
/**
......@@ -20,6 +23,8 @@ Component({
isBusiness: false,
shopMerchantBox: false,
yqMerchartBox: false,
cellHeight:false,
cellStyle:"min-height:52px",
requiredList: [],
yqMerchartList: [],
staffObj: {
......@@ -44,8 +49,9 @@ Component({
} = e.currentTarget.dataset, {
staffObj: {
staffSceneLabel,
merchantId
}
merchantId,
},
yqMerchartList
} = this.data;
if (showName == 'shopMerchantBox' && staffSceneLabel == '') {
wx.$util.showToast(`请先选择所属业务`);
......@@ -55,6 +61,9 @@ Component({
wx.$util.showToast(`请先选择归属门店`);
return
}
if(showName == 'yqMerchartBox'&& yqMerchartList.length<=1){
return
}
this.setData({
[showName]: true
});
......
......@@ -4,23 +4,23 @@
<view class="info">增设的员工账号支持该手机号所绑定的员工登录「生意助手员工版」小程序开展业务录单。
仅支持新增深圳嘀加服务商下的员工账号</view>
<view class="box">
<gl-cell border valueAlign="right" label="员工姓名" requiredAfter labelWidth="var(--fontSize290)" required>
<gl-cell border valueAlign="right" label="员工姓名" cellHeight="{{cellHeight}}" cellStyle="{{cellStyle}}" requiredAfter labelWidth="var(--fontSize290)" required>
<input placeholder="请输入" value="{{staffObj.staffName}}" class="input" placeholder-class="placeholder-class" bindinput="input" data-name="staffObj.staffName" always-embed></input>
</gl-cell>
<gl-cell border valueAlign="right" label="手机号" requiredAfter labelWidth="var(--fontSize140)" required>
<gl-cell border valueAlign="right" label="手机号" cellHeight="{{cellHeight}}" cellStyle="{{cellStyle}}" requiredAfter labelWidth="var(--fontSize140)" required>
<input placeholder="请输入" class="input" value="{{staffObj.staffPhone}}" type="number" maxlength="11" placeholder-class="placeholder-class" bindinput="input" bindblur="phoneBlur" data-name="staffObj.staffPhone" always-embed></input>
</gl-cell>
<gl-cell border valueAlign="right" label="所属业务" requiredAfter labelWidth="var(--fontSize180)" required haveArrow bindclick="showPopup"data-show-name="isBusiness" placeholder="点击选择">
<gl-cell border valueAlign="right" label="所属业务" cellHeight="{{cellHeight}}" cellStyle="{{cellStyle}}" requiredAfter labelWidth="var(--fontSize180)" required haveArrow bindclick="showPopup"data-show-name="isBusiness" placeholder="点击选择">
<block wx:if="{{ staffObj.staffSceneLabelText }}">
<view class="between">{{staffObj.staffSceneLabelText}}</view>
</block>
</gl-cell>
<gl-cell border valueAlign="right" label="归属门店" requiredAfter labelWidth="var(--fontSize180)" haveArrow bindclick="showPopup" data-show-name="shopMerchantBox" placeholder="点击选择">
<gl-cell border valueAlign="right" required label="归属门店" cellHeight="{{cellHeight}}" cellStyle="{{cellStyle}}" requiredAfter labelWidth="var(--fontSize180)" haveArrow bindclick="showPopup" data-show-name="shopMerchantBox" placeholder="点击选择">
<block wx:if="{{ staffObj.merchantId }}">
<view class="between">{{staffObj.merchantName}}{{staffObj.merchantId}}</view>
</block>
</gl-cell>
<gl-cell valueAlign="right" label="关联账号" requiredAfter labelWidth="var(--fontSize290)" haveArrow bindclick="showPopup" data-show-name="yqMerchartBox" placeholder="点击选择" >
<gl-cell valueAlign="right" label="关联账号" required cellHeight="{{cellHeight}}" cellStyle="{{cellStyle}}" requiredAfter labelWidth="var(--fontSize290)" haveArrow="{{yqMerchartList.length>1}}" bindclick="showPopup" data-show-name="yqMerchartBox" placeholder="点击选择" >
<block wx:if="{{ staffObj.yqMerchantName }}">
<view class="between">{{staffObj.yqMerchantName}}{{staffObj.yqMerchantId}}</view>
</block>
......
......@@ -7,7 +7,7 @@
.item {
padding: 24rpx 4rpx;
box-sizing: border-box;
border-bottom: 2rpx solid #EBEDF0;
border-bottom: var(--fontSize1) solid #EFF0F2;
.item-hd {
display: flex;
......
......@@ -24,7 +24,7 @@ Component({
total: 0,
pageNum: 1,
pageSize:20,
storeIndex: null,
storeIndex: 0,
shopMerchantList: [{
shopMerchantId: 44367642,
shopMerchantName: '玉林市弘森汽车销售服务有限公司'
......@@ -109,7 +109,8 @@ Component({
let {
shopMerchantList,
storeIndex
} = this.data, {
} = this.data;
let {
shopMerchantId,
shopMerchantName
} = shopMerchantList[storeIndex];
......@@ -136,7 +137,7 @@ Component({
shopMerchantBox: false,
})
this.setData({
storeIndex: null
storeIndex: 0
})
},
},
......
......@@ -23,7 +23,9 @@ Page({
let target = [
"staffName",
"staffPhone",
"staffSceneLabel"
"staffSceneLabel",
"merchantId",
"yqMerchantId"
];
obj = {
......
......@@ -51,4 +51,9 @@ page {
margin-left: -32rpx;
}
}
}
.navigation-bar-wrap{
.navigation-bar{
box-shadow:none;
}
}
\ No newline at end of file
<navigation-bar bindnavbarReady="navbarReady" bindback="back" showBack="true" navStyle="{{navStyle}}">驻店管理-深圳嘀加</navigation-bar>
<navigation-bar bindnavbarReady="navbarReady" class="navigation-bar-wrap" bindback="back" showBack="true" navStyle="{{navStyle}}">驻店管理-深圳嘀加</navigation-bar>
<view class="bg"></view>
<view class="content">
<view class="tabs" >
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!