From 3d73fb33c46aada16a6060adcd4ea14bb33b6b2a Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 09 四月 2024 10:39:11 +0800 Subject: [PATCH] 详情页tabs样式优化,答题添加页面退出拦截,合并代码 --- packageBookService/pages/bookServices/examination/examination.wxml | 32 +++++++++++++++++++++++++++----- 1 files changed, 27 insertions(+), 5 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/examination.wxml b/packageBookService/pages/bookServices/examination/examination.wxml index 1f24f93..588d13e 100644 --- a/packageBookService/pages/bookServices/examination/examination.wxml +++ b/packageBookService/pages/bookServices/examination/examination.wxml @@ -1,16 +1,24 @@ <!--pages/examination/examination.wxml--> <!--瀵艰埅鍖哄煙 --> -<view style="width: 100%; height: {{barHeight}}px; "></view> -<view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> +<view + style="width: 100%; height: {{barHeight}}px;background-color: {{isNight ? '#191919' : '#fff'}} " +></view> +<view + class="nacigationBar" + style="width: 100%; height: {{navBarHeight}}px; background-color: {{isNight ? '#191919' : '#fff'}}" +> <view> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" + color="{{isNight ? '#fff' : '#000'}}" /> </view> - <view class="navbar-title">{{answerTitle}}</view> + <view class="navbar-title" style="color: {{isNight ? '#fff' : '#000'}};" + >{{answerTitle}}</view + > </view> <!-- <view class="lodaing-box" wx:if="{{loaidng}}"> @@ -22,7 +30,7 @@ /> </view> --> -<view class="page-content"> +<view class="page-content" style="background-color:{{isNight ? '#222' : ''}}"> <question-schedule wx:if="{{!loading}}" id="countDownRef" @@ -32,16 +40,21 @@ currentIndex="{{currentIndex}}" questionList="{{questionDataList}}" submitStatus="{{submitStatus}}" + subjectiveGrade="{{subjectiveGrade}}" + subjectiveNum="{{subjectiveNum}}" ></question-schedule> <question-list wx:if="{{!loading}}" + sliderValue="{{sliderValue}}" isNight="{{isNight}}" + answerType="{{answerType}}" currentIndex="{{currentIndex}}" questionList="{{questionDataList}}" submitStatus="{{submitStatus}}" bind:onChangeRadio="onChangeRadio" bind:onChangeInput="onChangeInput" bind:changeSwiper="changeSwiper" + bind:viewParsing="viewParsing" ></question-list> <view class="lodaing-box" wx:if="{{loading}}"> <t-loading @@ -54,7 +67,7 @@ <!-- 搴曢儴鍖哄煙--> -<view class="page-bottom"> +<view class="page-bottom" style="background-color:{{isNight ? '#202020' : ''}}"> <question-options id="question-options" isNight="{{isNight}}" @@ -74,5 +87,14 @@ bind:restart="restart" bind:goQuestion="goQuestion" bind:changeBGColor="changeBGColor" + bind:onChangeSlider="onChangeSlider" ></question-options> </view> + +<page-container + wx:if="{{(answerType == 'mock' || answerType == 'option') && !submitStatus}}" + show="{{true}}" + duration="{{false}}" + overlay="{{false}}" + bind:beforeleave="beforeleave" +></page-container> -- Gitblit v1.9.1