From cc100caa386d723ad6c40ffab0133ddd44a08fca Mon Sep 17 00:00:00 2001
From: "X1627315083@163.com" <1627315083@qq.com>
Date: Fri, 29 May 2026 15:31:14 +0800
Subject: [PATCH 1/4] fix
---
src/components/checked.vue | 7 ++++---
src/views/brandDetail/merchant-info.vue | 17 ++++++++++++++---
src/views/digitalDetail/index.vue | 7 +++++--
src/views/digitalItem/commodity-list.vue | 7 ++++++-
src/views/digitalItem/index.vue | 6 +++++-
5 files changed, 34 insertions(+), 10 deletions(-)
diff --git a/src/components/checked.vue b/src/components/checked.vue
index 69d97c7..39761a7 100644
--- a/src/components/checked.vue
+++ b/src/components/checked.vue
@@ -22,7 +22,6 @@ const checkList = computed(()=>{
})
const handleChange = (val) => {
let data = val.filter(item => item !== 'all')
- if(val.length == 0)return
if(data.length == props.list.length){
data = ['all']
}else{
@@ -39,9 +38,11 @@ const handleCheckAllChange = (val) => {
if(val && props.selected[0] !== 'all'){
data = ['all']
// data = props.list.map(item => item.value)
- emit('update:selected', data)
- emit('change', data)
+ }else{
+ data = []
}
+ emit('update:selected', data)
+ emit('change', data)
}
let data = reactive({
})
diff --git a/src/views/brandDetail/merchant-info.vue b/src/views/brandDetail/merchant-info.vue
index b4b922f..64f7244 100644
--- a/src/views/brandDetail/merchant-info.vue
+++ b/src/views/brandDetail/merchant-info.vue
@@ -44,19 +44,19 @@ const {} = toRefs(data);
- {{ designerDetail.email }}
+ {{ designerDetail.email }}
-
{{ designerDetail.mobile }}
+
{{ designerDetail.mobile }}
@@ -118,9 +118,20 @@ const {} = toRefs(data);
font-size: 1.4rem;
line-height: 100%;
color: #585858;
+ align-items: center;
+
+
&:last-child{
margin-bottom: 0;
}
+ > .text{
+ flex: 1;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ // word-break: break-word;
+ // white-space: normal;
+ }
}
}
> .about{
diff --git a/src/views/digitalDetail/index.vue b/src/views/digitalDetail/index.vue
index b507c5d..3f1583c 100644
--- a/src/views/digitalDetail/index.vue
+++ b/src/views/digitalDetail/index.vue
@@ -49,6 +49,8 @@ const addShopping = () => {
const goShopping = () => {
if(!detail.value.price) return ElMessage.warning(t('brandDetail.addShoppingTip'))
+ console.log(detail.value)
+return
let data = {
listingId: detail.value.id, //资产ID
title: detail.value.title, //标题
@@ -56,7 +58,7 @@ const goShopping = () => {
sellerId: detail.value.sellerId, //店铺ID
cover: detail.value.images.cover[0], //封面
amount: detail.value.price, //价格
- // status: v.status, //状态
+ status: 1, //状态
// date: v.addTime, //添加时间
// tags: v.productCategory, //标签
// salesVolume: v.salesVolume, //销售量
@@ -163,7 +165,7 @@ defineExpose({})
{{ detail.shopName }}
- {{ $t('digitalDetail.ReleaseIn') }} {{ detail.updateTime }}
+ {{ $t('digitalDetail.ReleaseIn') }} {{ new Date(detail.updateTime).toLocaleString() }}
@@ -332,6 +334,7 @@ defineExpose({})
gap: 1.4rem;
align-items: center;
width: min-content;
+ white-space: nowrap;
cursor: pointer;
> span{
font-weight: 500;
diff --git a/src/views/digitalItem/commodity-list.vue b/src/views/digitalItem/commodity-list.vue
index e242ebc..812fddb 100644
--- a/src/views/digitalItem/commodity-list.vue
+++ b/src/views/digitalItem/commodity-list.vue
@@ -41,6 +41,11 @@ const reset = () => {
getListingListData.isShowMark = false
getListingListData.isNoData = false
}
+const clearData = () => {
+ commodityList.value = []
+ getListingListData.pageNum = 1
+ getListingListData.isNoData = true
+}
const getListingMallList = ()=>{
getListingListData.isShowMark = true
@@ -86,7 +91,7 @@ onMounted(()=>{
})
onUnmounted(()=>{
})
-defineExpose({reset,commodityList,getListingListData})
+defineExpose({reset,clearData,commodityList,getListingListData})
const {} = toRefs(data);
diff --git a/src/views/digitalItem/index.vue b/src/views/digitalItem/index.vue
index aad0134..cdf2dda 100644
--- a/src/views/digitalItem/index.vue
+++ b/src/views/digitalItem/index.vue
@@ -56,7 +56,11 @@ const openDetail = (item) => {
const handleChange = (val) => {
categories.value = val.categories
gender.value = val.gender
- commodityListRef.value.reset()
+ if(categories.value.length == 0 || gender.value.length == 0){
+ commodityListRef.value.clearData()
+ }else{
+ commodityListRef.value.reset()
+ }
}
const updateSort = () => {
commodityListRef.value.reset()
From d90b78815520b7370fcadaadc8c355c108a559fd Mon Sep 17 00:00:00 2001
From: "X1627315083@163.com" <1627315083@qq.com>
Date: Fri, 29 May 2026 16:35:14 +0800
Subject: [PATCH 2/4] fix
---
src/views/digitalDetail/index.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/digitalDetail/index.vue b/src/views/digitalDetail/index.vue
index 3f1583c..ddb121e 100644
--- a/src/views/digitalDetail/index.vue
+++ b/src/views/digitalDetail/index.vue
@@ -49,8 +49,8 @@ const addShopping = () => {
const goShopping = () => {
if(!detail.value.price) return ElMessage.warning(t('brandDetail.addShoppingTip'))
- console.log(detail.value)
-return
+// console.log(detail.value)
+// return
let data = {
listingId: detail.value.id, //资产ID
title: detail.value.title, //标题
From 74b60452207cd41667720b978660091acd73254a Mon Sep 17 00:00:00 2001
From: zhangyahui
Date: Sun, 31 May 2026 09:51:57 +0800
Subject: [PATCH 3/4] =?UTF-8?q?feat:=20=E6=B6=88=E6=81=AF=E9=80=9A?=
=?UTF-8?q?=E7=9F=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 5 +-
.env.production | 2 +
src/App.vue | 36 +++-
src/api/notification.ts | 40 ++++
src/router/index.ts | 174 ++++++++--------
src/stores/global.ts | 11 +-
src/utils/websocket.ts | 250 +++++++++++++++++++++++
src/views/main-header.vue | 32 ++-
src/views/notifications/index.vue | 324 +++++++++++++++++-------------
src/views/wardrobe/Orders.vue | 6 +-
10 files changed, 637 insertions(+), 243 deletions(-)
create mode 100644 src/api/notification.ts
create mode 100644 src/utils/websocket.ts
diff --git a/.env.development b/.env.development
index 73c6444..d837d9e 100644
--- a/.env.development
+++ b/.env.development
@@ -1,3 +1,4 @@
-VITE_APP_URL = http://192.168.31.82:10094
+# VITE_APP_URL = http://192.168.31.82:10094
VITE_APP_URL = https://www.develop-ms.api.aida.com.hk
-
+# WebSocket 主机地址
+VITE_WS_HOST = 18.167.251.121:10094
\ No newline at end of file
diff --git a/.env.production b/.env.production
index c5b107e..f4deb36 100644
--- a/.env.production
+++ b/.env.production
@@ -1,2 +1,4 @@
VITE_APP_URL = http://192.168.31.82:10094
VITE_APP_URL = https://www.develop-ms.api.aida.com.hk
+# WebSocket 主机地址
+VITE_WS_HOST = www.develop-ms.api.aida.com.hk
\ No newline at end of file
diff --git a/src/App.vue b/src/App.vue
index 5978c16..c8a7eff 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -7,13 +7,16 @@
diff --git a/src/views/wardrobe/Orders.vue b/src/views/wardrobe/Orders.vue
index ca0c90b..c04d948 100644
--- a/src/views/wardrobe/Orders.vue
+++ b/src/views/wardrobe/Orders.vue
@@ -289,15 +289,15 @@
title: item.listingName,
brand: order.shopName,
cover: item.thumbnailUrl,
- amount: item.price
- // status:order
+ amount: item.price,
+ status:1
})
})
// 2060253365078691800
// "https://checkout.stripe.com/c/pay/cs_test_a1zdyl7iR9sIEWArSQyUaOFIax6Pia0S7GJNXqvLOFfy2w57JVlVAV5Jlm#fidnandhYHdWcXxpYCc%2FJ2FgY2RwaXEnKSdpamZkaWAnPydgaycpJ2JwZGZkaGppYFNkd2xka3EnPydmamtxd2ppJyknZHVsTmB8Jz8ndW5acWB2cVowNFUxX19JNTdrNFFAfGF8S2lwbXEzU0F9a0dIakdyPVYwNzFqcX9pXVM2RkhGX0w9TWhuZlB3NkZOfD1fNWBUN1J2dlZPPHZEZF9rTFRPTDUxY0RXTU1PbDU1dWZMRzF2TlAnKSdjd2poVmB3c2B3Jz9xd3BgKSdnZGZuYndqcGthRmppancnPycmY2NjY2NjJyknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpscWBoJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
console.log(list)
- const params = btoa(encodeURIComponent(JSON.stringify({ list })))
+ const params = btoa(encodeURIComponent(JSON.stringify(list)))
ROUTER.push({
name: 'pay',
query: {
From 6c4ebc26d19429256571af8485999d7100e79333 Mon Sep 17 00:00:00 2001
From: zhangyahui
Date: Mon, 1 Jun 2026 09:35:11 +0800
Subject: [PATCH 4/4] =?UTF-8?q?feat:=20ws=E8=BF=9E=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/websocket.ts | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/utils/websocket.ts b/src/utils/websocket.ts
index ff8c10a..9c3d194 100644
--- a/src/utils/websocket.ts
+++ b/src/utils/websocket.ts
@@ -37,10 +37,12 @@ class WebSocketManager {
}
// 根据当前页面协议自动选择 ws 或 wss
- const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'
+ // const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'
+ const protocol = 'wss:'
// 从环境变量获取 WebSocket 主机地址
- const wsHost = import.meta.env.VITE_WS_HOST || '18.167.251.121:10094'
+ // const wsHost = import.meta.env.VITE_WS_HOST || '18.167.251.121:10094'
+ const wsHost = 'www.develop-ms.api.aida.com.hk'
this.url = `${protocol}//${wsHost}/ws?token=${token}`
this.isManualClose = false