@yeez-tech/user-my-order 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/user-my-order.cjs +1 -1
- package/dist/user-my-order.css +1 -1
- package/dist/user-my-order.js +313 -187
- package/package.json +7 -4
- package/typings/index.d.ts +50 -0
package/dist/user-my-order.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, openBlock as d, ref as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, watch as _, withCtx as v, withModifiers as y } from "vue";
|
|
2
|
-
import { ChevronDown as b, ChevronLeft as x, ChevronRight as S, ChevronUp as ee, Download as C, FileText as w, Folder as T, MessageSquare as te, Pause as ne, Play as
|
|
3
|
-
import { Modal as
|
|
2
|
+
import { ChevronDown as b, ChevronLeft as x, ChevronRight as S, ChevronUp as ee, Download as C, FileText as w, Folder as T, MessageSquare as te, Pause as ne, Play as re } from "lucide-vue-next";
|
|
3
|
+
import { Modal as ie, Tooltip as E } from "@arco-design/web-vue";
|
|
4
4
|
//#region src/types/order.ts
|
|
5
|
-
function
|
|
5
|
+
function D(e) {
|
|
6
6
|
let t = e?.metadata;
|
|
7
7
|
if (!t) return !1;
|
|
8
8
|
if (typeof t.isControllableDelivery == "boolean") return t.isControllableDelivery;
|
|
9
9
|
let n = t.securityLevel;
|
|
10
10
|
return n === "SL_SECURED" || n === "SL_ADJUSTING";
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return !t?.enabled || !t.src ? !1 : typeof t.isControllable == "function" ? t.isControllable(e) :
|
|
12
|
+
function O(e, t) {
|
|
13
|
+
return !t?.enabled || !t.src ? !1 : typeof t.isControllable == "function" ? t.isControllable(e) : D(e);
|
|
14
14
|
}
|
|
15
|
-
var
|
|
15
|
+
var k = [
|
|
16
16
|
{
|
|
17
17
|
id: "idle",
|
|
18
18
|
label: "下载数据",
|
|
@@ -47,8 +47,19 @@ var j = [
|
|
|
47
47
|
label: "下载完成",
|
|
48
48
|
role: "completed"
|
|
49
49
|
}
|
|
50
|
-
]
|
|
51
|
-
|
|
50
|
+
], A = {
|
|
51
|
+
PENDING: 0,
|
|
52
|
+
PASSED: 1,
|
|
53
|
+
REJECTED: 2,
|
|
54
|
+
DELETED: 3
|
|
55
|
+
}, j = {
|
|
56
|
+
canReview: !1,
|
|
57
|
+
status: null
|
|
58
|
+
};
|
|
59
|
+
function M(e, t, n) {
|
|
60
|
+
return e ? e[`${t}-${n}`] ?? e[n] ?? j : j;
|
|
61
|
+
}
|
|
62
|
+
function N(e, t = k) {
|
|
52
63
|
return t.find((t) => t.id === e) || (e === "paused" ? {
|
|
53
64
|
id: e,
|
|
54
65
|
label: e,
|
|
@@ -71,41 +82,44 @@ function M(e, t = j) {
|
|
|
71
82
|
}
|
|
72
83
|
//#endregion
|
|
73
84
|
//#region src/assets/icons/refund-apply.svg?url
|
|
74
|
-
var
|
|
85
|
+
var ae = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_469_5060)'%3e%3cpath%20d='M9.05029%207.46143C9.22046%207.46143%209.38407%207.52958%209.50439%207.6499C9.62457%207.77013%209.69179%207.93305%209.69189%208.10303V12.2085C9.69313%2012.2935%209.67768%2012.3786%209.646%2012.4575C9.61431%2012.5363%209.56696%2012.608%209.50732%2012.6685C9.44765%2012.729%209.37675%2012.7773%209.29834%2012.8101C9.21989%2012.8429%209.13532%2012.8599%209.05029%2012.8599C8.96591%2012.8598%208.88212%2012.8434%208.8042%2012.811C8.72618%2012.7786%208.65579%2012.7303%208.59619%2012.6704C8.5366%2012.6105%208.48957%2012.5396%208.45752%2012.4614C8.42549%2012.3833%208.40831%2012.2998%208.40869%2012.2153V8.10303C8.40879%207.93301%208.47694%207.77013%208.59717%207.6499C8.7174%207.52967%208.88027%207.46153%209.05029%207.46143Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M11.915%205.14648C11.9989%205.15632%2012.0805%205.18244%2012.1543%205.22363C12.2279%205.26481%2012.2924%205.32052%2012.3447%205.38672C12.3971%205.45299%2012.436%205.5291%2012.459%205.61035C12.4819%205.69154%2012.4893%205.77656%2012.4795%205.86035C12.4696%205.94418%2012.4425%206.02494%2012.4014%206.09863C12.3602%206.17233%2012.3055%206.23769%2012.2393%206.29004L9.0293%208.82715L6.04785%206.28516C5.91816%206.17487%205.83795%206.01735%205.82422%205.84766C5.81053%205.67801%205.86436%205.50954%205.97461%205.37988C6.08488%205.25032%206.24252%205.16997%206.41211%205.15625C6.58171%205.1426%206.75026%205.19642%206.87988%205.30664L9%207.10742L9.0625%207.16016L9.12695%207.10938L11.4414%205.28027C11.5077%205.22796%2011.5838%205.18902%2011.665%205.16602C11.7462%205.14305%2011.8312%205.13666%2011.915%205.14648Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M6.83301%2010.0825H11.2002L11.3193%2010.1021C11.4363%2010.1329%2011.5433%2010.196%2011.627%2010.2856C11.7384%2010.4051%2011.7998%2010.5627%2011.7998%2010.7261C11.7998%2010.8894%2011.7384%2011.047%2011.627%2011.1665C11.5156%2011.2858%2011.363%2011.3582%2011.2002%2011.3696H6.83301C6.74472%2011.3758%206.65569%2011.364%206.57227%2011.3345C6.48896%2011.3049%206.4123%2011.2581%206.34766%2011.1978C6.28308%2011.1374%206.23152%2011.0639%206.19629%2010.9829C6.16113%2010.9019%206.14258%2010.8144%206.14258%2010.7261C6.14258%2010.6377%206.16111%2010.5503%206.19629%2010.4692C6.23153%2010.3882%206.28306%2010.3147%206.34766%2010.2544C6.41231%2010.1941%206.48894%2010.1472%206.57227%2010.1177C6.61405%2010.1029%206.65748%2010.0924%206.70117%2010.0864L6.83301%2010.0825ZM6.83984%208.23193H11.2354C11.3196%208.23193%2011.4036%208.24852%2011.4814%208.28076C11.5592%208.313%2011.6299%208.36088%2011.6895%208.42041C11.7489%208.47994%2011.7959%208.55068%2011.8281%208.62842C11.8603%208.70614%2011.8769%208.78941%2011.877%208.87354C11.877%208.95779%2011.8604%209.04179%2011.8281%209.11963C11.7959%209.19734%2011.7489%209.26813%2011.6895%209.32764C11.63%209.3871%2011.5591%209.43407%2011.4814%209.46631C11.4036%209.49855%2011.3196%209.51514%2011.2354%209.51514H6.83984C6.75567%209.51513%206.6725%209.4985%206.59473%209.46631C6.51699%209.43411%206.44624%209.3871%206.38672%209.32764C6.32717%209.26809%206.27931%209.19743%206.24707%209.11963C6.21483%209.04179%206.19824%208.95779%206.19824%208.87354C6.19829%208.78943%206.21489%208.70612%206.24707%208.62842C6.27931%208.55058%206.32714%208.47999%206.38672%208.42041C6.44627%208.3609%206.51695%208.31298%206.59473%208.28076C6.67242%208.24864%206.75577%208.23195%206.83984%208.23193Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M5.15723%201.81152C6.75958%200.954924%208.60233%200.658391%2010.3926%200.96875C12.183%201.2792%2013.8186%202.17916%2015.0391%203.52539C16.2596%204.87162%2016.9949%206.58723%2017.1289%208.39941C17.2628%2010.2115%2016.7875%2012.0163%2015.7783%2013.5273C15.6716%2013.6776%2015.5104%2013.7808%2015.3291%2013.8145C15.1471%2013.8482%2014.9586%2013.8099%2014.8047%2013.707C14.6508%2013.6041%2014.5433%2013.4448%2014.5049%2013.2637C14.4667%2013.0831%2014.5004%2012.8945%2014.5986%2012.7383C15.4738%2011.4275%2015.8611%209.8513%2015.6934%208.28418C15.5255%206.71683%2014.8128%205.25794%2013.6797%204.16211C12.5466%203.06633%2011.0652%202.40243%209.49316%202.28711C7.92107%202.17178%206.35804%202.61251%205.07715%203.53125C3.79658%204.44991%202.87914%205.78869%202.48438%207.31445C2.08961%208.84054%202.24227%2010.4572%202.91699%2011.8818C3.59167%2013.3063%204.7451%2014.4489%206.17578%2015.1104C7.6066%2015.7718%209.22472%2015.9099%2010.7471%2015.501H10.748C10.8382%2015.4757%2010.9324%2015.4684%2011.0254%2015.4795C11.1183%2015.4906%2011.2084%2015.5196%2011.29%2015.5654C11.3717%2015.6113%2011.4431%2015.6735%2011.501%2015.7471C11.5589%2015.8207%2011.6017%2015.9049%2011.627%2015.9951C11.6522%2016.0853%2011.6596%2016.1795%2011.6484%2016.2725C11.6373%2016.3654%2011.6084%2016.4555%2011.5625%2016.5371C11.5166%2016.6188%2011.4545%2016.6902%2011.3809%2016.748C11.3072%2016.8059%2011.223%2016.8487%2011.1328%2016.874C10.437%2017.0586%209.71991%2017.152%209%2017.1514C7.18299%2017.1513%205.41783%2016.5446%203.98535%2015.4268C2.55291%2014.3089%201.5354%2012.7439%201.09375%2010.9814C0.652154%209.21879%200.811584%207.35855%201.54785%205.69727C2.28413%204.03603%203.55478%202.66824%205.15723%201.81152Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3cpath%20d='M13.8989%2011.48C13.9954%2011.4801%2014.0916%2011.5003%2014.1802%2011.5386C14.2686%2011.5768%2014.3484%2011.6326%2014.4146%2011.7026C14.4808%2011.7728%2014.5318%2011.8561%2014.5649%2011.9468L14.5669%2011.9517L15.1177%2013.2368L15.1577%2013.3286L15.2495%2013.2896L16.5347%2012.7388C16.6204%2012.7021%2016.7129%2012.6822%2016.8062%2012.6812C16.8993%2012.6802%2016.9921%2012.6982%2017.0786%2012.7329C17.165%2012.7676%2017.2435%2012.8192%2017.3101%2012.8843C17.3768%2012.9495%2017.4306%2013.027%2017.4673%2013.1128C17.5039%2013.1985%2017.5229%2013.2911%2017.5239%2013.3843C17.5249%2013.4775%2017.5078%2013.5703%2017.4731%2013.6567C17.4385%2013.7431%2017.3868%2013.8216%2017.3218%2013.8882C17.2892%2013.9215%2017.2536%2013.9518%2017.2153%2013.978L17.0933%2014.0454L15.0806%2014.9126C14.9905%2014.9502%2014.894%2014.9694%2014.7964%2014.9692H14.7944C14.654%2014.9717%2014.5159%2014.9323%2014.3979%2014.856C14.28%2014.7796%2014.1875%2014.6698%2014.1323%2014.5405L13.2642%2012.5103L13.2622%2012.5054L13.2114%2012.3706C13.1992%2012.3241%2013.1915%2012.2763%2013.189%2012.228C13.1839%2012.1317%2013.1986%2012.0353%2013.2319%2011.9448C13.2653%2011.8544%2013.317%2011.7716%2013.3833%2011.7017C13.4498%2011.6317%2013.53%2011.5756%2013.6187%2011.5376C13.7072%2011.4997%2013.8026%2011.4799%2013.8989%2011.48Z'%20fill='%234749AD'%20stroke='white'%20stroke-width='0.2'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_469_5060'%3e%3crect%20width='18'%20height='18'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", oe = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.6302%205.86255L15.0705%202.09605C14.9904%201.90146%2014.8541%201.73514%2014.6791%201.61829C14.504%201.50144%2014.2982%201.43935%2014.0877%201.43995H4.00771C3.57661%201.43995%203.1914%201.69734%203.0258%202.09605L1.4643%205.86255C1.4103%205.99215%201.3833%206.12895%201.3833%206.27024V15.6392C1.3833%2016.2252%201.8603%2016.7022%202.44621%2016.7022H15.6483C16.2342%2016.7022%2016.7112%2016.2252%2016.7112%2015.6392V6.26936C16.7112%206.12896%2016.6842%205.99215%2016.6302%205.86257V5.86255ZM4.0203%202.51995H14.0778L15.3828%205.66995H2.71351L4.0203%202.51995ZM2.4633%2015.6212L2.46151%206.74995H15.6312V15.6212H2.4633Z'%20fill='%234749AD'/%3e%3cpath%20d='M10.3598%2013.9039H6.05957V12.8239H10.3598C10.9853%2012.8239%2011.4947%2012.3145%2011.4947%2011.689C11.4947%2011.0635%2010.9853%2010.5541%2010.3598%2010.5541H6.16307V9.60455L8.02426%207.76855L8.78297%208.53716L7.83347%209.47407H10.3598C11.5811%209.47407%2012.5747%2010.4677%2012.5747%2011.689C12.5747%2012.9103%2011.5811%2013.9039%2010.3598%2013.9039Z'%20fill='%234749AD'/%3e%3c/svg%3e", P = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='9'%20cy='9'%20r='6.25'%20stroke='%234749AD'%20stroke-width='1.5'%20fill='none'/%3e%3cpath%20d='M5.6%205.6L12.4%2012.4'%20stroke='%234749AD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e", se = { class: "prepaid-orders space-y-6 bg-[#ffffff] font-[PingFangSC]" }, ce = {
|
|
75
86
|
key: 0,
|
|
76
87
|
class: "space-y-6"
|
|
77
|
-
},
|
|
88
|
+
}, le = ["onClick"], ue = { class: "flex flex-col md:flex-row md:items-center md:justify-between gap-2" }, de = { class: "flex flex-wrap items-center gap-4" }, F = { class: "text-[12px] font-medium text-[#262626]" }, fe = { class: "text-[12px] font-medium text-[#262626]" }, pe = {
|
|
78
89
|
key: 0,
|
|
79
90
|
class: "text-[12px] font-medium text-[#262626]"
|
|
80
|
-
},
|
|
91
|
+
}, me = ["onClick"], he = { class: "flex items-center gap-4" }, ge = { class: "text-[12px] font-medium text-[#262626]" }, _e = { class: "relative" }, ve = ["onClick"], ye = { class: "flex items-start gap-4" }, be = { class: "w-12 h-12 rounded overflow-hidden flex-shrink-0" }, xe = ["src", "alt"], Se = { class: "flex-1 min-w-0" }, Ce = { class: "flex flex-col md:flex-row md:items-center md:justify-between gap-2" }, I = { class: "min-w-0 max-w-[480px] flex items-center" }, L = ["title"], R = ["src", "alt"], we = { class: "flex items-center gap-4" }, Te = {
|
|
81
92
|
key: 0,
|
|
82
93
|
class: "flex-1 max-w-[500px] min-w-[300px]"
|
|
83
|
-
},
|
|
94
|
+
}, z = { class: "flex flex-col gap-1" }, B = { class: "flex items-center justify-between" }, Ee = { class: "text-xs font-medium text-[#262626]" }, De = {
|
|
84
95
|
key: 0,
|
|
85
96
|
class: "text-xs font-medium text-[#262626]"
|
|
86
|
-
},
|
|
97
|
+
}, Oe = { class: "w-full h-2 bg-slate-100 rounded-full overflow-hidden relative" }, ke = { class: "absolute inset-0 flex items-center justify-center pointer-events-none" }, Ae = { class: "text-[10px] font-medium text-slate-600" }, je = { class: "text-[10px] font-medium text-white" }, Me = { class: "flex items-center justify-between" }, Ne = {
|
|
87
98
|
key: 0,
|
|
88
99
|
class: "text-xs font-medium text-[#262626]"
|
|
89
|
-
},
|
|
100
|
+
}, Pe = {
|
|
90
101
|
key: 1,
|
|
91
102
|
class: "text-xs font-medium text-[#262626]"
|
|
92
|
-
},
|
|
103
|
+
}, Fe = {
|
|
93
104
|
key: 2,
|
|
94
105
|
class: "text-xs font-medium text-[#262626]"
|
|
95
|
-
},
|
|
106
|
+
}, Ie = { class: "flex items-center gap-2" }, Le = {
|
|
96
107
|
key: 0,
|
|
97
108
|
class: "flex items-center gap-2 mr-4"
|
|
98
|
-
},
|
|
109
|
+
}, Re = { class: "text-xs font-medium text-[#262626]" }, ze = { class: "flex items-center gap-2 justify-end" }, Be = ["onClick"], Ve = ["onClick"], He = ["src"], Ue = ["onClick"], We = ["onClick"], Ge = ["src"], Ke = ["onClick"], qe = ["src"], Je = {
|
|
110
|
+
key: 0,
|
|
111
|
+
class: "umo-review-deleted"
|
|
112
|
+
}, Ye = ["onClick"], Xe = ["onClick"], Ze = ["onClick"], Qe = {
|
|
99
113
|
key: 0,
|
|
100
114
|
class: "absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-[#ffffff] to-transparent pointer-events-none"
|
|
101
|
-
},
|
|
115
|
+
}, $e = {
|
|
102
116
|
key: 1,
|
|
103
117
|
class: "bg-[#ffffff] p-10 rounded-[8px] shadow-sm flex flex-col items-center justify-center text-center",
|
|
104
118
|
style: { border: "1px solid #E5E6E9" }
|
|
105
|
-
},
|
|
119
|
+
}, et = { class: "w-16 h-16 rounded-full bg-slate-50 flex items-center justify-center text-slate-400 mb-4" }, tt = {
|
|
106
120
|
key: 2,
|
|
107
121
|
class: "flex items-center justify-center gap-2 mt-6"
|
|
108
|
-
},
|
|
122
|
+
}, nt = ["disabled"], rt = { class: "text-sm font-bold text-[#262626]" }, it = ["disabled"], V = /* @__PURE__ */ c({
|
|
109
123
|
__name: "PrepaidOrders",
|
|
110
124
|
props: {
|
|
111
125
|
orders: {},
|
|
@@ -121,7 +135,10 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
121
135
|
contactSellerButtonVisible: {},
|
|
122
136
|
cancelDownloadButtonVisible: {},
|
|
123
137
|
refundStates: {},
|
|
124
|
-
controllableDeliveryTag: {}
|
|
138
|
+
controllableDeliveryTag: {},
|
|
139
|
+
afterSalesEnabled: { type: Boolean },
|
|
140
|
+
reviewEnabled: { type: Boolean },
|
|
141
|
+
reviewStates: {}
|
|
125
142
|
},
|
|
126
143
|
emits: [
|
|
127
144
|
"page-change",
|
|
@@ -134,79 +151,102 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
134
151
|
"open-file",
|
|
135
152
|
"contact-seller",
|
|
136
153
|
"request-refund",
|
|
137
|
-
"request-after-sales"
|
|
154
|
+
"request-after-sales",
|
|
155
|
+
"review",
|
|
156
|
+
"view-review",
|
|
157
|
+
"append-review"
|
|
138
158
|
],
|
|
139
159
|
setup(c, { emit: m }) {
|
|
140
|
-
let _ = c, b = m, ee = (e) => e ? e.substring(0, 16) : "--",
|
|
160
|
+
let _ = c, b = m, ee = (e) => e ? e.substring(0, 16) : "--", D = (e, t) => {
|
|
141
161
|
b("view-product", e, t);
|
|
142
|
-
},
|
|
143
|
-
let t =
|
|
162
|
+
}, j = t(() => _.downloadPhases ?? k), V = (e, t) => _.downloadStates?.[`${e}-${t}`], H = (e) => N(e.status, j.value), U = (e) => H(e).role, at = (e) => {
|
|
163
|
+
let t = U(e);
|
|
144
164
|
return t === "in_progress" || t === "paused";
|
|
145
|
-
},
|
|
146
|
-
let n =
|
|
165
|
+
}, W = (e) => (H(e).barTone ?? "blue") === "green" ? "bg-green-600" : "bg-blue-600", ot = (e) => _.downloadStatusText?.[e] || N(e, j.value).label, G = (e) => typeof e.statusText == "string" && e.statusText.length > 0 ? e.statusText : ot(e.status), st = (e) => e.showBytes !== !1, ct = (e) => e.showEta !== !1, lt = (e) => typeof e.showSpeed == "boolean" ? e.showSpeed : e.status === "downloading" || U(e) === "paused", ut = (e, t) => {
|
|
166
|
+
let n = V(e, t);
|
|
147
167
|
if (!n) return "0.00";
|
|
148
168
|
let r = Number.parseFloat(n.fileSize || "0");
|
|
149
169
|
return !Number.isFinite(r) || r <= 0 ? "0.00" : (n.progress * r / 100).toFixed(2);
|
|
150
|
-
},
|
|
151
|
-
let n =
|
|
152
|
-
if (!n ||
|
|
170
|
+
}, dt = (e, t) => {
|
|
171
|
+
let n = V(e, t);
|
|
172
|
+
if (!n || U(n) === "idle") {
|
|
153
173
|
b("download", t);
|
|
154
174
|
return;
|
|
155
175
|
}
|
|
156
|
-
if (
|
|
176
|
+
if (U(n) === "paused") {
|
|
157
177
|
b("resume-download", t);
|
|
158
178
|
return;
|
|
159
179
|
}
|
|
160
|
-
if (
|
|
180
|
+
if (U(n) === "completed") {
|
|
161
181
|
b("open-file", t);
|
|
162
182
|
return;
|
|
163
183
|
}
|
|
164
184
|
b("pause-download", t);
|
|
165
|
-
},
|
|
185
|
+
}, K = f(""), q = f(!1), J = (e, t) => _.refundStates?.[`${e}-${t}`], ft = (e) => !e.isExchange && !e.isGift, pt = (e) => {
|
|
166
186
|
let t = e.status;
|
|
167
187
|
return t !== "已退款" && t !== "退款中";
|
|
168
|
-
},
|
|
188
|
+
}, mt = (e, t) => {
|
|
169
189
|
let n = `${e.id}-${t}`, r = _.downloadButtonVisible?.[n];
|
|
170
|
-
return r === void 0 ?
|
|
171
|
-
},
|
|
190
|
+
return r === void 0 ? pt(e) : r;
|
|
191
|
+
}, ht = (e, t) => {
|
|
172
192
|
let n = `${e.id}-${t}`, r = _.contactSellerButtonVisible?.[n];
|
|
173
193
|
return r === void 0 ? !0 : r;
|
|
174
|
-
},
|
|
194
|
+
}, gt = (e, t) => {
|
|
175
195
|
let n = `${e.id}-${t}`;
|
|
176
196
|
if (_.cancelDownloadButtonVisible?.[n] !== !0) return !1;
|
|
177
|
-
let r =
|
|
197
|
+
let r = V(e.id, t);
|
|
178
198
|
if (!r) return !1;
|
|
179
|
-
let i =
|
|
199
|
+
let i = U(r);
|
|
180
200
|
return i === "in_progress" || i === "paused";
|
|
181
|
-
},
|
|
182
|
-
|
|
183
|
-
},
|
|
184
|
-
let e =
|
|
201
|
+
}, _t = (e) => {
|
|
202
|
+
K.value = e, q.value = !0;
|
|
203
|
+
}, vt = () => {
|
|
204
|
+
let e = K.value;
|
|
185
205
|
if (!e) {
|
|
186
|
-
|
|
206
|
+
Y();
|
|
187
207
|
return;
|
|
188
208
|
}
|
|
189
|
-
b("request-refund", e),
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
},
|
|
209
|
+
b("request-refund", e), Y();
|
|
210
|
+
}, Y = () => {
|
|
211
|
+
q.value = !1, K.value = "";
|
|
212
|
+
}, yt = (e) => {
|
|
193
213
|
b("request-after-sales", e);
|
|
194
|
-
},
|
|
214
|
+
}, bt = (e, t) => _.afterSalesEnabled === !1 ? !1 : J(e, t) === "after_sales", X = (e, t) => M(_.reviewStates, e.id, t.id), xt = (e, t) => {
|
|
215
|
+
if (!_.reviewEnabled) return !1;
|
|
216
|
+
let n = X(e, t);
|
|
217
|
+
return n.canReview ? n.loaded !== !1 : !1;
|
|
218
|
+
}, St = (e, t) => {
|
|
219
|
+
let n = X(e, t);
|
|
220
|
+
return n.status == null && n.reviewed !== !0;
|
|
221
|
+
}, Ct = (e, t) => X(e, t).status === A.DELETED, wt = (e, t) => {
|
|
222
|
+
let n = X(e, t);
|
|
223
|
+
return n.canAppend == null ? n.status === A.PASSED : n.canAppend;
|
|
224
|
+
}, Z = (e, t) => ({
|
|
225
|
+
productId: t.id,
|
|
226
|
+
orderId: e.id,
|
|
227
|
+
productName: t.name
|
|
228
|
+
}), Tt = (e, t) => {
|
|
229
|
+
b("review", Z(e, t));
|
|
230
|
+
}, Et = (e, t) => {
|
|
231
|
+
b("view-review", Z(e, t));
|
|
232
|
+
}, Dt = (e, t) => {
|
|
233
|
+
b("append-review", Z(e, t));
|
|
234
|
+
}, Ot = {
|
|
195
235
|
已付款: "#3B82F6",
|
|
196
236
|
待审核: "#F59E0B",
|
|
197
237
|
审核通过: "#22C55E",
|
|
198
238
|
退款中: "#3B82F6",
|
|
199
239
|
已退款: "#22C55E",
|
|
200
240
|
交易成功: "#22C55E"
|
|
201
|
-
},
|
|
241
|
+
}, kt = {
|
|
202
242
|
已付款: "已付款",
|
|
203
243
|
待审核: "待审核",
|
|
204
244
|
审核通过: "审核通过",
|
|
205
245
|
退款中: "退款中",
|
|
206
246
|
已退款: "已退款",
|
|
207
247
|
交易成功: "交易成功"
|
|
208
|
-
}, Q = (e) =>
|
|
209
|
-
return (t, f) => (d(), i(e, null, [a("section",
|
|
248
|
+
}, Q = (e) => Ot[e] || "#262626", $ = (e) => kt[e] || "";
|
|
249
|
+
return (t, f) => (d(), i(e, null, [a("section", se, [c.orders.length > 0 ? (d(), i("div", ce, [(d(!0), i(e, null, p(c.orders, (m) => (d(), i("div", {
|
|
210
250
|
key: m.id,
|
|
211
251
|
class: "bg-[#ffffff] rounded-[8px] shadow-sm overflow-hidden transition-all duration-300 hover:shadow-md",
|
|
212
252
|
style: { border: "1px solid #E5E6E9" }
|
|
@@ -214,10 +254,10 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
214
254
|
class: "px-6 py-3 bg-[#ffffff] hover:bg-slate-50 cursor-pointer transition-all duration-200",
|
|
215
255
|
style: { "border-bottom": "1px solid #E5E6E9" },
|
|
216
256
|
onClick: (e) => t.$emit("view-detail", m)
|
|
217
|
-
}, [a("div",
|
|
218
|
-
a("h3",
|
|
219
|
-
a("span",
|
|
220
|
-
m.createTime ? (d(), i("span",
|
|
257
|
+
}, [a("div", ue, [a("div", de, [
|
|
258
|
+
a("h3", F, "订单编号:" + h(m.orderNumber || m.id), 1),
|
|
259
|
+
a("span", fe, "共 " + h(m.products.length) + " 件商品", 1),
|
|
260
|
+
m.createTime ? (d(), i("span", pe, "购买时间: " + h(ee(m.createTime)), 1)) : r("", !0),
|
|
221
261
|
a("span", {
|
|
222
262
|
class: "text-[12px] font-medium text-[#4749ad] flex items-center gap-1 hover:text-[#4749ad] transition-colors",
|
|
223
263
|
onClick: y((e) => t.$emit("view-detail", m), ["stop"])
|
|
@@ -232,46 +272,46 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
232
272
|
"stroke-linejoin": "round",
|
|
233
273
|
"stroke-width": "2",
|
|
234
274
|
d: "M9 5l7 7-7 7"
|
|
235
|
-
})], -1)]], 8,
|
|
236
|
-
]), a("div",
|
|
275
|
+
})], -1)]], 8, me)
|
|
276
|
+
]), a("div", he, [a("p", ge, "实付金额:¥" + h(m.totalAmount.toFixed(2)), 1), $(m.status) ? (d(), i("span", {
|
|
237
277
|
key: 0,
|
|
238
278
|
class: "px-2 py-0.5 rounded-full text-[11px] font-bold min-w-[70px] text-center bg-transparent",
|
|
239
279
|
style: u({
|
|
240
280
|
color: Q(m.status),
|
|
241
281
|
border: "1px solid " + Q(m.status)
|
|
242
282
|
})
|
|
243
|
-
}, h($(m.status)), 5)) : r("", !0)])])], 8,
|
|
283
|
+
}, h($(m.status)), 5)) : r("", !0)])])], 8, le), a("div", _e, [a("div", { class: l({ "max-h-[360px] overflow-y-auto": m.products.length > 3 }) }, [(d(!0), i(e, null, p(m.products, (o, p) => (d(), i("div", {
|
|
244
284
|
key: o.id,
|
|
245
285
|
class: "px-6 py-4 hover:bg-slate-50 transition-all duration-200 hover:shadow-sm cursor-pointer",
|
|
246
|
-
onClick: (e) =>
|
|
247
|
-
}, [a("div",
|
|
286
|
+
onClick: (e) => D(m, o)
|
|
287
|
+
}, [a("div", ye, [a("div", be, [a("img", {
|
|
248
288
|
src: o.image,
|
|
249
289
|
alt: o.name,
|
|
250
290
|
class: "w-full h-full object-cover"
|
|
251
|
-
}, null, 8,
|
|
291
|
+
}, null, 8, xe)]), a("div", Se, [a("div", Ce, [a("div", I, [a("p", {
|
|
252
292
|
class: "text-sm font-bold text-[#262626] truncate hover:text-[#3F69B4] transition-colors min-w-0",
|
|
253
293
|
title: o.name
|
|
254
|
-
}, h(o.name), 9,
|
|
294
|
+
}, h(o.name), 9, L), g(O)(o, c.controllableDeliveryTag) ? (d(), i("img", {
|
|
255
295
|
key: 0,
|
|
256
296
|
class: "umo-controllable-delivery-tag",
|
|
257
297
|
src: c.controllableDeliveryTag.src,
|
|
258
298
|
alt: c.controllableDeliveryTag?.alt || "可控交付",
|
|
259
299
|
onClick: f[0] ||= y(() => {}, ["stop"])
|
|
260
|
-
}, null, 8,
|
|
261
|
-
a("div",
|
|
262
|
-
a("div",
|
|
300
|
+
}, null, 8, R)) : r("", !0)]), a("div", we, [V(m.id, o.id) && at(V(m.id, o.id)) ? (d(), i("div", Te, [a("div", z, [
|
|
301
|
+
a("div", B, [a("span", Ee, h(G(V(m.id, o.id))), 1), st(V(m.id, o.id)) ? (d(), i("span", De, h(ut(m.id, o.id)) + " MB / " + h(V(m.id, o.id).fileSize), 1)) : r("", !0)]),
|
|
302
|
+
a("div", Oe, [
|
|
263
303
|
a("div", {
|
|
264
|
-
class: l(["h-full transition-all duration-300 ease-in-out",
|
|
265
|
-
style: u({ width:
|
|
304
|
+
class: l(["h-full transition-all duration-300 ease-in-out", W(V(m.id, o.id))]),
|
|
305
|
+
style: u({ width: V(m.id, o.id).progress + "%" })
|
|
266
306
|
}, null, 6),
|
|
267
|
-
a("div",
|
|
307
|
+
a("div", ke, [a("span", Ae, h(V(m.id, o.id).progress) + "% ", 1)]),
|
|
268
308
|
a("div", {
|
|
269
309
|
class: "absolute inset-0 flex items-center justify-center pointer-events-none overflow-hidden",
|
|
270
|
-
style: u({ clipPath: `inset(0 ${100 -
|
|
271
|
-
}, [a("span",
|
|
310
|
+
style: u({ clipPath: `inset(0 ${100 - V(m.id, o.id).progress}% 0 0)` })
|
|
311
|
+
}, [a("span", je, h(V(m.id, o.id).progress) + "% ", 1)], 4)
|
|
272
312
|
]),
|
|
273
|
-
a("div",
|
|
274
|
-
])])) : r("", !0), a("div",
|
|
313
|
+
a("div", Me, [ct(V(m.id, o.id)) ? (d(), i("span", Ne, " 预计剩余: " + h(V(m.id, o.id).estimatedTime), 1)) : (d(), i("span", Pe)), lt(V(m.id, o.id)) ? (d(), i("span", Fe, " 下载速度: " + h(V(m.id, o.id).speed) + " MB/s ", 1)) : r("", !0)])
|
|
314
|
+
])])) : r("", !0), a("div", Ie, [V(m.id, o.id) && U(V(m.id, o.id)) === "completed" ? (d(), i("div", Le, [f[5] ||= a("div", { class: "w-4 h-4 rounded-full bg-green-100 flex items-center justify-center" }, [a("svg", {
|
|
275
315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
276
316
|
class: "h-3 w-3 text-green-600",
|
|
277
317
|
fill: "none",
|
|
@@ -282,32 +322,32 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
282
322
|
"stroke-linejoin": "round",
|
|
283
323
|
"stroke-width": "2",
|
|
284
324
|
d: "M5 13l4 4L19 7"
|
|
285
|
-
})])], -1), a("span",
|
|
286
|
-
s(g(
|
|
287
|
-
default: v(() => [
|
|
325
|
+
})])], -1), a("span", Re, h(G(V(m.id, o.id))), 1)])) : r("", !0), a("div", ze, [
|
|
326
|
+
s(g(E), { content: "下载数据" }, {
|
|
327
|
+
default: v(() => [mt(m, o.id) ? (d(), i("button", {
|
|
288
328
|
key: 0,
|
|
289
329
|
class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
|
|
290
|
-
onClick: y((e) =>
|
|
291
|
-
}, [!
|
|
330
|
+
onClick: y((e) => dt(m.id, o.id), ["stop"])
|
|
331
|
+
}, [!V(m.id, o.id) || U(V(m.id, o.id)) === "idle" ? (d(), n(g(C), {
|
|
292
332
|
key: 0,
|
|
293
333
|
size: "16",
|
|
294
334
|
class: "text-[#4749ad]"
|
|
295
|
-
})) :
|
|
335
|
+
})) : U(V(m.id, o.id)) === "in_progress" ? (d(), n(g(ne), {
|
|
296
336
|
key: 1,
|
|
297
337
|
size: "16",
|
|
298
338
|
class: "text-[#4749ad]"
|
|
299
|
-
})) :
|
|
339
|
+
})) : U(V(m.id, o.id)) === "paused" ? (d(), n(g(re), {
|
|
300
340
|
key: 2,
|
|
301
341
|
size: "16",
|
|
302
342
|
class: "text-[#4749ad]"
|
|
303
|
-
})) :
|
|
343
|
+
})) : U(V(m.id, o.id)) === "completed" ? (d(), n(g(T), {
|
|
304
344
|
key: 3,
|
|
305
345
|
size: "16",
|
|
306
346
|
class: "text-[#4749ad]"
|
|
307
|
-
})) : r("", !0)], 8,
|
|
347
|
+
})) : r("", !0)], 8, Be)) : r("", !0)]),
|
|
308
348
|
_: 2
|
|
309
349
|
}, 1024),
|
|
310
|
-
|
|
350
|
+
gt(m, o.id) ? (d(), n(g(E), {
|
|
311
351
|
key: 0,
|
|
312
352
|
content: "取消下载"
|
|
313
353
|
}, {
|
|
@@ -315,13 +355,13 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
315
355
|
class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
|
|
316
356
|
onClick: y((e) => t.$emit("cancel-download", o.id), ["stop"])
|
|
317
357
|
}, [a("img", {
|
|
318
|
-
src: g(
|
|
358
|
+
src: g(P),
|
|
319
359
|
alt: "取消下载",
|
|
320
360
|
class: "w-[18px] h-[18px]"
|
|
321
|
-
}, null, 8,
|
|
361
|
+
}, null, 8, He)], 8, Ve)]),
|
|
322
362
|
_: 2
|
|
323
363
|
}, 1024)) : r("", !0),
|
|
324
|
-
|
|
364
|
+
ht(m, o.id) ? (d(), n(g(E), {
|
|
325
365
|
key: 1,
|
|
326
366
|
content: "联系卖家"
|
|
327
367
|
}, {
|
|
@@ -331,37 +371,52 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
331
371
|
}, [s(g(te), {
|
|
332
372
|
size: "16",
|
|
333
373
|
class: "text-[#4749ad]"
|
|
334
|
-
})], 8,
|
|
374
|
+
})], 8, Ue)]),
|
|
335
375
|
_: 2
|
|
336
376
|
}, 1024)) : r("", !0),
|
|
337
|
-
|
|
377
|
+
ft(m) ? (d(), i(e, { key: 2 }, [J(m.id, o.id) === "refundable" ? (d(), n(g(E), {
|
|
338
378
|
key: 0,
|
|
339
379
|
content: "申请退款"
|
|
340
380
|
}, {
|
|
341
381
|
default: v(() => [a("button", {
|
|
342
382
|
class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
|
|
343
|
-
onClick: y((e) =>
|
|
383
|
+
onClick: y((e) => _t(o.id), ["stop"])
|
|
344
384
|
}, [a("img", {
|
|
345
|
-
src: g(
|
|
385
|
+
src: g(ae),
|
|
346
386
|
alt: "申请退款",
|
|
347
387
|
class: "w-[18px] h-[18px]"
|
|
348
|
-
}, null, 8,
|
|
388
|
+
}, null, 8, Ge)], 8, We)]),
|
|
349
389
|
_: 2
|
|
350
|
-
}, 1024)) :
|
|
390
|
+
}, 1024)) : bt(m.id, o.id) ? (d(), n(g(E), {
|
|
351
391
|
key: 1,
|
|
352
392
|
content: "联系售后"
|
|
353
393
|
}, {
|
|
354
394
|
default: v(() => [a("button", {
|
|
355
395
|
class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
|
|
356
|
-
onClick: y((e) =>
|
|
396
|
+
onClick: y((e) => yt(o.id), ["stop"])
|
|
357
397
|
}, [a("img", {
|
|
358
|
-
src: g(
|
|
398
|
+
src: g(oe),
|
|
359
399
|
alt: "联系售后",
|
|
360
400
|
class: "w-[18px] h-[18px]"
|
|
361
|
-
}, null, 8,
|
|
401
|
+
}, null, 8, qe)], 8, Ke)]),
|
|
362
402
|
_: 2
|
|
363
|
-
}, 1024)) : r("", !0)], 64)) : r("", !0)
|
|
364
|
-
|
|
403
|
+
}, 1024)) : r("", !0)], 64)) : r("", !0),
|
|
404
|
+
xt(m, o) ? (d(), i(e, { key: 3 }, [Ct(m, o) ? (d(), i("span", Je, " 已删除(平台) ")) : St(m, o) ? (d(), i("button", {
|
|
405
|
+
key: 1,
|
|
406
|
+
type: "button",
|
|
407
|
+
class: "umo-review-btn umo-review-btn--primary",
|
|
408
|
+
onClick: y((e) => Tt(m, o), ["stop"])
|
|
409
|
+
}, " 评价 ", 8, Ye)) : (d(), i(e, { key: 2 }, [a("button", {
|
|
410
|
+
type: "button",
|
|
411
|
+
class: "umo-review-btn umo-review-btn--outline",
|
|
412
|
+
onClick: y((e) => Et(m, o), ["stop"])
|
|
413
|
+
}, " 查看评价 ", 8, Xe), wt(m, o) ? (d(), i("button", {
|
|
414
|
+
key: 0,
|
|
415
|
+
type: "button",
|
|
416
|
+
class: "umo-review-btn umo-review-btn--primary",
|
|
417
|
+
onClick: y((e) => Dt(m, o), ["stop"])
|
|
418
|
+
}, " 追加评价 ", 8, Ze)) : r("", !0)], 64))], 64)) : r("", !0)
|
|
419
|
+
])])])])])])], 8, ve))), 128))], 2), m.products.length > 3 ? (d(), i("div", Qe)) : r("", !0)])]))), 128))])) : (d(), i("div", $e, [a("div", et, [s(g(w), { size: "24" })]), f[6] ||= a("h3", { class: "text-lg font-bold text-[#262626] mb-6" }, "暂无订单", -1)])), c.totalPages > 1 ? (d(), i("div", tt, [
|
|
365
420
|
a("button", {
|
|
366
421
|
onClick: f[1] ||= (e) => t.$emit("page-change", c.currentPage - 1, c.pageSize),
|
|
367
422
|
disabled: c.currentPage === 1,
|
|
@@ -372,8 +427,8 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
372
427
|
height: "32px",
|
|
373
428
|
border: "1px solid #d1d5db"
|
|
374
429
|
}
|
|
375
|
-
}, [s(g(x), { size: "16" })], 8,
|
|
376
|
-
a("span",
|
|
430
|
+
}, [s(g(x), { size: "16" })], 8, nt),
|
|
431
|
+
a("span", rt, h(c.currentPage) + " / " + h(c.totalPages), 1),
|
|
377
432
|
a("button", {
|
|
378
433
|
onClick: f[2] ||= (e) => t.$emit("page-change", c.currentPage + 1, c.pageSize),
|
|
379
434
|
disabled: c.currentPage === c.totalPages,
|
|
@@ -384,25 +439,25 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
384
439
|
height: "32px",
|
|
385
440
|
border: "1px solid #d1d5db"
|
|
386
441
|
}
|
|
387
|
-
}, [s(g(S), { size: "16" })], 8,
|
|
388
|
-
])) : r("", !0)]), s(g(
|
|
389
|
-
visible:
|
|
390
|
-
"onUpdate:visible": f[3] ||= (e) =>
|
|
442
|
+
}, [s(g(S), { size: "16" })], 8, it)
|
|
443
|
+
])) : r("", !0)]), s(g(ie), {
|
|
444
|
+
visible: q.value,
|
|
445
|
+
"onUpdate:visible": f[3] ||= (e) => q.value = e,
|
|
391
446
|
title: "申请退款",
|
|
392
447
|
footer: !1,
|
|
393
448
|
"mask-closable": !1,
|
|
394
449
|
width: 448,
|
|
395
450
|
"modal-style": { borderRadius: "8px" },
|
|
396
|
-
onCancel:
|
|
451
|
+
onCancel: Y
|
|
397
452
|
}, {
|
|
398
453
|
default: v(() => [f[7] ||= a("p", { class: "text-sm text-[#262626] text-center mb-6" }, "确认要申请退款吗?退款成功后您将无法继续下载并使用此数据。", -1), a("div", { class: "flex justify-end gap-3" }, [a("button", {
|
|
399
454
|
style: { border: "none" },
|
|
400
455
|
class: "px-4 py-2 text-sm text-[#262626] rounded-md hover:bg-slate-50 transition-colors cursor-pointer",
|
|
401
|
-
onClick:
|
|
456
|
+
onClick: Y
|
|
402
457
|
}, "取消"), a("button", {
|
|
403
458
|
style: { border: "none" },
|
|
404
459
|
class: "px-4 py-2 text-sm text-white bg-[#4749ad] rounded-md hover:opacity-90 transition-colors cursor-pointer",
|
|
405
|
-
onClick:
|
|
460
|
+
onClick: vt
|
|
406
461
|
}, "确认")])]),
|
|
407
462
|
_: 1
|
|
408
463
|
}, 8, ["visible"])], 64));
|
|
@@ -411,7 +466,7 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
411
466
|
let n = e.__vccOpts || e;
|
|
412
467
|
for (let [e, r] of t) n[e] = r;
|
|
413
468
|
return n;
|
|
414
|
-
}, U = /* @__PURE__ */ H(V, [["__scopeId", "data-v-
|
|
469
|
+
}, U = /* @__PURE__ */ H(V, [["__scopeId", "data-v-11b407c5"]]), at = { class: "order-management bg-[#F6F4F0] text-[#262626] font-[PingFangSC]" }, W = /* @__PURE__ */ H(/* @__PURE__ */ c({
|
|
415
470
|
__name: "OrderManagement",
|
|
416
471
|
props: {
|
|
417
472
|
orders: {},
|
|
@@ -439,7 +494,19 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
439
494
|
contactSellerButtonVisible: {},
|
|
440
495
|
cancelDownloadButtonVisible: {},
|
|
441
496
|
refundStates: {},
|
|
442
|
-
controllableDeliveryTag: {}
|
|
497
|
+
controllableDeliveryTag: {},
|
|
498
|
+
afterSalesEnabled: {
|
|
499
|
+
type: Boolean,
|
|
500
|
+
default: !0
|
|
501
|
+
},
|
|
502
|
+
reviewEnabled: {
|
|
503
|
+
type: Boolean,
|
|
504
|
+
default: !1
|
|
505
|
+
},
|
|
506
|
+
reviewStates: {},
|
|
507
|
+
onReview: {},
|
|
508
|
+
onViewReview: {},
|
|
509
|
+
onAppendReview: {}
|
|
443
510
|
},
|
|
444
511
|
setup(e) {
|
|
445
512
|
let n = e, r = f(n.currentOrderPage), a = t(() => n.currentOrderPage ?? r.value), o = t(() => n.orderItemsPerPage ?? 10);
|
|
@@ -463,7 +530,7 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
463
530
|
}), h = t(() => n.serverPagination ? n.totalOrderCount : u.value.length);
|
|
464
531
|
return _(() => n.currentOrderPage, (e) => {
|
|
465
532
|
r.value = e ?? 1;
|
|
466
|
-
}), (
|
|
533
|
+
}), (e, t) => (d(), i("div", at, [s(U, {
|
|
467
534
|
orders: p.value,
|
|
468
535
|
"total-orders": h.value,
|
|
469
536
|
"current-page": a.value,
|
|
@@ -477,17 +544,23 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
477
544
|
"cancel-download-button-visible": n.cancelDownloadButtonVisible,
|
|
478
545
|
"refund-states": n.refundStates,
|
|
479
546
|
"controllable-delivery-tag": n.controllableDeliveryTag,
|
|
547
|
+
"after-sales-enabled": n.afterSalesEnabled,
|
|
548
|
+
"review-enabled": n.reviewEnabled,
|
|
549
|
+
"review-states": n.reviewStates,
|
|
480
550
|
onPageChange: l,
|
|
481
|
-
onViewDetail:
|
|
482
|
-
onViewProduct:
|
|
483
|
-
onDownload:
|
|
484
|
-
onPauseDownload:
|
|
485
|
-
onResumeDownload:
|
|
486
|
-
onCancelDownload:
|
|
487
|
-
onOpenFile:
|
|
488
|
-
onContactSeller:
|
|
489
|
-
onRequestRefund:
|
|
490
|
-
onRequestAfterSales:
|
|
551
|
+
onViewDetail: t[0] ||= (e) => n.onViewDetail?.(e),
|
|
552
|
+
onViewProduct: t[1] ||= (e, t) => n.onViewProduct?.(e, t),
|
|
553
|
+
onDownload: t[2] ||= (e) => n.onDownload?.(e),
|
|
554
|
+
onPauseDownload: t[3] ||= (e) => n.onPauseDownload?.(e),
|
|
555
|
+
onResumeDownload: t[4] ||= (e) => n.onResumeDownload?.(e),
|
|
556
|
+
onCancelDownload: t[5] ||= (e) => n.onCancelDownload?.(e),
|
|
557
|
+
onOpenFile: t[6] ||= (e) => n.onOpenFile?.(e),
|
|
558
|
+
onContactSeller: t[7] ||= (e) => n.onContactSeller?.(e),
|
|
559
|
+
onRequestRefund: t[8] ||= (e) => n.onRequestRefund?.(e),
|
|
560
|
+
onRequestAfterSales: t[9] ||= (e) => n.onRequestAfterSales?.(e),
|
|
561
|
+
onReview: t[10] ||= (e) => n.onReview?.(e),
|
|
562
|
+
onViewReview: t[11] ||= (e) => n.onViewReview?.(e),
|
|
563
|
+
onAppendReview: t[12] ||= (e) => n.onAppendReview?.(e)
|
|
491
564
|
}, null, 8, [
|
|
492
565
|
"orders",
|
|
493
566
|
"total-orders",
|
|
@@ -501,10 +574,13 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
501
574
|
"contact-seller-button-visible",
|
|
502
575
|
"cancel-download-button-visible",
|
|
503
576
|
"refund-states",
|
|
504
|
-
"controllable-delivery-tag"
|
|
577
|
+
"controllable-delivery-tag",
|
|
578
|
+
"after-sales-enabled",
|
|
579
|
+
"review-enabled",
|
|
580
|
+
"review-states"
|
|
505
581
|
])]));
|
|
506
582
|
}
|
|
507
|
-
}), [["__scopeId", "data-v-
|
|
583
|
+
}), [["__scopeId", "data-v-42c5c864"]]), ot = { class: "order-detail space-y-8 bg-[#ffffff] font-[PingFangSC]" }, G = {
|
|
508
584
|
class: "bg-[#ffffff] rounded-[8px] shadow-sm",
|
|
509
585
|
style: {
|
|
510
586
|
border: "1px solid #E5E6E9",
|
|
@@ -513,102 +589,137 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
513
589
|
"padding-left": "24px",
|
|
514
590
|
"padding-right": "24px"
|
|
515
591
|
}
|
|
516
|
-
},
|
|
592
|
+
}, st = { class: "space-y-3" }, ct = { class: "flex justify-between" }, lt = { class: "text-[12px] font-medium text-[#262626]" }, ut = { class: "flex justify-between items-center" }, dt = { class: "flex justify-between" }, K = { class: "text-[12px] font-medium text-[#262626]" }, q = { class: "text-[12px] font-medium text-[#262626]" }, J = {
|
|
517
593
|
key: 0,
|
|
518
594
|
class: "flex justify-between"
|
|
519
|
-
},
|
|
595
|
+
}, ft = { class: "text-[12px] font-medium text-[#262626]" }, pt = {
|
|
520
596
|
key: 1,
|
|
521
597
|
class: "flex justify-between"
|
|
522
|
-
},
|
|
598
|
+
}, mt = { class: "text-[12px] font-medium text-[#262626]" }, ht = {
|
|
523
599
|
class: "text-[18px] font-bold text-[#262626]",
|
|
524
600
|
style: { "font-weight": "700" }
|
|
525
|
-
},
|
|
601
|
+
}, gt = {
|
|
526
602
|
class: "bg-[#ffffff] rounded-[8px] shadow-sm",
|
|
527
603
|
style: {
|
|
528
604
|
border: "1px solid #E5E6E9",
|
|
529
605
|
"padding-top": "24px",
|
|
530
606
|
"padding-bottom": "24px"
|
|
531
607
|
}
|
|
532
|
-
},
|
|
608
|
+
}, _t = { class: "space-y-4" }, vt = { class: "w-12 h-12 rounded overflow-hidden flex-shrink-0" }, Y = ["src", "alt"], yt = { class: "flex-1 min-w-0" }, bt = { class: "flex items-center justify-between mb-2 gap-2 min-w-0" }, X = { class: "flex items-center min-w-0 flex-1" }, xt = ["title", "onClick"], St = ["src", "alt"], Ct = { class: "text-[11px] font-medium text-[#8D8C8B]" }, wt = { class: "flex items-center gap-2 shrink-0" }, Z = {
|
|
533
609
|
key: 0,
|
|
534
610
|
class: "text-xs font-medium text-[#262626]"
|
|
535
|
-
},
|
|
611
|
+
}, Tt = ["onClick"], Et = ["onClick"], Dt = ["src"], Ot = ["onClick"], kt = ["src"], Q = {
|
|
612
|
+
key: 0,
|
|
613
|
+
class: "umo-review-deleted"
|
|
614
|
+
}, $ = ["onClick"], At = ["onClick"], jt = ["onClick"], Mt = {
|
|
536
615
|
key: 0,
|
|
537
616
|
class: "px-6"
|
|
538
|
-
},
|
|
617
|
+
}, Nt = {
|
|
539
618
|
class: "mt-4 pt-4 px-6",
|
|
540
619
|
style: { "border-top": "1px solid #E5E6E9" }
|
|
541
|
-
},
|
|
620
|
+
}, Pt = { class: "flex justify-end items-center gap-2" }, Ft = { class: "text-sm font-bold text-[#262626]" }, It = {
|
|
542
621
|
key: 0,
|
|
543
622
|
class: "mt-2 text-xs font-medium text-[#262626] text-right"
|
|
544
|
-
},
|
|
623
|
+
}, Lt = {
|
|
545
624
|
key: 0,
|
|
546
625
|
class: "bg-[#ffffff] rounded-[8px] shadow-sm p-6",
|
|
547
626
|
style: { border: "1px solid #E5E6E9" }
|
|
548
|
-
},
|
|
627
|
+
}, Rt = /* @__PURE__ */ H(/* @__PURE__ */ c({
|
|
549
628
|
__name: "OrderDetail",
|
|
550
629
|
props: {
|
|
551
630
|
order: {},
|
|
552
631
|
refundStates: {},
|
|
553
632
|
contactSellerButtonVisible: {},
|
|
554
|
-
controllableDeliveryTag: {}
|
|
633
|
+
controllableDeliveryTag: {},
|
|
634
|
+
afterSalesEnabled: { type: Boolean },
|
|
635
|
+
reviewEnabled: { type: Boolean },
|
|
636
|
+
reviewStates: {},
|
|
637
|
+
onReview: { type: Function },
|
|
638
|
+
onViewReview: { type: Function },
|
|
639
|
+
onAppendReview: { type: Function }
|
|
555
640
|
},
|
|
556
641
|
emits: [
|
|
557
642
|
"contact-seller",
|
|
558
643
|
"view-product",
|
|
559
644
|
"request-refund",
|
|
560
|
-
"request-after-sales"
|
|
645
|
+
"request-after-sales",
|
|
646
|
+
"review",
|
|
647
|
+
"view-review",
|
|
648
|
+
"append-review"
|
|
561
649
|
],
|
|
562
650
|
setup(c, { emit: l }) {
|
|
563
651
|
let _ = c, x = l, S = f(!1), C = f(""), w = f(!1), T = (e) => _.refundStates?.[`${_.order.id}-${e}`], ne = (e) => {
|
|
564
652
|
let t = `${_.order.id}-${e}`, n = _.contactSellerButtonVisible?.[t];
|
|
565
653
|
return n === void 0 ? !0 : n;
|
|
566
|
-
},
|
|
654
|
+
}, re = (e) => {
|
|
567
655
|
C.value = e, w.value = !0;
|
|
568
|
-
},
|
|
656
|
+
}, D = () => {
|
|
569
657
|
let e = C.value;
|
|
570
658
|
if (!e) {
|
|
571
|
-
|
|
659
|
+
k();
|
|
572
660
|
return;
|
|
573
661
|
}
|
|
574
|
-
x("request-refund", e),
|
|
575
|
-
},
|
|
662
|
+
x("request-refund", e), k();
|
|
663
|
+
}, k = () => {
|
|
576
664
|
w.value = !1, C.value = "";
|
|
577
|
-
},
|
|
665
|
+
}, j = (e) => {
|
|
578
666
|
x("request-after-sales", e);
|
|
579
|
-
},
|
|
667
|
+
}, N = (e) => _.afterSalesEnabled === !1 ? !1 : T(e) === "after_sales", P = (e) => M(_.reviewStates, _.order.id, e.id), se = (e) => {
|
|
668
|
+
if (!_.reviewEnabled) return !1;
|
|
669
|
+
let t = P(e);
|
|
670
|
+
return t.canReview ? t.loaded !== !1 : !1;
|
|
671
|
+
}, ce = (e) => {
|
|
672
|
+
let t = P(e);
|
|
673
|
+
return t.status == null && t.reviewed !== !0;
|
|
674
|
+
}, le = (e) => P(e).status === A.DELETED, ue = (e) => {
|
|
675
|
+
let t = P(e);
|
|
676
|
+
return t.canAppend == null ? t.status === A.PASSED : t.canAppend;
|
|
677
|
+
}, de = (e) => ({
|
|
678
|
+
productId: e.id,
|
|
679
|
+
orderId: _.order.id,
|
|
680
|
+
productName: e.name
|
|
681
|
+
}), F = (e, t, n) => {
|
|
682
|
+
let r = de(t);
|
|
683
|
+
n?.(r), x(e, r);
|
|
684
|
+
}, fe = (e) => {
|
|
685
|
+
F("review", e, _.onReview);
|
|
686
|
+
}, pe = (e) => {
|
|
687
|
+
F("view-review", e, _.onViewReview);
|
|
688
|
+
}, me = (e) => {
|
|
689
|
+
F("append-review", e, _.onAppendReview);
|
|
690
|
+
}, he = t(() => _.order.products && _.order.products.length > 5), ge = t(() => _.order.products ? S.value ? _.order.products : _.order.products.slice(0, 5) : []), _e = () => {
|
|
580
691
|
S.value = !S.value;
|
|
581
|
-
},
|
|
692
|
+
}, ve = (e) => {
|
|
582
693
|
x("contact-seller", e);
|
|
583
|
-
},
|
|
694
|
+
}, ye = (e) => {
|
|
584
695
|
x("view-product", _.order, e);
|
|
585
|
-
},
|
|
696
|
+
}, be = (e, t) => e ? e.length <= t ? e : e.substring(0, t) + "..." : "", xe = (e) => {
|
|
586
697
|
if (!e) return "";
|
|
587
698
|
let t = new Date(e);
|
|
588
699
|
return `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")} ${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}`;
|
|
589
|
-
},
|
|
700
|
+
}, Se = (e) => I(e) ? "购买时间" : L(e) ? "兑换时间" : R(e) ? "发放时间" : "购买时间", Ce = (e) => e.createTime ? e.createTime : e.exchangeTime ? e.exchangeTime : e.issueTime ? e.issueTime : e.createTime || "", I = (e) => !e.isExchange && !e.isGift, L = (e) => !!e.isExchange, R = (e) => !!e.isGift, we = {
|
|
590
701
|
已付款: "#3B82F6",
|
|
591
702
|
待审核: "#F59E0B",
|
|
592
703
|
审核通过: "#22C55E",
|
|
593
704
|
退款中: "#3B82F6",
|
|
594
705
|
已退款: "#22C55E",
|
|
595
706
|
交易成功: "#22C55E"
|
|
596
|
-
},
|
|
707
|
+
}, Te = {
|
|
597
708
|
已付款: "已付款",
|
|
598
709
|
待审核: "待审核",
|
|
599
710
|
审核通过: "审核通过",
|
|
600
711
|
退款中: "退款中",
|
|
601
712
|
已退款: "已退款",
|
|
602
713
|
交易成功: "交易成功"
|
|
603
|
-
}, z = (e) =>
|
|
604
|
-
return (t, l) => (d(), i(e, null, [a("section",
|
|
714
|
+
}, z = (e) => we[e] || "#262626", B = (e) => Te[e] || "";
|
|
715
|
+
return (t, l) => (d(), i(e, null, [a("section", ot, [
|
|
605
716
|
l[9] ||= a("h2", {
|
|
606
717
|
class: "text-[18px] font-bold text-[#262626]",
|
|
607
718
|
style: { "font-weight": "700" }
|
|
608
719
|
}, "订单信息", -1),
|
|
609
|
-
a("div",
|
|
610
|
-
a("div",
|
|
611
|
-
a("div",
|
|
720
|
+
a("div", G, [a("div", st, [
|
|
721
|
+
a("div", ct, [l[2] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "订单编号", -1), a("span", lt, h(c.order.orderNumber || c.order.id), 1)]),
|
|
722
|
+
a("div", ut, [l[3] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "交易状态", -1), B(c.order.status) ? (d(), i("span", {
|
|
612
723
|
key: 0,
|
|
613
724
|
class: "px-2 py-0.5 rounded-full text-[11px] font-bold min-w-[70px] text-center bg-transparent",
|
|
614
725
|
style: u({
|
|
@@ -616,82 +727,97 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
616
727
|
border: "1px solid " + z(c.order.status)
|
|
617
728
|
})
|
|
618
729
|
}, h(B(c.order.status)), 5)) : r("", !0)]),
|
|
619
|
-
a("div",
|
|
620
|
-
|
|
621
|
-
|
|
730
|
+
a("div", dt, [a("span", K, h(Se(c.order)), 1), a("span", q, h(xe(Ce(c.order))), 1)]),
|
|
731
|
+
I(c.order) ? (d(), i("div", J, [l[4] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "支付方式", -1), a("span", ft, h(c.order.paymentMethod || "在线支付"), 1)])) : r("", !0),
|
|
732
|
+
L(c.order) ? (d(), i("div", pt, [l[5] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "兑换码", -1), a("span", mt, h(c.order.exchangeCode || "ABCD-1234-EFGH-5678"), 1)])) : r("", !0)
|
|
622
733
|
])]),
|
|
623
|
-
a("h2",
|
|
624
|
-
a("div",
|
|
734
|
+
a("h2", ht, "产品信息(共" + h(c.order.products ? c.order.products.length : 0) + "件)", 1),
|
|
735
|
+
a("div", gt, [a("div", _t, [(d(!0), i(e, null, p(ge.value, (t, o) => (d(), i("div", {
|
|
625
736
|
key: t.id,
|
|
626
737
|
class: "flex items-start gap-4 px-6 py-4 w-full hover:bg-slate-50 transition-all duration-200 hover:shadow-sm"
|
|
627
738
|
}, [
|
|
628
|
-
a("div",
|
|
739
|
+
a("div", vt, [a("img", {
|
|
629
740
|
src: t.image,
|
|
630
741
|
alt: t.name,
|
|
631
742
|
class: "w-full h-full object-cover"
|
|
632
|
-
}, null, 8,
|
|
633
|
-
a("div",
|
|
743
|
+
}, null, 8, Y)]),
|
|
744
|
+
a("div", yt, [a("div", bt, [a("div", X, [a("p", {
|
|
634
745
|
class: "text-sm font-bold text-[#262626] truncate cursor-pointer hover:text-[#3F69B4] transition-colors min-w-0",
|
|
635
746
|
title: t.name,
|
|
636
|
-
onClick: (e) =>
|
|
637
|
-
}, h(
|
|
747
|
+
onClick: (e) => ye(t)
|
|
748
|
+
}, h(be(t.name, 35)), 9, xt), g(O)(t, c.controllableDeliveryTag) ? (d(), i("img", {
|
|
638
749
|
key: 0,
|
|
639
750
|
class: "umo-controllable-delivery-tag",
|
|
640
751
|
src: c.controllableDeliveryTag.src,
|
|
641
752
|
alt: c.controllableDeliveryTag?.alt || "可控交付",
|
|
642
753
|
onClick: l[0] ||= y(() => {}, ["stop"])
|
|
643
|
-
}, null, 8,
|
|
754
|
+
}, null, 8, St)) : r("", !0)])]), a("div", Ct, [
|
|
644
755
|
a("span", null, "文件后缀:" + h(t.metadata?.fileSuffix || "pdf"), 1),
|
|
645
756
|
l[6] ||= a("span", { class: "mx-2" }, "|", -1),
|
|
646
757
|
a("span", null, "数据标识:" + h(t.metadata?.dataId || "D1757042744151521"), 1),
|
|
647
758
|
l[7] ||= a("span", { class: "mx-2" }, "|", -1),
|
|
648
759
|
a("span", null, "文件大小:" + h(t.metadata?.fileSize || "2.8MB"), 1)
|
|
649
760
|
])]),
|
|
650
|
-
a("div",
|
|
651
|
-
|
|
652
|
-
ne(t.id) ? (d(), n(g(
|
|
761
|
+
a("div", wt, [
|
|
762
|
+
I(c.order) && t.price ? (d(), i("span", Z, "¥" + h(t.price.toFixed(2)), 1)) : r("", !0),
|
|
763
|
+
ne(t.id) ? (d(), n(g(E), {
|
|
653
764
|
key: 1,
|
|
654
765
|
content: "联系卖家"
|
|
655
766
|
}, {
|
|
656
767
|
default: v(() => [a("button", {
|
|
657
768
|
class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
|
|
658
|
-
onClick: (e) =>
|
|
769
|
+
onClick: (e) => ve(t.id)
|
|
659
770
|
}, [s(g(te), {
|
|
660
771
|
size: "16",
|
|
661
772
|
class: "text-[#4749ad]"
|
|
662
|
-
})], 8,
|
|
773
|
+
})], 8, Tt)]),
|
|
663
774
|
_: 2
|
|
664
775
|
}, 1024)) : r("", !0),
|
|
665
|
-
|
|
776
|
+
I(c.order) ? (d(), i(e, { key: 2 }, [T(t.id) === "refundable" ? (d(), n(g(E), {
|
|
666
777
|
key: 0,
|
|
667
778
|
content: "申请退款"
|
|
668
779
|
}, {
|
|
669
780
|
default: v(() => [a("button", {
|
|
670
781
|
class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
|
|
671
|
-
onClick: (e) =>
|
|
782
|
+
onClick: (e) => re(t.id)
|
|
672
783
|
}, [a("img", {
|
|
673
|
-
src: g(
|
|
784
|
+
src: g(ae),
|
|
674
785
|
alt: "申请退款",
|
|
675
786
|
class: "w-[18px] h-[18px]"
|
|
676
|
-
}, null, 8,
|
|
787
|
+
}, null, 8, Dt)], 8, Et)]),
|
|
677
788
|
_: 2
|
|
678
|
-
}, 1024)) :
|
|
789
|
+
}, 1024)) : N(t.id) ? (d(), n(g(E), {
|
|
679
790
|
key: 1,
|
|
680
791
|
content: "联系售后"
|
|
681
792
|
}, {
|
|
682
793
|
default: v(() => [a("button", {
|
|
683
794
|
class: "w-10 h-10 rounded-full flex items-center justify-center hover:bg-slate-50 transition-all transform hover:scale-105 hover:shadow-md",
|
|
684
|
-
onClick: (e) =>
|
|
795
|
+
onClick: (e) => j(t.id)
|
|
685
796
|
}, [a("img", {
|
|
686
|
-
src: g(
|
|
797
|
+
src: g(oe),
|
|
687
798
|
alt: "联系售后",
|
|
688
799
|
class: "w-[18px] h-[18px]"
|
|
689
|
-
}, null, 8,
|
|
800
|
+
}, null, 8, kt)], 8, Ot)]),
|
|
690
801
|
_: 2
|
|
691
|
-
}, 1024)) : r("", !0)], 64)) : r("", !0)
|
|
802
|
+
}, 1024)) : r("", !0)], 64)) : r("", !0),
|
|
803
|
+
se(t) ? (d(), i(e, { key: 3 }, [le(t) ? (d(), i("span", Q, " 已删除(平台) ")) : ce(t) ? (d(), i("button", {
|
|
804
|
+
key: 1,
|
|
805
|
+
type: "button",
|
|
806
|
+
class: "umo-review-btn umo-review-btn--primary",
|
|
807
|
+
onClick: (e) => fe(t)
|
|
808
|
+
}, " 评价 ", 8, $)) : (d(), i(e, { key: 2 }, [a("button", {
|
|
809
|
+
type: "button",
|
|
810
|
+
class: "umo-review-btn umo-review-btn--outline",
|
|
811
|
+
onClick: (e) => pe(t)
|
|
812
|
+
}, " 查看评价 ", 8, At), ue(t) ? (d(), i("button", {
|
|
813
|
+
key: 0,
|
|
814
|
+
type: "button",
|
|
815
|
+
class: "umo-review-btn umo-review-btn--primary",
|
|
816
|
+
onClick: (e) => me(t)
|
|
817
|
+
}, " 追加评价 ", 8, jt)) : r("", !0)], 64))], 64)) : r("", !0)
|
|
692
818
|
])
|
|
693
|
-
]))), 128)),
|
|
694
|
-
onClick:
|
|
819
|
+
]))), 128)), he.value ? (d(), i("div", Mt, [a("button", {
|
|
820
|
+
onClick: _e,
|
|
695
821
|
class: "flex items-center justify-end gap-2 px-1.5 py-1.5 text-[12px] font-medium text-[#4749ad] hover:bg-slate-50 rounded-md transition-all transform hover:scale-105 hover:shadow-md w-[88px]",
|
|
696
822
|
style: {
|
|
697
823
|
"text-align": "right",
|
|
@@ -703,9 +829,9 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
703
829
|
})) : (d(), n(g(b), {
|
|
704
830
|
key: 1,
|
|
705
831
|
size: "16"
|
|
706
|
-
}))])])) : r("", !0)]), a("div",
|
|
707
|
-
t.$slots["host-extra"] ? (d(), i("div",
|
|
708
|
-
]), s(g(
|
|
832
|
+
}))])])) : r("", !0)]), a("div", Nt, [a("div", Pt, [l[8] ||= a("span", { class: "text-[12px] font-medium text-[#262626]" }, "总计", -1), a("span", Ft, " ¥" + h(c.order.totalAmount ? c.order.totalAmount.toFixed(2) : "0.00"), 1)]), R(c.order) ? (d(), i("div", It, " 本订单产品为平台赠送,无实际支付金额 ")) : r("", !0)])]),
|
|
833
|
+
t.$slots["host-extra"] ? (d(), i("div", Lt, [m(t.$slots, "host-extra", {}, void 0, !0)])) : r("", !0)
|
|
834
|
+
]), s(g(ie), {
|
|
709
835
|
visible: w.value,
|
|
710
836
|
"onUpdate:visible": l[1] ||= (e) => w.value = e,
|
|
711
837
|
title: "申请退款",
|
|
@@ -713,23 +839,23 @@ var N = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2
|
|
|
713
839
|
"mask-closable": !1,
|
|
714
840
|
width: 448,
|
|
715
841
|
"modal-style": { borderRadius: "8px" },
|
|
716
|
-
onCancel:
|
|
842
|
+
onCancel: k
|
|
717
843
|
}, {
|
|
718
844
|
default: v(() => [l[10] ||= a("p", { class: "text-sm text-[#262626] text-center mb-6" }, "确认要申请退款吗?退款成功后您将无法继续下载并使用此数据。", -1), a("div", { class: "flex justify-end gap-3" }, [a("button", {
|
|
719
845
|
style: { border: "none" },
|
|
720
846
|
class: "px-4 py-2 text-sm text-[#262626] rounded-md hover:bg-slate-50 transition-colors cursor-pointer",
|
|
721
|
-
onClick:
|
|
847
|
+
onClick: k
|
|
722
848
|
}, "取消"), a("button", {
|
|
723
849
|
style: { border: "none" },
|
|
724
850
|
class: "px-4 py-2 text-sm text-white bg-[#4749ad] rounded-md hover:opacity-90 transition-colors cursor-pointer",
|
|
725
|
-
onClick:
|
|
851
|
+
onClick: D
|
|
726
852
|
}, "确认")])]),
|
|
727
853
|
_: 1
|
|
728
854
|
}, 8, ["visible"])], 64));
|
|
729
855
|
}
|
|
730
|
-
}), [["__scopeId", "data-v-
|
|
731
|
-
OrderManagement:
|
|
732
|
-
OrderDetailPanel:
|
|
856
|
+
}), [["__scopeId", "data-v-4bcd2e6f"]]), zt = {
|
|
857
|
+
OrderManagement: W,
|
|
858
|
+
OrderDetailPanel: Rt
|
|
733
859
|
};
|
|
734
860
|
//#endregion
|
|
735
|
-
export {
|
|
861
|
+
export { j as EMPTY_REVIEW_UI_STATE, Rt as OrderDetailPanel, W as OrderManagement, A as REVIEW_UI_STATUS, D as isProductControllableDelivery, M as pickReviewUiState, O as shouldShowControllableDeliveryTag, zt as userMyOrder };
|