Commit cdae6c79 by Lin

fix(HomeFrame): 修复预学习首页弹框信息获取逻辑及样式调整

- 添加条件判断以确保仅在特定场景类型下获取弹框信息。
- 调整接收按钮的高度和对齐方式,优化用户界面布局。
1 parent 70efb558
...@@ -777,6 +777,7 @@ export default { ...@@ -777,6 +777,7 @@ export default {
* @desc 查询预学习首页弹框信息 * @desc 查询预学习首页弹框信息
*/ */
async getPrelearnHome() { async getPrelearnHome() {
if (this.sceneType != 1) return
try { try {
const res = await uni.$api.commonApi.getPrelernHomePopupAPI() const res = await uni.$api.commonApi.getPrelernHomePopupAPI()
console.log('预学习:查询预学习首页弹框信息***', res); console.log('预学习:查询预学习首页弹框信息***', res);
...@@ -1255,7 +1256,8 @@ export default { ...@@ -1255,7 +1256,8 @@ export default {
.reception-btn { .reception-btn {
width: toRpx(640); width: toRpx(640);
height: toRpx(88); height: toRpx(72);
align-self: center;
text-align: center; text-align: center;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -1265,7 +1267,6 @@ export default { ...@@ -1265,7 +1267,6 @@ export default {
background: linear-gradient(90deg, #61C0FF 0%, #2C66F7 100%); background: linear-gradient(90deg, #61C0FF 0%, #2C66F7 100%);
border-radius: toRpx(24); border-radius: toRpx(24);
margin-right: toRpx(48); margin-right: toRpx(48);
margin-bottom: toRpx(4);
.start-icon { .start-icon {
width: toRpx(48); width: toRpx(48);
height: toRpx(48); height: toRpx(48);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!