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
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
13 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({
...
@@ -55,7 +55,6 @@ Component({
const
queryString
=
Object
.
entries
(
params
)
const
queryString
=
Object
.
entries
(
params
)
.
map
(([
key
,
value
])
=>
`
${
key
}
=
${
value
}
`
)
.
map
(([
key
,
value
])
=>
`
${
key
}
=
${
value
}
`
)
.
join
(
'&'
);
.
join
(
'&'
);
// this.setWebviewStyle()
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
);
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
);
const
tokenUrl
=
beisenToken
const
tokenUrl
=
beisenToken
wx
.
$router
.
jumpH5
(
`
${
tokenUrl
}
&return_url=
${
url
}
`
)
wx
.
$router
.
jumpH5
(
`
${
tokenUrl
}
&return_url=
${
url
}
`
)
...
...
packageStudyCenter/components/CardItem/CardItem.js
View file @
a61c2a8
...
@@ -32,6 +32,10 @@ Component({
...
@@ -32,6 +32,10 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
goPage
(
e
)
{
let
{
target
}
=
e
.
currentTarget
.
dataset
if
(
!
target
?.
_showBtn
)
return
this
.
triggerEvent
(
'goPage'
,
target
)
}
}
}
})
})
\ No newline at end of file
\ No newline at end of file
packageStudyCenter/components/CardItem/CardItem.wxml
View file @
a61c2a8
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</view>
</view>
</block>
</block>
<block wx:elif="{{item.type == 'btn'}}">
<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>
<block wx:elif="{{item.type == 'completeIcon' && infoData[item.showEventKey] == item.showEventValue}}">
<block wx:elif="{{item.type == 'completeIcon' && infoData[item.showEventKey] == item.showEventValue}}">
<image class="completed-bg" src="{{IMG_URL}}usedCar/completed-bg.png" />
<image class="completed-bg" src="{{IMG_URL}}usedCar/completed-bg.png" />
...
...
packageStudyCenter/pages/myExam/myExam.js
View file @
a61c2a8
...
@@ -170,7 +170,7 @@ Page({
...
@@ -170,7 +170,7 @@ Page({
let
newList
=
res
?.
data
?.
list
||
[];
let
newList
=
res
?.
data
?.
list
||
[];
newList
?.
forEach
(
val
=>
{
newList
?.
forEach
(
val
=>
{
val
.
_imageUrl
=
`
${
IMG_URL
}
studyCenter/document-icon.png`
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
.
_status
=
val
.
examResult
==
1
?
'已通过'
:
'未通过'
val
.
_showBtn
=
val
.
remainingTimes
>
0
val
.
_showBtn
=
val
.
remainingTimes
>
0
})
})
...
@@ -201,6 +201,7 @@ Page({
...
@@ -201,6 +201,7 @@ Page({
},
},
goPage
(
e
)
{
goPage
(
e
)
{
console
.
log
(
e
)
let
{
target
}
=
e
.
currentTarget
.
dataset
let
{
target
}
=
e
.
currentTarget
.
dataset
commonApi
.
findBeiSenSSOToken
({}).
then
(
res
=>
{
commonApi
.
findBeiSenSSOToken
({}).
then
(
res
=>
{
const
beisenToken
=
res
.
data
;
const
beisenToken
=
res
.
data
;
...
...
packageStudyCenter/pages/myExam/myExam.wxml
View file @
a61c2a8
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<scroll-view scroll-y enhanced="{{true}}" class="list-scroll" show-scrollbar="{{false}}" scroll-top="{{scrollTop}}" bindscrolltolower="scrollonReachBottom">
<scroll-view scroll-y enhanced="{{true}}" class="list-scroll" show-scrollbar="{{false}}" scroll-top="{{scrollTop}}" bindscrolltolower="scrollonReachBottom">
<block wx:if="{{examList.length}}">
<block wx:if="{{examList.length}}">
<view class="list-container">
<view class="list-container">
<view class="exam-item" wx:for="{{examList}}" wx:key="index"
bindtap="goPage"
data-target="{{item}}">
<view class="exam-item" wx:for="{{examList}}" wx:key="index" data-target="{{item}}">
<card-item infoData="{{item}}" formItems="{{formItems}}"/>
<card-item infoData="{{item}}"
bindgoPage="goPage"
formItems="{{formItems}}"/>
</view>
</view>
</view>
</view>
</block>
</block>
...
...
packageStudyCenter/pages/studyCenter/studyCenter.sass
View file @
a61c2a8
...
@@ -65,11 +65,13 @@ page {
...
@@ -65,11 +65,13 @@ page {
color
:
#999EA8
;
color
:
#999EA8
;
margin-top
:
var
(
--
fontSize8
)
;
margin-top
:
var
(
--
fontSize8
)
;
.icon
{
.icon
{
flex-shrink
:
0
;
margin-top
:
var
(
--
fontSize6
)
;
width
:
var
(
--
fontSize28
)
;
width
:
var
(
--
fontSize28
)
;
height
:
var
(
--
fontSize28
)
;
height
:
var
(
--
fontSize28
)
;
}
}
.rate
{
.rate
{
color
:
#
999EA8
;
color
:
#
FF9D0A
;
&
.up
{
&
.up
{
color
:
#F24724
;
color
:
#F24724
;
}
}
...
@@ -104,8 +106,8 @@ page {
...
@@ -104,8 +106,8 @@ page {
right
:
var
(
--
fontSize28
)
;
right
:
var
(
--
fontSize28
)
;
background
:
#F24724
;
background
:
#F24724
;
border-radius
:
50%
;
border-radius
:
50%
;
min-width
:
var
(
--
fontSize24
)
;
width
:
var
(
--
fontSize12
)
;
height
:
var
(
--
fontSize
24
)
;
height
:
var
(
--
fontSize
12
)
;
border-radius
:
var
(
--
fontSize16
)
;
border-radius
:
var
(
--
fontSize16
)
;
font-size
:
var
(
--
fontSize20
)
;
font-size
:
var
(
--
fontSize20
)
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
...
@@ -127,6 +129,7 @@ page {
...
@@ -127,6 +129,7 @@ page {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
color
:
#2C66F7
;
color
:
#2C66F7
;
font-weight
:
500
;
font-size
:
var
(
--
fontSize28
)
;
font-size
:
var
(
--
fontSize28
)
;
.icon
{
.icon
{
width
:
var
(
--
fontSize32
)
;
width
:
var
(
--
fontSize32
)
;
...
@@ -138,6 +141,7 @@ page {
...
@@ -138,6 +141,7 @@ page {
.tips-box
{
.tips-box
{
color
:
#999EA8
;
color
:
#999EA8
;
font-size
:
var
(
--
fontSize24
)
;
font-size
:
var
(
--
fontSize24
)
;
margin-top
:
var
(
--
fontSize4
)
;
margin-bottom
:
var
(
--
fontSize24
)
;
margin-bottom
:
var
(
--
fontSize24
)
;
}
}
.studying-box
{
.studying-box
{
...
@@ -263,7 +267,6 @@ page {
...
@@ -263,7 +267,6 @@ page {
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
flex-flow
:
column
;
flex-flow
:
column
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
font-size
:
var
(
--
fontSize24
)
;
font-size
:
var
(
--
fontSize24
)
;
color
:
#999999
;
color
:
#999999
;
...
...
packageStudyCenter/pages/studyCenter/studyCenter.wxml
View file @
a61c2a8
...
@@ -30,11 +30,11 @@
...
@@ -30,11 +30,11 @@
<view class="rate {{statisticsData.monHourRatio > 0 ? 'up' : statisticsData.monHourRatio < 0 ? 'down' : ''}}">
<view class="rate {{statisticsData.monHourRatio > 0 ? 'up' : statisticsData.monHourRatio < 0 ? 'down' : ''}}">
{{statisticsData._monHourRatio}}%
{{statisticsData._monHourRatio}}%
</view>
</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>
<block wx:else>
<block wx:else>
<view class="rate">-</view>
<view class="rate">-</view>
</block>
</block>
<image class="icon" src="{{IMG_URL}}studyCenter/{{statisticsData.monHourRatio > 0 ? 'up' : statisticsData.monHourRatio < 0 ? 'down' : 'stay'}}.png" mode=""/>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<image src="{{ IMG_URL}}studyCenter/{{item.icon}}.png" />
<image src="{{ IMG_URL}}studyCenter/{{item.icon}}.png" />
</view>
</view>
<view class="text">{{item.name}}</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>
</view>
<view class="ing-box">
<view class="ing-box">
...
@@ -145,5 +145,5 @@
...
@@ -145,5 +145,5 @@
<list-screen show="{{ showScreen }}" navBarHeight="{{ navBarHeight }}" screenObj="{{screenObj}}" bindconfirm="searchScreen" />
<list-screen show="{{ showScreen }}" navBarHeight="{{ navBarHeight }}" screenObj="{{screenObj}}" bindconfirm="searchScreen" />
</view>
</view>
</page-container>
</page-container>
<study-permission-modal id="customModal"
examId="{{}}"
/>
<study-permission-modal id="customModal" />
<exam-submit-popup id="examPopup" bindcancel="examHandleCancel" bindconfirm="examHandleConfirm" examSubmitText="{{examSubmitText}}" />
<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