|
|
@ -99,11 +99,17 @@ |
|
|
<view style="line-height: 74rpx;"> |
|
|
<view style="line-height: 74rpx;"> |
|
|
<radio :checked="formData.isMoreBuy==0" name="isMoreBuy" @click="checkisMoreBuy('0')" />否 |
|
|
<radio :checked="formData.isMoreBuy==0" name="isMoreBuy" @click="checkisMoreBuy('0')" />否 |
|
|
<radio :checked="formData.isMoreBuy==1" name="isMoreBuy" @click="checkisMoreBuy('1')" />是 |
|
|
<radio :checked="formData.isMoreBuy==1" name="isMoreBuy" @click="checkisMoreBuy('1')" />是 |
|
|
|
|
|
<view style="font-size: 24rpx;color: #999;line-height: 36rpx;"> |
|
|
|
|
|
拼团商品下单时可搭配该商品一并下单 |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</uni-forms-item> |
|
|
</uni-forms-item> |
|
|
|
|
|
<view id="lunchBoxField" v-if="shopMerchantType == 1 && formData.isMoreBuy==0"> |
|
|
<uni-forms-item label="餐盒费" name="lunchBox"> |
|
|
<uni-forms-item label="餐盒费" name="lunchBox"> |
|
|
<input type="digit" class="content-input" v-model="formData.lunchBox" placeholder="请输入餐盒费"> |
|
|
<input type="digit" class="content-input" v-model="formData.lunchBox" placeholder="请输入餐盒费" |
|
|
|
|
|
:adjust-position="false" :cursor-spacing="160" @focus="focusFormField('lunchBoxField')" @blur="blurFormField"> |
|
|
</uni-forms-item> |
|
|
</uni-forms-item> |
|
|
|
|
|
</view> |
|
|
<uni-forms-item label="起售数量" name="startPayNum"> |
|
|
<uni-forms-item label="起售数量" name="startPayNum"> |
|
|
<input type="digit" class="content-input" v-model="formData.startPayNum" placeholder="请输入起售数量"> |
|
|
<input type="digit" class="content-input" v-model="formData.startPayNum" placeholder="请输入起售数量"> |
|
|
</uni-forms-item> |
|
|
</uni-forms-item> |
|
|
@ -161,6 +167,7 @@ |
|
|
dataList: {}, |
|
|
dataList: {}, |
|
|
modalType:0, |
|
|
modalType:0, |
|
|
maxSelect:1, |
|
|
maxSelect:1, |
|
|
|
|
|
shopMerchantType:0, |
|
|
currentCanbuy:1, |
|
|
currentCanbuy:1, |
|
|
canbuyMap:{}, |
|
|
canbuyMap:{}, |
|
|
categoryData:[], |
|
|
categoryData:[], |
|
|
@ -217,6 +224,7 @@ |
|
|
}, |
|
|
}, |
|
|
onShow() { |
|
|
onShow() { |
|
|
this.attrId = uni.getStorageSync('attrId'); |
|
|
this.attrId = uni.getStorageSync('attrId'); |
|
|
|
|
|
this.shopMerchantType = uni.getStorageSync('shopMerchantType'); |
|
|
this.typeItem = JSON.parse(JSON.stringify(this.typeItem)) || '' |
|
|
this.typeItem = JSON.parse(JSON.stringify(this.typeItem)) || '' |
|
|
if (this.typeItem) { |
|
|
if (this.typeItem) { |
|
|
this.formData.categoryId = this.typeItem.id |
|
|
this.formData.categoryId = this.typeItem.id |
|
|
|