Commit bda1ca94 by 李伟康

feat(App): 添加录音权限请求并优化多个组件样式

- 在 App.vue 中添加了录音权限请求
- 优化了多个组件的样式,包括 CenterPopup、ReceptionCenter、SceneList 等
- 统一使用 toRpx 函数进行单位转换,提高代码一致性
- 调整了部分样式属性,如 font-size、width、height 等
1 parent afb8ff07
......@@ -11,6 +11,7 @@ const PATH = ['/pages/common/caseDetail']
const keepAlive = uni.requireNativePlugin('Ba-KeepAliveSuit')
import { mapState } from 'vuex'
import { Ws } from '@/ws/Ws.js'
import permision from '@/js_sdk/wa-permission/permission.js'
export default {
computed: {
...mapState('audio', ['isEnd', 'isStart'])
......@@ -21,6 +22,7 @@ export default {
setTimeout(() => {
plus.screen.unlockOrientation() //解除锁定屏幕方向
plus.screen.lockOrientation('landscape-primary')
permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限
}, 300)
uni.setKeepScreenOn({
keepScreenOn: true
......
......@@ -128,14 +128,14 @@ export default {
overflow: hidden;
.tag {
position: absolute;
width: 192rpx;
height: 72rpx;
width: toRpx(192);
height: toRpx(72);
border-radius: 0 0 toRpx(48) 0;
background: #4673ff1a;
left: 0;
top: 0;
color: #4673ff;
font-size: 28rpx;
font-size: toRpx(28);
justify-content: center;
}
// &::before,
......
......@@ -326,26 +326,26 @@ export default {
}
.select-box {
position: absolute;
top: 36rpx;
right: 32rpx;
top: toRpx(36);
right: toRpx(32);
/deep/.select {
width: 148rpx;
height: 48rpx;
border-radius: 12rpx;
width: toRpx(148);
height: toRpx(48);
border-radius: toRpx(12);
background: #ffffff59;
backdrop-filter: blur(16rpx);
box-shadow: inset 0 0 16rpx 0 #ffffff;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
color: #333333;
font-size: 26rpx;
padding-left: 32rpx;
font-size: toRpx(26);
padding-left: toRpx(32);
.icon-arrow-bottom {
zoom: 0.75;
}
}
/deep/.pop-box {
top: 64rpx;
top: toRpx(64);
color: #292d33;
font-size: 28rpx;
font-size: toRpx(28);
}
}
}
......
......@@ -92,15 +92,15 @@ export default {
height: 100%;
display: flex;
flex-wrap: wrap;
gap: 28rpx 48rpx;
padding: 0 44rpx;
gap: toRpx(28) toRpx(48);
padding: 0 toRpx(44);
align-content: flex-start;
.item {
width: calc((100% - 96rpx) / 3);
height: 164rpx;
border-radius: 16rpx;
width: calc((100% - #{toRpx(96)}) / 3);
height: toRpx(164);
border-radius: toRpx(16);
background: #ffffff;
box-shadow: 0 8rpx 24rpx 0 #2c66f71a;
box-shadow: 0 toRpx(8) toRpx(24) 0 #2c66f71a;
}
.bottom {
margin-top: auto;
......
......@@ -557,10 +557,10 @@ export default {
height: 100%;
flex-direction: column;
color: #999999;
font-size: 20rpx;
font-size: toRpx(20);
&-icon {
width: 344rpx;
height: 208rpx;
width: toRpx(344);
height: toRpx(208);
}
}
}
......
......@@ -66,9 +66,9 @@ export default {
<style scoped lang='scss'>
.learn-box {
width: 848rpx;
height: 648rpx;
border-radius: 48rpx;
width: toRpx(848);
height: toRpx(648);
border-radius: toRpx(48);
background: #ffffff;
position: relative;
overflow: hidden;
......@@ -79,33 +79,33 @@ export default {
zoom: 2;
}
.learn-content {
padding: 296rpx 64rpx 32rpx;
padding: toRpx(296) toRpx(64) toRpx(32);
text-align: center;
.learn-title {
color: #333333;
font-size: 40rpx;
font-size: toRpx(40);
font-weight: 500;
margin-bottom: 16rpx;
margin-bottom: toRpx(16);
}
.learn-text {
color: #666666;
font-size: 32rpx;
font-size: toRpx(32);
}
}
.learn-footer {
height: 160rpx;
padding: 0 64rpx;
height: toRpx(160);
padding: 0 toRpx(64);
justify-content: space-between;
.learn-btn {
width: 344rpx;
height: 80rpx;
border-radius: 64rpx;
width: toRpx(344);
height: toRpx(80);
border-radius: toRpx(64);
background: #f0f1f5;
display: flex;
align-items: center;
justify-content: center;
color: #1a1a1a;
font-size: 28rpx;
font-size: toRpx(28);
}
.learn-cancel {
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
......
......@@ -389,7 +389,7 @@ export default {
}
.module-dots {
position: absolute;
bottom: 56rpx;
bottom: toRpx(56);
right: toRpx(48);
gap: toRpx(12);
.dot {
......
......@@ -159,7 +159,7 @@ export default {
.AI-title {
height: 5.73vh;
padding-top: 2.08vh;
font-size: 34rpx;
font-size: toRpx(34);
font-weight: 500;
justify-content: center;
color: #333333;
......
......@@ -602,7 +602,7 @@ export default {
.AI-title {
height: 5.73vh;
padding-top: 2.08vh;
font-size: 34rpx;
font-size: toRpx(34);
font-weight: 500;
justify-content: center;
color: #333333;
......
......@@ -163,7 +163,7 @@ export default {
.AI-title {
height: 5.73vh;
padding-top: 2.08vh;
font-size: 34rpx;
font-size: toRpx(34);
font-weight: 500;
justify-content: center;
color: #333333;
......
......@@ -566,7 +566,7 @@ export default {
flex-direction: column;
justify-content: center;
color: #808291;
font-size: 28rpx;
font-size: toRpx(28);
background: #fff;
}
.axis-bar-area {
......
......@@ -299,7 +299,7 @@ export default {
flex-direction: column;
justify-content: center;
color: #808291;
font-size: 28rpx;
font-size: toRpx(28);
background: #fff;
}
}
......
......@@ -89,11 +89,11 @@ export default {
.car-options {
&::before {
content: '';
width: 2rpx;
height: 36rpx;
width: toRpx(2);
height: toRpx(36);
opacity: 1;
background: #333333;
margin: 0 24rpx;
margin: 0 toRpx(24);
}
}
}
......
......@@ -88,7 +88,7 @@ export default {
.notice-container {
display: flex;
background-color: #fff;
padding: toRpx(48) 68rpx toRpx(56);
padding: toRpx(48) toRpx(68) toRpx(56);
font-size: toRpx(26);
color: #141414;
border-radius: 0 0 toRpx(40) toRpx(40);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!