Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bbd62bb8
authored
Dec 07, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改输入框后置元样式
1 parent
e71ac74f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
src/assets/css/public.scss
src/views/memberCenter/center.vue
src/views/memberCenter/serviceAddUpdateLook.vue
src/views/memberCenter/setmealAddUpdate.vue
src/assets/css/public.scss
View file @
bbd62bb
...
@@ -20,7 +20,13 @@ html {
...
@@ -20,7 +20,13 @@ html {
padding
:
15px
20px
;
padding
:
15px
20px
;
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0
.10
);
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0
.10
);
}
}
//输入框后置文字(如 “元”)
.suffix-label
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
margin-right
:
5px
;
}
// 单行省略
// 单行省略
.ellipsis-1
{
.ellipsis-1
{
overflow
:
hidden
;
overflow
:
hidden
;
...
...
src/views/memberCenter/center.vue
View file @
bbd62bb
...
@@ -32,13 +32,15 @@
...
@@ -32,13 +32,15 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"售价"
size=
"small"
prop=
"price"
style=
"width: 300px"
>
<el-form-item
label=
"售价"
size=
"small"
prop=
"price"
style=
"width: 300px"
>
<el-input
v-model=
"ruleForm.price"
size=
"small"
placeholder=
"请输入合理价格"
@
keyup
.
native=
"ruleForm.price = oninput(ruleForm.price)"
>
<el-input
v-model=
"ruleForm.price"
size=
"small"
placeholder=
"请输入合理价格"
@
keyup
.
native=
"ruleForm.price = oninput(ruleForm.price)"
>
<template
slot=
"append"
>
元
</
template
>
<!--
<template
slot=
"append"
>
元
</
template
>
-->
<span
slot=
"suffix"
>
元
</span>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"市场价"
prop=
"marketPrice"
size=
"small"
style=
"width: 300px"
>
<el-form-item
label=
"市场价"
prop=
"marketPrice"
size=
"small"
style=
"width: 300px"
>
<!-- :onkeyup="(ruleForm.marketPrice = ruleForm.marketPrice.replace(/[^\-\d.]/g, ''))" -->
<!-- :onkeyup="(ruleForm.marketPrice = ruleForm.marketPrice.replace(/[^\-\d.]/g, ''))" -->
<el-input
v-model=
"ruleForm.marketPrice"
size=
"small"
placeholder=
"请输入合理价格"
@
keyup
.
native=
"ruleForm.marketPrice = oninput(ruleForm.marketPrice)"
>
<el-input
v-model=
"ruleForm.marketPrice"
size=
"small"
placeholder=
"请输入合理价格"
@
keyup
.
native=
"ruleForm.marketPrice = oninput(ruleForm.marketPrice)"
>
<
template
slot=
"append"
>
元
</
template
>
<!-- <template slot="append">元</template> -->
<span
slot=
"suffix"
class=
"suffix-label"
>
元
</span>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
...
src/views/memberCenter/serviceAddUpdateLook.vue
View file @
bbd62bb
...
@@ -77,12 +77,14 @@
...
@@ -77,12 +77,14 @@
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"会员价"
prop=
"vipPrice"
style=
"width: 315px"
>
<el-form-item
size=
"small"
label=
"会员价"
prop=
"vipPrice"
style=
"width: 315px"
>
<el-input
size=
"small"
:disabled=
"disabledContent"
maxlength=
"9"
v-model=
"ruleForm.vipPrice"
placeholder=
"请输入"
@
keyup
.
native=
"ruleForm.vipPrice = oninput(ruleForm.vipPrice)"
>
<el-input
size=
"small"
:disabled=
"disabledContent"
maxlength=
"9"
v-model=
"ruleForm.vipPrice"
placeholder=
"请输入"
@
keyup
.
native=
"ruleForm.vipPrice = oninput(ruleForm.vipPrice)"
>
<template
slot=
"append"
>
元
</
template
>
<!--
<template
slot=
"append"
>
元
</
template
>
-->
<span
slot=
"suffix"
class=
"suffix-label"
>
元
</span>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"门店价"
prop=
"shopPrice"
style=
"width: 315px"
>
<el-form-item
size=
"small"
label=
"门店价"
prop=
"shopPrice"
style=
"width: 315px"
>
<el-input
size=
"small"
:disabled=
"disabledContent"
maxlength=
"9"
v-model=
"ruleForm.shopPrice"
placeholder=
"请输入"
@
keyup
.
native=
"ruleForm.shopPrice = oninput(ruleForm.shopPrice)"
>
<el-input
size=
"small"
:disabled=
"disabledContent"
maxlength=
"9"
v-model=
"ruleForm.shopPrice"
placeholder=
"请输入"
@
keyup
.
native=
"ruleForm.shopPrice = oninput(ruleForm.shopPrice)"
>
<
template
slot=
"append"
>
元
</
template
>
<!-- <template slot="append">元</template> -->
<span
slot=
"suffix"
class=
"suffix-label"
>
元
</span>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"库存"
prop=
"stock"
style=
"width: 315px"
>
<el-form-item
size=
"small"
label=
"库存"
prop=
"stock"
style=
"width: 315px"
>
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
bbd62bb
...
@@ -28,7 +28,8 @@
...
@@ -28,7 +28,8 @@
<el-form-item
size=
"small"
label=
"售价"
prop=
"packagePrice"
style=
"width: 315px"
>
<el-form-item
size=
"small"
label=
"售价"
prop=
"packagePrice"
style=
"width: 315px"
>
<el-input
size=
"small"
v-model=
"ruleForm.packagePrice"
placeholder=
"请输入"
@
keyup
.
native=
"ruleForm.packagePrice = oninput(ruleForm.packagePrice)"
>
<el-input
size=
"small"
v-model=
"ruleForm.packagePrice"
placeholder=
"请输入"
@
keyup
.
native=
"ruleForm.packagePrice = oninput(ruleForm.packagePrice)"
>
<template
slot=
"append"
>
元
</
template
>
<!--
<template
slot=
"append"
>
元
</
template
>
-->
<span
slot=
"suffix"
class=
"suffix-label"
>
元
</span>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment