更换正式环境,测试修改
This commit is contained in:
@@ -679,7 +679,7 @@
|
||||
})
|
||||
|
||||
res.skuList = (res.skuList.length ? res.skuList : [])
|
||||
|
||||
|
||||
$goodsData = res
|
||||
skuList.list = res.skuList
|
||||
Object.assign(FormData, res)
|
||||
@@ -1185,8 +1185,6 @@
|
||||
coverImg: v.coverImg || ''
|
||||
}
|
||||
})
|
||||
|
||||
console.log(skuList.list);
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -16,13 +16,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
formatPrice
|
||||
} from "@/commons/utils/format.js";
|
||||
import {
|
||||
ref,
|
||||
watch,nextTick
|
||||
} from 'vue';
|
||||
import { ref,reactive,watch,nextTick } from 'vue';
|
||||
import { formatPrice } from "@/commons/utils/format.js";
|
||||
|
||||
const props = defineProps({
|
||||
inputType:{
|
||||
type:String,
|
||||
@@ -48,8 +44,8 @@
|
||||
default: '请输入'
|
||||
}
|
||||
})
|
||||
let number = ref(props.modelValue)
|
||||
|
||||
|
||||
let number = ref(props.modelValue*1)
|
||||
function changeNumber(type) {
|
||||
const newval = number.value + props.step * (type == 'add' ? 1 : -1)
|
||||
if (newval < props.min) {
|
||||
@@ -63,12 +59,12 @@
|
||||
|
||||
function priceFormat(e) {
|
||||
nextTick(() => {
|
||||
const min = props
|
||||
.min;
|
||||
const min = props.min;
|
||||
const max = props.max;
|
||||
if (e === '') {
|
||||
return
|
||||
}
|
||||
console.log(e)
|
||||
const newval = formatPrice(e, min, max, true)
|
||||
if (typeof newval !== 'number') {
|
||||
number.value = newval.value
|
||||
@@ -82,7 +78,7 @@
|
||||
})
|
||||
}
|
||||
watch(() => props.modelValue, (newval) => {
|
||||
number.value = newval
|
||||
number.value = newval*1
|
||||
})
|
||||
const emits = defineEmits(['update:modelValue'])
|
||||
watch(() => number.value, (newval) => {
|
||||
|
||||
Reference in New Issue
Block a user