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

ファイルの表示

@ -38215,6 +38215,19 @@ 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);
@ -38223,7 +38236,7 @@ var ParentChildAdd = function ParentChildAdd() {
switch (response.data.status_code) {
case 200:
{
if (type == "invite") setCopyFlag(true);else if (type == 'line') copyLineText();
if (type == "invite") setSuccess('招待用URLをコピーしました。');else if (type == 'line') copyLineText();
break;
}
@ -38265,7 +38278,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: [_copyFlag && copyInviteURL(), /*#__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-w560",
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
className: "l-content__ttl",

ファイルの表示

@ -57,6 +57,21 @@ 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;
@ -66,7 +81,7 @@ const ParentChildAdd = () => {
switch(response.data.status_code){
case 200: {
if(type == "invite") setCopyFlag(true);
if(type == "invite") setSuccess('招待用URLをコピーしました。');
else if(type=='line') copyLineText();
break;
}
@ -112,9 +127,6 @@ 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">