Commit f9948dfe authored by wildfirecode's avatar wildfirecode

1

parent 861d553d
......@@ -12,7 +12,7 @@ App({
console.info('App onLaunch');
const { activityId } = options.query || {};
console.log(activityId)
this.activityId = activityId || '5ec5f960f5d6906095de717e';
this.activityId = activityId || '5ef1a032f3448958e92ee49a';
},
onShow(options) {
// 从后台被 scheme 重新打开
......
......@@ -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(() => {})
//登录的接口,到时用
fc.invoke(
"filaStar", {
const loginParams = {
"avatar": avatar,
"nickName": nickName,
"userNick": nickName,
"activityId": app.activityId,
"inviteId": this.inviteId,
"isFollow": isFollow
},
};
console.warn('发送接口filaStar login,发送参数为', loginParams)
fc.invoke(
"filaStar", loginParams,
"login"
)
.then(async res => { //登录完才显示页面
console.warn('filaStar login调用完毕返回数据为', res);
app.inviteId = res.data.inviteId
// app.sellerId = res.data.sellerId;
//创建Main
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment