|
|
@@ -58,21 +58,6 @@
|
|
|
/>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
-
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
- <div class="tui-title">大众价</div>
|
|
|
- <input
|
|
|
- v-model="form.skPrice"
|
|
|
- placeholder-class="phcolor"
|
|
|
- class="tui-input"
|
|
|
- name="skPrice"
|
|
|
- @focus="form.skPrice=''"
|
|
|
- placeholder="请输入大众价"
|
|
|
- maxlength="50"
|
|
|
- type="digit"
|
|
|
- />
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">库存</div>
|
|
|
<input v-model="form.stock" style="width:340rpx;" placeholder-class="phcolor" @focus="form.stock=''" @input="changeStock($event)" class="tui-input" name="stock" placeholder="请输入" type="digit"/>
|
|
|
@@ -249,7 +234,6 @@ export default {
|
|
|
price:'',
|
|
|
addPrice:'',
|
|
|
discountPrice:'',
|
|
|
- skPrice:'',
|
|
|
weight:'',
|
|
|
cover:'',
|
|
|
stockWarning:'',
|
|
|
@@ -346,7 +330,6 @@ export default {
|
|
|
this.form.price = ''
|
|
|
this.form.addPrice =''
|
|
|
this.form.discountPrice = ''
|
|
|
- this.form.skPrice = ''
|
|
|
})
|
|
|
},
|
|
|
getDetail() {
|
|
|
@@ -438,10 +421,6 @@ export default {
|
|
|
uni.showToast({title:"请填写特价,没有特价请填0",icon:"none"})
|
|
|
return;
|
|
|
}
|
|
|
- if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(this.form.skPrice) == false){
|
|
|
- uni.showToast({title:"请填写大众价",icon:"none"})
|
|
|
- return;
|
|
|
- }
|
|
|
if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(this.form.price) == false){
|
|
|
uni.showToast({title:"请填写售价",icon:"none"})
|
|
|
return;
|
|
|
@@ -517,11 +496,6 @@ export default {
|
|
|
rule: ["required"],
|
|
|
msg: ["不做特价请填0"]
|
|
|
},
|
|
|
- {
|
|
|
- name: "skPrice",
|
|
|
- rule: ["required"],
|
|
|
- msg: ["请输入大众价"]
|
|
|
- },
|
|
|
{
|
|
|
name: "weight",
|
|
|
rule: ["required"],
|