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
84ff9c63
Commit
84ff9c63
authored
Oct 13, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加投放
parent
396cbd37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
78 deletions
+100
-78
loading.vue
vedio/pages/loading.vue
+75
-76
my.vue
vedio/pages/my/my.vue
+25
-2
No files found.
vedio/pages/loading.vue
View file @
84ff9c63
...
...
@@ -3,21 +3,22 @@
<view
class=
"body loading"
>
<view
class=
"logo"
>
<image
src=
"@/static/logo-about.png"
mode=
"widthFix"
style=
"border-radius: 20rpx;margin-bottom: 200rpx;"
/>
<view
class=
"animation"
>
<text
style=
"animation-delay: 0s;color: black;"
>
C
</text>
<text
style=
"animation-delay: 0.1s;color: black;"
>
o
</text>
<text
style=
"animation-delay: 0.2s;color: black;"
>
m
</text>
<text
style=
"animation-delay: 0.3s;color: black;"
>
p
</text>
<text
style=
"animation-delay: 0.4s;color: black;"
>
a
</text>
<text
style=
"animation-delay: 0.4s;color: black;"
>
n
</text>
<text
style=
"animation-delay: 0.5s;color: black;"
>
i
</text>
<text
style=
"animation-delay: 0.6s;color: black;"
>
o
</text>
<text
style=
"animation-delay: 0.7s;color: black;"
>
n
</text>
<text
style=
"animation-delay: 0.8s;color: black;"
>
x
</text>
<text
style=
"animation-delay: 0.9s;color: black;"
></text>
<text
style=
"animation-delay: 1s;color: black;"
></text>
</view>
<view
style=
"color: black;margin-top: 20rpx;font-size: 40rpx;"
>
欢迎使用
</view>
<view
class=
"animation"
>
<text
style=
"animation-delay: 0s;color: black;"
>
河
</text>
<text
style=
"animation-delay: 0.1s;color: black;"
>
</text>
<text
style=
"animation-delay: 0.2s;color: black;"
>
</text>
<text
style=
"animation-delay: 0.3s;color: black;"
>
狸
</text>
<text
style=
"animation-delay: 0.4s;color: black;"
>
</text>
<text
style=
"animation-delay: 0.4s;color: black;"
>
</text>
<text
style=
"animation-delay: 0.5s;color: black;"
>
短
</text>
<text
style=
"animation-delay: 0.6s;color: black;"
>
</text>
<text
style=
"animation-delay: 0.7s;color: black;"
>
</text>
<text
style=
"animation-delay: 0.8s;color: black;"
>
视
</text>
<text
style=
"animation-delay: 0.9s;color: black;"
>
</text>
<text
style=
"animation-delay: 1s;color: black;"
>
</text>
<text
style=
"animation-delay: 1.1s;color: black;"
>
频
</text>
</view>
<view
style=
"color: black;margin-top: 40rpx;font-size: 40rpx;"
>
欢迎使用
</view>
</view>
</view>
</
template
>
...
...
@@ -52,69 +53,67 @@
redirectTo
(
'home'
);
},
2300
);
},
methods
:
{
wxlogin
()
{
let
that
=
this
var
obj
=
wx
.
getEnterOptionsSync
()
var
tempInviteUId
=
this
.
shareId
;
methods
:
{
wxlogin
()
{
var
obj
=
wx
.
getEnterOptionsSync
()
var
channel
=
''
// 渠道
var
clueToken
=
''
// 归因参数
var
adId
=
''
// 计划id
var
advertiserId
=
''
// 账号id
var
reqId
=
''
// 请求id
var
promotionId
=
''
// aid
var
productId
=
''
;
// console.log('uuid(32)='+uuid(32,32));
var
channel
=
''
// 渠道
var
clueToken
=
''
// 归因参数
var
adId
=
''
// 计划id
var
advertiserId
=
''
// 账号id
var
reqId
=
''
// 请求id
var
creativeId
=
''
// 创意id
if
(
obj
.
query
.
clueToken
??
''
!=
''
)
{
channel
=
'tt'
clueToken
=
obj
.
query
.
clueToken
??
''
adId
=
obj
.
query
.
adId
??
''
advertiserId
=
obj
.
query
.
advertiserId
??
''
reqId
=
obj
.
query
.
reqId
??
''
creativeId
=
obj
.
query
.
creativeId
??
''
}
if
(
obj
.
query
.
ksChannel
??
''
!=
''
)
{
channel
=
'kuaishou'
clueToken
=
obj
.
query
.
callback
??
''
adId
=
obj
.
query
.
ksCampaignId
??
''
reqId
=
obj
.
query
.
ksUnitId
??
''
creativeId
=
obj
.
query
.
ksCreativeId
??
''
}
uni
.
login
({
provider
:
'weixin'
,
success
:
function
(
loginRes
)
{
that
.
post
({
url
:
'/user/wechatlogin'
,
data
:
{
channel
:
channel
,
clueToken
:
clueToken
,
adId
:
adId
,
advertiserId
:
advertiserId
,
reqId
:
reqId
,
creativeId
:
creativeId
,
code
:
loginRes
.
code
,
inviteUId
:
tempInviteUId
},
showLoading
:
false
,
success
:
({
data
})
=>
{
app
.
globalData
.
token
=
data
.
token
;
app
.
globalData
.
userId
=
data
.
pk_id
;
app
.
globalData
.
userInfo
=
data
;
}
});
},
fail
:
function
(
err
)
{
if
(
obj
.
query
.
clueToken
??
''
!=
''
)
{
channel
=
'tt'
clueToken
=
obj
.
query
.
clueToken
??
''
adId
=
obj
.
query
.
adId
??
''
advertiserId
=
obj
.
query
.
advertiserId
??
''
reqId
=
obj
.
query
.
reqId
??
''
promotionId
=
obj
.
query
.
promotionId
??
''
productId
=
obj
.
query
.
productId
??
''
}
if
(
obj
.
query
.
ksChannel
??
''
!=
''
)
{
channel
=
'kuaishou'
advertiserId
=
obj
.
query
.
accountid
??
''
clueToken
=
obj
.
query
.
callback
??
''
adId
=
obj
.
query
.
aid
??
''
}
uni
.
login
({
provider
:
'weixin'
,
success
:
function
(
loginRes
)
{
that
.
post
({
url
:
'/user/wechatlogin'
,
data
:
{
channel
:
channel
,
clueToken
:
clueToken
,
adId
:
adId
,
advertiserId
:
advertiserId
,
reqId
:
reqId
,
creativeId
:
creativeId
,
code
:
loginRes
.
code
,
inviteUId
:
tempInviteUId
},
showLoading
:
false
,
success
:
({
data
})
=>
{
app
.
globalData
.
token
=
data
.
token
;
app
.
globalData
.
userId
=
data
.
pk_id
;
app
.
globalData
.
userInfo
=
data
;
}
});
},
fail
:
function
(
err
)
{
// 登录授权失败
message
.
notify
(
'登录授权失败 错误码:'
+
err
.
code
);
}
});
message
.
notify
(
'登录授权失败 错误码:'
+
err
.
code
);
}
});
}
}
};
...
...
vedio/pages/my/my.vue
View file @
84ff9c63
...
...
@@ -2,7 +2,7 @@
<view
class=
"body"
>
<view
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+statusBarHeight+'px;'"
>
<image
class=
"avatar"
src=
"
https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/bg_my_vip
.png"
></image>
<image
class=
"avatar"
src=
"
@/static/logo-about
.png"
></image>
<view>
<view
style=
"font-size: 26rpx;color: black;margin-left: 20rpx;"
>
用户ID:
{{
userBean
.
idcode
}}
</view>
<!--
<view
style=
"font-size: 32rpx;color: black;font-weight: 777;margin-left: 20rpx;"
>
未登录
</view>
-->
...
...
@@ -111,7 +111,30 @@
navigateTo
(
`/pagesA/vipPay/vipPay`
)
},
handlePhone
()
{
let
that
=
this
// 联系我们
this
.
post
({
url
:
'/app/customerServiceNumbers'
,
showLoading
:
false
,
success
:
({
data
})
=>
{
let
datas
=
data
.
customerServiceNumbers
.
split
(
','
)
let
corpid
=
datas
[
0
]
let
curl
=
datas
[
1
]
wx
.
openCustomerServiceChat
({
extInfo
:
{
url
:
curl
},
corpId
:
corpid
,
success
(
res
)
{},
fail
(
e
)
{
console
.
log
(
e
)
}
})
}
});
}
}
};
...
...
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