Commit 10c83f18 by wangzhihui

样式调整

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