Commit 44ddf271 by 李伟康

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

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