このコミットが含まれているのは:
dragon1211 2022-01-15 12:53:12 -08:00
コミット ed38333352
2個のファイルの変更7行の追加33行の削除

ファイルの表示

@ -38215,19 +38215,6 @@ var ParentChildAdd = function ParentChildAdd() {
var handleCheckRelations = function handleCheckRelations(type) {
set401Error('');
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) {
if (isMountedRef.current) return;
setNotice(response.data.notice);
@ -38236,7 +38223,7 @@ var ParentChildAdd = function ParentChildAdd() {
switch (response.data.status_code) {
case 200:
{
if (type == "line") set400Error('コピー失敗しました。');else copyInviteURL();
if (type == "invite") setCopyFlag(true);else if (type == 'line') copyLineText();
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「その他お問合せ内容」';
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
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",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
className: "l-content__ttl",

ファイルの表示

@ -6,7 +6,6 @@ import PageLoader from '../../component/page_loader';
import copy from 'copy-to-clipboard';
const ParentChildAdd = () => {
const [notice, setNotice] = useState(localStorage.getItem('notice'));
const father_id = localStorage.getItem('kiki_acc_id');
@ -58,21 +57,6 @@ const ParentChildAdd = () => {
const handleCheckRelations = (type) => {
set401Error('');
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')
.then(response=>{
if(isMountedRef.current) return;
@ -82,8 +66,8 @@ const ParentChildAdd = () => {
switch(response.data.status_code){
case 200: {
if(type == "line") set400Error('コピー失敗しました。');
else copyInviteURL();
if(type == "invite") setCopyFlag(true);
else if(type=='line') copyLineText();
break;
}
case 400: set400Error(response.data.error_messages); break;
@ -128,6 +112,9 @@ const ParentChildAdd = () => {
return (
<div className="l-content">
{
_copyFlag && copyInviteURL()
}
<div className="l-content-w560">
<div className="l-content__ttl">
<div className="l-content__ttl__left">