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
11266a70
Commit
11266a70
authored
Sep 28, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/tianmaoxiaoyuan' into tianmaoxiaoyuan
parents
456b278f
d3720c72
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
3 deletions
+21
-3
app.json
taobao_mini/client/app.json
+1
-0
comcatname.js
taobao_mini/client/components/comcatname/comcatname.js
+17
-1
myprize.js
taobao_mini/client/pages/myprize/myprize.js
+2
-2
tb.js
taobao_mini/client/tbcc-sdk/lib/tb.js
+1
-0
No files found.
taobao_mini/client/app.json
View file @
11266a70
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
"pages/pageshop/pageshop"
,
"pages/pageshop/pageshop"
,
"pages/index/index"
,
"pages/index/index"
,
"pages/pageshop/pageshop"
,
"pages/pageshop/pageshop"
,
"pages/tbccDemo/tbccDemo"
,
"pages/myprize/myprize"
"pages/myprize/myprize"
],
],
"window"
:
{
"window"
:
{
...
...
taobao_mini/client/components/comcatname/comcatname.js
View file @
11266a70
...
@@ -2,6 +2,13 @@
...
@@ -2,6 +2,13 @@
import
API
from
'../../api'
;
import
API
from
'../../api'
;
import
resList
from
'../../resconfig/resList'
;
import
resList
from
'../../resconfig/resList'
;
const
app
=
getApp
();
const
app
=
getApp
();
const
{
tbcc
}
=
app
;
const
{
textRiskIdentification
}
=
tbcc
.
tb
;
Component
({
Component
({
props
:
{
props
:
{
catImgArr
:
[
"90b114e6-83cb-46f1-b607-f88c50077b05"
,
"4e471df6-01ab-421d-ba0b-084b2110dc6d"
,
"003e9904-aee4-4b8d-8d5d-fb4b1188bec1"
,
"90283bd3-4b18-4535-97a8-90318f068781"
],
catImgArr
:
[
"90b114e6-83cb-46f1-b607-f88c50077b05"
,
"4e471df6-01ab-421d-ba0b-084b2110dc6d"
,
"003e9904-aee4-4b8d-8d5d-fb4b1188bec1"
,
"90283bd3-4b18-4535-97a8-90318f068781"
],
...
@@ -67,8 +74,17 @@ Component({
...
@@ -67,8 +74,17 @@ Component({
content
:
"名字过长哦"
,
content
:
"名字过长哦"
,
});
});
}
else
{
}
else
{
my
.
showLoading
();
/**检查敏感词 */
/**检查敏感词 */
console
.
log
(
'检查敏感词'
,
name
)
const
success
=
await
textRiskIdentification
(
name
).
catch
(
err
=>
{
console
.
log
(
'textRiskIdentification error'
,
err
);
});
console
.
log
(
'敏感词校验结果'
,
success
)
if
(
success
!==
true
)
{
console
.
log
(
'敏感词校验失败.'
)
}
my
.
showLoading
();
/**调用领养接口 */
/**调用领养接口 */
const
adoptCat
=
await
API
.
adoptCat
({
const
adoptCat
=
await
API
.
adoptCat
({
...
...
taobao_mini/client/pages/myprize/myprize.js
View file @
11266a70
...
@@ -140,8 +140,8 @@ Page({
...
@@ -140,8 +140,8 @@ Page({
}
}
flag
=
true
;
flag
=
true
;
const
{
item
:{
strategyCode
,
code
}
}
=
e
.
target
.
dataset
;
const
{
item
:{
strategyCode
,
code
,
channel
}
}
=
e
.
target
.
dataset
;
this
.
cloudTBIssue
({
strategyCode
,
code
})
this
.
cloudTBIssue
({
strategyCode
,
code
,
channel
})
// const { activityId } = app;
// const { activityId } = app;
// console.log(item, '领取权益')
// console.log(item, '领取权益')
// const { success, data, message } = await API.receiveEnamePrize({ activityId, _id: item._id }).catch(res => {
// const { success, data, message } = await API.receiveEnamePrize({ activityId, _id: item._id }).catch(res => {
...
...
taobao_mini/client/tbcc-sdk/lib/tb.js
View file @
11266a70
...
@@ -507,6 +507,7 @@ export const textRiskIdentification = async (text) => {
...
@@ -507,6 +507,7 @@ export const textRiskIdentification = async (text) => {
text
text
},
},
success
:
res
=>
{
success
:
res
=>
{
console
.
log
(
'textRiskIdentification callback res'
,
res
)
if
(
res
.
data
&&
res
.
data
.
result
)
{
if
(
res
.
data
&&
res
.
data
.
result
)
{
const
{
suggestion
}
=
res
.
data
.
result
;
const
{
suggestion
}
=
res
.
data
.
result
;
if
(
suggestion
===
'pass'
)
{
if
(
suggestion
===
'pass'
)
{
...
...
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