Commit 10c83f18 by wangzhihui

样式调整

1 parent 68bdf7af
...@@ -14,13 +14,13 @@ Component({ ...@@ -14,13 +14,13 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
nothing:false, nothing: false,
showModal: false, showModal: false,
showTimeModal: false, showTimeModal: false,
isFlag: false, isFlag: false,
total: 0, total: 0,
pageNum: 1, pageNum: 1,
pageSize:10, pageSize: 10,
staffNameOrPhone: "", staffNameOrPhone: "",
IMG_URL, IMG_URL,
accountList: [], accountList: [],
...@@ -123,8 +123,8 @@ Component({ ...@@ -123,8 +123,8 @@ Component({
deferredOpenState, deferredOpenState,
id id
} = accountList[index].staffAccountList[accountIndex].staffConfigList[storeIndex] } = accountList[index].staffAccountList[accountIndex].staffConfigList[storeIndex]
console.log( accountList[index].staffAccountList[accountIndex].staffConfigList[storeIndex])
this.setData({ this.setData({
showTimeModal: true,
disableObj: { disableObj: {
index, index,
accountIndex, accountIndex,
...@@ -138,6 +138,18 @@ Component({ ...@@ -138,6 +138,18 @@ Component({
// success: true, // success: true,
// dialogText: `是否${!deletedState?'启用':'禁用'}该员工${yqMerchantName}${yqMerchantId}登录账号` // dialogText: `是否${!deletedState?'启用':'禁用'}该员工${yqMerchantName}${yqMerchantId}登录账号`
}) })
if (!deferredOpenState) {
this.setData({
showTimeModal: true,
})
} else {
let e = {
detail: {
startEffectiveTime: ''
}
}
this.timeConfirm(e)
}
}, },
dialogTimeClose() { dialogTimeClose() {
this.setData({ this.setData({
...@@ -263,7 +275,10 @@ Component({ ...@@ -263,7 +275,10 @@ Component({
} }
api.getDailyReportConfigList(params).then(res => { api.getDailyReportConfigList(params).then(res => {
if (res.code == 0) { if (res.code == 0) {
let {list, total} = res.data; let {
list,
total
} = res.data;
res.data.list.forEach(item => { res.data.list.forEach(item => {
item.labelArr = item.staffSceneLabel.split(',') item.labelArr = item.staffSceneLabel.split(',')
item.staffAccountList.forEach(account => { item.staffAccountList.forEach(account => {
...@@ -278,36 +293,39 @@ Component({ ...@@ -278,36 +293,39 @@ Component({
account.unfold = true account.unfold = true
}) })
}) })
let tempList=pageNum == 1 ? list : [...accountList, ...list] let tempList = pageNum == 1 ? list : [...accountList, ...list]
this.setData({ this.setData({
accountList: tempList, accountList: tempList,
isFlag: true, isFlag: true,
total: total, total: total,
nothing: pageNum == 1?false: total == tempList.length, nothing: pageNum == 1 ? false : total == tempList.length,
}) })
} }
}) })
}, },
goToStaff(e){ goToStaff(e) {
let { let {
index index
} = e.currentTarget.dataset, { } = e.currentTarget.dataset, {
accountList accountList
} = this.data; } = this.data;
let {staffPhone,staffName}=accountList[index] let {
staffPhone,
staffName
} = accountList[index]
let pageInstance = wx.$router.getPageInstance() let pageInstance = wx.$router.getPageInstance()
pageInstance.setData({ pageInstance.setData({
activeIndex:0 activeIndex: 0
},()=>{ }, () => {
let thisPage = pageInstance.selectComponent(`#componet-0`) let thisPage = pageInstance.selectComponent(`#componet-0`)
thisPage.setData({ thisPage.setData({
'staffObj.staffName':staffName, 'staffObj.staffName': staffName,
'staffObj.staffPhone':staffPhone 'staffObj.staffPhone': staffPhone
}) })
}) })
}, },
// 触底刷新 // 触底刷新
mineReachBottom() { mineReachBottom() {
......
...@@ -138,16 +138,21 @@ ...@@ -138,16 +138,21 @@
display: flex; display: flex;
align-items: center; align-items: center;
white-space: nowrap; white-space: nowrap;
width:calc(100% - 164rpx);
text { .yqMerchant-box {
width: calc(100% - 64rpx); display: flex;
align-items: center;
font-size: 28rpx; font-size: 28rpx;
color: #292d33; color: #292d33;
margin-left: 16rpx; margin-left: 16rpx;
display: inline-block; width:calc(100% - 74rpx);
}
.text-hide {
max-width: calc(100vw - 100rpx);
overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
overflow: hidden;
} }
} }
...@@ -173,21 +178,30 @@ ...@@ -173,21 +178,30 @@
.choose-open { .choose-open {
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
.select{
width:100%; .select {
height:100%; width: 100%;
height: 100%;
} }
} }
.store-info { .store-info {
margin-left: 32rpx; margin-left: 32rpx;
width:calc(100% - 64rpx);
.name { .name {
color: #292d33; color: #292d33;
font-size: 24rpx; font-size: 24rpx;
line-height: 36rpx; line-height: 36rpx;
margin-bottom: 4rpx; margin-bottom: 4rpx;
white-space: nowrap; white-space: nowrap;
display: flex;
align-items: center;
.text-hide {
max-width: calc(100vw - 100rpx);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
} }
.time { .time {
...@@ -211,15 +225,16 @@ ...@@ -211,15 +225,16 @@
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
margin-left: 14rpx; margin-left: 14rpx;
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.down{
.down {
transform: rotate(180deg); transform: rotate(180deg);
} }
} }
...@@ -252,7 +267,8 @@ ...@@ -252,7 +267,8 @@
.wx-switch-input { .wx-switch-input {
zoom: 0.8; zoom: 0.8;
} }
.list-nothing, .list-nothing,
.list-not { .list-not {
text-align: center; text-align: center;
} }
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</view> </view>
<view class="info">员工调店分配新门店账号,业务督导需要处理员工的账号管理,若旧门店账号不再使用,请禁用旧账号,请标记勾选员工所在店面</view> <view class="info">员工调店分配新门店账号,业务督导需要处理员工的账号管理,若旧门店账号不再使用,请禁用旧账号,请标记勾选员工所在店面</view>
<view class="title">账号列表<text>请勾选员工目前调岗在店的门店名称</text></view> <view class="title">账号列表<text>请勾选员工目前调岗在店的门店名称</text></view>
<scroll-view class="account-box" style="height: calc(100vh - var(--fontSize160));" enhanced="{{true}}" show-scrollbar="{{false}}" scroll-y bindscrolltolower="mineReachBottom"> <scroll-view class="account-box" style="height: calc(100vh - var(--fontSize640));" enhanced="{{true}}" show-scrollbar="{{false}}" scroll-y bindscrolltolower="mineReachBottom">
<view class="list" wx:if="{{accountList.length>0}}"> <view class="list" wx:if="{{accountList.length>0}}">
<view class="item" wx:for="{{accountList}}" wx:key="index"> <view class="item" wx:for="{{accountList}}" wx:key="index">
<view class="header"> <view class="header">
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<view class="item-content"> <view class="item-content">
<view class="content-account" wx:for="{{item.staffAccountList}}" wx:for-item="account" wx:for-index="i" wx:key="i"> <view class="content-account" wx:for="{{item.staffAccountList}}" wx:for-item="account" wx:for-index="i" wx:key="i">
<view class="account-header"> <view class="account-header">
<view class="park-name">账号{{i+1}}<text>{{account.yqMerchantName}}{{account.yqMerchantId}}</text></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 checked="{{ account.deletedState }}" active-color="#347BFF" inactive-color="#fff" data-index="{{index}}" data-account-index="{{i}}" bind:change="onChange" size="24px" /> <van-switch checked="{{ account.deletedState }}" active-color="#347BFF" inactive-color="#fff" data-index="{{index}}" data-account-index="{{i}}" bind:change="onChange" size="24px" />
<!-- <switch class="wx-switch-input" checked="{{switch1Checked}}" color="#347BFF" bindchange="switch1Change" /> --> <!-- <switch class="wx-switch-input" checked="{{switch1Checked}}" color="#347BFF" bindchange="switch1Change" /> -->
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</view> </view>
</view> </view>
<view class="store-info"> <view class="store-info">
<view class="name">{{store.merchantName}}{{store.merchantId}}</view> <view class="name"><view class="text-hide">{{store.merchantName}}</view>{{store.merchantId}}</view>
<view class="time" wx:if="{{store.startEffectiveTime}}">生效时间:{{store.startEffectiveTime?store.startEffectiveTime:'--'}}</view> <view class="time" wx:if="{{store.startEffectiveTime}}">生效时间:{{store.startEffectiveTime?store.startEffectiveTime:'--'}}</view>
</view> </view>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!