Commit f88c876c by wangzhihui

bug、样式需改

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