Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
ufo-platform-fe
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoo
5 years ago
Commit
308916ed7a19549372d81002458b2a0ecc5cb59d
1 parent
a6d8b75c
feat(service-setting): 改为字符串
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
106 deletions
src/config/env.js
src/views/service-fee-setting/detail.vue
src/views/service-fee-setting/index.vue
src/views/service-fee-setting/item.vue
src/config/env.js
View file @
308916e
export
default
"development"
;
\ No newline at end of file
export
default
"production"
;
\ No newline at end of file
...
...
src/views/service-fee-setting/detail.vue
View file @
308916e
...
...
@@ -65,9 +65,9 @@ export default {
methods: {
onAddClick() {
this.rules.push({
min: 0,
max: 0,
rate: 0,
min: '',
max: '',
rate: '',
index: this.genId()
});
},
...
...
@@ -78,9 +78,9 @@ export default {
ruleParam: {
rules: vm.rules.map(i => {
return {
min: Number(i.min),
max: Number(i.max),
rate: Number(i.rate)
min: i.min,
max: i.max,
rate: i.rate
};
})
}
...
...
src/views/service-fee-setting/index.vue
View file @
308916e
...
...
@@ -27,101 +27,7 @@ export default {
let vm = this;
return {
data: [
{
enterType: 0, //0:非入驻,1:普通入驻,2:超级
ruleParam: {
rules: [
{
min: 0,
max: 9,
rate: 0.04
},
{
min: 10,
max: 19,
rate: 0.048
},
{
min: 20,
max: 49,
rate: 0.047
},
{
min: 50,
max: 99,
rate: 0.045
},
{
min: 100,
rate: 0.04
}
]
}
},
{
enterType: 1, //0:非入驻,1:普通入驻,2:超级
ruleParam: {
rules: [
{
min: 0,
max: 9,
rate: 0.05
},
{
min: 10,
max: 19,
rate: 0.048
},
{
min: 20,
max: 49,
rate: 0.047
},
{
min: 50,
max: 99,
rate: 0.045
},
{
min: 100,
rate: 0.04
}
]
}
},
{
enterType: 2, //0:非入驻,1:普通入驻,2:超级
ruleParam: {
rules: [
{
min: 0,
max: 9,
rate: 0.06
},
{
min: 10,
max: 19,
rate: 0.048
},
{
min: 20,
max: 49,
rate: 0.047
},
{
min: 50,
max: 99,
rate: 0.045
},
{
min: 100,
rate: 0.04
}
]
}
}
],
data: [],
columns: [
{
type: "index",
...
...
src/views/service-fee-setting/item.vue
View file @
308916e
<template>
<FormItem>
<span>订单数</span>
<i-input
type="number"
v-model="data.min" style="width: 100px"></i-input>
<i-input v-model="data.min" style="width: 100px"></i-input>
<span>-</span>
<i-input
type="number"
v-model="data.max" style="width: 100px"></i-input>
<i-input v-model="data.max" style="width: 100px"></i-input>
<span style="margin-left: 10px;">平台服务费</span>
<i-input
type="number"
v-model="data.rate" style="width: 100px"></i-input>
<i-input v-model="data.rate" style="width: 100px"></i-input>
<Button style="margin-left: 10px;" type="error" :key="index" @click="onRemoveClick">X</Button>
</FormItem>
...
...
@@ -37,4 +37,4 @@ export default {
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
</style>
...
...
Please
register
or
login
to post a comment