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'] ...@@ -11,6 +11,7 @@ const PATH = ['/pages/common/caseDetail']
const keepAlive = uni.requireNativePlugin('Ba-KeepAliveSuit') const keepAlive = uni.requireNativePlugin('Ba-KeepAliveSuit')
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { Ws } from '@/ws/Ws.js' import { Ws } from '@/ws/Ws.js'
import permision from '@/js_sdk/wa-permission/permission.js'
export default { export default {
computed: { computed: {
...mapState('audio', ['isEnd', 'isStart']) ...mapState('audio', ['isEnd', 'isStart'])
...@@ -21,6 +22,7 @@ export default { ...@@ -21,6 +22,7 @@ export default {
setTimeout(() => { setTimeout(() => {
plus.screen.unlockOrientation() //解除锁定屏幕方向 plus.screen.unlockOrientation() //解除锁定屏幕方向
plus.screen.lockOrientation('landscape-primary') plus.screen.lockOrientation('landscape-primary')
permision.requestAndroidPermission('android.permission.RECORD_AUDIO') // 进入界面时检查权限
}, 300) }, 300)
uni.setKeepScreenOn({ uni.setKeepScreenOn({
keepScreenOn: true keepScreenOn: true
......
...@@ -128,14 +128,14 @@ export default { ...@@ -128,14 +128,14 @@ export default {
overflow: hidden; overflow: hidden;
.tag { .tag {
position: absolute; position: absolute;
width: 192rpx; width: toRpx(192);
height: 72rpx; height: toRpx(72);
border-radius: 0 0 toRpx(48) 0; border-radius: 0 0 toRpx(48) 0;
background: #4673ff1a; background: #4673ff1a;
left: 0; left: 0;
top: 0; top: 0;
color: #4673ff; color: #4673ff;
font-size: 28rpx; font-size: toRpx(28);
justify-content: center; justify-content: center;
} }
// &::before, // &::before,
......
...@@ -326,26 +326,26 @@ export default { ...@@ -326,26 +326,26 @@ export default {
} }
.select-box { .select-box {
position: absolute; position: absolute;
top: 36rpx; top: toRpx(36);
right: 32rpx; right: toRpx(32);
/deep/.select { /deep/.select {
width: 148rpx; width: toRpx(148);
height: 48rpx; height: toRpx(48);
border-radius: 12rpx; border-radius: toRpx(12);
background: #ffffff59; background: #ffffff59;
backdrop-filter: blur(16rpx); backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
color: #333333; color: #333333;
font-size: 26rpx; font-size: toRpx(26);
padding-left: 32rpx; padding-left: toRpx(32);
.icon-arrow-bottom { .icon-arrow-bottom {
zoom: 0.75; zoom: 0.75;
} }
} }
/deep/.pop-box { /deep/.pop-box {
top: 64rpx; top: toRpx(64);
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: toRpx(28);
} }
} }
} }
......
...@@ -92,15 +92,15 @@ export default { ...@@ -92,15 +92,15 @@ export default {
height: 100%; height: 100%;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 28rpx 48rpx; gap: toRpx(28) toRpx(48);
padding: 0 44rpx; padding: 0 toRpx(44);
align-content: flex-start; align-content: flex-start;
.item { .item {
width: calc((100% - 96rpx) / 3); width: calc((100% - #{toRpx(96)}) / 3);
height: 164rpx; height: toRpx(164);
border-radius: 16rpx; border-radius: toRpx(16);
background: #ffffff; background: #ffffff;
box-shadow: 0 8rpx 24rpx 0 #2c66f71a; box-shadow: 0 toRpx(8) toRpx(24) 0 #2c66f71a;
} }
.bottom { .bottom {
margin-top: auto; margin-top: auto;
......
...@@ -557,10 +557,10 @@ export default { ...@@ -557,10 +557,10 @@ export default {
height: 100%; height: 100%;
flex-direction: column; flex-direction: column;
color: #999999; color: #999999;
font-size: 20rpx; font-size: toRpx(20);
&-icon { &-icon {
width: 344rpx; width: toRpx(344);
height: 208rpx; height: toRpx(208);
} }
} }
} }
......
...@@ -66,9 +66,9 @@ export default { ...@@ -66,9 +66,9 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.learn-box { .learn-box {
width: 848rpx; width: toRpx(848);
height: 648rpx; height: toRpx(648);
border-radius: 48rpx; border-radius: toRpx(48);
background: #ffffff; background: #ffffff;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
...@@ -79,33 +79,33 @@ export default { ...@@ -79,33 +79,33 @@ export default {
zoom: 2; zoom: 2;
} }
.learn-content { .learn-content {
padding: 296rpx 64rpx 32rpx; padding: toRpx(296) toRpx(64) toRpx(32);
text-align: center; text-align: center;
.learn-title { .learn-title {
color: #333333; color: #333333;
font-size: 40rpx; font-size: toRpx(40);
font-weight: 500; font-weight: 500;
margin-bottom: 16rpx; margin-bottom: toRpx(16);
} }
.learn-text { .learn-text {
color: #666666; color: #666666;
font-size: 32rpx; font-size: toRpx(32);
} }
} }
.learn-footer { .learn-footer {
height: 160rpx; height: toRpx(160);
padding: 0 64rpx; padding: 0 toRpx(64);
justify-content: space-between; justify-content: space-between;
.learn-btn { .learn-btn {
width: 344rpx; width: toRpx(344);
height: 80rpx; height: toRpx(80);
border-radius: 64rpx; border-radius: toRpx(64);
background: #f0f1f5; background: #f0f1f5;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: #1a1a1a; color: #1a1a1a;
font-size: 28rpx; font-size: toRpx(28);
} }
.learn-cancel { .learn-cancel {
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
......
...@@ -389,7 +389,7 @@ export default { ...@@ -389,7 +389,7 @@ export default {
} }
.module-dots { .module-dots {
position: absolute; position: absolute;
bottom: 56rpx; bottom: toRpx(56);
right: toRpx(48); right: toRpx(48);
gap: toRpx(12); gap: toRpx(12);
.dot { .dot {
......
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
.AI-title { .AI-title {
height: 5.73vh; height: 5.73vh;
padding-top: 2.08vh; padding-top: 2.08vh;
font-size: 34rpx; font-size: toRpx(34);
font-weight: 500; font-weight: 500;
justify-content: center; justify-content: center;
color: #333333; color: #333333;
......
...@@ -602,7 +602,7 @@ export default { ...@@ -602,7 +602,7 @@ export default {
.AI-title { .AI-title {
height: 5.73vh; height: 5.73vh;
padding-top: 2.08vh; padding-top: 2.08vh;
font-size: 34rpx; font-size: toRpx(34);
font-weight: 500; font-weight: 500;
justify-content: center; justify-content: center;
color: #333333; color: #333333;
......
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
.AI-title { .AI-title {
height: 5.73vh; height: 5.73vh;
padding-top: 2.08vh; padding-top: 2.08vh;
font-size: 34rpx; font-size: toRpx(34);
font-weight: 500; font-weight: 500;
justify-content: center; justify-content: center;
color: #333333; color: #333333;
......
...@@ -566,7 +566,7 @@ export default { ...@@ -566,7 +566,7 @@ export default {
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
color: #808291; color: #808291;
font-size: 28rpx; font-size: toRpx(28);
background: #fff; background: #fff;
} }
.axis-bar-area { .axis-bar-area {
......
...@@ -299,7 +299,7 @@ export default { ...@@ -299,7 +299,7 @@ export default {
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
color: #808291; color: #808291;
font-size: 28rpx; font-size: toRpx(28);
background: #fff; background: #fff;
} }
} }
......
...@@ -89,11 +89,11 @@ export default { ...@@ -89,11 +89,11 @@ export default {
.car-options { .car-options {
&::before { &::before {
content: ''; content: '';
width: 2rpx; width: toRpx(2);
height: 36rpx; height: toRpx(36);
opacity: 1; opacity: 1;
background: #333333; background: #333333;
margin: 0 24rpx; margin: 0 toRpx(24);
} }
} }
} }
......
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
.notice-container { .notice-container {
display: flex; display: flex;
background-color: #fff; background-color: #fff;
padding: toRpx(48) 68rpx toRpx(56); padding: toRpx(48) toRpx(68) toRpx(56);
font-size: toRpx(26); font-size: toRpx(26);
color: #141414; color: #141414;
border-radius: 0 0 toRpx(40) toRpx(40); 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!