Commit f9948dfe authored by wildfirecode's avatar wildfirecode

1

parent 861d553d
...@@ -12,7 +12,7 @@ App({ ...@@ -12,7 +12,7 @@ App({
console.info('App onLaunch'); console.info('App onLaunch');
const { activityId } = options.query || {}; const { activityId } = options.query || {};
console.log(activityId) console.log(activityId)
this.activityId = activityId || '5ec5f960f5d6906095de717e'; this.activityId = activityId || '5ef1a032f3448958e92ee49a';
}, },
onShow(options) { onShow(options) {
// 从后台被 scheme 重新打开 // 从后台被 scheme 重新打开
......
...@@ -31,6 +31,7 @@ Page({ ...@@ -31,6 +31,7 @@ Page({
}, },
createMain() { createMain() {
console.warn('do my.createCanvas')
var self = this; var self = this;
my.createCanvas({ my.createCanvas({
id: 'canvas', id: 'canvas',
...@@ -40,7 +41,7 @@ Page({ ...@@ -40,7 +41,7 @@ Page({
const windowHeight = my.getSystemInfoSync().windowHeight; const windowHeight = my.getSystemInfoSync().windowHeight;
ccc.width = windowWidth * dpr + dpr; //重新修改会有误差 ccc.width = windowWidth * dpr + dpr; //重新修改会有误差
ccc.height = windowHeight * dpr + dpr; ccc.height = windowHeight * dpr + dpr;
// console.log(Main) console.warn('my.createCanvas on success')
console.log(ccc.width, ccc.height) console.log(ccc.width, ccc.height)
if (!this.main) { if (!this.main) {
this.main = new Main(ccc) this.main = new Main(ccc)
...@@ -65,17 +66,23 @@ Page({ ...@@ -65,17 +66,23 @@ Page({
const { function: fc } = app.cloud const { function: fc } = app.cloud
const isFollow = await checkShopFavoredStatus(app.sellerId).catch(() => {}) const isFollow = await checkShopFavoredStatus(app.sellerId).catch(() => {})
//登录的接口,到时用 //登录的接口,到时用
fc.invoke(
"filaStar", {
const loginParams = {
"avatar": avatar, "avatar": avatar,
"nickName": nickName, "userNick": nickName,
"activityId": app.activityId, "activityId": app.activityId,
"inviteId": this.inviteId, "inviteId": this.inviteId,
"isFollow": isFollow "isFollow": isFollow
}, };
console.warn('发送接口filaStar login,发送参数为', loginParams)
fc.invoke(
"filaStar", loginParams,
"login" "login"
) )
.then(async res => { //登录完才显示页面 .then(async res => { //登录完才显示页面
console.warn('filaStar login调用完毕返回数据为', res);
app.inviteId = res.data.inviteId app.inviteId = res.data.inviteId
// app.sellerId = res.data.sellerId; // app.sellerId = res.data.sellerId;
//创建Main //创建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