Commit e03ca109 by 李伟康

commit 修改登录样式&接待记录样式

1 parent d570d71a
No preview for this file type
......@@ -69,8 +69,8 @@
class="record-list"
:style="{
height:
firstIndex == 0 ? 'calc(100% - 300rpx)' : 'calc(100% - 180rpx)',
'margin-top': firstIndex == 0 ? '24rpx' : '-20rpx',
firstIndex == 0 ? 'calc(100% - 292rpx)' : 'calc(100% - 176rpx)',
'margin-top': firstIndex == 0 ? '40rpx' : '0',
}"
scroll-y
@scrolltolower="pageonReachBottom"
......@@ -418,6 +418,10 @@ export default {
margin-top: 48rpx;
height: calc(100vh - 440rpx);
margin-right: 66rpx;
box-shadow: inset 0 0 16rpx 0 #FFFFFF;
border: 2rpx solid #fff;
box-sizing: border-box;
position: relative;
.type-box {
position: relative;
display: flex;
......@@ -617,16 +621,20 @@ export default {
}
}
.tabs-bottom {
margin-top: -45rpx;
background: #fff;
height: 45rpx;
height: 48rpx;
position: relative;
z-index: 3;
border-radius: 24px 24px 0 0;
position: absolute;
width: 100%;
top: 128rpx;
}
.data-tabs-box {
position: relative;
top: 0;
z-index: 3;
margin-top: -8rpx;
.data-tabs {
display: flex;
justify-content: space-between;
......
......@@ -57,6 +57,18 @@
/>
</template>
</view>
<template v-if="searchValue">
<view
class="clear"
@click="clear"
>
<uni-icons
type="closeempty"
:size="16"
color="#1A1A1A"
></uni-icons>
</view>
</template>
</view>
</template>
<scroll-view
......@@ -100,9 +112,9 @@ export default {
}
},
onLoad (options) {
if(options.stepIndex == 1 ) {
this.$nextTick(()=>{
this.$refs.account.getListSelectAccount(true)
if (options.stepIndex == 1) {
this.$nextTick(() => {
this.$refs.account.getListSelectAccount(true)
})
}
},
......@@ -127,19 +139,24 @@ export default {
},
chooseAccount (userInfo) {
this.stepIndex = 1
this.searchValue = ''
this.$nextTick(() => {
this.$refs.merchant.init(userInfo)
})
},
chooseMerchant (userInfo) {
this.stepIndex = 2
this.searchValue = ''
this.$refs.scene.init(userInfo)
},
setStep (index) {
let { stepIndex } = this
if (index == 2) return
if (stepIndex > index) this.stepIndex = index
},
clear () {
this.searchValue = ''
this.search()
}
}
}
......@@ -160,7 +177,7 @@ export default {
height: 100%;
left: 0;
top: 0;
background-image: url("../../assets/images/login/account-bg.webp");
background-image: url('../../assets/images/login/account-bg.webp');
background-size: 100% 100%;
}
.nav-bar {
......@@ -206,7 +223,7 @@ export default {
bottom: 0;
right: 0;
border: 2rpx solid #b1b1b1;
content: "";
content: '';
border-radius: 100%;
}
.text {
......@@ -246,7 +263,7 @@ export default {
background: #ffffff59;
&::after {
position: absolute;
content: "";
content: '';
left: 0;
top: 0;
width: 100%;
......@@ -269,9 +286,9 @@ export default {
border-radius: 16rpx;
box-sizing: border-box;
color: #333;
box-sizing: border-box;
padding: 0 24rpx;
font-size: 28rpx;
position: relative;
.input {
display: flex;
align-items: center;
......@@ -289,12 +306,22 @@ export default {
color: #999999;
}
}
.clear {
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
padding: 0 32rpx;
height: 100%;
display: flex;
align-items: center;
}
}
.list {
position: relative;
z-index: 2;
height: calc(100% - 176rpx);
& ::-webkit-scrollbar{
& ::-webkit-scrollbar {
background-color: #ffffff59 !important;
}
& ::-webkit-scrollbar-thumb {
......
......@@ -28,19 +28,19 @@
</template>
</template>
<template v-else>
<view class="list-not">
暂无内容
</view>
<no-data />
</template>
</view>
</template>
<script type='text/ecmascript-6'>
import { loginMixin } from '@/mixin/index'
import NoData from './NoData.vue'
export default {
mixins: [loginMixin],
name: '',
components: {
NoData
},
data () {
return {
copyLoginUserInfoList: [],
......@@ -132,7 +132,7 @@ export default {
title: '获取4S店列表失败',
icon: 'none',
})
}).catch(()=>{
}).catch(() => {
uni.hideLoading()
})
},
......@@ -242,10 +242,5 @@ export default {
.active {
border: 4rpx solid #347bff;
}
.list-not {
font-size: 28rpx;
color: #999999;
margin: auto;
}
}
</style>
\ No newline at end of file
......@@ -25,15 +25,15 @@
</template>
</template>
<template v-else>
<view class="list-not">
暂无内容
</view>
<no-data />
</template>
</template>
</view>
</template>
<script type='text/ecmascript-6'>
import NoData from './NoData.vue'
export default {
name: 'MerchantList',
data () {
......@@ -47,8 +47,8 @@ export default {
selectMerchantId: ''
}
},
onLoad () {
components: {
NoData
},
methods: {
init (userInfo) {
......@@ -196,10 +196,5 @@ export default {
.active {
border: 4rpx solid #347bff;
}
.list-not {
font-size: 28rpx;
color: #999999;
margin: auto;
}
}
</style>
\ No newline at end of file
<template>
<view class="list-not">
<image
src="@/assets/images/login/nothing.webp"
class="list-not-img"
/>
暂无内容
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'NoData',
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.list-not {
font-size: 28rpx;
color: #999999;
margin: auto;
text-align: center;
&-img {
width: 676rpx;
height: 284rpx;
margin: 192rpx auto 24rpx;
display: block;
}
}
</style>
\ No newline at end of file
......@@ -66,7 +66,7 @@ export default {
}).then(result => {
uni.hideLoading()
this.openSceneArr = result.map(val => { if (val.sceneOpenFlag == 0) return val.scene }) || []
}).catch(()=>{
}).catch(() => {
uni.hideLoading()
})
},
......@@ -81,6 +81,9 @@ export default {
sceneList[index].actived = true
this.sceneList = sceneList
userInfo.sceneType = sceneType
uni.showLoading({
mask: true
})
if (userInfo?.isSuper) this.jump(userInfo)
else {
try {
......@@ -91,6 +94,7 @@ export default {
})
if (data) this.jump(userInfo, data)
} catch (error) {
uni.hideLoading()
uni.showToast({
title: error,
icon: 'none'
......@@ -100,6 +104,7 @@ export default {
},
jump (userInfo, data) {
uni.hideLoading()
if (data) userInfo.loginRoleOnSelectMerchant = data?.loginRoleOnSelectMerchant
uni.$storage.set('userInfo', userInfo)
let url = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!