Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f1a9e2db
authored
Jul 01, 2026
by
岑成威
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'saas+v5.8.3' of 192.168.3.233:glsx/gl_tape into saas+v5.8.3
2 parents
2dfa5705
d4e1a948
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
35 deletions
components/PreStudy/PreBackPopup.vue
components/PreStudy/PreStudyPopup.vue
pages/boutique/components/GoodsBox.vue
pages/common/prelearnBridge.vue
components/PreStudy/PreBackPopup.vue
View file @
f1a9e2d
...
@@ -33,7 +33,7 @@ export default {
...
@@ -33,7 +33,7 @@ export default {
},
},
prelearnContext
:
{
prelearnContext
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
({
skipCount
:
2
})
default
:
()
=>
({
skipCount
:
0
})
}
}
},
},
computed
:
{
computed
:
{
...
...
components/PreStudy/PreStudyPopup.vue
View file @
f1a9e2d
...
@@ -67,8 +67,10 @@ export default {
...
@@ -67,8 +67,10 @@ export default {
if
(
item
.
learnStatus
!==
'NOT_STUDY'
)
return
if
(
item
.
learnStatus
!==
'NOT_STUDY'
)
return
this
.
$emit
(
'start-study'
,
item
,
index
)
this
.
$emit
(
'start-study'
,
item
,
index
)
console
.
log
(
'预学习桥接页跳转***'
,
item
);
console
.
log
(
'预学习桥接页跳转***'
,
this
.
prelearnData
);
this
.
prelearnData
.
activityProductId
=
item
.
activityProductId
const
prelearnDataStr
=
encodeURIComponent
(
JSON
.
stringify
(
this
.
prelearnData
))
const
prelearnDataStr
=
encodeURIComponent
(
JSON
.
stringify
(
this
.
prelearnData
))
console
.
log
(
'预学习桥接页跳转***'
,
prelearnDataStr
);
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/common/prelearnBridge?prelearnData=
${
prelearnDataStr
}
&entrySource=home_popup`
,
url
:
`/pages/common/prelearnBridge?prelearnData=
${
prelearnDataStr
}
&entrySource=home_popup`
,
fail
:
(
err
)
=>
{
fail
:
(
err
)
=>
{
...
...
pages/boutique/components/GoodsBox.vue
View file @
f1a9e2d
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
@click="changeGoods(i, index)">
@click="changeGoods(i, index)">
<view
:class=
"['goods-status flex']"
>
{{
statusText
(
i
.
isMainPush
)
}}
</view>
<view
:class=
"['goods-status flex']"
>
{{
statusText
(
i
.
isMainPush
)
}}
</view>
<image
class=
"goods-image"
:src=
"i.thumbImageUrl"
></image>
<image
class=
"goods-image"
:src=
"i.thumbImageUrl"
></image>
<view
class=
"goods-title
text-hide
"
>
{{
i
.
tabName
}}
</view>
<view
class=
"goods-title"
>
{{
i
.
tabName
}}
</view>
<view
class=
"goods-description"
>
<view
class=
"goods-description"
>
<rich-text
:nodes=
"i.tabDescription"
></rich-text>
<rich-text
:nodes=
"i.tabDescription"
></rich-text>
</view>
</view>
...
@@ -174,6 +174,8 @@ export default {
...
@@ -174,6 +174,8 @@ export default {
height
:
toRpx
(
240
);
height
:
toRpx
(
240
);
top
:
toRpx
(
24
);
top
:
toRpx
(
24
);
left
:
toRpx
(
32
);
left
:
toRpx
(
32
);
border-radius
:
toRpx
(
12
);
overflow
:
hidden
;
}
}
.goods-title
{
.goods-title
{
...
@@ -181,6 +183,7 @@ export default {
...
@@ -181,6 +183,7 @@ export default {
font-size
:
toRpx
(
30
);
font-size
:
toRpx
(
30
);
color
:
#1A1A2E
;
color
:
#1A1A2E
;
line-height
:
toRpx
(
36
);
line-height
:
toRpx
(
36
);
word-break
:
break-all
;
}
}
.goods-description
{
.goods-description
{
...
...
pages/common/prelearnBridge.vue
View file @
f1a9e2d
...
@@ -144,13 +144,21 @@ export default {
...
@@ -144,13 +144,21 @@ export default {
try
{
try
{
const
prelearnData
=
JSON
.
parse
(
decodeURIComponent
(
options
.
prelearnData
))
const
prelearnData
=
JSON
.
parse
(
decodeURIComponent
(
options
.
prelearnData
))
console
.
log
(
'[prelearnBridge] 预学习弹窗数据 prelearnData:'
,
prelearnData
)
console
.
log
(
'[prelearnBridge] 预学习弹窗数据 prelearnData:'
,
prelearnData
)
const
{
activityId
,
activityProductId
,
entrySource
}
=
prelearnData
const
{
activityId
,
packages
,
remainingSkipCount
,
entrySource
}
=
prelearnData
if
(
activityId
!=
null
)
{
if
(
activityId
!=
null
)
{
this
.
prelearnContext
.
activityId
=
String
(
activityId
)
this
.
prelearnContext
.
activityId
=
String
(
activityId
)
}
}
const
notStudyPackage
=
(
packages
||
[]).
find
(
(
pkg
)
=>
pkg
.
learnStatus
===
'NOT_STUDY'
)
const
activityProductId
=
prelearnData
.
activityProductId
??
notStudyPackage
?.
activityProductId
if
(
activityProductId
!=
null
)
{
if
(
activityProductId
!=
null
)
{
this
.
prelearnContext
.
activityProductId
=
String
(
activityProductId
)
this
.
prelearnContext
.
activityProductId
=
String
(
activityProductId
)
}
}
if
(
remainingSkipCount
!=
null
)
{
this
.
prelearnContext
.
skipCount
=
remainingSkipCount
}
if
(
entrySource
)
{
if
(
entrySource
)
{
this
.
prelearnContext
.
entrySource
=
entrySource
this
.
prelearnContext
.
entrySource
=
entrySource
}
}
...
@@ -740,11 +748,13 @@ export default {
...
@@ -740,11 +748,13 @@ export default {
// #endif
// #endif
},
},
async
checkMainPushStaffLearnStatus
()
{
async
checkMainPushStaffLearnStatus
()
{
console
.
log
(
'[prelearnBridge] goodsInfo res:'
,
this
.
goodsInfo
)
console
.
log
(
'[prelearnBridge] prelearnContext res:'
,
this
.
prelearnContext
)
const
res
=
await
uni
.
$api
.
activityApi
.
getPrelearnScriptBoardAPI
({
const
res
=
await
uni
.
$api
.
activityApi
.
getPrelearnScriptBoardAPI
({
activityId
:
this
.
goodsInfo
.
activityId
||
this
.
prelearnContext
.
activityId
,
activityId
:
this
.
goodsInfo
.
activityId
||
this
.
prelearnContext
.
activityId
,
activityProductId
:
this
.
goodsInfo
.
productId
||
this
.
prelearnContext
.
activityProductId
,
activityProductId
:
this
.
goodsInfo
.
productId
||
this
.
prelearnContext
.
activityProductId
,
})
})
console
.
log
(
'[prelearnBridge]
getPrelearnScriptBoardAPI
res:'
,
res
)
console
.
log
(
'[prelearnBridge]
查询状态结果
res:'
,
res
)
const
status
=
Number
(
res
?.
staffLearnStatus
)
const
status
=
Number
(
res
?.
staffLearnStatus
)
return
status
===
1
||
status
===
2
return
status
===
1
||
status
===
2
},
},
...
@@ -761,45 +771,51 @@ export default {
...
@@ -761,45 +771,51 @@ export default {
this
.
navigateBack
()
this
.
navigateBack
()
return
return
}
}
console
.
log
(
'this.isMainPush***'
,
this
.
isMainPush
);
if
(
Number
(
this
.
isMainPush
)
===
1
)
{
// if (Number(this.isMainPush) === 1) {
let
learned
=
false
try
{
try
{
const
learned
=
await
this
.
checkMainPushStaffLearnStatus
()
learned
=
await
this
.
checkMainPushStaffLearnStatus
()
console
.
log
(
"学习状态查询***"
,
learned
);
console
.
log
(
"学习状态查询***"
,
learned
);
if
(
learned
)
{
this
.
navigateBack
()
return
}
this
.
showMainPushBackTip
()
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'[prelearnBridge] 预学习状态查询失败:'
,
error
)
console
.
error
(
'[prelearnBridge] 预学习状态查询失败:'
,
error
)
this
.
showMainPushBackTip
()
}
}
return
if
(
learned
)
{
}
try
{
const
res
=
await
uni
.
$api
.
commonApi
.
getPrelernHomePopupAPI
()
console
.
log
(
'[prelearnBridge] getPrelernHomePopupAPI res:'
,
res
)
const
packages
=
res
.
packages
||
[]
const
allStudied
=
packages
.
length
>
0
&&
packages
.
every
(
(
pkg
)
=>
pkg
.
learnStatus
===
'STUDIED'
)
if
(
allStudied
)
{
this
.
navigateBack
()
this
.
navigateBack
()
return
return
}
}
if
(
this
.
prelearnContext
.
entrySource
===
'home_popup'
)
{
if
(
res
.
activityId
!=
null
)
{
this
.
showBackPopup
=
true
this
.
prelearnContext
.
activityId
=
String
(
res
.
activityId
)
}
else
{
this
.
showMainPushBackTip
()
}
}
this
.
prelearnContext
.
skipCount
=
res
.
remainingSkipCount
??
0
// }
this
.
showBackPopup
=
true
}
catch
(
error
)
{
// try {
console
.
error
(
'[prelearnBridge] 预学习返回弹框查询失败:'
,
error
)
// const res = await uni.$api.commonApi.getPrelernHomePopupAPI()
this
.
showBackPopup
=
true
// console.log('[prelearnBridge] getPrelernHomePopupAPI res:', res)
}
// const packages = res.packages || []
// const allStudied = packages.length > 0 && packages.every(
// (pkg) => pkg.learnStatus === 'STUDIED'
// )
// if (allStudied) {
// this.navigateBack()
// return
// }
// if (res.activityId != null) {
// this.prelearnContext.activityId = String(res.activityId)
// }
// // 仅当接口返回有效值时更新,避免 undefined 覆盖 onLoad 已写入的 skipCount
// if (res.remainingSkipCount != null) {
// this.prelearnContext.skipCount = res.remainingSkipCount
// }
// this.showBackPopup = true
// } catch (error) {
// console.error('[prelearnBridge] 预学习返回弹框查询失败:', error)
// this.showBackPopup = true
// }
},
},
handleBackPopupCancel
()
{
handleBackPopupCancel
()
{
this
.
showBackPopup
=
false
this
.
showBackPopup
=
false
...
...
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