refactor: clean up codebase and add new features
Replace SCSS variable usages with explicit pixel/hex values for consistent styling across all components Fix broken template syntax including missing class spaces and incorrect closing tags Migrate constant and API imports to centralized @/constants and @/api modules Add new utility classes: IdUtils, CallbackUtils, and TimerUtils Add new chat conversation API endpoints for recent conversations and message lists Add new Discovery page components (FindTabs, QuickQuestions, CardSwiper) and their styles Update app store config to use environment variables for base API and WebSocket URLs Add new selected tab icon assets
This commit is contained in:
@@ -1,50 +1,27 @@
|
||||
<template>
|
||||
<div class="form-wrapper">
|
||||
<div class="form-header">
|
||||
<uni-icons
|
||||
class="minus uni-color"
|
||||
color="opacity"
|
||||
size="22"
|
||||
type="minus"
|
||||
/>
|
||||
<spanclass="form-title">{{ title }}</text>
|
||||
<uni-icons
|
||||
v-if="showDeleteIcon"
|
||||
class="delete uni-color"
|
||||
color="opacity"
|
||||
size="22"
|
||||
type="trash"
|
||||
@click="handleDelete"
|
||||
/>
|
||||
<uni-icons class="minus uni-color" color="opacity" size="22" type="minus" />
|
||||
<span class="form-title">{{ title }}</span>
|
||||
<uni-icons v-if="showDeleteIcon" class="delete uni-color" color="opacity" size="22" type="trash"
|
||||
@click="handleDelete" />
|
||||
</div>
|
||||
<div class="form-item-wrapper">
|
||||
<div class="form-item">
|
||||
<div class="form-item-row">
|
||||
<spanclass="form-label">姓 名</text>
|
||||
<input
|
||||
class="form-input"
|
||||
:class="{ 'form-input-error': nameError }"
|
||||
v-model="nameValue"
|
||||
placeholder="请输入姓名"
|
||||
@blur="validateName"
|
||||
/>
|
||||
<span class="form-label">姓 名</span>
|
||||
<input class="form-input" :class="{ 'form-input-error': nameError }" v-model="nameValue" placeholder="请输入姓名"
|
||||
@blur="validateName" />
|
||||
</div>
|
||||
<spanv-if="nameError" class="form-error">{{ nameError }}</text>
|
||||
<span v-if="nameError" class="form-error">{{ nameError }}</span>
|
||||
</div>
|
||||
<div class="form-item">
|
||||
<div class="form-item-row">
|
||||
<spanclass="form-label">手机号</text>
|
||||
<input
|
||||
class="form-input"
|
||||
:class="{ 'form-input-error': phoneError }"
|
||||
v-model="phoneValue"
|
||||
placeholder="请输入手机号"
|
||||
type="tel"
|
||||
maxlength="11"
|
||||
@blur="validatePhone"
|
||||
/>
|
||||
<span class="form-label">手机号</span>
|
||||
<input class="form-input" :class="{ 'form-input-error': phoneError }" v-model="phoneValue"
|
||||
placeholder="请输入手机号" type="tel" maxlength="11" @blur="validatePhone" />
|
||||
</div>
|
||||
<spanv-if="phoneError" class="form-error">{{ phoneError }}</text>
|
||||
<span v-if="phoneError" class="form-error">{{ phoneError }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user