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
70f7492f
Commit
70f7492f
authored
Oct 15, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
644643d9
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3479 additions
and
10 deletions
+3479
-10
app.js
taobao_jn/client/app.js
+2
-2
compkprizemodal.js
...o_jn/client/components/compkprizemodal/compkprizemodal.js
+1
-1
pagepageindex.js
taobao_jn/client/pages/pagepageindex/pagepageindex.js
+19
-6
tb.js
taobao_jn/client/tbcc-sdk/lib/tb.js
+1
-1
debug.log
taobao_jn/debug.log
+3456
-0
No files found.
taobao_jn/client/app.js
View file @
70f7492f
...
...
@@ -9,7 +9,7 @@ cloud.init({
App
({
env
,
requestType
:
'cloud'
,
// yapi,cloud: 云函数
requestType
:
'local'
,
// yapi,cloud: 云函数
//
requestType: 'local', // yapi,cloud: 云函数
cloudName
:
'jn'
,
// 主云函数项目名 tmallCat
// cloudName: 'bubbleSurviva', // 主云函数项目名 tmallCat
cloud
,
...
...
@@ -31,7 +31,7 @@ App({
*/
handleQuery
(
query
)
{
const
{
activityId
}
=
query
;
this
.
activityId
=
activityId
||
'5f8
022919da671f3b6d5fb14
'
;
this
.
activityId
=
activityId
||
'5f8
550a3964f97be3647a635
'
;
}
});
taobao_jn/client/components/compkprizemodal/compkprizemodal.js
View file @
70f7492f
...
...
@@ -49,7 +49,7 @@ Component({
let
str1
=
''
;
if
(
isWin
){
str
=
'恭喜您PK成功'
;
str1
=
'体感温度高达'
+
warm
s
+
'℃,是最高温队伍'
str1
=
'体感温度高达'
+
app
.
curGameWar
s
+
'℃,是最高温队伍'
}
else
{
str
=
'很遗憾PK失败'
}
...
...
taobao_jn/client/pages/pagepageindex/pagepageindex.js
View file @
70f7492f
...
...
@@ -29,6 +29,7 @@ const checkSystem = async () => {
}
Page
({
favoredStatus
:
false
,
data
:
{
indexPrize
:
[{
id
:
1
,
...
...
@@ -189,18 +190,30 @@ Page({
}
=
userInfo
;
app
.
nickName
=
nickName
;
app
.
avatar
=
avatar
;
const
favoredStatus
=
await
checkShopFavoredStatus
(
3035493001
).
catch
(
err
=>
{
console
.
log
(
'查询关注店铺状态失败'
,
err
);
});
// const favoredStatus = await checkShopFavoredStatus(3035493001).catch(err => {
// console.log('查询关注店铺状态失败', err);
// });
my
.
tb
.
checkShopFavoredStatus
({
id
:
702037595
,
success
:
(
res
)
=>
{
if
(
res
.
isFavor
){
this
.
favoredStatus
=
true
}
else
{
this
.
favoredStatus
=
false
;
}
}
})
// this.judgeDoHelp();
this
.
login
(
favoredStatus
);
console
.
log
(
"关注店铺"
,
this
.
favoredStatus
)
this
.
login
();
}
},
/**
* 登录接口
*/
async
login
(
isFollow
)
{
async
login
()
{
my
.
showLoading
();
const
{
nickName
,
...
...
@@ -212,7 +225,7 @@ Page({
}
=
await
API
.
login
({
userNick
:
nickName
,
avatar
,
isFollow
:
isFollow
,
isFollow
:
this
.
favoredStatus
,
inviteId
:
app
.
inviteId
,
inviteStep
:
app
.
step
}).
catch
(
res
=>
{
...
...
taobao_jn/client/tbcc-sdk/lib/tb.js
View file @
70f7492f
...
...
@@ -124,7 +124,7 @@ export const checkShopFavoredStatus = async sellerId => {
}
return
new
Promise
((
resolve
,
reject
)
=>
{
my
.
tb
.
checkShopFavoredStatus
({
id
:
+
sellerId
,
id
:
sellerId
,
success
:
res
=>
{
resolve
(
res
.
isFavor
);
},
...
...
taobao_jn/debug.log
View file @
70f7492f
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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