Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a61c2a8f
authored
Dec 08, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
自测修改
1 parent
d5079954
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
14 deletions
components/studyPermissionModal/studyPermissionModal.js
packageStudyCenter/components/CardItem/CardItem.js
packageStudyCenter/components/CardItem/CardItem.wxml
packageStudyCenter/pages/myExam/myExam.js
packageStudyCenter/pages/myExam/myExam.wxml
packageStudyCenter/pages/studyCenter/studyCenter.sass
packageStudyCenter/pages/studyCenter/studyCenter.wxml
components/studyPermissionModal/studyPermissionModal.js
View file @
a61c2a8
...
...
@@ -55,7 +55,6 @@ Component({
const
queryString
=
Object
.
entries
(
params
)
.
map
(([
key
,
value
])
=>
`
${
key
}
=
${
value
}
`
)
.
join
(
'&'
);
// this.setWebviewStyle()
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
);
const
tokenUrl
=
beisenToken
wx
.
$router
.
jumpH5
(
`
${
tokenUrl
}
&return_url=
${
url
}
`
)
...
...
packageStudyCenter/components/CardItem/CardItem.js
View file @
a61c2a8
...
...
@@ -32,6 +32,10 @@ Component({
* 组件的方法列表
*/
methods
:
{
goPage
(
e
)
{
let
{
target
}
=
e
.
currentTarget
.
dataset
if
(
!
target
?.
_showBtn
)
return
this
.
triggerEvent
(
'goPage'
,
target
)
}
}
})
\ No newline at end of file
packageStudyCenter/components/CardItem/CardItem.wxml
View file @
a61c2a8
...
...
@@ -20,7 +20,7 @@
</view>
</block>
<block wx:elif="{{item.type == 'btn'}}">
<view class="item-btn {{infoData[item.showEventKey] ? '' : 'transparent'}}">{{item.btnText}}</view>
<view class="item-btn {{infoData[item.showEventKey] ? '' : 'transparent'}}"
catch:tap="goPage" data-target="{{infoData}}"
>{{item.btnText}}</view>
</block>
<block wx:elif="{{item.type == 'completeIcon' && infoData[item.showEventKey] == item.showEventValue}}">
<image class="completed-bg" src="{{IMG_URL}}usedCar/completed-bg.png" />
...
...
packageStudyCenter/pages/myExam/myExam.js
View file @
a61c2a8
...
...
@@ -170,7 +170,7 @@ Page({
let
newList
=
res
?.
data
?.
list
||
[];
newList
?.
forEach
(
val
=>
{
val
.
_imageUrl
=
`
${
IMG_URL
}
studyCenter/document-icon.png`
val
.
_remainingTimes
=
val
.
examTimes
==
null
?
'不限制'
:
`
${
val
.
remainingTimes
||
'-'
}
/
${
val
.
examTimes
||
'-'
}
`
val
.
_remainingTimes
=
val
.
examTimes
==
null
?
'不限制'
:
`
${
val
.
remainingTimes
!=
null
?
val
.
remainingTimes
:
'-'
}
/
${
val
.
examTimes
!=
null
?
val
.
examTimes
:
'-'
}
`
val
.
_status
=
val
.
examResult
==
1
?
'已通过'
:
'未通过'
val
.
_showBtn
=
val
.
remainingTimes
>
0
})
...
...
@@ -201,6 +201,7 @@ Page({
},
goPage
(
e
)
{
console
.
log
(
e
)
let
{
target
}
=
e
.
currentTarget
.
dataset
commonApi
.
findBeiSenSSOToken
({}).
then
(
res
=>
{
const
beisenToken
=
res
.
data
;
...
...
packageStudyCenter/pages/myExam/myExam.wxml
View file @
a61c2a8
...
...
@@ -6,8 +6,8 @@
<scroll-view scroll-y enhanced="{{true}}" class="list-scroll" show-scrollbar="{{false}}" scroll-top="{{scrollTop}}" bindscrolltolower="scrollonReachBottom">
<block wx:if="{{examList.length}}">
<view class="list-container">
<view class="exam-item" wx:for="{{examList}}" wx:key="index"
bindtap="goPage"
data-target="{{item}}">
<card-item infoData="{{item}}" formItems="{{formItems}}"/>
<view class="exam-item" wx:for="{{examList}}" wx:key="index" data-target="{{item}}">
<card-item infoData="{{item}}"
bindgoPage="goPage"
formItems="{{formItems}}"/>
</view>
</view>
</block>
...
...
packageStudyCenter/pages/studyCenter/studyCenter.sass
View file @
a61c2a8
...
...
@@ -65,11 +65,13 @@ page {
color
:
#999EA8
;
margin-top
:
var
(
--
fontSize8
)
;
.icon
{
flex-shrink
:
0
;
margin-top
:
var
(
--
fontSize6
)
;
width
:
var
(
--
fontSize28
)
;
height
:
var
(
--
fontSize28
)
;
}
.rate
{
color
:
#
999EA8
;
color
:
#
FF9D0A
;
&
.up
{
color
:
#F24724
;
}
...
...
@@ -104,8 +106,8 @@ page {
right
:
var
(
--
fontSize28
)
;
background
:
#F24724
;
border-radius
:
50%
;
min-width
:
var
(
--
fontSize24
)
;
height
:
var
(
--
fontSize
24
)
;
width
:
var
(
--
fontSize12
)
;
height
:
var
(
--
fontSize
12
)
;
border-radius
:
var
(
--
fontSize16
)
;
font-size
:
var
(
--
fontSize20
)
;
color
:
#FFFFFF
;
...
...
@@ -127,6 +129,7 @@ page {
display
:
flex
;
align-items
:
center
;
color
:
#2C66F7
;
font-weight
:
500
;
font-size
:
var
(
--
fontSize28
)
;
.icon
{
width
:
var
(
--
fontSize32
)
;
...
...
@@ -138,6 +141,7 @@ page {
.tips-box
{
color
:
#999EA8
;
font-size
:
var
(
--
fontSize24
)
;
margin-top
:
var
(
--
fontSize4
)
;
margin-bottom
:
var
(
--
fontSize24
)
;
}
.studying-box
{
...
...
@@ -263,7 +267,6 @@ page {
width
:
100%
;
display
:
flex
;
flex-flow
:
column
;
justify-content
:
center
;
align-items
:
center
;
font-size
:
var
(
--
fontSize24
)
;
color
:
#999999
;
...
...
packageStudyCenter/pages/studyCenter/studyCenter.wxml
View file @
a61c2a8
...
...
@@ -27,14 +27,14 @@
<view class="ring">
对比上月
<block wx:if="{{statisticsData.monHourRatio != null && statisticsData.monHourRatio != 0}}">
<view class="rate {{statisticsData.monHourRatio > 0 ? 'up' : statisticsData.monHourRatio < 0 ? 'down' : ''}}">
<view class="rate {{statisticsData.monHourRatio > 0 ? 'up' : statisticsData.monHourRatio < 0 ? 'down' : ''}}">
{{statisticsData._monHourRatio}}%
</view>
<image wx:if="{{statisticsData.monHourRatio != null}}" class="icon" src="{{IMG_URL}}studyCenter/{{statisticsData.monHourRatio > 0 ? 'up' : statisticsData.monHourRatio < 0 ? 'down' : 'stay'}}.png" mode=""/>
</block>
<block wx:else>
<view class="rate">-</view>
</block>
<image class="icon" src="{{IMG_URL}}studyCenter/{{statisticsData.monHourRatio > 0 ? 'up' : statisticsData.monHourRatio < 0 ? 'down' : 'stay'}}.png" mode=""/>
</view>
</view>
</view>
...
...
@@ -46,7 +46,7 @@
<image src="{{ IMG_URL}}studyCenter/{{item.icon}}.png" />
</view>
<view class="text">{{item.name}}</view>
<view class="hot_icon" wx:if="{{ item.tipsFlag && statisticsData.unReadCount }}">
{{statisticsData.unReadCount}}
</view>
<view class="hot_icon" wx:if="{{ item.tipsFlag && statisticsData.unReadCount }}"></view>
</view>
</view>
<view class="ing-box">
...
...
@@ -145,5 +145,5 @@
<list-screen show="{{ showScreen }}" navBarHeight="{{ navBarHeight }}" screenObj="{{screenObj}}" bindconfirm="searchScreen" />
</view>
</page-container>
<study-permission-modal id="customModal"
examId="{{}}"
/>
<study-permission-modal id="customModal" />
<exam-submit-popup id="examPopup" bindcancel="examHandleCancel" bindconfirm="examHandleConfirm" examSubmitText="{{examSubmitText}}" />
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment