diff --git a/auto-imports.d.ts b/auto-imports.d.ts
index 9d24007..b0b0357 100644
--- a/auto-imports.d.ts
+++ b/auto-imports.d.ts
@@ -5,6 +5,4 @@
// Generated by unplugin-auto-import
// biome-ignore lint: disable
export {}
-declare global {
-
-}
+declare global {}
diff --git a/components.d.ts b/components.d.ts
index c4c0cd2..cc91605 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -31,7 +31,6 @@ declare module 'vue' {
VanCol: typeof import('vant/es')['Col']
VanDivider: typeof import('vant/es')['Divider']
VanField: typeof import('vant/es')['Field']
- VanForm: typeof import('vant/es')['Form']
VanGrid: typeof import('vant/es')['Grid']
VanGridItem: typeof import('vant/es')['GridItem']
VanIcon: typeof import('vant/es')['Icon']
diff --git a/src/App.vue b/src/App.vue
index 1301bf3..aee81b0 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -4,7 +4,7 @@ import { onMounted } from 'vue';
import appBridge from '@/assets/js/appBridge';
import utils from '@/assets/js/common';
-onMounted(async() => {
+onMounted(async () => {
if (utils.getParameter('digitalYiliToken')) {
// 隐藏/显示 header
appBridge.setHeaderShown(false);
diff --git a/src/api/common.js b/src/api/common.js
index 1c90620..fc4dfe9 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -85,9 +85,9 @@ export default class CommonApi {
};
/* eslint-disable no-useless-escape */
const reg = /\\|\/|\?|\?|\*|"|“|”|'|‘|’|<|>|{|}|\[|\]|\【|\】|:|:|、|\^|\$|!|~|`|\s|\+/g;
- name
- = name
- || getRandomFileName(file?.name?.replace(reg, '') ?? '' ?? `${new Date().getTime()}.png`);
+ name =
+ name ||
+ getRandomFileName(file?.name?.replace(reg, '') ?? '' ?? `${new Date().getTime()}.png`);
const res = await CommonApi.getOssInfo();
/* eslint-enable no-useless-escape */
diff --git a/src/components/YLPicker.vue b/src/components/YLPicker.vue
index c5108d0..7e5cf8f 100644
--- a/src/components/YLPicker.vue
+++ b/src/components/YLPicker.vue
@@ -170,8 +170,8 @@ const getMaxDateLimit = computed(() => {
props.format
);
const tempStr = '0000-12-31 23:59:59';
- const result
- = props.maxDate.length !== 0 && thisMax.length > props.maxDate.length
+ const result =
+ props.maxDate.length !== 0 && thisMax.length > props.maxDate.length
? thisMax.slice(0, props.maxDate.length) + tempStr.slice(props.maxDate.length)
: thisMax;
return result.slice(0, props.format.length);
@@ -194,8 +194,8 @@ function onChange({ selectedValues, columnIndex }) {
renderMinuteColumns,
renderSecondColumns
];
- updateColumns[columnIndex]
- && updateColumns[columnIndex](changeValue, getMinDateLimit.value, getMaxDateLimit.value, false);
+ updateColumns[columnIndex] &&
+ updateColumns[columnIndex](changeValue, getMinDateLimit.value, getMaxDateLimit.value, false);
}
// 渲染全部列
diff --git a/src/fonts/demo.css b/src/fonts/demo.css
index 12ec742..18e8077 100644
--- a/src/fonts/demo.css
+++ b/src/fonts/demo.css
@@ -4,11 +4,11 @@
src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834');
src:
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix')
- format('embedded-opentype'),
+ format('embedded-opentype'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont')
- format('svg');
+ format('svg');
}
.logo {
diff --git a/src/fonts/iconfont.json b/src/fonts/iconfont.json
index 44a9638..240e336 100644
--- a/src/fonts/iconfont.json
+++ b/src/fonts/iconfont.json
@@ -228,6 +228,6 @@
"font_class": "fasong",
"unicode": "e647",
"unicode_decimal": 58951
- },
+ }
]
}
diff --git a/src/fonts/moblie/demo.css b/src/fonts/moblie/demo.css
index 12ec742..18e8077 100644
--- a/src/fonts/moblie/demo.css
+++ b/src/fonts/moblie/demo.css
@@ -4,11 +4,11 @@
src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834');
src:
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix')
- format('embedded-opentype'),
+ format('embedded-opentype'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont')
- format('svg');
+ format('svg');
}
.logo {
diff --git a/src/layouts/logic.js b/src/layouts/logic.js
index dd6beaf..c121a41 100644
--- a/src/layouts/logic.js
+++ b/src/layouts/logic.js
@@ -376,39 +376,39 @@ export function isCross(range1, range2) {
const isSibling = isLeft || isRight;
// 逻辑包含循环
- const contain
- = (isPlainSequence
- && (((isNullish(start2) || isSequence(judge, start2, start1))
- && (isNullish(end2) || isSequence(judge, end2, start1)))
- || ((isNullish(start2) || isSequence(start1, start2, end1))
- && (isNullish(end2) || isSequence(start1, end2, end1)))))
- || (!isPlainSequence
- && (judge < start1
- ? ((isNullish(start2) || isSequence(judge, start2, start1))
- && (isNullish(end2) || isSequence(judge, end2, start1)))
- || ((isNullish(start2) || isSequence(start1, start2, end1))
- && (isNullish(end2) || isSequence(start1, end2, end1)))
- : ((isNullish(start2) || isSequence(start1, start2, judge))
- && (isNullish(end2) || isSequence(start1, end2, judge)))
- || ((isNullish(start2) || isSequence(judge, start2, end1))
- && (isNullish(end2) || isSequence(judge, end2, end1)))));
+ const contain =
+ (isPlainSequence &&
+ (((isNullish(start2) || isSequence(judge, start2, start1)) &&
+ (isNullish(end2) || isSequence(judge, end2, start1))) ||
+ ((isNullish(start2) || isSequence(start1, start2, end1)) &&
+ (isNullish(end2) || isSequence(start1, end2, end1))))) ||
+ (!isPlainSequence &&
+ (judge < start1
+ ? ((isNullish(start2) || isSequence(judge, start2, start1)) &&
+ (isNullish(end2) || isSequence(judge, end2, start1))) ||
+ ((isNullish(start2) || isSequence(start1, start2, end1)) &&
+ (isNullish(end2) || isSequence(start1, end2, end1)))
+ : ((isNullish(start2) || isSequence(start1, start2, judge)) &&
+ (isNullish(end2) || isSequence(start1, end2, judge))) ||
+ ((isNullish(start2) || isSequence(judge, start2, end1)) &&
+ (isNullish(end2) || isSequence(judge, end2, end1)))));
// 循环存在封闭区间,并且循环包含逻辑
- const contained
- = !isNullish(start2)
- && !isNullish(end2)
+ const contained =
+ !isNullish(start2) &&
+ !isNullish(end2) &&
// [judge, start1, end1];
- && ((isPlainSequence && start2 <= judge && end1 <= end2)
+ ((isPlainSequence && start2 <= judge && end1 <= end2) ||
// [judge, start1, end1];
// [start1, judge, end1];
- || (!isPlainSequence && start2 <= start1 && start2 <= judge && end1 <= end2));
+ (!isPlainSequence && start2 <= start1 && start2 <= judge && end1 <= end2));
// 循环不存在封闭区间
- const unCircled
- = (!isNullish(start2)
- && isNullish(end2)
- && ((isPlainSequence && start2 === judge) || (!isPlainSequence && judge < start1)
+ const unCircled =
+ (!isNullish(start2) &&
+ isNullish(end2) &&
+ ((isPlainSequence && start2 === judge) || (!isPlainSequence && judge < start1)
? start2 === judge
- : start2 === start1))
- || (isNullish(start2) && !isNullish(end2) && end2 === end1);
+ : start2 === start1)) ||
+ (isNullish(start2) && !isNullish(end2) && end2 === end1);
return !(isSibling || contain || contained || unCircled);
}
@@ -428,8 +428,8 @@ function isSequence(s1, s2, s3, equal) {
* @param store
*/
export function updateNewQuestionsByLoopingEffect(quesSaveParam, store) {
- const { questionInfoBeforeModified = {}, questionInfo = {} }
- = JSON.parse(JSON.stringify(store.state.common)) || {};
+ const { questionInfoBeforeModified = {}, questionInfo = {} } =
+ JSON.parse(JSON.stringify(store.state.common)) || {};
const oldPages = questionInfoBeforeModified.survey.pages;
const newQuestions = questionInfo.questions;
diff --git a/src/layouts/utils.js b/src/layouts/utils.js
index f2d52b8..d8d5538 100644
--- a/src/layouts/utils.js
+++ b/src/layouts/utils.js
@@ -30,13 +30,13 @@ function showModal(options) {
* @param {*} data
* @returns
*/
-const canPlanetPublishPSM = function(data) {
+const canPlanetPublishPSM = function (data) {
let isFb = true;
let message = '';
let title = '题目设置未完成';
const incompleteQuestionList = [];
- data.questions
- && data.questions.forEach((s) => {
+ data.questions &&
+ data.questions.forEach((s) => {
if (s.question_type === 101 && s.config.price_gradient.length <= 0) {
isFb = false;
message = 'psm题目未完成设置,请设置价格区间后投放';
@@ -60,15 +60,15 @@ const canPlanetPublishPSM = function(data) {
* @param {*} data
* @returns
*/
-const canPlanetPublishMxdAndHotArea = function(data) {
+const canPlanetPublishMxdAndHotArea = function (data) {
let isFb = true;
let message = '';
const qSteams = [];
const incompleteQuestionList = [];
let type = 0;
let title = '题目设置未完成';
- data.questions
- && data.questions.forEach((s) => {
+ data.questions &&
+ data.questions.forEach((s) => {
if (s.question_type === 105 && s.config.design_version <= 0) {
isFb = false;
message = 'maxdiff题目未完成设置,请生成设计后投放';
@@ -107,14 +107,14 @@ const canPlanetPublishMxdAndHotArea = function(data) {
* @param {*} data
* @returns
*/
-const canPlanetPublish3D = function(data) {
+const canPlanetPublish3D = function (data) {
{
let canFB = true;
let message = '';
const qSteams = [];
let title = '';
- data.questions
- && data.questions.forEach((s) => {
+ data.questions &&
+ data.questions.forEach((s) => {
if (QUESTION_TYPE.contains(s.question_type)) {
try {
if (s.config.is_three_dimensions && !s.config.scene) {
@@ -144,15 +144,15 @@ const canPlanetPublish3D = function(data) {
let message = '';
const qSteams = [];
let title = '';
- data.questions
- && data.questions.forEach((s) => {
+ data.questions &&
+ data.questions.forEach((s) => {
if (QUESTION_TYPE.contains(s.question_type)) {
try {
if (s.config.is_three_dimensions && s.config.is_binding_goods) {
const wares = [];
const _sceneInformation = s.config.scene_information;
- const sceneInformation
- = typeof _sceneInformation === 'string'
+ const sceneInformation =
+ typeof _sceneInformation === 'string'
? JSON.parse(_sceneInformation)
: _sceneInformation;
sceneInformation.shelves.forEach((shelf) => {
@@ -202,14 +202,14 @@ const canPlanetPublish3D = function(data) {
* @param {*} data
* @returns
*/
-const canPlanetPublishImage = function(data) {
+const canPlanetPublishImage = function (data) {
{
let canFB = true;
let message = '';
const qSteams = [];
let title = '';
- data.questions
- && data.questions.forEach((s) => {
+ data.questions &&
+ data.questions.forEach((s) => {
if (s.question_type === 13) {
try {
if (s.options.length <= 0 || s.options.some((y) => y.length <= 0)) {
@@ -304,8 +304,8 @@ function canPublishRandom(data, publishType) {
if (!isValidated) {
errors.push({
message:
- field.message
- || `请填写"${random.title}"中第${index + 1}组"随机题组"的"${field.name}"`
+ field.message ||
+ `请填写"${random.title}"中第${index + 1}组"随机题组"的"${field.name}"`
});
}
});
@@ -384,11 +384,11 @@ function isLoopingLogicValid(data, publishType) {
if (
(data?.cycle_pages || []).every((i) => {
return (
- i.question_index
- && i.relation_type !== undefined
- && i.relation_type !== null
- && i.first_page
- && i.last_page
+ i.question_index &&
+ i.relation_type !== undefined &&
+ i.relation_type !== null &&
+ i.first_page &&
+ i.last_page
);
})
) {
@@ -412,7 +412,7 @@ function isLoopingLogicValid(data, publishType) {
* @param sn
* @param publishType undefined投放;null投放;0投放;1预览;2投放;3测试
*/
-export const canPlanetPublish = async function(sn, publishType) {
+export const canPlanetPublish = async function (sn, publishType) {
const parsedPublishType = !publishType ? 2 : publishType;
const num = window.location.href.indexOf('code=');
let code;
diff --git a/src/request/api/modules/survey.ts b/src/request/api/modules/survey.ts
index 24a3eba..c665a46 100644
--- a/src/request/api/modules/survey.ts
+++ b/src/request/api/modules/survey.ts
@@ -1,2 +1,2 @@
-export const surveyQuestion
- = 'https://yls-api-uat.dctest.digitalyili.com/api/console/surveys/RWNK9BYp/questions';
+export const surveyQuestion =
+ 'https://yls-api-uat.dctest.digitalyili.com/api/console/surveys/RWNK9BYp/questions';
diff --git a/src/request/axios/index.ts b/src/request/axios/index.ts
index bded0ab..9f947d0 100644
--- a/src/request/axios/index.ts
+++ b/src/request/axios/index.ts
@@ -39,10 +39,10 @@ service.interceptors.request.use(
service.interceptors.response.use(
(response) => {
if (
- response.status === 200
- || response.status === 201
- || response.status === 202
- || response.status === 204
+ response.status === 200 ||
+ response.status === 201 ||
+ response.status === 202 ||
+ response.status === 204
) {
if (response.config.method === 'put') {
// message.success('保存中...');
diff --git a/src/utils/request.js b/src/utils/request.js
index 9bd34c2..183d93c 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -44,10 +44,10 @@ service.interceptors.request.use(
service.interceptors.response.use(
(response) => {
if (
- response.status === 200
- || response.status === 201
- || response.status === 202
- || response.status === 204
+ response.status === 200 ||
+ response.status === 201 ||
+ response.status === 202 ||
+ response.status === 204
) {
if (response.config.method === 'put') {
// message.success('保存中...');
diff --git a/src/views/Design/components/ActionCompoents/OptionAction.vue b/src/views/Design/components/ActionCompoents/OptionAction.vue
index 7e928e6..8e9cec3 100644
--- a/src/views/Design/components/ActionCompoents/OptionAction.vue
+++ b/src/views/Design/components/ActionCompoents/OptionAction.vue
@@ -138,23 +138,23 @@ const openOptionActionModel = (item, index) => {
// 上下移动
const optionMove = (action) => {
switch (action.action) {
- case 'up':
- if (activeIndex.value === 0) {
- moveShow.value = false;
- return false;
- }
- // 向上移动
- element.value.splice(activeIndex.value - 1, 0, element.value.splice(activeIndex.value, 1)[0]);
- activeIndex.value -= 1;
- break;
- case 'down':
- if (activeIndex.value === element.value.length - 1) {
- moveShow.value = false;
- return false;
- }
- element.value.splice(activeIndex.value + 1, 0, element.value.splice(activeIndex.value, 1)[0]);
- activeIndex.value += 1;
- break;
+ case 'up':
+ if (activeIndex.value === 0) {
+ moveShow.value = false;
+ return false;
+ }
+ // 向上移动
+ element.value.splice(activeIndex.value - 1, 0, element.value.splice(activeIndex.value, 1)[0]);
+ activeIndex.value -= 1;
+ break;
+ case 'down':
+ if (activeIndex.value === element.value.length - 1) {
+ moveShow.value = false;
+ return false;
+ }
+ element.value.splice(activeIndex.value + 1, 0, element.value.splice(activeIndex.value, 1)[0]);
+ activeIndex.value += 1;
+ break;
}
};
diff --git a/src/views/Design/components/ActionCompoents/components/QuestionItemAction/RateQuestionAction.vue b/src/views/Design/components/ActionCompoents/components/QuestionItemAction/RateQuestionAction.vue
index 21ae153..63aca99 100644
--- a/src/views/Design/components/ActionCompoents/components/QuestionItemAction/RateQuestionAction.vue
+++ b/src/views/Design/components/ActionCompoents/components/QuestionItemAction/RateQuestionAction.vue
@@ -153,8 +153,7 @@ function intervalChange(value) {
* @param value {number} 当数值改变之后的值
*/
const minChange = (value) => {
- // localConfig.value.min = value;
-
+ localConfig.value.min = value ? value : 1;
setDefaultMax();
emitInfo();
};
diff --git a/src/views/Design/components/Questions/paging/Paging.vue b/src/views/Design/components/Questions/paging/Paging.vue
index 62d9592..57eb0e1 100644
--- a/src/views/Design/components/Questions/paging/Paging.vue
+++ b/src/views/Design/components/Questions/paging/Paging.vue
@@ -11,7 +11,8 @@
class="iconfont active-icon"
:style="{ marginRight: isLastPage ? '0' : '16px' }"
@click="activePage"
- >
+ >
diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue
index 1fc182c..fe10f20 100644
--- a/src/views/Home/Index.vue
+++ b/src/views/Home/Index.vue
@@ -10,7 +10,7 @@ import { showFailToast } from 'vant';
import appBridge from '@/assets/js/appBridge';
const contentShow = ref(false);
-onMounted(async() => {
+onMounted(async () => {
if (appBridge.isInReactNative()) {
const appToken = utils.getSessionStorage('xToken');
getUserInfo(appToken)
diff --git a/src/views/Market/Index.vue b/src/views/Market/Index.vue
index a9c47ed..e25ee42 100644
--- a/src/views/Market/Index.vue
+++ b/src/views/Market/Index.vue
@@ -3,7 +3,9 @@
报名/签到模板
- 报名签到 | 引用 {{ item }} 次 | 创建人: {{ '张三' }}
+ 报名签到 | 引用 {{ item }} 次 | 创建人: {{ '张三' }}