Commit 92a8c8c5 authored by Edwise's avatar Edwise 🍷

1234

parents 5b13b6fb 00f5e368
'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();
......
...@@ -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,
......
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