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 e0fac4de
authored
May 22, 2025
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
跳转
1 parent
b4a45f12
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
159 additions
and
132 deletions
.hbuilderx/launch.json
api/module/common.js
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/index.vue
manifest.json
mixin/timeout.js
.hbuilderx/launch.json
View file @
e0fac4d
...
@@ -4,24 +4,20 @@
...
@@ -4,24 +4,20 @@
"version"
:
"0.0"
,
"version"
:
"0.0"
,
"configurations"
:
[
"configurations"
:
[
{
{
"app-plus"
:
"app-plus"
:
{
{
"launchtype"
:
"local"
"launchtype"
:
"local"
},
},
"default"
:
{
"default"
:
"launchtype"
:
"local"
{
},
"launchtype"
:
"local"
"h5"
:
{
},
"launchtype"
:
"local"
"h5"
:
},
{
"mp-weixin"
:
{
"launchtype"
:
"local"
"launchtype"
:
"local"
},
},
"mp-weixin"
:
"provider"
:
"aliyun"
,
{
"type"
:
"uniCloud"
"launchtype"
:
"local"
},
"provider"
:
"aliyun"
,
"type"
:
"uniCloud"
},
},
{
{
"playground"
:
"standard"
,
"playground"
:
"standard"
,
...
...
api/module/common.js
View file @
e0fac4d
...
@@ -276,19 +276,25 @@ module.exports = {
...
@@ -276,19 +276,25 @@ module.exports = {
},
},
//获取北森代办数量
//获取北森代办数量
getUnreadCount
(
data
)
{
getUnreadCount
(
data
)
{
return
http
.
post
({
return
http
.
post
(
method
:
'dj.pad.api.beisen.getUnreadCount'
,
{
projectName
:
'pad'
,
method
:
'dj.pad.api.beisen.getUnreadCount'
,
...
data
projectName
:
'pad'
,
})
...
data
},
true
)
},
},
//获取北森SSO鉴权
//获取北森SSO鉴权
findBeiSenSSOToken
(
data
)
{
findBeiSenSSOToken
(
data
)
{
return
http
.
post
({
return
http
.
post
(
method
:
'dj.pad.api.beisen.findBeiSenSSOToken'
,
{
projectName
:
'pad'
,
method
:
'dj.pad.api.beisen.findBeiSenSSOToken'
,
...
data
projectName
:
'pad'
,
})
...
data
},
true
)
},
},
//北森埋点进入
//北森埋点进入
dynamicrecordAdd
(
data
)
{
dynamicrecordAdd
(
data
)
{
...
...
components/HomeFrame/components/LeftSide.vue
View file @
e0fac4d
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<view
class=
"sprite-icon icon-feedback"
></view>
<view
class=
"sprite-icon icon-feedback"
></view>
<view
class=
"message-number"
v-if=
"messageTotal > 0"
></view>
<view
class=
"message-number"
v-if=
"messageTotal > 0"
></view>
</view>
</view>
<view
class=
"btn"
@
click=
"
$refs.settingRef.open()
"
>
<view
class=
"btn"
@
click=
"
handleSetting
"
>
<view
class=
"sprite-icon icon-setting"
></view>
<view
class=
"sprite-icon icon-setting"
></view>
</view>
</view>
</view>
</view>
...
@@ -116,7 +116,7 @@ export default {
...
@@ -116,7 +116,7 @@ export default {
methods
:
{
methods
:
{
getUnreadCount
()
{
getUnreadCount
()
{
uni
.
$api
.
commonApi
.
getUnreadCount
({}).
then
(
res
=>
{
uni
.
$api
.
commonApi
.
getUnreadCount
({}).
then
(
res
=>
{
this
.
readCount
=
res
this
.
readCount
=
res
.
data
})
})
},
},
addTrack
()
{
addTrack
()
{
...
@@ -141,18 +141,44 @@ export default {
...
@@ -141,18 +141,44 @@ export default {
this
.
leaveTrack
()
this
.
leaveTrack
()
},
5000
)
},
5000
)
},
},
changeIndex
(
index
,
item
)
{
clickHome
()
{
if
(
this
.
tabs
[
this
.
tabIndex
].
isTrack
)
this
.
changeIndex
(
0
,
this
.
tabs
[
0
])
},
handleSetting
()
{
this
.
$refs
.
settingRef
.
open
()
this
.
clickHome
()
},
findBeiSenSSOToken
()
{
return
new
Promise
(
resolve
=>
{
const
url
=
'https%3A%2F%2Fcloud.italent.cn%2FPageHome%2FIndex%3Fproduct%3DLearning%26keyName%3DNusion%26pageCode%3DLearningNewHomepage%26appCode%3DLearning%26_qsrcapp%3DLearning%26_qrt%3Dhtml%26quark_s%3D5102bff371c00da5b19968ee53a8c3f1499ecd2447a19f72f3e3ba2390cc9617%23%2FviewDynamic%3Fshadow_context%3D%257BappModel%253A%2522italent%2522%252Cuppid%253A%25221%2522%257D%26quark_s%3D028930f1066f8ef8d28790940d53ae64337f44bde3a44cf89a290e4a3611e3e2'
uni
.
$api
.
commonApi
.
findBeiSenSSOToken
({}).
then
(
res
=>
{
const
studyUrl
=
res
.
data
?
`
${
res
.
data
}
&return_url=
${
url
}
`
:
''
resolve
(
studyUrl
)
})
})
},
async
changeIndex
(
index
,
item
)
{
if
(
this
.
tabIndex
==
index
)
return
;
if
(
this
.
tabIndex
==
index
)
return
;
let
jumpUrl
if
(
item
.
isTrack
)
{
if
(
item
.
isTrack
)
{
this
.
readCount
=
0
this
.
readCount
=
0
try
{
jumpUrl
=
await
this
.
findBeiSenSSOToken
()
}
catch
(
error
)
{
console
.
log
(
error
)
}
if
(
jumpUrl
)
{
this
.
addTrack
()
this
.
addTrack
()
this
.
startTrack
()
this
.
startTrack
()
}
}
else
{
}
else
{
this
.
leaveTrack
()
this
.
leaveTrack
()
this
.
trackId
=
0
this
.
trackId
=
0
}
}
this
.
$emit
(
'update:tabIndex'
,
index
)
this
.
$emit
(
'update:tabIndex'
,
index
)
this
.
$emit
(
"changeTab"
,
index
)
this
.
$emit
(
"changeTab"
,
index
,
jumpUrl
)
this
.
getMessageInfo
()
this
.
getMessageInfo
()
},
},
async
haveCustomerAccess
(
val
)
{
async
haveCustomerAccess
(
val
)
{
...
@@ -213,6 +239,7 @@ export default {
...
@@ -213,6 +239,7 @@ export default {
},
},
jumpPersonCenter
()
{
jumpPersonCenter
()
{
if
(
this
.
hasPerson
)
{
if
(
this
.
hasPerson
)
{
this
.
clickHome
()
this
.
$emit
(
'update:tabIndex'
,
99
)
this
.
$emit
(
'update:tabIndex'
,
99
)
}
}
}
}
...
...
components/HomeFrame/index.vue
View file @
e0fac4d
...
@@ -110,7 +110,6 @@ export default {
...
@@ -110,7 +110,6 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
findBeiSenSSOToken
()
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
userInfo
=
userInfo
this
.
userInfo
=
userInfo
this
.
checkVersion
()
this
.
checkVersion
()
...
@@ -135,17 +134,18 @@ export default {
...
@@ -135,17 +134,18 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
findBeiSenSSOToken
()
{
async
changeTab
(
$event
,
jumpUrl
)
{
const
url
=
'https%3A%2F%2Fcloud.italent.cn%2FPageHome%2FIndex%3Fproduct%3DLearning%26keyName%3DNusion%26pageCode%3DLearningNewHomepage%26appCode%3DLearning%26_qsrcapp%3DLearning%26_qrt%3Dhtml%26quark_s%3D5102bff371c00da5b19968ee53a8c3f1499ecd2447a19f72f3e3ba2390cc9617%23%2FviewDynamic%3Fshadow_context%3D%257BappModel%253A%2522italent%2522%252Cuppid%253A%25221%2522%257D%26quark_s%3D028930f1066f8ef8d28790940d53ae64337f44bde3a44cf89a290e4a3611e3e2'
uni
.
$api
.
commonApi
.
findBeiSenSSOToken
({}).
then
(
res
=>
{
this
.
studyUrl
=
`
${
res
}
&return_url=
${
url
}
`
console
.
log
(
this
.
studyUrl
,
8
)
})
},
changeTab
(
$event
)
{
this
.
$emit
(
'changeTab'
,
$event
)
this
.
$emit
(
'changeTab'
,
$event
)
if
(
$event
==
3
)
{
if
(
$event
==
3
)
{
this
.
jumpUrl
=
this
.
studyUrl
this
.
jumpUrl
=
jumpUrl
if
(
!
this
.
jumpUrl
)
{
uni
.
showToast
({
title
:
'无权限'
,
icon
:
'none'
})
return
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
const
currentWebview
=
this
.
$parent
.
$scope
.
$getAppWebview
()
const
currentWebview
=
this
.
$parent
.
$scope
.
$getAppWebview
()
const
wv
=
currentWebview
.
children
()[
1
]
const
wv
=
currentWebview
.
children
()[
1
]
...
...
manifest.json
View file @
e0fac4d
{
{
"name"
:
"展业助手"
,
"name"
:
"展业助手"
,
"appid"
:
"__UNI__D3BD3DF"
,
"appid"
:
"__UNI__D3BD3DF"
,
"description"
:
""
,
"description"
:
""
,
"versionName"
:
"2.10.0"
,
"versionName"
:
"2.10.0"
,
"versionCode"
:
"2100"
,
"versionCode"
:
"2100"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
"sassImplementationName"
:
"node-sass"
,
"sassImplementationName"
:
"node-sass"
,
/*
5
+App特有相关
*/
/*
5
+App特有相关
*/
"app-plus"
:
{
"app-plus"
:
{
"cache"
:
false
,
"cache"
:
false
,
"bounce"
:
"none"
,
"bounce"
:
"none"
,
"usingComponents"
:
true
,
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
"compilerVersion"
:
3
,
"compatible"
:
{
"compatible"
:
{
"ignoreVersion"
:
true
"ignoreVersion"
:
true
},
},
"screenOrientation"
:
"landscape"
,
"screenOrientation"
:
"landscape"
,
"splashscreen"
:
{
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"waiting"
:
true
,
"autoclose"
:
true
,
"autoclose"
:
true
,
"delay"
:
0
"delay"
:
0
},
},
/*
模块配置
*/
/*
模块配置
*/
"modules"
:
{
"modules"
:
{
"Camera"
:
{},
"Camera"
:
{},
"Record"
:
{},
"Record"
:
{},
"VideoPlayer"
:
{},
"VideoPlayer"
:
{},
"AudioPlayer"
:
{},
"AudioPlayer"
:
{},
"SQLite"
:
{},
"SQLite"
:
{},
"Maps"
:
{},
"Maps"
:
{},
"Geolocation"
:
{}
"Geolocation"
:
{}
},
},
/*
应用发布信息
*/
/*
应用发布信息
*/
"distribute"
:
{
"distribute"
:
{
/*
android打包配置
*/
/*
android打包配置
*/
"android"
:
{
"android"
:
{
"permissions"
:
[
"permissions"
:
[
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
...
@@ -54,83 +54,76 @@
...
@@ -54,83 +54,76 @@
"<uses-permission android:name=
\"
android.permission.ACCESS_FINE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_FINE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_COARSE_LOCATION
\"
/>"
"<uses-permission android:name=
\"
android.permission.ACCESS_COARSE_LOCATION
\"
/>"
],
],
"abiFilters"
:
[
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
,
"x86"
],
"armeabi-v7a"
,
"targetSdkVersion"
:
30
"arm64-v8a"
,
"x86"
],
"targetSdkVersion"
:
30
},
},
/*
ios打包配置
*/
/*
ios打包配置
*/
"ios"
:
{
"ios"
:
{
"dSYMs"
:
false
,
"dSYMs"
:
false
,
"UIBackgroundModes"
:
"audio"
"UIBackgroundModes"
:
"audio"
},
},
/*
SDK配置
*/
/*
SDK配置
*/
"sdkConfigs"
:
{
"sdkConfigs"
:
{
"ad"
:
{},
"ad"
:
{},
"speech"
:
{},
"speech"
:
{},
"geolocation"
:
{
"geolocation"
:
{
"system"
:
{
"system"
:
{
"__platform__"
:
[
"__platform__"
:
[
"ios"
,
"android"
]
"ios"
,
"android"
]
}
}
}
}
},
},
"icons"
:
{
"icons"
:
{
"android"
:
{
"android"
:
{
"hdpi"
:
"static/72.png"
,
"hdpi"
:
"static/72.png"
,
"xhdpi"
:
"static/96.png"
,
"xhdpi"
:
"static/96.png"
,
"xxhdpi"
:
"static/144.png"
"xxhdpi"
:
"static/144.png"
}
}
}
}
},
},
"nativePlugins"
:
{
"nativePlugins"
:
{
"Ba-KeepAliveSuit"
:
{
"Ba-KeepAliveSuit"
:
{
"__plugin_info__"
:
{
"__plugin_info__"
:
{
"name"
:
"安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)"
,
"name"
:
"安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)"
,
"description"
:
"在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)"
,
"description"
:
"在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)"
,
"platforms"
:
"Android"
,
"platforms"
:
"Android"
,
"url"
:
"https://ext.dcloud.net.cn/plugin?id=11765"
,
"url"
:
"https://ext.dcloud.net.cn/plugin?id=11765"
,
"android_package_name"
:
"uni.gltap"
,
"android_package_name"
:
"uni.gltap"
,
"ios_bundle_id"
:
""
,
"ios_bundle_id"
:
""
,
"isCloud"
:
true
,
"isCloud"
:
true
,
"bought"
:
1
,
"bought"
:
1
,
"pid"
:
"11765"
,
"pid"
:
"11765"
,
"parameters"
:
{}
"parameters"
:
{}
}
}
}
}
}
}
},
},
/*
快应用特有相关
*/
/*
快应用特有相关
*/
"quickapp"
:
{},
"quickapp"
:
{},
/*
小程序特有相关
*/
/*
小程序特有相关
*/
"mp-weixin"
:
{
"mp-weixin"
:
{
"appid"
:
"wx79d1ff39bee3d047"
,
"appid"
:
"wx79d1ff39bee3d047"
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
false
"urlCheck"
:
false
},
},
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-alipay"
:
{
"mp-alipay"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-baidu"
:
{
"mp-baidu"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-toutiao"
:
{
"mp-toutiao"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"uniStatistics"
:
{
"uniStatistics"
:
{
"enable"
:
false
"enable"
:
false
},
},
"vueVersion"
:
"2"
,
"vueVersion"
:
"2"
,
"h5"
:
{
"h5"
:
{
"devServer"
:
{
"devServer"
:
{
"port"
:
8080
,
"port"
:
8080
,
"https"
:
false
"https"
:
false
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
}
mixin/timeout.js
View file @
e0fac4d
/*
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @Date: 2024-04-08 11:28:48
* @LastEditors:
liimin 17653212@qq.com
* @LastEditors:
yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-05-
16 16:44:50
* @LastEditTime: 2025-05-
21 15:17:55
* @FilePath: \gl_tape\mixin\timeout.js
* @FilePath: \gl_tape\mixin\timeout.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -48,5 +48,10 @@ export default {
...
@@ -48,5 +48,10 @@ export default {
}
}
this
.
__counter
=
0
this
.
__counter
=
0
}
}
},
beforeDestroy
()
{
if
(
this
.
__timer
)
{
clearInterval
(
this
.
__timer
)
}
}
}
}
}
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