fix: make audit
This commit is contained in:
@@ -52,3 +52,10 @@ export const getRecommendList = async (page = 1) => {
|
|||||||
method: "get",
|
method: "get",
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const msgCheckApi = async (content) => {
|
||||||
|
return request({
|
||||||
|
url: "/api/common/msg-check?content=" + content,
|
||||||
|
method: "get",
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|||||||
@@ -197,7 +197,6 @@
|
|||||||
|
|
||||||
<!-- 文字编辑 -->
|
<!-- 文字编辑 -->
|
||||||
<view v-if="activeTool === 'text'" class="section text-edit-section">
|
<view v-if="activeTool === 'text'" class="section text-edit-section">
|
||||||
<!-- 祝贺对象 -->
|
|
||||||
<view class="form-item">
|
<view class="form-item">
|
||||||
<text class="label">祝福对象</text>
|
<text class="label">祝福对象</text>
|
||||||
<input
|
<input
|
||||||
@@ -206,6 +205,7 @@
|
|||||||
placeholder="请输入称呼"
|
placeholder="请输入称呼"
|
||||||
placeholder-style="color:#ccc"
|
placeholder-style="color:#ccc"
|
||||||
maxlength="10"
|
maxlength="10"
|
||||||
|
@blur="handleTargetNameBlur"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -251,6 +251,7 @@
|
|||||||
placeholder="请输入署名"
|
placeholder="请输入署名"
|
||||||
placeholder-style="color:#ccc"
|
placeholder-style="color:#ccc"
|
||||||
maxlength="5"
|
maxlength="5"
|
||||||
|
@blur="handleSignatureBlur"
|
||||||
/>
|
/>
|
||||||
<text class="edit-icon">✎</text>
|
<text class="edit-icon">✎</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -405,7 +406,12 @@ import {
|
|||||||
getCardTemplateContentList,
|
getCardTemplateContentList,
|
||||||
getCardTemplateTitleList,
|
getCardTemplateTitleList,
|
||||||
} from "@/api/make";
|
} from "@/api/make";
|
||||||
import { createShareToken, abilityCheck, getShareReward } from "@/api/system";
|
import {
|
||||||
|
createShareToken,
|
||||||
|
abilityCheck,
|
||||||
|
getShareReward,
|
||||||
|
msgCheckApi,
|
||||||
|
} from "@/api/system";
|
||||||
import {
|
import {
|
||||||
onShareAppMessage,
|
onShareAppMessage,
|
||||||
onLoad,
|
onLoad,
|
||||||
@@ -546,7 +552,38 @@ const handleTitleTouchMove = (e) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const targetName = ref("祝您");
|
const targetName = ref("祝您");
|
||||||
|
const oldTargetName = ref("祝您");
|
||||||
const signatureName = ref(userStore?.userInfo?.nickName || "xxx");
|
const signatureName = ref(userStore?.userInfo?.nickName || "xxx");
|
||||||
|
const oldSignatureName = ref(userStore?.userInfo?.nickName || "xxx");
|
||||||
|
|
||||||
|
const handleTargetNameBlur = async () => {
|
||||||
|
if (!targetName.value || targetName.value === oldTargetName.value) return;
|
||||||
|
const res = await msgCheckApi(targetName.value);
|
||||||
|
if (!res.success) {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message || "消息不符合发布规范,请稍作修改后再试",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
targetName.value = oldTargetName.value;
|
||||||
|
} else {
|
||||||
|
oldTargetName.value = targetName.value;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleSignatureBlur = async () => {
|
||||||
|
if (!signatureName.value || signatureName.value === oldSignatureName.value)
|
||||||
|
return;
|
||||||
|
const res = await msgCheckApi(signatureName.value);
|
||||||
|
if (!res.success) {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message || "消息不符合发布规范,请稍作修改后再试",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
signatureName.value = oldSignatureName.value;
|
||||||
|
} else {
|
||||||
|
oldSignatureName.value = signatureName.value;
|
||||||
|
}
|
||||||
|
};
|
||||||
const userAvatar = ref(
|
const userAvatar = ref(
|
||||||
userStore?.userInfo?.avatarUrl ||
|
userStore?.userInfo?.avatarUrl ||
|
||||||
"https://file.lihailezzc.com/resource/96023631c6ab9c3496b7620097af3d6f.png",
|
"https://file.lihailezzc.com/resource/96023631c6ab9c3496b7620097af3d6f.png",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
const BASE_URL = "https://api.ai-meng.com";
|
// const BASE_URL = "https://api.ai-meng.com";
|
||||||
// const BASE_URL = 'http://127.0.0.1:3999'
|
// const BASE_URL = 'http://127.0.0.1:3999'
|
||||||
// const BASE_URL = "http://192.168.1.3:3999";
|
const BASE_URL = "http://192.168.1.3:3999";
|
||||||
// const BASE_URL = "http://192.168.31.253:3999";
|
// const BASE_URL = "http://192.168.31.253:3999";
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user