Commit 50e5d20b by 前端

Merge branch 'v1.0.7' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.7

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