diff --git a/src/views/user/component/detail.vue b/src/views/user/component/detail.vue index 547ccde..d209d44 100644 --- a/src/views/user/component/detail.vue +++ b/src/views/user/component/detail.vue @@ -216,6 +216,85 @@ const cancelUpdate = () => { const isDisabled = ref(true); +const activeStore = ref(0); +const activeStoreList = ref(["基本信息", "用户资产"]); + +const isOut = ref(false); // 是否为出库状态 +const productList = ref([]); // 商品列表 +const initProduct = ()=>{ + + productList.value = [ + { + "id": 574, + "oid": 568, + "product_id": 44, + "cart_info": { + "product_id": 44, + "cart_num": 3, + "price": "56.00", + "cost": "56.00", + "total_price": "189.00", + "deduction_price": 0, + "vip": 0, + "purchase": "162.00", + "pay_price": "168.00", + "store_price": "168.00", + "old_cart_id": 766, + "verify_code": "8-12407", + "name": "陈醋", + "image": "https://lihaiim.oss-cn-chengdu.aliyuncs.com/public/uploads/images/20240615/202406151511024463d0051.jpg" + } + }, + { + "id": 575, + "oid": 568, + "product_id": 45, + "cart_info": { + "product_id": 45, + "cart_num": 2, + "price": "164.00", + "cost": "164.00", + "total_price": "368.00", + "deduction_price": 0, + "vip": 0, + "purchase": "312.00", + "pay_price": "328.00", + "store_price": "328.00", + "old_cart_id": 767, + "verify_code": "8-12407", + "name": "青花椒油", + "image": "https://lihaiim.oss-cn-chengdu.aliyuncs.com/public/uploads/images/20240615/202406151511025ef012582.jpg" + } + }, + { + "id": 576, + "oid": 568, + "product_id": 40, + "cart_info": { + "product_id": 40, + "cart_num": 2, + "price": "2.50", + "cost": "2.50", + "total_price": "5.60", + "deduction_price": 0, + "vip": 0, + "purchase": "48.00", + "pay_price": "5.00", + "store_price": "5.00", + "old_cart_id": 769, + "verify_code": "8-12407", + "name": "草果", + "image": "https://lihaiim.oss-cn-chengdu.aliyuncs.com/public/uploads/images/20240615/20240615150435f2ea41542.jpg" + } + } + ] +} + +// 出库 +const onOutAll = ()=>{ + ElMessage.error("未全部出库") +} + onMounted(() => { mitt.on("set-user-detail", (res) => { formData.value = res; @@ -226,6 +305,7 @@ onMounted(() => { console.log(formData.value); }) getAddress(); + initProduct(); }); }); @@ -236,7 +316,19 @@ onUnmounted(() => {