diff --git a/index.html b/index.html
index 38ebfcc..156d8e6 100644
--- a/index.html
+++ b/index.html
@@ -13,6 +13,7 @@
+
diff --git a/src/views/Trade/Tradelist.vue b/src/views/Trade/Tradelist.vue
index 7f39ded..170ec45 100644
--- a/src/views/Trade/Tradelist.vue
+++ b/src/views/Trade/Tradelist.vue
@@ -39,7 +39,7 @@
¥{{ item.proskusaleprice?.toFixed(2) }}
-
{{ item.discountratio }}%让利
+
惠利{{ item.discountratio }}%
@@ -74,7 +74,8 @@
物流单号
{{ currentLogistics?.exportnum }}
-

+
@@ -176,19 +177,19 @@ export default {
methods: {
// 加载订单状态和类型列表
- // async loadFilterOptions() {
- // try {
- // const [stateRes, areaRes] = await Promise.all([
- // this.$get('/v1/client/FOrdersClient/orderstate'),
- // this.$get('/v1/client/EProsClient/mallstate'),
- // ])
- // this.tradeStates = stateRes.data || []
- // this.mallList = [{ value: 0, label: '全部订单' }, ...(areaRes.data || [])]
- // this._initializing = false
- // } catch (err) {
- // this.$showFailToast(err.message || '加载失败')
- // }
- // },
+ async loadFilterOptions() {
+ try {
+ const [stateRes, areaRes] = await Promise.all([
+ this.$get('/v1/client/FOrdersClient/orderstate'),
+ this.$get('/v1/client/EProsClient/mallstate'),
+ ])
+ this.tradeStates = stateRes.data || []
+ this.mallList = [{ value: 0, label: '全部订单' }, ...(areaRes.data || [])]
+ this._initializing = false
+ } catch (err) {
+ this.$showFailToast(err.message || '加载失败')
+ }
+ },
// Tab 切换 - 订单状态
onTabChange(name) {
diff --git a/src/views/User/Invite.vue b/src/views/User/Invite.vue
index b027359..6937459 100644
--- a/src/views/User/Invite.vue
+++ b/src/views/User/Invite.vue
@@ -47,7 +47,7 @@ export default {
this.data.NickName = userInfo.data.nickname || ''
}
const inviteCode = userInfo?.data?.cellphone || ''
- this.link = `${location.origin}${location.pathname}#/Login?invite=${inviteCode}`
+ this.link = `${location.origin}${location.pathname}#/Login?RecommendCode=${inviteCode}`
} catch (err) {
console.error('获取用户信息失败:', err)
} finally {
diff --git a/vite.config.js b/vite.config.js
index 44b9aa7..519f774 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -13,7 +13,16 @@ export default defineConfig({
https: false,
},
plugins: [
- vue(),
+ vue(
+ {
+ template: {
+ compilerOptions: {
+ // 忽略wx-open-launch 开头的组件,这些是微信的默认组件
+ isCustomElement: (tag) => tag.includes('wx-open-launch')
+ }
+ }
+ }
+ ),
Components({
resolvers: [VantResolver()],
}),