diff --git a/api/order.js b/api/order.js index 193cb14..7e04004 100644 --- a/api/order.js +++ b/api/order.js @@ -74,4 +74,8 @@ export const refundReasonListApi = (data) => { // 订单退款申请 export const applyRefundApi = (data) => { return request.post('/order/order/apply_refund', data); +} + +export const UserProductStorageLogApi = (data) => { + return request.get('/user_product_storage_log/UserProductStorageLog/lists', data); } \ No newline at end of file diff --git a/components/goodPopup.vue b/components/goodPopup.vue index 3b8aff1..1744c24 100644 --- a/components/goodPopup.vue +++ b/components/goodPopup.vue @@ -63,14 +63,7 @@ computed, nextTick, ref, - } from "vue" - import { - toast - } from "../uni_modules/uview-plus"; - import { - onShow - } from '@dcloudio/uni-app'; const foucs1 = ref(null) const props = defineProps({ @@ -78,20 +71,17 @@ type: Boolean, default: false }, + priceKey: { + type: Object, + default: () => ({}) + } + }) const valChange = () => { uni.vibrateShort(); } - let priceKey = ref({}) - if (uni.getStorageSync('PRICE_KEY')) { - priceKey.value = JSON.parse(uni.getStorageSync('PRICE_KEY')); - } else { - priceKey.value = {}; - } - - const datas = ref({ cart_num: '' }); @@ -121,7 +111,9 @@ const subtotal = computed(() => { let num = +datas.value.cart_num || 1; - let sell = +datas.value[priceKey.value.off_activity == 1 ? priceKey.value.price : priceKey.value.op_price]; + let sell = +datas.value[props.priceKey.off_activity == 1 ? props.priceKey.price : props + .priceKey + .op_price]; return Number(num * sell * 100 / 100).toFixed(2) }) diff --git a/pageQuota/asset/index.vue b/pageQuota/asset/index.vue index dbc874f..618b3cf 100644 --- a/pageQuota/asset/index.vue +++ b/pageQuota/asset/index.vue @@ -1,27 +1,33 @@