From 59803cf2eac76fbeb16a14225e2690186ae545bc Mon Sep 17 00:00:00 2001
From: "X1627315083@163.com" <1627315083@qq.com>
Date: Thu, 21 May 2026 14:56:37 +0800
Subject: [PATCH 1/6] fix
---
src/views/digitalItem/index.vue | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/views/digitalItem/index.vue b/src/views/digitalItem/index.vue
index 44c8ce5..d807153 100644
--- a/src/views/digitalItem/index.vue
+++ b/src/views/digitalItem/index.vue
@@ -5,12 +5,14 @@ import MerchantInfo from "./merchant-info.vue";
import { useRouter } from "vue-router";
import scListNull from '@/views/shoppingCart/sc-list-null.vue'
import { getListingMallListApi } from '@/api/listing'
-import { get } from "http";
// 定义组件名称
defineOptions({
name: 'digitalItem'
})
+
+const categories = ref([''])
+const gender = ref([''])
//const props = defineProps({
//})
//const emit = defineEmits([
@@ -19,7 +21,7 @@ const digitalItemRef = ref(null)
const scrollTop = ref(0)
const router = useRouter()
-const categoriesList = ref([
+const searechTypeList = ref([
{
value:'Best Selling',
label:'Best Selling'
@@ -31,7 +33,7 @@ const categoriesList = ref([
label:'Newest First'
},
])
-const categories = ref('Newest First')
+const searechType = ref('Newest First')
const addShopping = (item) => {}
const openDetail = (item) => {
scrollTop.value = digitalItemRef.value.scrollTop
@@ -46,9 +48,9 @@ const getListingMallList = ()=>{
let data = {
// designFor
}
- getListingMallListApi().then(res => {
+ // getListingMallListApi().then(res => {
- })
+ // })
}
onActivated(()=>{
digitalItemRef.value.scrollTop = scrollTop.value
From 1b32002af56c1c7a5206a3018abccefc3f905db8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com>
Date: Thu, 21 May 2026 14:58:07 +0800
Subject: [PATCH 2/6] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E8=AE=A2=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/shoppingCart.ts | 6 ++++--
src/views/shoppingCart/index.d.js | 2 --
src/views/shoppingCart/order-summary.vue | 9 ++++++++-
src/views/shoppingCart/sc-item.vue | 1 -
src/views/shoppingCart/sc-list.vue | 4 ++--
5 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/src/api/shoppingCart.ts b/src/api/shoppingCart.ts
index 2c5194d..e09abf1 100644
--- a/src/api/shoppingCart.ts
+++ b/src/api/shoppingCart.ts
@@ -56,12 +56,14 @@ export const RemoveShoppingCartItem = (params, loading?: boolean) => {
/**
* 创建订单
* @param { Array } data - 商品id数组
+ * @param loading - 是否显示loading
* @returns
*/
-export const CreateOrder = (data) => {
+export const CreateOrder = (data, loading?: boolean) => {
return request({
url: '/buyer/buyer/order/create',
method: 'post',
- data
+ data,
+ loading
})
}
diff --git a/src/views/shoppingCart/index.d.js b/src/views/shoppingCart/index.d.js
index 31f580a..4025840 100644
--- a/src/views/shoppingCart/index.d.js
+++ b/src/views/shoppingCart/index.d.js
@@ -2,6 +2,4 @@
export const SCART_STATUS = {
/** 正常 */
NORMAL: 1,
- /** 下架 */
- DISABLED: 0,
}
\ No newline at end of file
diff --git a/src/views/shoppingCart/order-summary.vue b/src/views/shoppingCart/order-summary.vue
index b61b3ec..eb8be2c 100644
--- a/src/views/shoppingCart/order-summary.vue
+++ b/src/views/shoppingCart/order-summary.vue
@@ -34,6 +34,9 @@
diff --git a/src/views/shoppingCart/sc-item.vue b/src/views/shoppingCart/sc-item.vue
index 4283378..13641c7 100644
--- a/src/views/shoppingCart/sc-item.vue
+++ b/src/views/shoppingCart/sc-item.vue
@@ -7,7 +7,6 @@
}"
>
- {{ info.status }}
{{ info.title }}
diff --git a/src/views/shoppingCart/sc-list.vue b/src/views/shoppingCart/sc-list.vue
index 514b2e7..892bc33 100644
--- a/src/views/shoppingCart/sc-list.vue
+++ b/src/views/shoppingCart/sc-list.vue
@@ -51,12 +51,12 @@
:show-date="!isMini"
:show-remove="!isView"
@remove="handleRemoveClick"
- :disabled="v.status === SCART_STATUS.DISABLED"
+ :disabled="v.status !== SCART_STATUS.NORMAL"
>
From 2f1cc8d55dce14bd7f849978d1b853d3a14ef480 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com>
Date: Thu, 21 May 2026 14:58:52 +0800
Subject: [PATCH 3/6] 1
---
src/views/shoppingCart/order-summary.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/shoppingCart/order-summary.vue b/src/views/shoppingCart/order-summary.vue
index eb8be2c..fe80c9a 100644
--- a/src/views/shoppingCart/order-summary.vue
+++ b/src/views/shoppingCart/order-summary.vue
@@ -61,6 +61,7 @@
const totalAmount = computed(() => props.list.reduce((pre, cur) => pre + cur.amount, 0).toFixed(2))
const handleCheckout = () => {
const ids = props.list.map((v: any) => v.listingId)
+ if (ids.length === 0) return
console.log('购买:', ids)
CreateOrder(ids, true).then((res) => {
router.go(0)
From 3de38d285615e278566a9b5b0907159d6dcf02ba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com>
Date: Thu, 21 May 2026 15:13:18 +0800
Subject: [PATCH 4/6] =?UTF-8?q?=E6=9B=B4=E6=94=B9loading=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 0b9886e..5978c16 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -53,10 +53,9 @@
left: 0;
width: 100%;
height: 100%;
- // background-color: rgba(0, 0, 0, 0.3);
- // display: flex;
- // align-items: center;
- // justify-content: center;
+ --el-mask-color: rgba(0, 0, 0, 0.3);
+ --el-color-primary: #007bff;
+ --el-loading-spinner-size: 9rem;
}
\ No newline at end of file
diff --git a/src/views/digitalItem/index.vue b/src/views/digitalItem/index.vue
index d807153..dedd96d 100644
--- a/src/views/digitalItem/index.vue
+++ b/src/views/digitalItem/index.vue
@@ -10,47 +10,45 @@ import { getListingMallListApi } from '@/api/listing'
defineOptions({
name: 'digitalItem'
})
-
-const categories = ref([''])
-const gender = ref([''])
//const props = defineProps({
//})
//const emit = defineEmits([
//])
+const categories = ref(['all'])
+const gender = ref(['all'])
const digitalItemRef = ref(null)
const scrollTop = ref(0)
const router = useRouter()
+const commodityListRef = ref(null)
const searechTypeList = ref([
{
- value:'Best Selling',
+ value:'salesVolume',
label:'Best Selling'
},{
- value:'Price: Low to High',
+ value:'price',
label:'Price: Low to High'
},{
- value:'Newest First',
+ value:'updateTime',
label:'Newest First'
},
])
-const searechType = ref('Newest First')
+
+const searechType = ref('updateTime')
const addShopping = (item) => {}
const openDetail = (item) => {
scrollTop.value = digitalItemRef.value.scrollTop
router.push({
- path: '/digitalItem/' + 123,
+ path: '/digitalItem/' + item.id,
})
}
const handleChange = (val) => {
-
+ categories.value = val.categories
+ gender.value = val.gender
+ commodityListRef.value.reset()
}
-const getListingMallList = ()=>{
- let data = {
- // designFor
- }
- // getListingMallListApi().then(res => {
-
- // })
+const updateSort = () => {
+ commodityListRef.value.reset()
}
onActivated(()=>{
digitalItemRef.value.scrollTop = scrollTop.value
@@ -72,13 +70,13 @@ defineExpose({})
-
+
@@ -220,8 +228,13 @@ defineExpose({})
border-right: 0.5px solid #585858;
margin-right: 9rem;
display: flex;
+ position: relative;
.null{
flex: 1;
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ background-color: #fff;
}
}
}
diff --git a/src/views/digitalItem/merchant-info.vue b/src/views/digitalItem/merchant-info.vue
index 11ac4cc..9fec146 100644
--- a/src/views/digitalItem/merchant-info.vue
+++ b/src/views/digitalItem/merchant-info.vue
@@ -16,12 +16,12 @@ const genderList = computed(() => [
{ label: t('Wardrobe.assets.genders.male'), value: 'male' },
{ label: t('Wardrobe.assets.genders.female'), value: 'female' }
])
-const categories = ref([''])
-const gender = ref([''])
+const categories = ref(['all'])
+const gender = ref(['all'])
const clearFilters = () => {
- categories.value = ['']
- gender.value = ['']
+ categories.value = ['all']
+ gender.value = ['all']
handleChange()
}
const handleChange = () => {