fix ux details
This commit is contained in:
1 parent
df76f2b35a
commit
5b723b7a40
8 files changed
+40
-5
No files matched your search
@@ -76,6 +76,19 @@
|
||||
<el-option key="true" :label="'true'" :value="true" />
|
||||
<el-option key="false" :label="'false'" :value="false" />
|
||||
</el-select>
|
||||
<el-select
|
||||
v-else-if="item?.example"
|
||||
v-model="value[itemKey?.toString()]"
|
||||
:clearable="true"
|
||||
:filterable="true"
|
||||
:allow-create="true"
|
||||
:placeholder="$t('common.title.placeholderOfSelect')"
|
||||
>
|
||||
<el-option :label="item.example" :value="item.example" class="select-option">
|
||||
<span class="select-option-main">{{ item.example }}</span>
|
||||
<span class="select-option-description">{{ $t('application.message.example') }}</span>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-input v-else v-model="value[itemKey?.toString()]" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,5 +5,6 @@ export default {
|
||||
yourApplication: '你的申请',
|
||||
unverified: '您需要完成实名认证之后方可申请该服务',
|
||||
goVerify: '去实名认证',
|
||||
requiredParameter: '必填参数'
|
||||
requiredParameter: '必填参数',
|
||||
example: '样例'
|
||||
};
|
||||
@@ -2,5 +2,6 @@ export default {
|
||||
free: '免费',
|
||||
appliedCount: '申请次数',
|
||||
indexTitle: '方便易用的数字化解决方案',
|
||||
indexSubtitle: '用一个个标准化服务,助力你工作与生活的方方面面。'
|
||||
indexSubtitle: '用一个个标准化服务,助力你工作与生活的方方面面。',
|
||||
fromPrice: '起'
|
||||
};
|
||||
@@ -1,3 +1,5 @@
|
||||
export default {
|
||||
usage: '次'
|
||||
count: '次',
|
||||
Count: '次',
|
||||
MB: 'MB'
|
||||
};
|
||||
@@ -21,6 +21,7 @@ export interface ISchema {
|
||||
type: 'object' | 'array' | 'string' | 'number' | 'boolean';
|
||||
title: string;
|
||||
optional: boolean;
|
||||
example: string | number;
|
||||
}
|
||||
|
||||
export interface IRequest {
|
||||
|
||||
@@ -3,6 +3,7 @@ import { IApi } from '../api/models';
|
||||
export interface IService {
|
||||
id: string;
|
||||
title: string;
|
||||
unit?: string;
|
||||
price?: number;
|
||||
description?: string;
|
||||
tags?: string[];
|
||||
|
||||
@@ -23,7 +23,10 @@
|
||||
<div class="price">
|
||||
<p v-if="service && service.price && service.price > 0" class="unfree">
|
||||
<span class="value">¥{{ service.price }}</span>
|
||||
<span class="unit"> / {{ $t('service.unit.usage') }}</span>
|
||||
<span class="unit"> / {{ $t(`service.unit.${service.unit}`) }}</span>
|
||||
<span class="from">
|
||||
{{ $t('service.message.fromPrice') }}
|
||||
</span>
|
||||
</p>
|
||||
<p v-else class="free">
|
||||
{{ $t('service.message.free') }}
|
||||
@@ -337,6 +340,10 @@ export default defineComponent({
|
||||
.unit {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.from {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
.free {
|
||||
color: #29c287;
|
||||
@@ -479,4 +486,13 @@ export default defineComponent({
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.proxies {
|
||||
margin-bottom: 40px;
|
||||
.operations {
|
||||
align-items: center;
|
||||
justify-items: center;
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -45,7 +45,7 @@
|
||||
<el-image class="thumb" :src="service?.thumbnail" />
|
||||
<div class="title">{{ service.title }}</div>
|
||||
<div class="price">
|
||||
<service-price :price="service?.price" />
|
||||
<service-price :price="service?.price" :unit="$t(`service.unit.${service.unit}`)" />
|
||||
</div>
|
||||
<div class="description">
|
||||
<p>
|
||||
|
||||
Reference in new issue
Block a user