|
@@ -3,15 +3,13 @@
|
|
|
<view>
|
|
<view>
|
|
|
<form @submit="formSubmit">
|
|
<form @submit="formSubmit">
|
|
|
<view class="module-com input-line-wrap">
|
|
<view class="module-com input-line-wrap">
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
|
|
- <view class="tui-title">起订公斤数</view>
|
|
|
|
|
- <input v-model="form.miniKilo" placeholder-class="phcolor" class="tui-input" name="miniKilo" placeholder="预订的最少公斤数" maxlength="50" type="number" />
|
|
|
|
|
- </tui-list-cell>
|
|
|
|
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
|
|
- <view class="tui-title">每公斤服务费</view>
|
|
|
|
|
- <input v-model="form.kiloFee" placeholder-class="phcolor" class="tui-input" name="kiloFee" placeholder="请填写" maxlength="50" type="digit" />
|
|
|
|
|
- </tui-list-cell>
|
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
|
|
+ <view class="tui-title">预售</view>
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <switch style="transform:scale(0.7,0.7)" :checked="form.presell == 0 ? false : true" @change="presellChange" /> {{form.presell==0 ? '关闭' : '开启'}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </tui-list-cell>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
<view class="confirm-btn">
|
|
<view class="confirm-btn">
|
|
@@ -34,8 +32,7 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
form: {
|
|
form: {
|
|
|
- kiloFee: "",
|
|
|
|
|
- miniKilo: ""
|
|
|
|
|
|
|
+ presell:0,
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -44,10 +41,12 @@ export default {
|
|
|
onShow() {
|
|
onShow() {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ presellChange(e){
|
|
|
|
|
+ this.form.presell = e.target.value ? 1 : 0
|
|
|
|
|
+ },
|
|
|
async init() {
|
|
async init() {
|
|
|
const { data } = await getInfo()
|
|
const { data } = await getInfo()
|
|
|
- this.form.kiloFee = parseFloat(data.kiloFee)
|
|
|
|
|
- this.form.miniKilo = parseFloat(data.miniKilo)
|
|
|
|
|
|
|
+ this.form.presell = data.presell
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
},
|
|
},
|
|
|
confirmFn() {
|
|
confirmFn() {
|