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
92a8c8c5
Commit
92a8c8c5
authored
Sep 27, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Plain Diff
1234
parents
5b13b6fb
00f5e368
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
comcatname.js
taobao_mini/client/components/comcatname/comcatname.js
+5
-2
pagecanvas.js
taobao_mini/client/pages/pagecanvas/pagecanvas.js
+4
-2
No files found.
taobao_mini/client/components/comcatname/comcatname.js
View file @
92a8c8c5
'use strict'
;
'use strict'
;
import
API
from
'../../api'
;
import
API
from
'../../api'
;
import
resList
from
'../../resconfig/resList'
;
import
resList
from
'../../resconfig/resList'
;
const
app
=
getApp
();
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"
],
...
@@ -54,11 +55,13 @@ Component({
...
@@ -54,11 +55,13 @@ Component({
/**调用领养接口 */
/**调用领养接口 */
const
adoptCat
=
await
API
.
adoptCat
({
const
adoptCat
=
await
API
.
adoptCat
({
catName
:
name
,
catName
:
name
,
catType
:
this
.
props
.
selectType
catType
:
this
.
props
.
selectType
,
// invitedId:
// invitedId: 'openId:AAHVNvjuAMaJc3uyPjeHlCEF'//honingwon
invitedId
:
app
.
inviteId
});
});
console
.
log
(
"aaaa"
,
adoptCat
)
console
.
log
(
"aaaa"
,
adoptCat
)
if
(
adoptCat
&&
adoptCat
.
success
)
{
if
(
adoptCat
&&
adoptCat
.
success
)
{
// my.showToast({content:'邀请成功'+app.inviteId})
my
.
hideLoading
();
my
.
hideLoading
();
this
.
onModalClose
();
this
.
onModalClose
();
this
.
onSelectCatOk
();
this
.
onSelectCatOk
();
...
...
taobao_mini/client/pages/pagecanvas/pagecanvas.js
View file @
92a8c8c5
...
@@ -333,6 +333,7 @@ Page({
...
@@ -333,6 +333,7 @@ Page({
})
||
{};
})
||
{};
if
(
success
)
{
if
(
success
)
{
app
.
openId
=
data
.
openId
;
this
.
getActivityBaseInfoById
();
this
.
getActivityBaseInfoById
();
}
}
...
@@ -437,11 +438,12 @@ Page({
...
@@ -437,11 +438,12 @@ Page({
},
},
onShareAppMessage
()
{
onShareAppMessage
()
{
// 返回自定义分享信息
// 返回自定义分享信息
let
{
path
,
...
rest
}
=
SHARE_CONFIG
let
{
path
,
...
rest
}
=
SHARE_CONFIG
;
console
.
log
(
'app.openId'
,
app
.
openId
);
if
(
app
.
openId
)
{
if
(
app
.
openId
)
{
path
=
'/pages/pagecanvas/pagecanvas'
+
'?openId='
+
app
.
openId
;
path
=
'/pages/pagecanvas/pagecanvas'
+
'?openId='
+
app
.
openId
;
}
}
console
.
log
(
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