Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobaominiDemo
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
wildfirecode13
taobaominiDemo
Commits
f9948dfe
Commit
f9948dfe
authored
Jun 23, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
861d553d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
app.js
client/app.js
+1
-1
index.js
client/pages/index/index.js
+15
-8
No files found.
client/app.js
View file @
f9948dfe
...
...
@@ -12,7 +12,7 @@ App({
console
.
info
(
'App onLaunch'
);
const
{
activityId
}
=
options
.
query
||
{};
console
.
log
(
activityId
)
this
.
activityId
=
activityId
||
'5e
c5f960f5d6906095de717e
'
;
this
.
activityId
=
activityId
||
'5e
f1a032f3448958e92ee49a
'
;
},
onShow
(
options
)
{
// 从后台被 scheme 重新打开
...
...
client/pages/index/index.js
View file @
f9948dfe
...
...
@@ -31,6 +31,7 @@ Page({
},
createMain
()
{
console
.
warn
(
'do my.createCanvas'
)
var
self
=
this
;
my
.
createCanvas
({
id
:
'canvas'
,
...
...
@@ -40,7 +41,7 @@ Page({
const
windowHeight
=
my
.
getSystemInfoSync
().
windowHeight
;
ccc
.
width
=
windowWidth
*
dpr
+
dpr
;
//重新修改会有误差
ccc
.
height
=
windowHeight
*
dpr
+
dpr
;
// console.log(Main
)
console
.
warn
(
'my.createCanvas on success'
)
console
.
log
(
ccc
.
width
,
ccc
.
height
)
if
(
!
this
.
main
)
{
this
.
main
=
new
Main
(
ccc
)
...
...
@@ -65,17 +66,23 @@ Page({
const
{
function
:
fc
}
=
app
.
cloud
const
isFollow
=
await
checkShopFavoredStatus
(
app
.
sellerId
).
catch
(()
=>
{})
//登录的接口,到时用
const
loginParams
=
{
"avatar"
:
avatar
,
"userNick"
:
nickName
,
"activityId"
:
app
.
activityId
,
"inviteId"
:
this
.
inviteId
,
"isFollow"
:
isFollow
};
console
.
warn
(
'发送接口filaStar login,发送参数为'
,
loginParams
)
fc
.
invoke
(
"filaStar"
,
{
"avatar"
:
avatar
,
"nickName"
:
nickName
,
"activityId"
:
app
.
activityId
,
"inviteId"
:
this
.
inviteId
,
"isFollow"
:
isFollow
},
"filaStar"
,
loginParams
,
"login"
)
.
then
(
async
res
=>
{
//登录完才显示页面
console
.
warn
(
'filaStar login调用完毕返回数据为'
,
res
);
app
.
inviteId
=
res
.
data
.
inviteId
// app.sellerId = res.data.sellerId;
//创建Main
...
...
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