Commit 2319d78e authored by zhangjinzhou's avatar zhangjinzhou

代码暂存

parent e46cfe63
{ {
"current": 0, "current": null,
"modes": [ "modes": [
{ {
"title": "分享进", "title": "分享进",
"page": "pages/pageshou_ye/pageshou_ye", "page": "pages/pageshou_ye/pageshou_ye",
"pageQuery": "openId=AAGK5ZCBAMaFIi626fKFCdXP&shoestype=3", "pageQuery": "openId=AAGK5ZBAMaFIi626fKFCdXP&shoestype=3",
"update": true "update": true
} }
] ]
......
...@@ -54,6 +54,7 @@ Page({ ...@@ -54,6 +54,7 @@ Page({
nearchaprize: "",//再召唤xx好友得奖励x nearchaprize: "",//再召唤xx好友得奖励x
isVip: false, isVip: false,
vipLink: "", vipLink: "",
clickVip:false,
giftype: 3,//1-新手礼盒,2-惊喜礼盒,3-锦鲤礼盒,0-都不显示 giftype: 3,//1-新手礼盒,2-惊喜礼盒,3-锦鲤礼盒,0-都不显示
ptimgbig: "",//选中的鞋子big ptimgbig: "",//选中的鞋子big
...@@ -265,14 +266,31 @@ Page({ ...@@ -265,14 +266,31 @@ Page({
onMouseEvent(e) { onMouseEvent(e) {
if (this.main) this.main.stage.onMouseEvent(e); if (this.main) this.main.stage.onMouseEvent(e);
}, },
onShow(query) { onShow() {
console.log("onshow=========>", query); console.log("onshow=========>");
let clickVip = this.data.clickVip;
if(clickVip){
this.setData({
clickVip:false
});
this.checkBackNgift();
}
// 页面显示 // 页面显示
}, },
onHide() { onHide() {
// console.log("onhide==========>"); // console.log("onhide==========>");
// 页面隐藏 // 页面隐藏
}, },
//onshow给新手
async checkBackNgift(){
await this.checkIsVip();
let isvip = this.data.isVip;
if(isvip){
this.closeGift();
this.getOpenNgift();
}
},
/** /**
* startAni * startAni
*/ */
...@@ -305,9 +323,9 @@ Page({ ...@@ -305,9 +323,9 @@ Page({
const { nickName, avatar } = app; const { nickName, avatar } = app;
const { success, data } = await API.login({ userNick: nickName, avatar: avatar, isFollow: false }).catch(res => { const { success, data } = await API.login({ userNick: nickName, avatar: avatar, isFollow: false }).catch(res => {
commonToast(res && res.message); commonToast(res && res.message);
if(res&&res.code=="220003"){ if (res && res.code == "220003") {
this.setData({ this.setData({
actover:true actover: true
}); });
this.init(); this.init();
} }
...@@ -365,7 +383,7 @@ Page({ ...@@ -365,7 +383,7 @@ 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) {
...@@ -723,7 +741,10 @@ Page({ ...@@ -723,7 +741,10 @@ Page({
commonToast('1秒成为会员,即可为TA助力哦', 2000); commonToast('1秒成为会员,即可为TA助力哦', 2000);
let vipLink = this.data.vipLink; let vipLink = this.data.vipLink;
setTimeout(() => { setTimeout(() => {
navigateToOutside(vipLink) this.setData({
clickVip:true
});
navigateToOutside(vipLink);
}, 1000) }, 1000)
} }
}, },
...@@ -1082,7 +1103,7 @@ Page({ ...@@ -1082,7 +1103,7 @@ Page({
this.showPrizePage(success, data); this.showPrizePage(success, data);
this.changeBtnReady(true); this.changeBtnReady(true);
this.setData({ this.setData({
canTakeRankPrize:false canTakeRankPrize: false
}); });
}, },
/** /**
...@@ -1147,12 +1168,12 @@ Page({ ...@@ -1147,12 +1168,12 @@ Page({
ptimg_v: true, ptimg_v: true,
ptimg_ani: true ptimg_ani: true
}); });
setTimeout(()=>{ setTimeout(() => {
call&call(); call & call();
this.setData({ this.setData({
isduihuan:true isduihuan: true
}); });
},800); }, 800);
}, },
//邀请好友 //邀请好友
shareAct() { shareAct() {
...@@ -1256,6 +1277,11 @@ Page({ ...@@ -1256,6 +1277,11 @@ Page({
navigateToOutside(url); navigateToOutside(url);
}, },
onShareAppMessage() { onShareAppMessage() {
// const fileId = "cloud://6A648F4EC18FB26FDECC5D98C1D978C4//分享图.png";
// const result1 = await getApp().cloud.file.getTempFileURL({ fileId: fileId });
// // console.log("ghhdhsbckdsbcdcvnjdkhd", result1);
// if (result1[0]) SHARE_CONFIG.imageUrl = result1[0].url;
let { let {
path, path,
...rest ...rest
...@@ -1264,7 +1290,8 @@ Page({ ...@@ -1264,7 +1290,8 @@ Page({
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' + '?openId=' + app.openId + "&shoestype=" + this.data.shoesType;
} }
// console.log('path', path)
console.log('path', path)
return { return {
...rest, ...rest,
......
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