|
@@ -1,6 +1,7 @@
|
|
<script setup>
|
|
<script setup>
|
|
import sHeader from "@/components/SimpleHeader";
|
|
import sHeader from "@/components/SimpleHeader";
|
|
-import { ref, onMounted, onBeforeUnmount, computed } from 'vue'
|
|
|
|
|
|
+// import { ref, onMounted, onBeforeUnmount, computed } from 'vue'
|
|
|
|
+import { ref, onMounted, onBeforeUnmount } from 'vue'
|
|
import { sellerConf, getImg } from "@/service/buyOrSell";
|
|
import { sellerConf, getImg } from "@/service/buyOrSell";
|
|
import { showFailToast, showSuccessToast } from "vant";
|
|
import { showFailToast, showSuccessToast } from "vant";
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
@@ -14,9 +15,11 @@ const tradeStore = useTradeStore()
|
|
|
|
|
|
const price = ref(0) // 价格
|
|
const price = ref(0) // 价格
|
|
const tradeNumber = ref(0) // 股票数量
|
|
const tradeNumber = ref(0) // 股票数量
|
|
-let totalPrice = computed(() => { // 应收款
|
|
|
|
- return Math.round(price.value * tradeNumber.value * 100) / 100;
|
|
|
|
-})
|
|
|
|
|
|
+// let totalPrice = computed(() => { // 应收款
|
|
|
|
+// return Math.round(price.value * tradeNumber.value * 100) / 100;
|
|
|
|
+// })
|
|
|
|
+
|
|
|
|
+const totalPrice = ref(0) // 应收款
|
|
|
|
|
|
const orderId = ref('') // 交易单号id
|
|
const orderId = ref('') // 交易单号id
|
|
|
|
|
|
@@ -68,6 +71,7 @@ onMounted(() => {
|
|
tradeNumber.value = item.tradeNumber;
|
|
tradeNumber.value = item.tradeNumber;
|
|
price.value = item.price;
|
|
price.value = item.price;
|
|
orderId.value = item.id;
|
|
orderId.value = item.id;
|
|
|
|
+ totalPrice.value = item.totalPrice;
|
|
}
|
|
}
|
|
getImgFunc(orderId.value)
|
|
getImgFunc(orderId.value)
|
|
});
|
|
});
|