更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<!-- 平台信息 -->
|
||||
<view class="section-card">
|
||||
<view class="section-title">平台信息</view>
|
||||
|
||||
@@ -36,7 +35,6 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 挂载账号列表 -->
|
||||
<view class="section-card">
|
||||
<view class="section-head">
|
||||
<text class="section-title">挂载账号列表</text>
|
||||
@@ -115,7 +113,6 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 保存 -->
|
||||
<view class="footer">
|
||||
<u-button
|
||||
type="primary"
|
||||
@@ -222,7 +219,6 @@ async function onSubmit() {
|
||||
uni.showToast({ title: '保存成功', icon: 'success' })
|
||||
setTimeout(() => uni.navigateBack(), 400)
|
||||
} catch (e) {
|
||||
// 错误提示由 request 层统一处理
|
||||
} finally {
|
||||
saving.value = false
|
||||
}
|
||||
@@ -241,7 +237,6 @@ function onDelete() {
|
||||
uni.showToast({ title: '已删除', icon: 'none' })
|
||||
setTimeout(() => uni.navigateBack(), 400)
|
||||
} catch (e) {
|
||||
// 错误提示由 request 层统一处理
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<!-- 顶部工具栏 -->
|
||||
<view class="toolbar">
|
||||
<u-search
|
||||
v-model="keyword"
|
||||
@@ -12,17 +11,14 @@
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 统计 -->
|
||||
<view class="stats-row">
|
||||
<text class="stats-text">共 {{ total }} 条</text>
|
||||
</view>
|
||||
|
||||
<!-- 加载中 -->
|
||||
<view v-if="loading" class="loading-wrap">
|
||||
<u-loading-icon mode="circle" size="36" color="#2563eb"></u-loading-icon>
|
||||
</view>
|
||||
|
||||
<!-- 空态 -->
|
||||
<u-empty
|
||||
v-else-if="!list.length"
|
||||
mode="data"
|
||||
@@ -30,10 +26,8 @@
|
||||
margin-top="120"
|
||||
/>
|
||||
|
||||
<!-- 账号卡片列表 -->
|
||||
<view v-else class="store-list">
|
||||
<view v-for="store in list" :key="store.id" class="store-card">
|
||||
<!-- 平台头 -->
|
||||
<view class="store-head" @click="toggleExpand(store.id)">
|
||||
<view class="store-icon">
|
||||
<FaIcon name="key" color="#2563eb" :size="18" />
|
||||
@@ -60,10 +54,8 @@
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 平台备注 -->
|
||||
<view v-if="store.remark" class="store-remark">{{ store.remark }}</view>
|
||||
|
||||
<!-- 账号明细 -->
|
||||
<view v-if="expandedId === store.id" class="account-list">
|
||||
<view v-for="(acc, idx) in store.accounts" :key="idx" class="account-item">
|
||||
<view class="account-row">
|
||||
@@ -95,7 +87,6 @@
|
||||
<view v-if="!store.accounts.length" class="account-empty">该平台暂无账号</view>
|
||||
</view>
|
||||
|
||||
<!-- 操作行 -->
|
||||
<view class="actions-row">
|
||||
<view class="action-btn" @click.stop="goEdit(store.id)">
|
||||
<FaIcon name="pen-to-square" color="#2563eb" :size="14" />
|
||||
@@ -109,7 +100,6 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 悬浮新增 -->
|
||||
<view class="fab" @click="goEdit()">
|
||||
<FaIcon name="plus" color="#ffffff" :size="24" />
|
||||
</view>
|
||||
@@ -189,7 +179,6 @@ function onDelete(store) {
|
||||
uni.showToast({ title: '已删除', icon: 'none' })
|
||||
loadList()
|
||||
} catch (e) {
|
||||
// 错误提示由 request 层统一处理
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -197,7 +186,6 @@ function onDelete(store) {
|
||||
|
||||
onLoad(() => loadList())
|
||||
onShow(() => {
|
||||
// 从编辑页返回后刷新(首次进入由 onLoad 加载,避免重复请求)
|
||||
if (inited.value) loadList()
|
||||
inited.value = true
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user