feat: bug fix

This commit is contained in:
kenny
2025-10-21 16:37:19 +08:00
parent 5297bd4d70
commit 61c05c924d
40 changed files with 225 additions and 153 deletions
+71 -69
View File
@@ -1,87 +1,89 @@
<template>
<view class="questions">
<view class="question-item" v-for="(item, index) in options" :key="index">
<view class="title">{{ item.tip }}</view>
<view class="options">
<view
class="option-item"
@tap="onTap(v, item.key, item.multiply)"
v-for="v in item.options"
:key="v.image"
>
<image
:src="v.female"
mode="widthFix"
class="image"
:class="{
selected: item.multiply
? form[item.key].includes(v.label)
: form[item.key] === v.label,
}"
/>
<view class="tip">{{ v.label }}</view>
<s-layout :bgStyle="{ color: '#FFF' }" title="">
<view class="questions">
<view class="question-item" v-for="(item, index) in options" :key="index">
<view class="title">{{ item.tip }}</view>
<view class="options">
<view
class="circle-checkbox"
:style="{
background: (
item.multiply ? form[item.key].includes(v.label) : form[item.key] === v.label
)
? 'rgba(0, 0, 0, 0.8)'
: 'rgba(0, 0, 0, 0.3)',
}"
class="option-item"
@tap="onTap(v, item.key, item.multiply)"
v-for="v in item.options"
:key="v.image"
>
<image
:src="v.female"
mode="widthFix"
class="image"
:class="{
selected: item.multiply
? form[item.key].includes(v.label)
: form[item.key] === v.label,
}"
/>
<view class="tip">{{ v.label }}</view>
<view
class="checkmark"
v-show="item.multiply ? form[item.key].includes(v.label) : form[item.key] === v.label"
class="circle-checkbox"
:style="{
background: (
item.multiply ? form[item.key].includes(v.label) : form[item.key] === v.label
)
? 'rgba(0, 0, 0, 0.8)'
: 'rgba(0, 0, 0, 0.3)',
}"
>
<image
src="https://oss.yz.zglvling.com/user/image/2025-07-23/1753234211808517.png"
mode="aspectFill"
class="img-1"
/>
<view
class="checkmark"
v-show="item.multiply ? form[item.key].includes(v.label) : form[item.key] === v.label"
>
<image
src="https://oss.yz.zglvling.com/user/image/2025-07-23/1753234211808517.png"
mode="aspectFill"
class="img-1"
/>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="btn-bottom">
<button class="next-btn" @tap="nextStep"> 下一步 </button>
<view class="btn-bottom">
<button class="next-btn" @tap="nextStep"> 下一步 </button>
<uni-file-picker
v-if="isHideUploadBtn"
:auto-upload="false"
:del-icon="false"
:disable-preview="true"
sizeType="['original']"
class="custom-upload"
:sourceType="['album', 'camera']"
limit="1"
mode="grid"
@select="selectPic"
/>
</view>
<uni-file-picker
v-if="isHideUploadBtn"
:auto-upload="false"
:del-icon="false"
:disable-preview="true"
sizeType="['original']"
class="custom-upload"
:sourceType="['album', 'camera']"
limit="1"
mode="grid"
@select="selectPic"
/>
</view>
<div class="dialog" v-if="false">
<div class="dialog-main">
<div class="next-input">
<uni-file-picker
:auto-upload="false"
:del-icon="false"
:disable-preview="true"
sizeType="['original']"
class="upload"
limit="1"
mode="grid"
>选择选择选择选择选择选择选择选择
</uni-file-picker>
<div class="dialog" v-if="false">
<div class="dialog-main">
<div class="next-input">
<uni-file-picker
:auto-upload="false"
:del-icon="false"
:disable-preview="true"
sizeType="['original']"
class="upload"
limit="1"
mode="grid"
>选择选择选择选择选择选择选择选择
</uni-file-picker>
</div>
</div>
</div>
</div>
</view>
</view>
</s-layout>
</template>
<script setup>