Merge branch 'feature/feature-20250331-h5' into uat

This commit is contained in:
liu.huiying@ebiz-digits.com
2025-03-18 18:13:48 +08:00
4 changed files with 8 additions and 9 deletions

View File

@@ -32,8 +32,9 @@
<RateCharacter
:config="element.config"
:index="optionIndex"
v-model:model="value"
@change="handleRateChange"
></RateCharacter>
/>
</div>
</div>
</template>
@@ -45,6 +46,7 @@
import { ref } from 'vue';
import RateCharacter from './RateCharacter.vue';
const value = defineModel('value', { default: -1, type: Number });
const isPreview = defineModel('isPreview', { default: false, type: Boolean });
/* const props = */ defineProps({
index: {

View File

@@ -16,8 +16,8 @@
<script setup>
import { ref, watch } from 'vue';
import { value as model } from '@/views/Design/components/Questions/hooks/useNPSHooks';
const model = defineModel('model', -1);
const rateItem = ref([
{
label: 1,

View File

@@ -4,14 +4,12 @@
<script setup lang="ts">
import NPS from '@/views/Design/components/Questions/NPS.vue';
import { watch } from 'vue';
import { value } from '@/views/Design/components/Questions/hooks/useNPSHooks';
import { watch, ref } from 'vue';
const value = ref(-1);
// // 预览新增 emit ['changeAnswer', 'previous', 'next']
const emit = defineEmits(['changeAnswer', 'previous', 'next', 'update:element']);
const question = defineModel<question>('question', { default: { config: { is_required: false } } });
/**
* answer 的答案类型
* {
@@ -24,7 +22,6 @@ const answer = defineModel<NPSAnswerType>('answer', { default: undefined });
// function parseAnswer() {
// return answer.value[`1`];
// }
/**
* 生成NPS答案
*/

View File

@@ -121,8 +121,8 @@ function copyLink() {
function shareLink() {
const params = {
type: 'shareToWx',
title: publishInfo.value.download_url.title,
description: publishInfo.value.desc || '',
title: surveyTitle.value || (publishInfo.value.download_url.title ? publishInfo.value.download_url.title.replace(/_发布二维码\.[a-zA-Z]+$/, '') : ''),
description: publishInfo.value.desc || '填写问卷',
thumbImageUrl: publishInfo.value.img_url,
webpageUrl: publishInfo.value.url,
// 朋友圈1 微信好友0