Authored by htoo

feat(service-setting): 改为字符串

export default "development";
\ No newline at end of file
export default "production";
\ No newline at end of file
... ...
... ... @@ -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
};
})
}
... ...
... ... @@ -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",
... ...
<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>
... ...