|
@@ -225,13 +225,13 @@ const calcNumPrice = computed(() => {
|
|
|
return total.toFixed(2);
|
|
return total.toFixed(2);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-// 监听 calcNumPrice 变化并传递给父组件
|
|
|
|
|
-watch(calcNumPrice, (newPrice) => {
|
|
|
|
|
- emit("updatePrice", newPrice);
|
|
|
|
|
-}, { immediate: true });
|
|
|
|
|
-function goCat() {
|
|
|
|
|
- emit("goCat");
|
|
|
|
|
-}
|
|
|
|
|
|
|
+// // 监听 calcNumPrice 变化并传递给父组件
|
|
|
|
|
+// watch(calcNumPrice, (newPrice) => {
|
|
|
|
|
+// emit("updatePrice", newPrice);
|
|
|
|
|
+// }, { immediate: true });
|
|
|
|
|
+// function goCat() {
|
|
|
|
|
+// emit("goCat");
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
function bindCode() {
|
|
function bindCode() {
|
|
|
emit("iptCartNum", props.attr.productSelect.cart_num);
|
|
emit("iptCartNum", props.attr.productSelect.cart_num);
|
|
@@ -242,6 +242,7 @@ function close() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function submit() {
|
|
function submit() {
|
|
|
|
|
+ emit("updatePrice", calcNumPrice);
|
|
|
emit("submit");
|
|
emit("submit");
|
|
|
}
|
|
}
|
|
|
|
|
|