Commit 92a8c8c5 authored by Edwise's avatar Edwise 🍷

1234

parents 5b13b6fb 00f5e368
'use strict';
import API from '../../api';
import resList from '../../resconfig/resList';
const app = getApp();
Component({
props: {
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({
/**调用领养接口 */
const adoptCat = await API.adoptCat({
catName: name,
catType: this.props.selectType
// invitedId:
catType: this.props.selectType,
// invitedId: 'openId:AAHVNvjuAMaJc3uyPjeHlCEF'//honingwon
invitedId: app.inviteId
});
console.log("aaaa",adoptCat)
if (adoptCat && adoptCat.success) {
// my.showToast({content:'邀请成功'+app.inviteId})
my.hideLoading();
this.onModalClose();
this.onSelectCatOk();
......
......@@ -333,6 +333,7 @@ Page({
}) || {};
if (success) {
app.openId=data.openId;
this.getActivityBaseInfoById();
}
......@@ -437,11 +438,12 @@ Page({
},
onShareAppMessage() {
// 返回自定义分享信息
let { path, ...rest } = SHARE_CONFIG
let { path, ...rest } = SHARE_CONFIG;
console.log('app.openId',app.openId);
if (app.openId) {
path = '/pages/pagecanvas/pagecanvas' + '?openId=' + app.openId;
}
console.log(path)
console.log('path',path)
return {
...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