Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
uniapp_vedio
Commits
0d2f4deb
Commit
0d2f4deb
authored
Dec 26, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
9183be10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
70 deletions
+25
-70
loading.vue
vedio/pages/loading.vue
+25
-70
No files found.
vedio/pages/loading.vue
View file @
0d2f4deb
...
@@ -63,13 +63,7 @@
...
@@ -63,13 +63,7 @@
var
that
=
this
;
var
that
=
this
;
var
obj
=
tt
.
getLaunchOptionsSync
()
var
obj
=
tt
.
getLaunchOptionsSync
()
var
channel
=
'mints'
// 渠道
var
channel
=
'douyin'
// 渠道
var
clueToken
=
''
// 归因参数
var
adId
=
''
// 计划id
var
advertiserId
=
''
// 账号id
var
reqId
=
''
// 请求id
var
promotionId
=
''
// aid
var
projectId
=
''
;
var
tips2
=
''
;
// 投放测试标记
var
tips2
=
''
;
// 投放测试标记
var
product_type
=
''
;
//自有产品
var
product_type
=
''
;
//自有产品
var
zs_channel
=
''
;
// 自有渠道
var
zs_channel
=
''
;
// 自有渠道
...
@@ -80,67 +74,14 @@
...
@@ -80,67 +74,14 @@
var
remark1
=
''
;
// 预留
var
remark1
=
''
;
// 预留
var
remark2
=
''
;
// 预留
var
remark2
=
''
;
// 预留
var
remark3
=
''
;
// 预留
var
remark3
=
''
;
// 预留
var
mid1
=
""
;
var
mid1
=
""
;
var
mid2
=
""
;
var
mid2
=
""
;
var
mid3
=
""
;
var
mid3
=
""
;
var
mid4
=
""
;
var
mid4
=
""
;
var
mid5
=
""
;
var
mid5
=
""
;
var
thirdParam
=
""
;
var
thirdParam
=
""
;
var
album_id
=
""
;
var
album_id
=
obj
.
query
.
tt_album_id
??
''
;
var
episode_id
=
""
;
var
episode_id
=
obj
.
query
.
tt_episode_id
??
''
;
zs_os
=
wx
.
getSystemInfoSync
().
platform
;
// 判断渠道来源
if
(
obj
.
query
.
clue_token
??
''
!=
''
)
{
// 头条渠道参数
channel
=
'tt'
clueToken
=
obj
.
query
.
clue_token
??
''
adId
=
obj
.
query
.
ad_id
??
''
advertiserId
=
obj
.
query
.
advertiser_id
??
''
reqId
=
obj
.
query
.
req_id
??
''
promotionId
=
obj
.
query
.
promotion_id
??
''
projectId
=
obj
.
query
.
project_id
??
''
tips2
=
obj
.
query
.
tips2
??
''
product_type
=
obj
.
query
.
product_type
??
''
zs_channel
=
obj
.
query
.
zs_channel
??
''
vedio_id
=
obj
.
query
.
vedio_id
??
''
free_index
=
obj
.
query
.
free_index
??
''
remark1
=
obj
.
query
.
remark1
??
''
remark2
=
obj
.
query
.
remark2
??
''
remark3
=
obj
.
query
.
remark3
??
''
vedio_index
=
obj
.
query
.
vedio_index
??
''
mid1
=
obj
.
query
.
mid1
??
''
mid2
=
obj
.
query
.
mid2
??
''
mid3
=
obj
.
query
.
mid3
??
''
mid4
=
obj
.
query
.
mid4
??
''
mid5
=
obj
.
query
.
mid5
??
''
}
else
if
(
obj
.
query
.
ksChannel
??
''
!=
''
)
{
// 快手渠道参数
channel
=
'kuaishou'
adId
=
obj
.
query
.
ksUnitId
??
''
//组id
advertiserId
=
obj
.
query
.
ksSiteAccountId
??
''
//账户id
clueToken
=
obj
.
query
.
callback
??
''
//快手归因参数
reqId
=
obj
.
query
.
ksCampaignId
??
''
//计划id
promotionId
=
obj
.
query
.
ksPageId
??
''
//落地页id
tips2
=
obj
.
query
.
tips2
??
''
projectId
=
obj
.
query
.
ksCreativeId
??
''
//创意id
product_type
=
obj
.
query
.
product_type
??
''
zs_channel
=
obj
.
query
.
zs_channel
??
''
vedio_id
=
obj
.
query
.
vedio_id
??
''
remark1
=
obj
.
query
.
remark1
??
''
remark2
=
obj
.
query
.
remark2
??
''
remark3
=
obj
.
query
.
remark3
??
''
vedio_index
=
obj
.
query
.
vedio_index
??
''
free_index
=
obj
.
query
.
free_index
??
''
}
else
{
// 自有渠道
}
thirdParam
=
JSON
.
stringify
(
obj
.
query
);
album_id
=
obj
.
query
.
tt_album_id
??
''
episode_id
=
obj
.
query
.
tt_episode_id
??
''
uni
.
setStorage
({
uni
.
setStorage
({
key
:
'tt_album_id'
,
key
:
'tt_album_id'
,
data
:
album_id
data
:
album_id
...
@@ -148,9 +89,29 @@
...
@@ -148,9 +89,29 @@
uni
.
setStorage
({
uni
.
setStorage
({
key
:
'tt_episode_id'
,
key
:
'tt_episode_id'
,
data
:
episode_id
data
:
episode_id
});
});
zs_os
=
wx
.
getSystemInfoSync
().
platform
;
tips2
=
obj
.
query
.
tips2
??
''
product_type
=
obj
.
query
.
product_type
??
''
zs_channel
=
obj
.
query
.
zs_channel
??
''
vedio_id
=
obj
.
query
.
vedio_id
??
''
free_index
=
obj
.
query
.
free_index
??
''
remark1
=
obj
.
query
.
remark1
??
''
remark2
=
obj
.
query
.
remark2
??
''
remark3
=
obj
.
query
.
remark3
??
''
vedio_index
=
obj
.
query
.
vedio_index
??
''
mid1
=
obj
.
query
.
mid1
??
''
mid2
=
obj
.
query
.
mid2
??
''
mid3
=
obj
.
query
.
mid3
??
''
mid4
=
obj
.
query
.
mid4
??
''
mid5
=
obj
.
query
.
mid5
??
''
// 抖音feed页参数
thirdParam
=
JSON
.
stringify
(
obj
.
query
);
// 打印渠道参数
// 打印渠道参数
if
(
this
.
tips1
==
'mints_vedio'
||
tips2
==
'mints_vedio'
)
{
if
(
this
.
tips1
==
'mints_vedio'
||
tips2
==
'mints_vedio'
)
{
this
.
slotParam
=
JSON
.
stringify
(
obj
.
query
);
this
.
slotParam
=
JSON
.
stringify
(
obj
.
query
);
...
@@ -166,14 +127,8 @@
...
@@ -166,14 +127,8 @@
url
:
'/user/ttLogin'
,
url
:
'/user/ttLogin'
,
data
:
{
data
:
{
channel
:
channel
,
channel
:
channel
,
clueToken
:
clueToken
,
code
:
res
.
code
,
code
:
res
.
code
,
anonymousCode
:
res
.
anonymousCode
,
anonymousCode
:
res
.
anonymousCode
,
adId
:
adId
,
advertiserId
:
advertiserId
,
reqId
:
reqId
,
promotionId
:
promotionId
,
projectId
:
projectId
,
productType
:
product_type
,
productType
:
product_type
,
vedioId
:
vedio_id
,
vedioId
:
vedio_id
,
remark1
:
remark1
,
remark1
:
remark1
,
...
@@ -186,7 +141,7 @@
...
@@ -186,7 +141,7 @@
mid2
:
mid2
,
mid2
:
mid2
,
mid3
:
mid3
,
mid3
:
mid3
,
mid4
:
mid4
,
mid4
:
mid4
,
mid5
:
mid5
,
mid5
:
mid5
,
thirdParam
:
thirdParam
,
thirdParam
:
thirdParam
,
zsChannel
:
zs_channel
zsChannel
:
zs_channel
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment