Commit 84a3c2ba authored by zhangjinzhou's avatar zhangjinzhou

代码暂存

parent 94517a24
...@@ -109,11 +109,11 @@ Page({ ...@@ -109,11 +109,11 @@ Page({
onLoad(query) { onLoad(query) {
if (query) { if (query) {
if (query.openId) { if (query.inviteId) {
app.inviteId = query.openId; app.inviteId = query.inviteId;
} }
if (query.shoestype) { if (query.shoesType) {
app.shoestype = query.shoestype; app.shoesType = query.shoesType;
} }
} }
this.setData({ this.setData({
...@@ -268,6 +268,9 @@ Page({ ...@@ -268,6 +268,9 @@ Page({
sysInfo && sysInfo.windowHeight || document.body.clientHeight, sysInfo && sysInfo.windowHeight || document.body.clientHeight,
FYGE.RENDERER_TYPE.CANVAS FYGE.RENDERER_TYPE.CANVAS
); );
var con = stage.addChild(new FYGE.Container())
con.y=stage.viewRect.y;
//stage初始化 //stage初始化
stage.addEventListener(FYGE.Event.INIT_STAGE, () => { stage.addEventListener(FYGE.Event.INIT_STAGE, () => {
//添加个背景 //添加个背景
...@@ -281,7 +284,7 @@ Page({ ...@@ -281,7 +284,7 @@ Page({
//会进TextureCache //会进TextureCache
// FYGE.createTextureSheet(new FYGE.BaseTexture(image), res) // FYGE.createTextureSheet(new FYGE.BaseTexture(image), res)
var a = stage.addChild(new FYGE.Lottie(whitedia)) var a = con.addChild(new FYGE.Lottie(whitedia))
a.play(); a.play();
cardani = a; cardani = a;
//加个lottie //加个lottie
...@@ -484,11 +487,11 @@ Page({ ...@@ -484,11 +487,11 @@ Page({
//进来提示助力 //进来提示助力
let lselected = this.data.selected; let lselected = this.data.selected;
let actover = this.data.actover; let actover = this.data.actover;
if (!actover && lselected == 0 && app.inviteId && app.shoestype) {//进来,提示助力弹窗 if (!actover && lselected == 0 && app.inviteId && app.shoesType) {//进来,提示助力弹窗
let myid = app.openId; let myid = app.openId;
let inid = app.inviteId; let inid = app.inviteId;
if (myid != inid) { if (myid != inid) {
let invitename = ["jijia", "jianzhen", "erciyuan", "shanhai", "tiancheng"][Number(app.shoestype) - 1]; let invitename = ["jijia", "jianzhen", "erciyuan", "shanhai", "tiancheng"][Number(app.shoesType) - 1];
let spimg = resList[invitename + "big"].url; let spimg = resList[invitename + "big"].url;
this.addDialogsData({ this.addDialogsData({
cardType: 1, cardType: 1,
...@@ -864,7 +867,8 @@ Page({ ...@@ -864,7 +867,8 @@ Page({
*/ */
async checkIsVip() { async checkIsVip() {
const uvipinfo = await API.getVipInfo({ const uvipinfo = await API.getVipInfo({
inviteId: app.inviteId inviteId: app.inviteId,
shoesType:app.shoesType,
}).catch(res => { }).catch(res => {
commonToast(res && res.message); commonToast(res && res.message);
}) || {}; }) || {};
...@@ -1443,7 +1447,7 @@ Page({ ...@@ -1443,7 +1447,7 @@ Page({
} = SHARE_CONFIG; } = SHARE_CONFIG;
// console.log('app.openId', app.openId, "shoesname", this.data.shoesName); // console.log('app.openId', app.openId, "shoesname", this.data.shoesName);
if (app.openId) { if (app.openId) {
path = '/pages/pageshou_ye/pageshou_ye' + '?openId=' + app.openId + "&shoestype=" + this.data.shoesType; path = '/pages/pageshou_ye/pageshou_ye' + '?inviteId=' + app.openId + "&shoesType=" + this.data.shoesType;
} }
console.log('path', path) console.log('path', path)
......
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