|
|
@@ -92,7 +92,7 @@
|
|
|
<view class="select-cmd_bx">
|
|
|
<view class="num_bx">
|
|
|
<view class="kc">重量</view>
|
|
|
- <allSelectInput :isActive="isWeightActive" :isFocus="isWeightFocus" :value="customData.weight" :placeholder="'公斤'"
|
|
|
+ <allSelectInput :isActive="isWeightActive" :isFocus="isWeightFocus" :value="customData.realityWeight" :placeholder="'公斤'"
|
|
|
:width="416" :height="80" :fontSize="40"
|
|
|
@deleteInputVal="deleteWeightInputVal" @initAllInput="initWeightAllInput" @moveAllInput="moveWeightAllInput">
|
|
|
</allSelectInput>
|
|
|
@@ -156,7 +156,8 @@ export default {
|
|
|
bigCount: 0,
|
|
|
smallCount: 0,
|
|
|
itemPrice: 0,
|
|
|
- weight:0
|
|
|
+ weight:0,
|
|
|
+ realityWeight:0,
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
@@ -174,7 +175,7 @@ export default {
|
|
|
this.isWeightActive=false;
|
|
|
this.isWeightFocus=false;
|
|
|
if(e==''){return}
|
|
|
- this.customData.weight = e;
|
|
|
+ this.customData.realityWeight = e;
|
|
|
},
|
|
|
//input点击删除按键
|
|
|
deleteAloneInputVal(){
|
|
|
@@ -184,7 +185,7 @@ export default {
|
|
|
//input重量点击删除按键
|
|
|
deleteWeightInputVal(){
|
|
|
this.isWeightActive=false;
|
|
|
- this.customData.weight = '';
|
|
|
+ this.customData.realityWeight = '';
|
|
|
},
|
|
|
//自定义数量
|
|
|
customNum(info) {
|
|
|
@@ -213,6 +214,7 @@ export default {
|
|
|
|
|
|
if (val.index === 0) {
|
|
|
this.modalCancel();
|
|
|
+ this.delAllEvent(this.customData)
|
|
|
} else {
|
|
|
if(this.customData.itemPrice==0||this.customData.itemPrice==''){
|
|
|
uni.showToast({title:"请输入总价格",icon:"none"})
|