From 55e5572005adc3b465260628a9348f63acb916fd Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Wed, 10 Jul 2024 16:03:34 +0800 Subject: [PATCH] add --- api/order.js | 4 + components/goodPopup.vue | 24 +- pageQuota/asset/lists.vue | 137 +++ pageQuota/vipUser/index.vue | 1636 +++++++++++++++++------------------ pages.json | 9 +- pages/index/index.vue | 11 +- pages/my/my.vue | 1 + 7 files changed, 973 insertions(+), 849 deletions(-) create mode 100644 pageQuota/asset/lists.vue 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/lists.vue b/pageQuota/asset/lists.vue new file mode 100644 index 0000000..a900e08 --- /dev/null +++ b/pageQuota/asset/lists.vue @@ -0,0 +1,137 @@ + + + + + \ No newline at end of file diff --git a/pageQuota/vipUser/index.vue b/pageQuota/vipUser/index.vue index 4e212c7..fb69d07 100644 --- a/pageQuota/vipUser/index.vue +++ b/pageQuota/vipUser/index.vue @@ -1,4 +1,5 @@ \ No newline at end of file diff --git a/pages.json b/pages.json index cc70251..cec1e78 100644 --- a/pages.json +++ b/pages.json @@ -245,10 +245,17 @@ { "path": "asset/index", "style": { - "navigationBarTitleText": "会员资产", + "navigationBarTitleText": "用户资产", "enablePullDownRefresh": true } }, + { + "path": "asset/lists", + "style": { + "navigationBarTitleText": "预约记录", + "enablePullDownRefresh": false + } + }, { "path": "Gifts/index", "style": { diff --git a/pages/index/index.vue b/pages/index/index.vue index e0ccf7d..2bd11bc 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -168,15 +168,15 @@ {{item[priceKey.price]}}/{{ item.unit_name }} - + - 赠10%品牌礼品券 + {{item.tag}} - + 售价 @@ -231,7 +231,8 @@ - + diff --git a/pages/my/my.vue b/pages/my/my.vue index 55cc8f0..28b4bad 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -118,6 +118,7 @@ +