Commit 84a3c2ba authored by zhangjinzhou's avatar zhangjinzhou

代码暂存

parent 94517a24
......@@ -109,11 +109,11 @@ Page({
onLoad(query) {
if (query) {
if (query.openId) {
app.inviteId = query.openId;
if (query.inviteId) {
app.inviteId = query.inviteId;
}
if (query.shoestype) {
app.shoestype = query.shoestype;
if (query.shoesType) {
app.shoesType = query.shoesType;
}
}
this.setData({
......@@ -268,6 +268,9 @@ Page({
sysInfo && sysInfo.windowHeight || document.body.clientHeight,
FYGE.RENDERER_TYPE.CANVAS
);
var con = stage.addChild(new FYGE.Container())
con.y=stage.viewRect.y;
//stage初始化
stage.addEventListener(FYGE.Event.INIT_STAGE, () => {
//添加个背景
......@@ -281,7 +284,7 @@ Page({
//会进TextureCache
// 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();
cardani = a;
//加个lottie
......@@ -484,11 +487,11 @@ Page({
//进来提示助力
let lselected = this.data.selected;
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 inid = app.inviteId;
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;
this.addDialogsData({
cardType: 1,
......@@ -864,7 +867,8 @@ Page({
*/
async checkIsVip() {
const uvipinfo = await API.getVipInfo({
inviteId: app.inviteId
inviteId: app.inviteId,
shoesType:app.shoesType,
}).catch(res => {
commonToast(res && res.message);
}) || {};
......@@ -1443,7 +1447,7 @@ Page({
} = SHARE_CONFIG;
// console.log('app.openId', app.openId, "shoesname", this.data.shoesName);
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)
......
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