|
|
@@ -2,8 +2,8 @@
|
|
|
<view class="app-content">
|
|
|
<form @submit="formSubmit">
|
|
|
<view class="module-com input-line-wrap">
|
|
|
- <view v-if="id>0" style="color:red;font-weight:bold;text-align:center;font-size:28upx;margin-bottom:12upx;">
|
|
|
- 不清楚的功能,请勿随意修改,出问题后果自负
|
|
|
+ <view v-if="id>0" style="color:red;font-weight:bold;text-align:center;font-size:32upx;margin-bottom:12upx;">
|
|
|
+ 不了解的功能,请勿修改,出问题后果自负
|
|
|
</view>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">名称</view>
|
|
|
@@ -167,15 +167,32 @@
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title " style="color:#3385FF;">整单满扎数</view>
|
|
|
- <input v-model="form.meetNum" @focus="form.meetNum=''" placeholder-class="phcolor" class="tui-input" name="meetNum" placeholder="多少扎" type="digit" />
|
|
|
+ <input v-model="form.meetNum" style="color:#3385FF;" @focus="form.meetNum=''" placeholder-class="phcolor" class="tui-input" name="meetNum" placeholder="多少扎" type="digit" />
|
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title " style="color:#3385FF;">整单满金额</view>
|
|
|
- <input v-model="form.meetAmount" @focus="form.meetAmount=''" placeholder-class="phcolor" class="tui-input" name="meetAmount" placeholder="多少钱" type="digit" />
|
|
|
+ <input v-model="form.meetAmount" style="color:#3385FF;" @focus="form.meetAmount=''" placeholder-class="phcolor" class="tui-input" name="meetAmount" placeholder="多少钱" type="digit" />
|
|
|
</tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title" style="color:#3385FF;">优惠方式</view>
|
|
|
+ <radio-group class="tui-input" @change="cutStyleChange" style="color:#3385FF;">
|
|
|
+ <label class="list" for="amountLink">
|
|
|
+ <radio id="amountLink" value="0" :checked="form.cutStyle == 0" style="transform:scale(0.7,0.7)" />
|
|
|
+ <span class="checkbox-text">按金额</span>
|
|
|
+ </label>
|
|
|
+ <label class="list" for="discountLink">
|
|
|
+ <radio id="discountLink" value="1" :checked="form.cutStyle == 1" style="transform:scale(0.7,0.7)" />
|
|
|
+ <span class="checkbox-text">按折扣</span>
|
|
|
+ </label>
|
|
|
+ <input v-model="form.cutStyle" name="cutStyle" hidden />
|
|
|
+ </radio-group>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title " style="color:#3385FF;">优惠金额</view>
|
|
|
- <input v-model="form.cutAmount" @focus="form.cutAmount=''" placeholder-class="phcolor" class="tui-input" name="cutAmount" placeholder="优惠金额" type="digit" />
|
|
|
+ <view class="tui-title " style="color:#3385FF;">优惠条件</view>
|
|
|
+ <input v-model="form.cutAmount" style="color:#3385FF;" @focus="form.cutAmount=''" v-if="form.cutStyle == 0" placeholder-class="phcolor" class="tui-input" name="cutAmount" placeholder="请填写金额" type="digit" />
|
|
|
+ <input v-model="form.cutAmount" style="color:#3385FF;" @focus="form.cutAmount=''" v-else placeholder-class="phcolor" class="tui-input" name="cutAmount" placeholder="请填写折扣,95折填0.95" type="digit" />
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
@@ -242,6 +259,7 @@ export default {
|
|
|
meetNum:0,
|
|
|
meetAmount:0,
|
|
|
cutAmount:0,
|
|
|
+ cutStyle:0,
|
|
|
img: [],
|
|
|
allowDebt:0,
|
|
|
allowDebtAmount:5000,
|
|
|
@@ -366,6 +384,10 @@ export default {
|
|
|
joinChange(e){
|
|
|
this.form.join = e.detail.value
|
|
|
},
|
|
|
+ cutStyleChange(e){
|
|
|
+ this.form.cutStyle = e.detail.value
|
|
|
+ console.log(this.form.cutStyle)
|
|
|
+ },
|
|
|
radioChange(e) {
|
|
|
this.openTimeVisible = e.detail.value == 0 ? false : true;
|
|
|
this.form.openType = e.detail.value == 0 ? 0 : 1; // openType: 0. 24小时 1. xx ~ xx
|