Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
new_taobao
Commits
2319d78e
Commit
2319d78e
authored
Oct 14, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码暂存
parent
e46cfe63
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
15 deletions
+42
-15
compileMode.json
taobao_mini/client/.kaitian/compileMode.json
+2
-2
pageshou_ye.js
taobao_mini/client/pages/pageshou_ye/pageshou_ye.js
+40
-13
No files found.
taobao_mini/client/.kaitian/compileMode.json
View file @
2319d78e
{
{
"current"
:
0
,
"current"
:
null
,
"modes"
:
[
"modes"
:
[
{
{
"title"
:
"分享进"
,
"title"
:
"分享进"
,
"page"
:
"pages/pageshou_ye/pageshou_ye"
,
"page"
:
"pages/pageshou_ye/pageshou_ye"
,
"pageQuery"
:
"openId=AAGK5Z
C
BAMaFIi626fKFCdXP&shoestype=3"
,
"pageQuery"
:
"openId=AAGK5ZBAMaFIi626fKFCdXP&shoestype=3"
,
"update"
:
true
"update"
:
true
}
}
]
]
...
...
taobao_mini/client/pages/pageshou_ye/pageshou_ye.js
View file @
2319d78e
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment