c
このコミットが含まれているのは:
コミット
ed38333352
|
@ -38215,19 +38215,6 @@ var ParentChildAdd = function ParentChildAdd() {
|
||||||
var handleCheckRelations = function handleCheckRelations(type) {
|
var handleCheckRelations = function handleCheckRelations(type) {
|
||||||
set401Error('');
|
set401Error('');
|
||||||
setLoaded(false);
|
setLoaded(false);
|
||||||
|
|
||||||
if (type == 'invite') {
|
|
||||||
var inviteurl = document.getElementById('inviteurl').value;
|
|
||||||
var sentence = '「KIKI」の招待が届いています。' + '\n' + 'まずは以下より仮登録を行ってください。' + '\n' + '※スマホ本体を最新の状態にアップデートしてからURLをクリックしてください。' + '\n\n' + inviteurl + '\n\n' + '▼公式サイトはこちら' + '\n' + 'https://kikikan.jp' + '\n\n' + 'idの箇所は親のidを引っ張るようお願い致します。';
|
|
||||||
|
|
||||||
if (!copy_to_clipboard__WEBPACK_IMPORTED_MODULE_4___default()(sentence, {
|
|
||||||
debug: true
|
|
||||||
})) {
|
|
||||||
set400Error('コピー失敗しました。');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
axios.get('/api/fathers/relations/check').then(function (response) {
|
axios.get('/api/fathers/relations/check').then(function (response) {
|
||||||
if (isMountedRef.current) return;
|
if (isMountedRef.current) return;
|
||||||
setNotice(response.data.notice);
|
setNotice(response.data.notice);
|
||||||
|
@ -38236,7 +38223,7 @@ var ParentChildAdd = function ParentChildAdd() {
|
||||||
switch (response.data.status_code) {
|
switch (response.data.status_code) {
|
||||||
case 200:
|
case 200:
|
||||||
{
|
{
|
||||||
if (type == "line") set400Error('コピー失敗しました。');else copyInviteURL();
|
if (type == "invite") setCopyFlag(true);else if (type == 'line') copyLineText();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38278,7 +38265,7 @@ var ParentChildAdd = function ParentChildAdd() {
|
||||||
var contactMailText = 'mailto:56@zotman.jp?subject=KIKIメンバー追加について&body=' + '名前%3A%0A電話番号%3A%0AログインID%3A%0Aログインパスワード%3A%0A追加したいメンバー数%3A%0A「その他お問合せ内容」';
|
var contactMailText = 'mailto:56@zotman.jp?subject=KIKIメンバー追加について&body=' + '名前%3A%0A電話番号%3A%0AログインID%3A%0Aログインパスワード%3A%0A追加したいメンバー数%3A%0A「その他お問合せ内容」';
|
||||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
|
||||||
className: "l-content",
|
className: "l-content",
|
||||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
|
children: [_copyFlag && copyInviteURL(), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
|
||||||
className: "l-content-w560",
|
className: "l-content-w560",
|
||||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
|
||||||
className: "l-content__ttl",
|
className: "l-content__ttl",
|
||||||
|
|
|
@ -6,7 +6,6 @@ import PageLoader from '../../component/page_loader';
|
||||||
import copy from 'copy-to-clipboard';
|
import copy from 'copy-to-clipboard';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const ParentChildAdd = () => {
|
const ParentChildAdd = () => {
|
||||||
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
const [notice, setNotice] = useState(localStorage.getItem('notice'));
|
||||||
const father_id = localStorage.getItem('kiki_acc_id');
|
const father_id = localStorage.getItem('kiki_acc_id');
|
||||||
|
@ -58,21 +57,6 @@ const ParentChildAdd = () => {
|
||||||
const handleCheckRelations = (type) => {
|
const handleCheckRelations = (type) => {
|
||||||
set401Error('');
|
set401Error('');
|
||||||
setLoaded(false);
|
setLoaded(false);
|
||||||
|
|
||||||
if(type == 'invite'){
|
|
||||||
let inviteurl = document.getElementById('inviteurl').value;
|
|
||||||
let sentence = '「KIKI」の招待が届いています。' + '\n' +
|
|
||||||
'まずは以下より仮登録を行ってください。' + '\n' +
|
|
||||||
'※スマホ本体を最新の状態にアップデートしてからURLをクリックしてください。' + '\n\n' +
|
|
||||||
inviteurl + '\n\n' +
|
|
||||||
'▼公式サイトはこちら' + '\n' +
|
|
||||||
'https://kikikan.jp' + '\n\n' +
|
|
||||||
'idの箇所は親のidを引っ張るようお願い致します。';
|
|
||||||
if(!copy(sentence, {debug: true})){
|
|
||||||
set400Error('コピー失敗しました。');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
axios.get('/api/fathers/relations/check')
|
axios.get('/api/fathers/relations/check')
|
||||||
.then(response=>{
|
.then(response=>{
|
||||||
if(isMountedRef.current) return;
|
if(isMountedRef.current) return;
|
||||||
|
@ -82,8 +66,8 @@ const ParentChildAdd = () => {
|
||||||
|
|
||||||
switch(response.data.status_code){
|
switch(response.data.status_code){
|
||||||
case 200: {
|
case 200: {
|
||||||
if(type == "line") set400Error('コピー失敗しました。');
|
if(type == "invite") setCopyFlag(true);
|
||||||
else copyInviteURL();
|
else if(type=='line') copyLineText();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 400: set400Error(response.data.error_messages); break;
|
case 400: set400Error(response.data.error_messages); break;
|
||||||
|
@ -128,6 +112,9 @@ const ParentChildAdd = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="l-content">
|
<div className="l-content">
|
||||||
|
{
|
||||||
|
_copyFlag && copyInviteURL()
|
||||||
|
}
|
||||||
<div className="l-content-w560">
|
<div className="l-content-w560">
|
||||||
<div className="l-content__ttl">
|
<div className="l-content__ttl">
|
||||||
<div className="l-content__ttl__left">
|
<div className="l-content__ttl__left">
|
||||||
|
|
新しいイシューから参照