Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_scan
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_scan
Commits
fb3ed1d6
Commit
fb3ed1d6
authored
Dec 19, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口调试
parent
e58c07b2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
24 deletions
+29
-24
App.vue
scan/App.vue
+3
-2
common.js
scan/mixins/common.js
+1
-1
pages.json
scan/pages.json
+0
-2
loading.vue
scan/pages/loading.vue
+25
-19
No files found.
scan/App.vue
View file @
fb3ed1d6
...
...
@@ -131,7 +131,7 @@
windowWidth
:
0
,
bottomSafePadding
:
12
,
h5Url
:
'https://api.mints-id.com/index.html'
,
baseUrl
:
'https://api.mints-tech.cn/camera-api/
a
pi'
,
baseUrl
:
'https://api.mints-tech.cn/camera-api/
miniA
pi'
,
// baseUrl: 'http://test.mints-id.com/ww-new/api',
titleButtonWidth
:
38
,
token
:
''
,
...
...
@@ -145,7 +145,8 @@
auth
:
false
,
// 三要素实名认证
userInfo
:
null
,
cardInfo
:
null
,
pkgName
:
'com.mints.quickscan'
// pkgName: 'com.mints.quickscanmax'
pkgName
:
'com.mints.helivideo'
}
};
</
script
>
...
...
scan/mixins/common.js
View file @
fb3ed1d6
...
...
@@ -147,7 +147,7 @@ export default {
Object
.
assign
(
header
,
{
// token: app.globalData.token,
token
:
'
9B5E0CC7F6791821267A35C1D83709ED75AEB7A3458073702BEFA64BA9D10D0C
5F433703067DF5142735505C42F58997'
,
token
:
'
393068DF9283B935CC4C37D9ABEF88F39D63941D16243ACA30B04FE7A3F7F2EB
5F433703067DF5142735505C42F58997'
,
pkgName
:
app
.
globalData
.
pkgName
})
...
...
scan/pages.json
View file @
fb3ed1d6
...
...
@@ -8,7 +8,6 @@
}
},
"pages"
:
[
//
//
#ifndef
APP-PLUS
//
{
//
"path"
:
"pages/loading"
,
//
"style"
:
{
...
...
@@ -17,7 +16,6 @@
//
"navigationBarTextStyle"
:
"black"
//用于配置状态栏的字体颜色
//
}
//
},
//
//
#endif
{
"path"
:
"pages/index/index"
,
"style"
:
{
...
...
scan/pages/loading.vue
View file @
fb3ed1d6
...
...
@@ -60,26 +60,28 @@
var
promotionId
=
''
// aid
var
productId
=
''
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
??
''
}
//
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 ?? ''
//
}
my
.
getAuthCode
({
scopes
:
'auth_user'
,
success
:
res
=>
{
console
.
log
(
'my.getAuthCode='
,
res
.
authCode
);
that
.
post
({
url
:
'/user/wechatlogin'
,
data
:
{
...
...
@@ -104,7 +106,11 @@
});
},
fail
:
err
=>
{
console
.
log
(
'my.getAuthCode 调用失败'
,
err
)
console
.
log
(
'my.getAuthCode 调用失败'
,
err
);
message
.
notify
(
'请登录后使用'
);
setTimeout
(()
=>
{
that
.
alipayLogin
();
},
1000
);
}
});
}
...
...
@@ -127,8 +133,8 @@
transform
:
translateY
(
-50%
);
image
{
width
:
12
0rpx
;
height
:
18
0rpx
;
width
:
20
0rpx
;
height
:
20
0rpx
;
margin-bottom
:
52rpx
;
}
...
...
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