Commit 44ddf271 by 李伟康

style(components): 优化多个组件的样式和布局

- 调整了多个组件的字体大小、颜色等样式
- 优化了部分组件的布局结构
- 统一了图标和按钮的样式
- 调整了部分间距和对齐方式
1 parent 03822fc5
......@@ -16,7 +16,7 @@
<uni-icons
class="icon-close"
type="closeempty"
:size="16"
:size="20"
color="#1A1A1A"
></uni-icons>
</view>
......@@ -106,6 +106,7 @@ export default {
height: 100%;
margin-left: auto;
padding: 0 toRpx(48);
font-weight: 700;
}
}
.content {
......
......@@ -60,7 +60,7 @@ export default {
//您可以通过修改 config-ucharts.js 文件中下标为 ['bar'] 的节点来配置全局默认参数,如都是默认参数,此处可以不传 opts 。实际应用过程中 opts 只需传入与全局默认参数中不一致的【某一个属性】即可实现同类型的图表显示不同的样式,达到页面简洁的需求。
opts: Object.freeze({
fontColor: '#333',
fontSize: 10,
fontSize: 12,
color: ["#2C66F7"],
padding: [20, 80, 0, 0],
enableScroll: false,
......
......@@ -35,7 +35,7 @@
>
<view
class="record-tips flex"
v-if="isPrePage && list.length && list[0] && list[0].length"
v-if="tabIndex == 1 && isPrePage && list.length && list[0] && list[0].length"
>
<uni-icons
type="info"
......@@ -187,7 +187,10 @@ export default {
}
},
mounted () {
uni.$on('refreshRecord', () => {
this.resetData()
this.getReceptionList()
})
},
methods: {
resetData () {
......@@ -393,7 +396,7 @@ export default {
await this.getPreRecordFail()
},
searchReceptionList ({ item }, name) {
if(this[name] == item.value) return
if (this[name] == item.value) return
this[name] = item.value
this.resetData()
this.getReceptionList()
......@@ -496,7 +499,7 @@ export default {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 70%;
width: 62%;
}
.goods-name {
font-weight: 500;
......
......@@ -315,7 +315,9 @@ export default {
}
}
.right {
width: toRpx(1354);
width: toRpx(1358);
border: toRpx(2) solid #fff;
box-sizing: border-box;
&-content {
width: 100%;
position: absolute;
......
......@@ -141,6 +141,7 @@ export default {
top: toRpx(8);
height: toRpx(28);
background: #00000066;
border-radius: toRpx(4);
font-size: toRpx(20);
}
}
......
......@@ -89,19 +89,21 @@ export default {
<style scoped lang='scss'>
.scene-market-box {
height: calc(100vh - #{toRpx(144)});
margin: toRpx(64) toRpx(48) 0;
margin: toRpx(64) toRpx(48) 0 0 ;
border-radius: toRpx(48);
background: #ffffff59;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
box-sizing: border-box;
overflow: hidden;
border: toRpx(2) solid #ffffff;
.scene-market-content {
width: 100%;
height: calc(100% - #{toRpx(128)});
background: #ffffff;
transform: translateY(toMinusRpx(32));
box-sizing: border-box;
border-radius: toRpx(48);
.tabs {
gap: toRpx(24);
padding: toRpx(40) toRpx(44);
......
......@@ -28,13 +28,13 @@
class="bg"
v-if="item.hide"
></view>
<view :class="['error-block',{hide:item.hide}]">
<!-- <view :class="['error-block',{hide:item.hide}]">
<uni-icons
:type="icon"
:size="size"
color="#909399"
></uni-icons>
</view>
</view> -->
</movable-view>
</template>
</movable-area>
......
......@@ -126,6 +126,7 @@ export default {
left: 0;
top: toRpx(128);
border-radius: toRpx(48);
overflow: hidden;
}
}
</style>
\ No newline at end of file
......@@ -11,7 +11,7 @@
<uni-icons
type="left"
:size="20"
color="#fff"
color="#1a1a1a"
></uni-icons>
</view>
<view class="title">{{ title }}</view>
......@@ -105,15 +105,15 @@ export default {
left: 0;
width: 100vw;
height: 100vh;
background: #000;
padding: toRpx(60) 0;
background: #f5f9ff;
padding: toRpx(60) 0 0;
z-index: 999;
.nav-bar {
width: 100%;
height: toRpx(96);
margin-bottom: toRpx(50);
display: flex;
align-items: center;
.back {
height: 100%;
aspect-ratio: 1/1;
......@@ -122,7 +122,7 @@ export default {
justify-content: center;
}
.title {
color: #fff;
color: #1a1a1a;
flex: 1;
font-size: toRpx(32);
font-weight: 700;
......@@ -131,7 +131,7 @@ export default {
}
.popup-body {
width: 100%;
height: calc(100% - #{toRpx(200)});
height: calc(100% - #{toRpx(96)});
video {
width: 100%;
height: 100%;
......@@ -140,7 +140,7 @@ export default {
height: 100%;
text-align: center;
image {
height: calc(100vh - #{toRpx(200)});
height: calc(100vh - #{toRpx(96)});
width: auto;
}
}
......
......@@ -266,6 +266,7 @@ export default {
const res = await uni.$api.receptionApi.findCheckResultByBatchId({
batchId
})
uni.$emit('refreshRecord')
console.log(JSON.parse(JSON.stringify(res)))
res.map(item => {
item.formatScore = `${item.score || item.score === 0 ? item.score : '-'}/${item.sumScore || item.sumScore === 0 ? item.sumScore : '-'}`
......
......@@ -36,9 +36,9 @@ export default {
show: {
immediate: true,
handler (newval) {
// setTimeout(() => {
// if (newval && this.hasCarBrand && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect()
// }, 1e3)
setTimeout(() => {
if (newval && this.hasCarBrand && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect()
}, 1e3)
}
},
watchCustomerInfo: {
......
......@@ -129,11 +129,11 @@ export default {
if (newval) this.customerInfo = newval
}
},
// show (n) {
// setTimeout(() => {
// if (n && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect()
// }, 1e3)
// }
show (n) {
setTimeout(() => {
if (n && !this.customerInfo.carModel && this.isAito) this.$refs.carBrandListVisible.autoSelect()
}, 1e3)
}
},
computed: {
watchCustomerInfo () {
......
......@@ -82,10 +82,10 @@ export default {
},
async onLoad () {
const mockdata = await uni.$api.systemApi.getMockData(true) //获取APP配置信息
// if(this.channelType == 1 && mockdata.boutiqueDefaultCarBrandId) {
// this.$store.state.user.boutiqueDefaultCarBrandId = mockdata.boutiqueDefaultCarBrandId //默认车辆品牌
// if(mockdata.defaultCarId) this.$store.state.user.defaultCarId = mockdata.defaultCarId //默认车系
// }
if(this.channelType == 1 && mockdata.boutiqueDefaultCarBrandId) {
this.$store.state.user.boutiqueDefaultCarBrandId = mockdata.boutiqueDefaultCarBrandId //默认车辆品牌
if(mockdata.defaultCarId) this.$store.state.user.defaultCarId = mockdata.defaultCarId //默认车系
}
this.get_Vehicle_Sales_Data()
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!