feat: bug fix
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user