Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
iedgeMini
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6eb3aa03
authored
Jun 27, 2025
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add
parent
aee488a1
Show whitespace changes
Inline
Side-by-side
Showing
51 changed files
with
50 additions
and
0 deletions
unpackage/dist/build/web/assets/_plugin-vue_export-helper.BCo6x5W8.js
unpackage/dist/build/web/assets/barx._hPkFqJr.js
unpackage/dist/build/web/assets/bottom_nav.Epavr9vk.js
unpackage/dist/build/web/assets/changeEmail-B_wgkLGu.css
unpackage/dist/build/web/assets/index-B52OZNum.js
unpackage/dist/build/web/assets/index-CgI5qguW.css
unpackage/dist/build/web/assets/one_item-CSZwMz5x.css
unpackage/dist/build/web/assets/one_item.Ch3BEFeS.js
unpackage/dist/build/web/assets/pages-activity-ac618.Co-LbpjT.js
unpackage/dist/build/web/assets/pages-activity-index.DNv1GCxa.js
unpackage/dist/build/web/assets/pages-auth-changeEmail.Bc_k-bsh.js
unpackage/dist/build/web/assets/pages-auth-findSuccess.CeLP5cRh.js
unpackage/dist/build/web/assets/pages-auth-forget.ZZWTukFV.js
unpackage/dist/build/web/assets/pages-auth-login.B_8EVSei.js
unpackage/dist/build/web/assets/pages-auth-reg.DEWrU9fM.js
unpackage/dist/build/web/assets/pages-auth-regSuccess.BHm9lcsA.js
unpackage/dist/build/web/assets/pages-auth-rule.BNJssEbp.js
unpackage/dist/build/web/assets/pages-car-confirmOrder.jzh-Un9r.js
unpackage/dist/build/web/assets/pages-car-confirmQuote.BUX6yvqw.js
unpackage/dist/build/web/assets/pages-car-confirmQuoteSuccess.CxvpqH6S.js
unpackage/dist/build/web/assets/pages-car-confirmRule.Bq9cAirx.js
unpackage/dist/build/web/assets/pages-car-list.Hd6B9LRB.js
unpackage/dist/build/web/assets/pages-class-list.o2xu5DtJ.js
unpackage/dist/build/web/assets/pages-class-nav.D0I6JcYf.js
unpackage/dist/build/web/assets/pages-goods-detail.BsACuf0V.js
unpackage/dist/build/web/assets/pages-index-index.CdfYYadg.js
unpackage/dist/build/web/assets/pages-index-kf.BZDaSYeT.js
unpackage/dist/build/web/assets/pages-search-list.BOnN_O8F.js
unpackage/dist/build/web/assets/pages-search-nav.D0ht0Fx0.js
unpackage/dist/build/web/assets/pages-user-address.Yuc3Kk6Y.js
unpackage/dist/build/web/assets/pages-user-addressAdd.H4DcJtWU.js
unpackage/dist/build/web/assets/pages-user-addressEdit.at1LtFSV.js
unpackage/dist/build/web/assets/pages-user-companyInfo.DXCXIYg_.js
unpackage/dist/build/web/assets/pages-user-companyInfoList.axKXn4hg.js
unpackage/dist/build/web/assets/pages-user-coupon.9yvrjyUR.js
unpackage/dist/build/web/assets/pages-user-invoice.DtR9J6dC.js
unpackage/dist/build/web/assets/pages-user-invoiceAdd.DCVFvyXV.js
unpackage/dist/build/web/assets/pages-user-invoiceEdit.CwH2BoxY.js
unpackage/dist/build/web/assets/pages-user-msgList.3JQdPaDu.js
unpackage/dist/build/web/assets/pages-user-orderDetail.BePz4UCg.js
unpackage/dist/build/web/assets/pages-user-orderList.Dy6_4AI0.js
unpackage/dist/build/web/assets/pages-user-orderPay.CmVw2Y7r.js
unpackage/dist/build/web/assets/pages-user-orderPayLine.CHDFQ8dU.js
unpackage/dist/build/web/assets/pages-user-qDlist.Bj-UKFWQ.js
unpackage/dist/build/web/assets/pages-user-qdDetail.B8dGMZ1_.js
unpackage/dist/build/web/assets/pages-user-setting.Df25K3y9.js
unpackage/dist/build/web/assets/pages-user-userInfo.5aeoQqMw.js
unpackage/dist/build/web/assets/search_head.Bd-A-aAE.js
unpackage/dist/build/web/assets/title_nav.Bmrn86K5.js
unpackage/dist/build/web/assets/uni-popup-DuQ7tQfF.css
unpackage/dist/build/web/assets/uni-popup.B33pbe0T.js
unpackage/dist/build/web/assets/_plugin-vue_export-helper.BCo6x5W8.js
0 → 100644
View file @
6eb3aa03
const
o
=
(
o
,
t
)
=>
{
const
c
=
o
.
__vccOpts
||
o
;
for
(
const
[
s
,
n
]
of
t
)
c
[
s
]
=
n
;
return
c
};
export
{
o
as
_
};
unpackage/dist/build/web/assets/barx._hPkFqJr.js
0 → 100644
View file @
6eb3aa03
import
{
E
as
e
,
o
as
a
,
c
as
s
,
w
as
t
,
d
as
o
,
v
as
l
,
e
as
n
,
t
as
c
,
m
as
r
,
i
as
p
}
from
"./index-B52OZNum.js"
;
import
{
_
as
i
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
d
=
i
({
name
:
"barx"
,
props
:{
pageTitle
:{
type
:
String
,
default
:
"爱智工业品"
},
type
:{
type
:
Number
,
default
:
0
}},
created
(){},
data
:()
=>
({}),
methods
:{
goHome
(){
e
({
url
:
"/pages/index/index"
})}}},[[
"render"
,
function
(
e
,
i
,
d
,
f
,
u
,
m
){
const
y
=
r
,
_
=
p
;
return
a
(),
s
(
_
,{
class
:
l
([
"custom-nav"
,{
type1
:
1
==
d
.
type
}])},{
default
:
t
((()
=>
[
o
(
_
,{
class
:
"cons row verCenter"
},{
default
:
t
((()
=>
[
o
(
_
,{
class
:
"leftbox row verCenter"
},{
default
:
t
((()
=>
[
o
(
y
,{
class
:
l
([
"icon-leftsp icon iconfont icon-fang"
,{
type1
:
1
==
d
.
type
}]),
onClick
:
m
.
goHome
},
null
,
8
,[
"class"
,
"onClick"
])])),
_
:
1
}),
o
(
_
,{
class
:
l
([
"nav-title"
,{
type1
:
1
==
d
.
type
}])},{
default
:
t
((()
=>
[
n
(
c
(
d
.
pageTitle
),
1
)])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
})])),
_
:
1
},
8
,[
"class"
])}],[
"__scopeId"
,
"data-v-815faac5"
]]);
export
{
d
as
b
};
unpackage/dist/build/web/assets/bottom_nav.Epavr9vk.js
0 → 100644
View file @
6eb3aa03
import
{
g
as
a
,
o
as
t
,
c
as
s
,
w
as
c
,
d
as
e
,
e
as
o
,
v
as
n
,
t
as
l
,
f
as
u
,
m
as
i
,
i
as
r
,
l
as
d
}
from
"./index-B52OZNum.js"
;
import
{
A
as
f
}
from
"./api.Cl4HE8_F.js"
;
import
{
_
as
p
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
m
=
p
({
name
:
"bottom_nav"
,
props
:{
actval
:{
type
:
String
,
default
:
1
},
carcount
:{
type
:
Number
,
default
:
0
}},
created
(){
this
.
getData
()},
data
:()
=>
({
count
:
0
,
isLogin
:
!!
a
(
"token"
)}),
methods
:{
getData
(){
this
.
isLogin
&&
this
.
request
(
f
+
"/api/cart/getCartCount"
,
"POST"
,{},
!
1
).
then
((
t
=>
{
0
===
t
.
code
&&
(
this
.
count
=
t
.
data
.
count
,
a
(
"carCount"
,
t
.
data
.
count
))}))},
updateCar
(){
this
.
getData
()}}},[[
"render"
,
function
(
a
,
f
,
p
,
m
,
_
,
v
){
const
g
=
i
,
h
=
r
,
x
=
d
;
return
t
(),
s
(
h
,{
class
:
"bottom-nav-fixed row"
},{
default
:
c
((()
=>
[
e
(
x
,{
url
:
"/pages/index/index"
,
class
:
n
([
"navitem"
,{
act
:
1
==
p
.
actval
}])},{
default
:
c
((()
=>
[
e
(
g
,{
class
:
"icon iconfont icon-home"
}),
e
(
h
,
null
,{
default
:
c
((()
=>
[
o
(
"首页"
)])),
_
:
1
})])),
_
:
1
},
8
,[
"class"
]),
e
(
x
,{
url
:
"/pages/class/nav"
,
class
:
n
([
"navitem"
,{
act
:
2
==
p
.
actval
}])},{
default
:
c
((()
=>
[
e
(
g
,{
class
:
"icon iconfont icon-choose"
}),
e
(
h
,
null
,{
default
:
c
((()
=>
[
o
(
"选型"
)])),
_
:
1
})])),
_
:
1
},
8
,[
"class"
]),
e
(
x
,{
url
:
"/pages/car/list"
,
class
:
n
([
"cartbgo navitem"
,{
act
:
3
==
p
.
actval
}])},{
default
:
c
((()
=>
[
e
(
g
,{
class
:
"icon iconfont icon-car"
}),
e
(
h
,
null
,{
default
:
c
((()
=>
[
o
(
" 购物车 "
),
_
.
count
>
0
?(
t
(),
s
(
g
,{
key
:
0
,
class
:
"counts"
},{
default
:
c
((()
=>
[
o
(
l
(
_
.
count
),
1
)])),
_
:
1
})):
u
(
""
,
!
0
)])),
_
:
1
})])),
_
:
1
},
8
,[
"class"
]),
e
(
x
,{
url
:
"/pages/user/userInfo"
,
class
:
n
([
"navitem"
,{
act
:
4
==
p
.
actval
}])},{
default
:
c
((()
=>
[
e
(
g
,{
class
:
"icon iconfont icon-user"
}),
e
(
h
,
null
,{
default
:
c
((()
=>
[
o
(
"个人中心"
)])),
_
:
1
})])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
})}],[
"__scopeId"
,
"data-v-338e9add"
]]);
export
{
m
as
b
};
unpackage/dist/build/web/assets/changeEmail-B_wgkLGu.css
0 → 100644
View file @
6eb3aa03
uni-view
[
data-v-a2444f2b
],
uni-text
[
data-v-a2444f2b
],
uni-input
[
data-v-a2444f2b
],
uni-navigator
[
data-v-a2444f2b
]
{
box-sizing
:
border-box
;
-webkit-tap-highlight-color
:
transparent
;
-webkit-user-select
:
text
;
user-select
:
text
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
Helvetica
Neue
,
Helvetica
,
Segoe
UI
,
Arial
,
Roboto
,
PingFang
SC
,
miui
,
Hiragino
Sans
GB
,
Microsoft
Yahei
,
sans-serif
}
body
[
data-v-a2444f2b
],
uni-page-body
[
data-v-a2444f2b
],
uni-view
[
data-v-a2444f2b
],
uni-text
[
data-v-a2444f2b
],
uni-scroll-view
[
data-v-a2444f2b
]
{
-webkit-user-select
:
text
!important
;
user-select
:
text
!important
}
.navigator-hover
[
data-v-a2444f2b
]
{
background
:
none
;
opacity
:
1
}
uni-image
[
data-v-a2444f2b
]
{
vertical-align
:
middle
}
.elep
[
data-v-a2444f2b
]
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
.elep2
[
data-v-a2444f2b
]
{
word-break
:
break-all
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
}
.column
[
data-v-a2444f2b
]
{
display
:
flex
;
flex-direction
:
column
}
.row
[
data-v-a2444f2b
]
{
display
:
flex
;
flex-direction
:
row
}
.boxsiz
[
data-v-a2444f2b
]
{
box-sizing
:
border-box
}
.bothSide
[
data-v-a2444f2b
]
{
justify-content
:
space-between
}
.avarage
[
data-v-a2444f2b
]
{
justify-content
:
space-around
}
.rowCenter
[
data-v-a2444f2b
]
{
justify-content
:
center
}
.verCenter
[
data-v-a2444f2b
]
{
align-items
:
center
}
.changeEmailPage
.close-box
[
data-v-a2444f2b
]
{
padding-top
:
1.40625rem
;
padding-left
:
1.15625rem
}
.changeEmailPage
.close-box
.icon
[
data-v-a2444f2b
]
{
font-size
:
1.09375rem
;
color
:
#898989
}
.changeEmailPage
.title
[
data-v-a2444f2b
]
{
padding-top
:
1.625rem
;
padding-left
:
1.875rem
}
.changeEmailPage
.title
uni-view
[
data-v-a2444f2b
]
{
font-weight
:
600
;
font-size
:
1.1875rem
;
color
:
#000
;
margin-bottom
:
.46875rem
}
.changeEmailPage
.title
uni-text
[
data-v-a2444f2b
]
{
font-size
:
.59375rem
;
color
:
gray
}
.changeEmailPage
.input-box
[
data-v-a2444f2b
]
{
height
:
2.1875rem
;
border-bottom
:
1px
solid
#e7e7e7
;
width
:
19.6875rem
;
margin
:
0
auto
;
margin-top
:
1.6875rem
;
position
:
relative
}
.changeEmailPage
.input-box
uni-input
[
data-v-a2444f2b
]
{
width
:
13.75rem
;
height
:
1.3125rem
;
line-height
:
1.3125rem
;
font-size
:
.9375rem
;
color
:
#000
}
.changeEmailPage
.input-box
.placeholder-class
[
data-v-a2444f2b
]
{
color
:
gray
;
font-size
:
.8125rem
}
.changeEmailPage
.input-box
.code-btn
[
data-v-a2444f2b
]
{
font-size
:
.8125rem
;
color
:
#d0121b
}
.changeEmailPage
.input-box
.code-btn.dis
[
data-v-a2444f2b
]
{
color
:
gray
}
.changeEmailPage
.input-box
.img-code
[
data-v-a2444f2b
]
{
height
:
1.875rem
;
width
:
7.8125rem
}
.changeEmailPage
.input-box
.img-code
uni-image
[
data-v-a2444f2b
]
{
width
:
100%
;
height
:
100%
}
.changeEmailPage
.input-box
[
data-v-a2444f2b
]
:hover
{
border-bottom
:
1px
solid
#D0121B
}
.changeEmailPage
.input-box.nobd
[
data-v-a2444f2b
]
{
border-bottom
:
1px
solid
#e7e7e7
}
.changeEmailPage
.sub-btn
[
data-v-a2444f2b
]
{
width
:
19.6875rem
;
height
:
2.8125rem
;
background
:
#d0121b
;
border-radius
:
.15625rem
;
font-size
:
.9375rem
;
color
:
#fff
;
text-align
:
center
;
line-height
:
2.8125rem
;
margin
:
0
auto
;
margin-top
:
2.9375rem
}
unpackage/dist/build/web/assets/index-B52OZNum.js
0 → 100644
View file @
6eb3aa03
This diff could not be displayed because it is too large.
unpackage/dist/build/web/assets/index-CgI5qguW.css
0 → 100644
View file @
6eb3aa03
uni-view
[
data-v-452cb2c0
],
uni-text
[
data-v-452cb2c0
],
uni-input
[
data-v-452cb2c0
],
uni-navigator
[
data-v-452cb2c0
]
{
box-sizing
:
border-box
;
-webkit-tap-highlight-color
:
transparent
;
-webkit-user-select
:
text
;
user-select
:
text
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
Helvetica
Neue
,
Helvetica
,
Segoe
UI
,
Arial
,
Roboto
,
PingFang
SC
,
miui
,
Hiragino
Sans
GB
,
Microsoft
Yahei
,
sans-serif
}
body
[
data-v-452cb2c0
],
uni-page-body
[
data-v-452cb2c0
],
uni-view
[
data-v-452cb2c0
],
uni-text
[
data-v-452cb2c0
],
uni-scroll-view
[
data-v-452cb2c0
]
{
-webkit-user-select
:
text
!important
;
user-select
:
text
!important
}
.navigator-hover
[
data-v-452cb2c0
]
{
background
:
none
;
opacity
:
1
}
uni-image
[
data-v-452cb2c0
]
{
vertical-align
:
middle
}
.elep
[
data-v-452cb2c0
]
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
.elep2
[
data-v-452cb2c0
]
{
word-break
:
break-all
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
}
.column
[
data-v-452cb2c0
]
{
display
:
flex
;
flex-direction
:
column
}
.row
[
data-v-452cb2c0
]
{
display
:
flex
;
flex-direction
:
row
}
.boxsiz
[
data-v-452cb2c0
]
{
box-sizing
:
border-box
}
.bothSide
[
data-v-452cb2c0
]
{
justify-content
:
space-between
}
.avarage
[
data-v-452cb2c0
]
{
justify-content
:
space-around
}
.rowCenter
[
data-v-452cb2c0
]
{
justify-content
:
center
}
.verCenter
[
data-v-452cb2c0
]
{
align-items
:
center
}
.activity-box
[
data-v-452cb2c0
]
{
width
:
100%
;
min-height
:
100vh
}
.activity-box
.header-activity
[
data-v-452cb2c0
]
{
height
:
2.75rem
;
background
:
linear-gradient
(
200deg
,
#d6e8ff
,
#fff
)}
.activity-box
.header-activity.fixedtop
[
data-v-452cb2c0
]
{
padding-top
:
2.75rem
}
.activity-box
.header-activity.fixedtop
.search-topb
[
data-v-452cb2c0
]
{
position
:
fixed
;
top
:
0
;
left
:
0
;
background
:
#fff
;
z-index
:
9
}
.activity-box
.header-activity.fixedtop
.search-topb
.searchinput
[
data-v-452cb2c0
]
{
border
:
.03125rem
solid
#f0f0f2
}
.activity-box
.header-activity.fixedtop
.search-topb
.searchinput.searchtitleb
[
data-v-452cb2c0
]
{
border
:
0
}
.activity-box
.header-activity
.search-topb
[
data-v-452cb2c0
]
{
width
:
23.4375rem
;
height
:
2.75rem
;
padding
:
.34375rem
.75rem
.34375rem
1rem
;
box-sizing
:
border-box
}
.activity-box
.header-activity
.search-topb
.searchbtnx
[
data-v-452cb2c0
]
{
width
:
4.6875rem
;
height
:
2.0625rem
;
line-height
:
2.0625rem
;
text-align
:
center
;
color
:
#1969f9
;
font-size
:
.9375rem
}
.activity-box
.header-activity
.search-topb
uni-image
[
data-v-452cb2c0
]
{
width
:
3.75rem
;
height
:
1.8125rem
;
display
:
block
;
flex-shrink
:
0
;
position
:
relative
;
top
:
.125rem
}
.activity-box
.header-activity
.search-topb
.searchinput
[
data-v-452cb2c0
]
{
width
:
12.125rem
;
height
:
2.0625rem
;
background
:
#fff
;
border-radius
:
1.03125rem
;
line-height
:
2.0625rem
;
margin-left
:
1.21875rem
;
flex-shrink
:
0
}
.activity-box
.header-activity
.search-topb
.searchinput.searchtitleb
[
data-v-452cb2c0
]
{
background
:
none
}
.activity-box
.header-activity
.search-topb
.searchinput
.seartext
[
data-v-452cb2c0
]
{
color
:
#c2c4cc
;
font-size
:
1.0625rem
;
margin-left
:
.5rem
;
margin-right
:
.34375rem
}
.activity-box
.header-activity
.search-topb
.searchinput
uni-input
[
data-v-452cb2c0
]
{
height
:
2.0625rem
;
font-size
:
.75rem
;
line-height
:
2.0625rem
;
width
:
8.25rem
;
color
:
#292b33
;
flex-shrink
:
0
}
.activity-box
.header-activity
.search-topb
.newsbox
[
data-v-452cb2c0
]
{
height
:
2.0625rem
;
line-height
:
2.0625rem
;
margin-left
:
1.15625rem
;
position
:
relative
}
.activity-box
.header-activity
.search-topb
.newsbox
.icon
[
data-v-452cb2c0
]
{
font-size
:
1.375rem
;
color
:
#292b33
}
.activity-box
.header-activity
.search-topb
.newsbox
.counts
[
data-v-452cb2c0
]
{
width
:
1.4375rem
;
height
:
1rem
;
background
:
#ff3700
;
border-radius
:
.5rem
;
border
:
.0625rem
solid
#ffffff
;
position
:
absolute
;
right
:
.15625rem
;
top
:
0
;
color
:
#fff
;
font-size
:
.75rem
;
line-height
:
.875rem
;
text-align
:
center
}
.activity-box
.header-activity
.search-topb
.cdbox
[
data-v-452cb2c0
]
{
height
:
2.0625rem
;
line-height
:
2.0625rem
;
position
:
relative
;
left
:
.1875rem
}
.activity-box
.header-activity
.search-topb
.cdbox
.icon
[
data-v-452cb2c0
]
{
font-size
:
1.375rem
;
color
:
#292b33
}
.activity-box
.header-activity
.search-topb
.cdbox
.sj
[
data-v-452cb2c0
]
{
position
:
absolute
;
border-style
:
solid
;
border-width
:
.3125rem
;
border-color
:
transparent
transparent
#292b33
transparent
;
top
:
1.78125rem
;
left
:
.3125rem
;
display
:
none
}
.activity-box
.header-activity
.search-topb
.cdbox
.cdcons
[
data-v-452cb2c0
]
{
position
:
absolute
;
width
:
6.25rem
;
background
:
#292b33
;
border-radius
:
10px
;
padding
:
0
.75rem
.3125rem
;
display
:
none
;
top
:
2.34375rem
;
left
:
-4.6875rem
;
z-index
:
2
}
.activity-box
.header-activity
.search-topb
.cdbox
.cdcons
a
[
data-v-452cb2c0
]
{
height
:
2.28125rem
;
display
:
block
;
width
:
4.75rem
;
border-bottom
:
.03125rem
solid
#484b59
;
color
:
#fff
;
line-height
:
2.25rem
;
font-size
:
.75rem
}
.activity-box
.header-activity
.search-topb
.cdbox
.cdcons
a
[
data-v-452cb2c0
]
:last-child
{
border
:
0
}
.activity-box
.header-activity
.search-topb
.cdbox
:hover
.cdcons
[
data-v-452cb2c0
],
.activity-box
.header-activity
.search-topb
.cdbox
:hover
.sj
[
data-v-452cb2c0
]
{
display
:
block
}
.activity-box
.cube-set-drag-area
[
data-v-452cb2c0
],
.activity-box
.cube-set-drag-area
.cube-initial
[
data-v-452cb2c0
]
{
width
:
100%
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content
[
data-v-452cb2c0
]
{
height
:
100%
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.customLayout
.box
[
data-v-452cb2c0
]
{
position
:
relative
;
height
:
100%
;
overflow
:
hidden
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.customLayout
.box
.pic
[
data-v-452cb2c0
]
{
height
:
100%
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotteryCircle
[
data-v-452cb2c0
]
{
height
:
29.6875rem
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotteryCircle
.number-of-draw
[
data-v-452cb2c0
]
{
padding
:
.75rem
0
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotteryCircle
.number-of-draw
.t1
[
data-v-452cb2c0
]
{
font-size
:
.9375rem
;
color
:
#fff
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotteryCircle
.number-of-draw
.t2
[
data-v-452cb2c0
]
{
font-size
:
1rem
;
color
:
#fff
;
font-weight
:
700
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotteryCircle
.lotteryCircle-bg
[
data-v-452cb2c0
],
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotteryCircle
.lotteryCircle-bg
.pic
[
data-v-452cb2c0
]
{
width
:
100%
;
height
:
100%
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotteryCircle
.lotteryCircle-bg
.btn-wrap
[
data-v-452cb2c0
]
{
padding
:
.75rem
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotteryCircle
.lotteryCircle-bg
.btn-wrap
.contactBg
[
data-v-452cb2c0
],
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotteryCircle
.lotteryCircle-bg
.btn-wrap
.prizeBg
[
data-v-452cb2c0
]
{
width
:
9.375rem
;
height
:
1.875rem
;
text-align
:
center
;
font-size
:
.75rem
;
color
:
#fff
;
background
:
#e0be7d
;
border-radius
:
.0625rem
;
box-sizing
:
border-box
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotterySquare
[
data-v-452cb2c0
]
{
height
:
31.25rem
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotterySquare
.number-of-draw
[
data-v-452cb2c0
]
{
padding
:
.75rem
0
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotterySquare
.number-of-draw
.t1
[
data-v-452cb2c0
]
{
font-size
:
.9375rem
;
color
:
#fff
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotterySquare
.number-of-draw
.t2
[
data-v-452cb2c0
]
{
font-size
:
1rem
;
color
:
#fff
;
font-weight
:
700
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotterySquare
.lotteryCircle-bg
[
data-v-452cb2c0
],
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotterySquare
.lotteryCircle-bg
.pic
[
data-v-452cb2c0
]
{
width
:
100%
;
height
:
100%
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotterySquare
.lotteryCircle-bg
.btn-wrap
[
data-v-452cb2c0
]
{
padding
:
.75rem
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotterySquare
.lotteryCircle-bg
.btn-wrap
.contactBg
[
data-v-452cb2c0
],
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.lotterySquare
.lotteryCircle-bg
.btn-wrap
.prizeBg
[
data-v-452cb2c0
]
{
width
:
9.375rem
;
height
:
1.875rem
;
text-align
:
center
;
font-size
:
.75rem
;
color
:
#fff
;
background
:
#e0be7d
;
border-radius
:
.0625rem
;
box-sizing
:
border-box
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.coupon
.carousel
.swiper
[
data-v-452cb2c0
]
{
width
:
100%
;
height
:
100%
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.coupon
.carousel
.swiper
.swiper-item
[
data-v-452cb2c0
]
{
position
:
relative
;
width
:
100%
;
height
:
100%
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.coupon
.carousel
.swiper
.swiper-item.curr
[
data-v-452cb2c0
]
:after
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
.8
);
background-size
:
cover
;
content
:
"已领取"
;
z-index
:
1
;
display
:
flex
;
opacity
:
.8
;
text-align
:
center
;
color
:
#fff
;
font-size
:
13px
;
align-items
:
center
;
justify-content
:
center
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.coupon
.carousel
.swiper
.swiper-item
.pic
[
data-v-452cb2c0
]
{
width
:
100%
;
height
:
100%
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.coupon
.carousel-list
[
data-v-452cb2c0
]
{
flex-wrap
:
wrap
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.coupon
.carousel-list
.box
[
data-v-452cb2c0
]
{
position
:
relative
;
height
:
100%
;
overflow
:
hidden
;
margin-bottom
:
.75rem
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.coupon
.carousel-list
.box.curr
[
data-v-452cb2c0
]
:after
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
.8
);
background-size
:
cover
;
content
:
"已领取"
;
z-index
:
1
;
display
:
flex
;
opacity
:
.8
;
text-align
:
center
;
color
:
#fff
;
font-size
:
13px
;
align-items
:
center
;
justify-content
:
center
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.coupon
.carousel-list
.box
.pic
[
data-v-452cb2c0
]
{
width
:
100%
;
height
:
100%
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
[
data-v-452cb2c0
]
{
padding
:
.75rem
;
background-color
:
transparent
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
[
data-v-452cb2c0
]
{
position
:
relative
;
margin-bottom
:
.875rem
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.tt
[
data-v-452cb2c0
]
{
font-size
:
.75rem
;
color
:
#484b59
;
margin-bottom
:
.5rem
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.uni-input
[
data-v-452cb2c0
]
{
height
:
2.25rem
;
background
:
#f5f5f7
;
border-radius
:
.3125rem
;
text-indent
:
.75rem
;
font-size
:
.75rem
;
border
:
1px
solid
transparent
;
transition
:
all
.4s
ease
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.uni-input
[
data-v-452cb2c0
]
:focus-within
{
background-color
:
#fff
;
border
:
1px
solid
#1969f9
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.uni-input
[
data-v-452cb2c0
]
::-webkit-input-placeholder
{
color
:
#919399
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.mobile
[
data-v-452cb2c0
]
{
background
:
#f5f5f7
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.mobile
.picker-box
[
data-v-452cb2c0
]
{
padding-left
:
.75rem
;
padding-right
:
.5rem
;
width
:
4.96875rem
;
height
:
1.25rem
;
border-right
:
1px
solid
#c2c4cc
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.mobile
.picker-box
.uni-inputs
[
data-v-452cb2c0
]
{
font-size
:
.8125rem
;
color
:
#484b59
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.mobile
.picker-box
.iconfont
[
data-v-452cb2c0
]
{
font-size
:
1rem
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.mobile
.text
[
data-v-452cb2c0
]
{
padding-right
:
.75rem
;
font-size
:
.8125rem
;
color
:
#1969f9
;
white-space
:
nowrap
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.mobile
.uni-input
[
data-v-452cb2c0
]
{
font-size
:
.8125rem
;
text-indent
:
.71875rem
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.mobile
.uni-input
[
data-v-452cb2c0
]
:focus-within
{
background
:
#f5f5f7
;
border
:
1px
solid
transparent
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.pic
[
data-v-452cb2c0
]
{
position
:
absolute
;
right
:
.46875rem
;
bottom
:
.15625rem
;
width
:
5rem
;
height
:
1.9375rem
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.code
[
data-v-452cb2c0
]
{
position
:
absolute
;
right
:
.46875rem
;
bottom
:
.625rem
;
font-size
:
.8125rem
;
color
:
#1969f9
;
white-space
:
nowrap
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.input-box
.code.disabled
[
data-v-452cb2c0
]
{
color
:
#919399
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.formBtn
[
data-v-452cb2c0
]
{
width
:
100%
;
height
:
2.125rem
;
background
:
#1969f9
;
border-radius
:
.3125rem
;
font-size
:
.875rem
;
color
:
#fff
}
.activity-box
.cube-set-drag-area
.cube-initial
.cube-set-drag-content.formModule
.form-box
.formBtn.disabled
[
data-v-452cb2c0
]
{
opacity
:
.5
}
.no-data
uni-image
[
data-v-452cb2c0
]
{
width
:
11.125rem
;
height
:
11.125rem
}
.no-data
.tt
[
data-v-452cb2c0
]
{
margin-top
:
1rem
;
font-size
:
.875rem
;
color
:
#292b33
}
.layer-box
[
data-v-452cb2c0
]
{
padding
:
.75rem
;
background
:
linear-gradient
(
180deg
,
#f0f6ff
,
#fff
2.75rem
);
border-radius
:
.3125rem
.3125rem
0px
0px
}
.layer-box
.title
[
data-v-452cb2c0
]
{
height
:
2.75rem
;
margin-bottom
:
.40625rem
}
.layer-box
.title
.left
[
data-v-452cb2c0
]
{
font-size
:
1rem
;
color
:
#292b33
;
font-weight
:
700
}
.layer-box
.title
.right
.iconfont
[
data-v-452cb2c0
]
{
font-size
:
1.25rem
;
color
:
#c2c4cc
}
.layer-box
.form-box
.input-box
[
data-v-452cb2c0
]
{
margin-bottom
:
.875rem
}
.layer-box
.form-box
.input-box
.tt
[
data-v-452cb2c0
]
{
font-size
:
.75rem
;
color
:
#484b59
;
margin-bottom
:
.5rem
}
.layer-box
.form-box
.input-box
.sel
[
data-v-452cb2c0
]
{
font-size
:
.75rem
;
color
:
#1969f9
}
.layer-box
.form-box
.input-box
.uni-input
[
data-v-452cb2c0
]
{
height
:
2.25rem
;
background
:
#f5f5f7
;
border-radius
:
.3125rem
;
text-indent
:
.75rem
;
font-size
:
.75rem
;
border
:
1px
solid
transparent
;
transition
:
all
.4s
ease
}
.layer-box
.form-box
.input-box
.uni-input
[
data-v-452cb2c0
]
:focus-within
{
background-color
:
#fff
;
border
:
1px
solid
#1969f9
}
.layer-box
.form-box
.input-box
.uni-input
[
data-v-452cb2c0
]
::-webkit-input-placeholder
{
color
:
#919399
}
.layer-box
.form-box
.input-box
.select-box
[
data-v-452cb2c0
]
{
height
:
2.25rem
;
background
:
#f5f5f7
;
border-radius
:
.3125rem
}
.layer-box
.form-box
.input-box
.select-box
.uni-input
[
data-v-452cb2c0
]
{
width
:
80%
}
.layer-box
.form-box
.input-box
.select-box
.iconfont
[
data-v-452cb2c0
]
{
margin-right
:
.75rem
}
.layer-box
.form-box
.input-box
.textarea-box
[
data-v-452cb2c0
]
{
height
:
4.5rem
;
background
:
#f5f5f7
;
border-radius
:
.3125rem
;
padding
:
.625rem
.75rem
0
;
border
:
1px
solid
transparent
;
transition
:
all
.4s
ease
}
.layer-box
.form-box
.input-box
.textarea-box
uni-textarea
[
data-v-452cb2c0
]
{
height
:
100%
;
font-size
:
.75rem
}
.layer-box
.form-box
.input-box
.textarea-box
uni-textarea
[
data-v-452cb2c0
]
::-webkit-input-placeholder
{
color
:
#919399
}
.layer-box
.form-box
.input-box
.textarea-box
[
data-v-452cb2c0
]
:focus-within
{
background-color
:
#fff
;
border
:
1px
solid
#1969f9
}
.layer-box
.form-box
.input-box
.mobile
[
data-v-452cb2c0
]
{
background
:
#f5f5f7
}
.layer-box
.form-box
.input-box
.mobile
.picker-box
[
data-v-452cb2c0
]
{
padding-left
:
.75rem
;
padding-right
:
.5rem
;
width
:
4.96875rem
;
height
:
1.25rem
;
border-right
:
1px
solid
#c2c4cc
}
.layer-box
.form-box
.input-box
.mobile
.picker-box
.uni-inputs
[
data-v-452cb2c0
]
{
font-size
:
.8125rem
;
color
:
#484b59
}
.layer-box
.form-box
.input-box
.mobile
.picker-box
.iconfont
[
data-v-452cb2c0
]
{
font-size
:
1rem
}
.layer-box
.form-box
.input-box
.mobile
.text
[
data-v-452cb2c0
]
{
padding-right
:
.75rem
;
font-size
:
.8125rem
;
color
:
#1969f9
;
white-space
:
nowrap
}
.layer-box
.form-box
.input-box
.mobile
.uni-input
[
data-v-452cb2c0
]
{
font-size
:
.8125rem
;
text-indent
:
.71875rem
}
.layer-box
.form-box
.input-box
.mobile
.uni-input
[
data-v-452cb2c0
]
:focus-within
{
background
:
#f5f5f7
;
border
:
1px
solid
transparent
}
.layer-box
.list-box
[
data-v-452cb2c0
]
{
max-height
:
15.625rem
;
overflow-y
:
auto
}
.layer-box
.list-box
.head
[
data-v-452cb2c0
]
{
height
:
1.875rem
}
.layer-box
.list-box
.head
.tt
[
data-v-452cb2c0
]
{
width
:
50%
;
font-size
:
.8125rem
;
font-weight
:
700
;
color
:
#666
}
.layer-box
.list-box
.box
[
data-v-452cb2c0
]
{
height
:
1.875rem
}
.layer-box
.list-box
.box
.tt
[
data-v-452cb2c0
]
{
width
:
50%
;
font-size
:
.75rem
;
color
:
#666
}
.layer-box
.save
[
data-v-452cb2c0
]
{
height
:
2.125rem
;
background
:
#1969f9
;
border-radius
:
.3125rem
;
font-size
:
.875rem
;
color
:
#fff
}
[
data-v-452cb2c0
]
uni-page-body
{
padding-top
:
0
!important
}
unpackage/dist/build/web/assets/one_item-CSZwMz5x.css
0 → 100644
View file @
6eb3aa03
uni-view
[
data-v-c4c011d2
],
uni-text
[
data-v-c4c011d2
],
uni-input
[
data-v-c4c011d2
],
uni-navigator
[
data-v-c4c011d2
]
{
box-sizing
:
border-box
;
-webkit-tap-highlight-color
:
transparent
;
-webkit-user-select
:
text
;
user-select
:
text
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
Helvetica
Neue
,
Helvetica
,
Segoe
UI
,
Arial
,
Roboto
,
PingFang
SC
,
miui
,
Hiragino
Sans
GB
,
Microsoft
Yahei
,
sans-serif
}
body
[
data-v-c4c011d2
],
uni-page-body
[
data-v-c4c011d2
],
uni-view
[
data-v-c4c011d2
],
uni-text
[
data-v-c4c011d2
],
uni-scroll-view
[
data-v-c4c011d2
]
{
-webkit-user-select
:
text
!important
;
user-select
:
text
!important
}
.navigator-hover
[
data-v-c4c011d2
]
{
background
:
none
;
opacity
:
1
}
uni-image
[
data-v-c4c011d2
]
{
vertical-align
:
middle
}
.elep
[
data-v-c4c011d2
]
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
.elep2
[
data-v-c4c011d2
]
{
word-break
:
break-all
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
}
.column
[
data-v-c4c011d2
]
{
display
:
flex
;
flex-direction
:
column
}
.row
[
data-v-c4c011d2
]
{
display
:
flex
;
flex-direction
:
row
}
.boxsiz
[
data-v-c4c011d2
]
{
box-sizing
:
border-box
}
.bothSide
[
data-v-c4c011d2
]
{
justify-content
:
space-between
}
.avarage
[
data-v-c4c011d2
]
{
justify-content
:
space-around
}
.rowCenter
[
data-v-c4c011d2
]
{
justify-content
:
center
}
.verCenter
[
data-v-c4c011d2
]
{
align-items
:
center
}
[
data-v-c4c011d2
]
.f-red
{
color
:
#d0121b
}
.one-data-item
[
data-v-c4c011d2
]
{
border-bottom
:
.03125rem
solid
#D1D1D1
;
padding
:
.9375rem
}
.one-data-item
.imgbox
[
data-v-c4c011d2
]
{
position
:
relative
;
margin-right
:
1.25rem
}
.one-data-item
.imgbox
.ictag
[
data-v-c4c011d2
]
{
width
:
2.3125rem
;
height
:
.9375rem
;
background
:
url(https://img.ichunt.com/images/ichunt/202502/08/ac35be31bb560408eca3a059c26147dd.png)
no-repeat
;
background-size
:
100%
100%
;
position
:
absolute
;
left
:
0
;
top
:
.5rem
}
.one-data-item
.imgbox
.ac618tagt
[
data-v-c4c011d2
]
{
position
:
absolute
;
width
:
1.75rem
;
height
:
.9375rem
;
background
:
url(https://imgscdn.ichunt.com/show/origin/c4dd60j20hs0hs00000077qs1g3tt)
no-repeat
;
background-size
:
100%
100%
;
right
:
0
;
top
:
0
}
.one-data-item
.imgbox
.ac618tagb
[
data-v-c4c011d2
]
{
position
:
absolute
;
width
:
5.6875rem
;
height
:
.71875rem
;
background
:
url(https://imgscdn.ichunt.com/show/origin/4efdd0j10hs0hs000000a9x2aqrd3)
no-repeat
;
background-size
:
100%
100%
;
right
:
0
;
bottom
:
0
}
.one-data-item
.imagep
[
data-v-c4c011d2
]
{
width
:
5.6875rem
;
height
:
5.6875rem
;
border-radius
:
.625rem
}
.one-data-item
.trg
.name
[
data-v-c4c011d2
]
{
width
:
14.84375rem
;
height
:
2.8125rem
;
font-size
:
.8125rem
;
color
:
#000
;
line-height
:
1.40625rem
;
margin-bottom
:
.3125rem
}
.one-data-item
.trg
.tags
[
data-v-c4c011d2
]
{
min-height
:
1rem
}
.one-data-item
.trg
.tags
.item
[
data-v-c4c011d2
]
{
height
:
1rem
;
border-radius
:
.15625rem
;
border
:
.03125rem
solid
#1969F9
;
line-height
:
1rem
;
color
:
#1969f9
;
font-size
:
.6875rem
;
text-align
:
center
;
margin-right
:
.46875rem
;
padding
:
0
.46875rem
;
margin-bottom
:
.625rem
}
.one-data-item
.trg
.tags
.item.tag2
[
data-v-c4c011d2
]
{
border
:
.03125rem
solid
#38B114
;
color
:
#38b114
}
.one-data-item
.trg
.priceac168Box
.xunj
[
data-v-c4c011d2
]
{
color
:
#f61500
;
font-size
:
.75rem
}
.one-data-item
.trg
.priceac168Box
.item12
[
data-v-c4c011d2
]
{
margin-right
:
.75rem
}
.one-data-item
.trg
.priceac168Box
.price0
[
data-v-c4c011d2
]
{
font-weight
:
600
;
font-size
:
.9375rem
;
color
:
#d91800
;
line-height
:
.9375rem
}
.one-data-item
.trg
.priceac168Box
.t3
[
data-v-c4c011d2
]
{
font-size
:
.9375rem
;
color
:
gray
;
line-height
:
.9375rem
;
-webkit-text-decoration-line
:
line-through
;
text-decoration-line
:
line-through
}
.one-data-item
.trg
.priceac168Box
.tagac
[
data-v-c4c011d2
]
{
height
:
.5625rem
;
padding
:
0
.15625rem
;
background
:
#d0121b
;
color
:
#fff
;
font-size
:
.375rem
;
line-height
:
.5625rem
;
text-align
:
center
;
margin-left
:
.125rem
;
position
:
relative
;
top
:
.1875rem
}
.one-data-item
.trg
.priceac168Box
.tagac2
[
data-v-c4c011d2
]
{
height
:
.78125rem
;
padding
:
0
.15625rem
;
background
:
#fff
;
color
:
gray
;
font-size
:
.4375rem
;
line-height
:
.875rem
;
text-align
:
center
;
margin-left
:
.125rem
;
position
:
relative
;
top
:
.09375rem
}
.one-data-item
.trg
.pricenormalbox
.price-box
[
data-v-c4c011d2
]
{
height
:
1.3125rem
}
.one-data-item
.trg
.pricenormalbox
.price-box
.xunj
[
data-v-c4c011d2
]
{
color
:
#f61500
;
font-size
:
.75rem
}
.one-data-item
.trg
.pricenormalbox
.price-box
.price0
[
data-v-c4c011d2
]
{
margin-right
:
.75rem
;
font-weight
:
600
;
font-size
:
.9375rem
;
color
:
#d91800
}
.one-data-item
.trg
.pricenormalbox
.price-box
.price1
[
data-v-c4c011d2
]
{
font-size
:
.875rem
;
color
:
#1969f9
}
.one-data-item
.trg
.pricenormalbox
.price-box
.qytag
[
data-v-c4c011d2
]
{
width
:
2.375rem
;
height
:
.8125rem
;
background
:
#1969f9
;
border-radius
:
.15625rem
;
color
:
#fff
;
line-height
:
.84375rem
;
text-align
:
center
;
margin-left
:
.3125rem
;
font-size
:
.5625rem
;
position
:
relative
;
top
:
.125rem
}
.one-data-item
.trg
.pricenormalbox
.price-box
.qytip
[
data-v-c4c011d2
]
{
font-size
:
.75rem
;
color
:
#1969f9
;
margin-left
:
.5rem
}
unpackage/dist/build/web/assets/one_item.Ch3BEFeS.js
0 → 100644
View file @
6eb3aa03
import
{
g
as
a
,
n
as
e
,
o
as
s
,
c
as
l
,
w
as
o
,
d
as
t
,
f
as
c
,
h
as
d
,
j
as
r
,
F
as
_
,
e
as
i
,
t
as
n
,
p
,
k
as
g
,
i
as
u
,
m
as
f
,
l
as
j
,
v
as
b
}
from
"./index-B52OZNum.js"
;
import
{
_
as
m
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
k
=
m
({
name
:
"one_item"
,
props
:{
obj
:{
type
:
Object
}},
created
(){},
data
:()
=>
({
isLogin
:
!!
a
(
"token"
)}),
methods
:{
goxj
(){
e
({
url
:
this
.
$globalData
.
KFQQ
})}}},[[
"render"
,
function
(
a
,
e
,
m
,
k
,
y
,
x
){
const
w
=
g
,
h
=
u
,
v
=
f
,
L
=
j
;
return
s
(),
l
(
L
,{
url
:
"/pages/goods/detail?goods_id="
+
m
.
obj
.
goods_id
},{
default
:
o
((()
=>
[
t
(
h
,{
class
:
"one-data-item row"
},{
default
:
o
((()
=>
[
t
(
h
,{
class
:
"imgbox"
},{
default
:
o
((()
=>
[
t
(
w
,{
class
:
"imagep"
,
src
:
m
.
obj
.
goods_images
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
},
null
,
8
,[
"src"
]),
10
==
m
.
obj
.
ac_type
?(
s
(),
l
(
h
,{
key
:
0
,
class
:
"ac618tagt"
})):
c
(
""
,
!
0
),
10
==
m
.
obj
.
ac_type
?(
s
(),
l
(
h
,{
key
:
1
,
class
:
"ac618tagb"
})):
c
(
""
,
!
0
)])),
_
:
1
}),
t
(
h
,{
class
:
"trg"
},{
default
:
o
((()
=>
[
t
(
h
,{
class
:
"name elep2"
,
innerHTML
:
m
.
obj
.
sku_name
},
null
,
8
,[
"innerHTML"
]),
t
(
h
,{
class
:
"tags"
},{
default
:
o
((()
=>
[
m
.
obj
.
goods_tag
&&
m
.
obj
.
goods_tag
.
goods_tag_names
&&
m
.
obj
.
goods_tag
.
goods_tag_names
.
length
>
0
?(
s
(),
l
(
h
,{
key
:
0
,
class
:
"row"
},{
default
:
o
((()
=>
[(
s
(
!
0
),
d
(
_
,
null
,
r
(
m
.
obj
.
goods_tag
.
goods_tag_names
,((
a
,
e
)
=>
(
s
(),
l
(
h
,{
class
:
b
([
"item"
,{
tag1
:
e
%
2
!=
0
,
tag2
:
e
%
2
==
0
}]),
key
:
e
},{
default
:
o
((()
=>
[
i
(
n
(
a
),
1
)])),
_
:
2
},
1032
,[
"class"
])))),
128
))])),
_
:
1
})):
c
(
""
,
!
0
)])),
_
:
1
}),
10
==
m
.
obj
.
ac_type
?(
s
(),
l
(
h
,{
key
:
0
,
class
:
"priceac168Box"
},{
default
:
o
((()
=>
[
m
.
obj
.
ladder_price
.
length
>
0
?(
s
(),
l
(
h
,{
key
:
0
,
class
:
"row"
},{
default
:
o
((()
=>
[
t
(
h
,{
class
:
"row item12"
},{
default
:
o
((()
=>
[
t
(
h
,{
class
:
"price0"
},{
default
:
o
((()
=>
[
i
(
"¥"
+
n
(
m
.
obj
.
ladder_price
[
0
].
price_ac
||
""
),
1
)])),
_
:
1
}),
t
(
h
,{
class
:
"tagac"
},{
default
:
o
((()
=>
[
i
(
"活动价"
)])),
_
:
1
})])),
_
:
1
}),
t
(
h
,{
class
:
"row item11"
},{
default
:
o
((()
=>
[
t
(
h
,{
class
:
"t3"
},{
default
:
o
((()
=>
[
i
(
"¥"
+
n
(
m
.
obj
.
ladder_price
[
0
].
price_cn
||
""
),
1
)])),
_
:
1
}),
t
(
h
,{
class
:
"tagac2"
},{
default
:
o
((()
=>
[
i
(
"日常价"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):(
s
(),
l
(
v
,{
key
:
1
,
class
:
"xunj"
,
onClick
:
e
[
0
]
||
(
e
[
0
]
=
p
((
a
=>
x
.
goxj
()),[
"stop"
,
"prevent"
]))},{
default
:
o
((()
=>
[
i
(
"立即询价"
)])),
_
:
1
}))])),
_
:
1
})):(
s
(),
l
(
h
,{
key
:
1
,
class
:
"pricenormalbox"
},{
default
:
o
((()
=>
[
m
.
obj
.
ladder_price
.
length
>
0
?(
s
(),
l
(
h
,{
key
:
0
,
class
:
"price-box row"
},{
default
:
o
((()
=>
[
t
(
v
,{
class
:
"price0"
},{
default
:
o
((()
=>
[
i
(
"¥"
+
n
(
m
.
obj
.
ladder_price
[
0
].
price_cn
||
""
),
1
)])),
_
:
1
}),
y
.
isLogin
?(
s
(),
l
(
v
,{
key
:
0
,
class
:
"price1"
},{
default
:
o
((()
=>
[
m
.
obj
.
ladder_price
[
1
].
price_cn
?(
s
(),
l
(
v
,{
key
:
0
,
class
:
"price1"
},{
default
:
o
((()
=>
[
i
(
"¥"
+
n
(
m
.
obj
.
ladder_price
[
1
].
price_cn
),
1
)])),
_
:
1
})):
c
(
""
,
!
0
)])),
_
:
1
})):(
s
(),
l
(
v
,{
key
:
1
,
class
:
"price1"
},{
default
:
o
((()
=>
[
i
(
"¥****"
)])),
_
:
1
})),
m
.
obj
.
ladder_price
[
1
].
price_cn
?(
s
(),
l
(
v
,{
key
:
2
,
class
:
"qytag"
},{
default
:
o
((()
=>
[
i
(
"企业价"
)])),
_
:
1
})):
c
(
""
,
!
0
)])),
_
:
1
})):(
s
(),
l
(
h
,{
key
:
1
,
class
:
"price-box row"
},{
default
:
o
((()
=>
[
t
(
v
,{
class
:
"xunj"
,
onClick
:
e
[
1
]
||
(
e
[
1
]
=
p
((
a
=>
x
.
goxj
()),[
"stop"
,
"prevent"
]))},{
default
:
o
((()
=>
[
i
(
"立即询价"
)])),
_
:
1
})])),
_
:
1
}))])),
_
:
1
}))])),
_
:
1
})])),
_
:
1
})])),
_
:
1
},
8
,[
"url"
])}],[
"__scopeId"
,
"data-v-c4c011d2"
]]);
export
{
k
as
o
};
unpackage/dist/build/web/assets/pages-activity-ac618.Co-LbpjT.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
s
,
n
as
a
,
r
as
e
,
c
as
o
,
w
as
i
,
i
as
_
,
o
as
t
,
d
,
h
as
r
,
j
as
c
,
F
as
g
,
f
as
n
,
e
as
m
,
t
as
l
,
m
as
p
,
k
as
u
,
l
as
h
}
from
"./index-B52OZNum.js"
;
import
"./api.Cl4HE8_F.js"
;
import
{
s
as
f
}
from
"./search_head.Bd-A-aAE.js"
;
import
{
b
as
k
}
from
"./barx._hPkFqJr.js"
;
import
{
b
as
w
}
from
"./bottom_nav.Epavr9vk.js"
;
import
{
_
as
j
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
C
=
j
({
data
:()
=>
({
pageData
:
""
}),
onLoad
:
function
(
s
){
this
.
getData
()},
methods
:{
onConfirm
(
e
){
let
o
=
e
.
detail
.
value
;
o
.
length
<
2
?
s
({
title
:
"关键字不能小于2个字符"
,
duration
:
2
e3
,
icon
:
"none"
}):
a
({
url
:
"/pages/search/list?k="
+
o
})},
goUrl
(){
a
({
url
:
"/pages/search/nav"
})},
getData
(){
var
s
=
[];
s
.
push
({
title
:
"三防爆款"
,
items
:[{
goods_id
:
"1170289276946886404"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/c78b30j10hs0hs000000gk6ix8jly"
,
sku_name
:
"三防平板 EM-T195-HY2D"
,
sku_remark
:
"10.1英寸 | 8+128G | 安卓 | 二维码"
,
goods_tag
:{
goods_tag_names
:[
"专票"
,
"顺丰包邮"
,
"1年质保"
]},
ladder_price
:[{
price_ac
:
"2850"
,
price_cn
:
"2350"
,
price_diff
:
"500"
}]}]}),
s
.
push
({
title
:
"大牌工控秒杀"
,
items
:[{
goods_id
:
"1173745419524408237"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/c14f20j10hs0hs000000lgjyf6gj7"
,
sku_name
:
"研华工控机 IPC610L-505G2"
,
sku_remark
:
"6代i5处理器 | DDR4 8G | HDD 1T"
,
goods_tag
:{
goods_tag_names
:[
"客制化"
,
"原厂正品"
,
"2年质保"
]},
ladder_price
:[{
price_ac
:
"4999"
,
price_cn
:
"5999"
,
price_diff
:
"1000"
}]}]}),
s
.
push
({
title
:
"PDA立减300"
,
items
:[{
goods_id
:
"1174131661288254315"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/444850j10hs0hs000000hvgbk47tk"
,
sku_name
:
"优博讯 PDA DT50X"
,
sku_remark
:
"5.5英寸 | 4+64G | 安卓11 | NFC"
,
goods_tag
:{
goods_tag_names
:[
"3年质保"
,
"专票"
,
"顺丰"
,
"防水防摔"
]},
ladder_price
:[{
price_ac
:
"1699"
,
price_cn
:
"1999"
,
price_diff
:
"300"
}]},{
goods_id
:
"1174131661289122442"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/3accd0j10hs0hs000000ix57h41uw"
,
sku_name
:
"优博讯 PDA i6310Pro(4+64G)"
,
sku_remark
:
"5.5英寸 | 4+64G | 安卓12 | NFC"
,
goods_tag
:{
goods_tag_names
:[
"3年质保"
,
"专票"
,
"顺丰"
,
"防水防摔"
]},
ladder_price
:[{
price_ac
:
"1614"
,
price_cn
:
"1899"
,
price_diff
:
"285"
}]},{
goods_id
:
"1172724814288805963"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/5ef140j10hs0hs000000hxjslqx47"
,
sku_name
:
"东集 PDA CRUISE Ge2"
,
sku_remark
:
"5.5英寸 | 4+64G | 安卓11| NFC "
,
goods_tag
:{
goods_tag_names
:[
"1年质保"
,
"专票"
,
"顺丰"
,
"防水防摔"
]},
ladder_price
:[{
price_ac
:
"1599"
,
price_cn
:
"1899"
,
price_diff
:
"300"
}]}]}),
s
.
push
({
title
:
"读码器8折"
,
items
:[{
goods_id
:
"1172017382089346040"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/d9d1c0j10hs0hs000001ettyhb422"
,
sku_name
:
"工业手持读码器"
,
sku_remark
:
"4mil精度 | 1280×1024 | 4.9mm焦距 "
,
goods_tag
:{
goods_tag_names
:[
"原厂正品"
,
"顺丰包邮"
,
"1年质保"
]},
ladder_price
:[{
price_ac
:
"492"
,
price_cn
:
"615"
,
price_diff
:
"123"
}]},{
goods_id
:
"1173391395374975834"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/591860j10hs0hs0000014hj4ks9mk"
,
sku_name
:
"130万NR红光读码器"
,
sku_remark
:
"50fps | 1024×1280 | 30个码/秒 "
,
goods_tag
:{
goods_tag_names
:[
"原厂正品"
,
"顺丰包邮"
,
"1年质保"
]},
ladder_price
:[{
price_ac
:
"704"
,
price_cn
:
"880"
,
price_diff
:
"176"
}]},{
goods_id
:
"1173391396428222830"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/ed0a80j10hs0hs000000h4y1qynmo"
,
sku_name
:
"130W分辨率智能读码器"
,
sku_remark
:
"60fps | 1280×1024 | 84个码/秒 "
,
goods_tag
:{
goods_tag_names
:[
"原厂正品"
,
"顺丰包邮"
,
"1年质保"
]},
ladder_price
:[{
price_ac
:
"2514"
,
price_cn
:
"3143"
,
price_diff
:
"629"
}]},{
goods_id
:
"1173391397144422991"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/95b670j10hs0hs000001hmqtx9ekm"
,
sku_name
:
"600万像素工业读码器"
,
sku_remark
:
"30fps | 3072×2048 | 90个码/秒 "
,
goods_tag
:{
goods_tag_names
:[
"原厂正品"
,
"顺丰包邮"
,
"1年质保"
]},
ladder_price
:[{
price_ac
:
"3799"
,
price_cn
:
"4749"
,
price_diff
:
"950"
}]}]}),
s
.
push
({
title
:
"数采卡特价"
,
items
:[{
goods_id
:
"1169926442808688467"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/aa7020j10hs0hs000002gqpry7tue"
,
sku_name
:
"凌华数采卡PCI-9112"
,
sku_remark
:
"16CH | 12bit | 110kS/s | PCI "
,
goods_tag
:{
goods_tag_names
:[
"专票"
,
"顺丰包邮"
,
"2年质保"
]},
ladder_price
:[{
price_ac
:
"3290"
,
price_cn
:
"4750"
,
price_diff
:
"1460"
}]},{
goods_id
:
"1170175563836678220"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/5115a0j10hs0hs000002uc1fr66ia"
,
sku_name
:
"凌华数字化仪PCIE-9834"
,
sku_remark
:
"4CH | 16bit | 80MS/s | PCle "
,
goods_tag
:{
goods_tag_names
:[
"专票"
,
"顺丰包邮"
,
"2年质保"
]},
ladder_price
:[{
price_ac
:
"17260"
,
price_cn
:
"25500"
,
price_diff
:
"8240"
}]},{
goods_id
:
"1169899820982184307"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/8f4c20j10hs0hs000001wsyjt7zzz"
,
sku_name
:
"凌华GPIB卡LPCI-3488A"
,
sku_remark
:
"IEEE-488 | 1.5MB/s | PCI "
,
goods_tag
:{
goods_tag_names
:[
"专票"
,
"顺丰包邮"
,
"2年质保"
]},
ladder_price
:[{
price_ac
:
"1700"
,
price_cn
:
"2750"
,
price_diff
:
"1050"
}]},{
goods_id
:
"1170175563844466642"
,
goods_images
:
"https://imgscdn.ichunt.com/show/origin/41fe40j10hs0hs000001lhecstajk"
,
sku_name
:
"凌华数采卡USB-1902"
,
sku_remark
:
"16CH | 16bit | 250kS/s | USB "
,
goods_tag
:{
goods_tag_names
:[
"专票"
,
"顺丰包邮"
,
"2年质保"
]},
ladder_price
:[{
price_ac
:
"5990"
,
price_cn
:
"8900"
,
price_diff
:
"2910"
}]}]}),
this
.
pageData
=
s
}},
components
:{
barX
:
k
,
searchHead
:
f
,
bottomNav
:
w
}},[[
"render"
,
function
(
s
,
a
,
f
,
k
,
w
,
j
){
const
C
=
e
(
"barX"
),
b
=
e
(
"searchHead"
),
D
=
_
,
x
=
p
,
P
=
u
,
v
=
h
,
y
=
e
(
"bottomNav"
);
return
t
(),
o
(
D
,{
class
:
"ac618Page"
},{
default
:
i
((()
=>
[
d
(
C
),
d
(
D
,{
class
:
"fixed-tp"
},{
default
:
i
((()
=>
[
d
(
b
,{
onConfirm
:
j
.
onConfirm
,
onGoUrl
:
j
.
goUrl
},
null
,
8
,[
"onConfirm"
,
"onGoUrl"
])])),
_
:
1
}),
d
(
D
,{
class
:
"headfg"
}),
w
.
pageData
?(
t
(),
o
(
D
,{
key
:
0
,
class
:
"cons"
},{
default
:
i
((()
=>
[(
t
(
!
0
),
r
(
g
,
null
,
c
(
w
.
pageData
,((
s
,
a
)
=>
(
t
(),
o
(
D
,{
class
:
"group"
,
key
:
a
},{
default
:
i
((()
=>
[
d
(
D
,{
class
:
"tit"
},{
default
:
i
((()
=>
[
m
(
l
(
s
.
title
),
1
)])),
_
:
2
},
1024
),(
t
(
!
0
),
r
(
g
,
null
,
c
(
s
.
items
,((
s
,
a
)
=>
(
t
(),
o
(
v
,{
url
:
"/pages/goods/detail?goods_id="
+
s
.
goods_id
,
key
:
a
},{
default
:
i
((()
=>
[
d
(
D
,{
class
:
"item row"
},{
default
:
i
((()
=>
[
d
(
D
,{
class
:
"tag"
},{
default
:
i
((()
=>
[
d
(
D
,{
class
:
"t"
},{
default
:
i
((()
=>
[
m
(
"直降"
)])),
_
:
1
}),
d
(
D
,{
class
:
"b row rowCenter verCenter"
},{
default
:
i
((()
=>
[
d
(
x
,
null
,{
default
:
i
((()
=>
[
m
(
"¥"
)])),
_
:
1
}),
d
(
D
,
null
,{
default
:
i
((()
=>
[
m
(
l
(
s
.
ladder_price
[
0
].
price_diff
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
d
(
D
,{
class
:
"imagebox"
},{
default
:
i
((()
=>
[
d
(
P
,{
src
:
s
.
goods_images
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
,
mode
:
"aspectFit"
},
null
,
8
,[
"src"
])])),
_
:
2
},
1024
),
d
(
D
,{
class
:
"r"
},{
default
:
i
((()
=>
[
d
(
D
,{
class
:
"elep tiop"
},{
default
:
i
((()
=>
[
m
(
l
(
s
.
sku_name
),
1
)])),
_
:
2
},
1024
),
d
(
D
,{
class
:
"row htagbox"
},{
default
:
i
((()
=>
[
s
.
goods_tag
&&
s
.
goods_tag
.
goods_tag_names
&&
s
.
goods_tag
.
goods_tag_names
.
length
>
0
?(
t
(),
o
(
D
,{
key
:
0
,
class
:
"row"
},{
default
:
i
((()
=>
[(
t
(
!
0
),
r
(
g
,
null
,
c
(
s
.
goods_tag
.
goods_tag_names
,((
s
,
a
)
=>
(
t
(),
o
(
D
,{
class
:
"htagi"
,
key
:
a
},{
default
:
i
((()
=>
[
m
(
l
(
s
),
1
)])),
_
:
2
},
1024
)))),
128
))])),
_
:
2
},
1024
)):
n
(
""
,
!
0
)])),
_
:
2
},
1024
),
d
(
D
,{
class
:
"t-text elep2"
},{
default
:
i
((()
=>
[
m
(
l
(
s
.
sku_remark
),
1
)])),
_
:
2
},
1024
),
d
(
D
,{
class
:
"pricebox row"
},{
default
:
i
((()
=>
[
d
(
D
,{
class
:
"acprice row verCenter"
},{
default
:
i
((()
=>
[
d
(
x
,
null
,{
default
:
i
((()
=>
[
m
(
"¥"
)])),
_
:
1
}),
d
(
D
,
null
,{
default
:
i
((()
=>
[
m
(
l
(
s
.
ladder_price
[
0
].
price_ac
),
1
)])),
_
:
2
},
1024
),
d
(
x
,
null
,{
default
:
i
((()
=>
[
m
(
"活动价"
)])),
_
:
1
})])),
_
:
2
},
1024
),
d
(
D
,{
class
:
"rcprice row verCenter"
},{
default
:
i
((()
=>
[
d
(
x
,
null
,{
default
:
i
((()
=>
[
m
(
"¥"
+
l
(
s
.
ladder_price
[
0
].
price_cn
),
1
)])),
_
:
2
},
1024
),
d
(
D
,
null
,{
default
:
i
((()
=>
[
m
(
"日常价"
)])),
_
:
1
})])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"url"
])))),
128
))])),
_
:
2
},
1024
)))),
128
))])),
_
:
1
})):
n
(
""
,
!
0
),
d
(
y
,{
actval
:
""
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-ae49a68a"
]]);
export
{
C
as
default
};
unpackage/dist/build/web/assets/pages-activity-index.DNv1GCxa.js
0 → 100644
View file @
6eb3aa03
import
{
y
as
t
,
X
as
e
,
b
as
o
,
c
as
r
,
w
as
l
,
L
as
a
,
i
as
c
,
o
as
i
,
d
as
n
,
h
as
s
,
j
as
u
,
F
as
h
,
Y
as
p
,
p
as
d
,
f
as
g
,
v
as
m
,
m
as
y
,
k
as
f
,
q
as
k
,
S
as
x
}
from
"./index-B52OZNum.js"
;
import
{
A
as
b
}
from
"./api.Cl4HE8_F.js"
;
import
{
_
as
w
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
C
=
w
({
data
:()
=>
({
boxStyle
:{},
activity_code
:
""
,
ActivityInfo
:{},
list
:{},
coupon_flag
:[]}),
onLoad
(
t
){
this
.
activity_code
=
t
.
activity_code
||
"iedgeyuan"
,
this
.
getData
()},
methods
:{
getData
(){
this
.
request
(
b
+
"/api/activity/getActivityInfo"
,
"GET"
,{
activity_code
:
this
.
activity_code
},
!
0
).
then
((
r
=>
{
if
(
0
===
r
.
code
)
if
(
-
1
==
r
.
data
.
activity_status
)
t
({
title
:
"提示"
,
content
:
"该活动已过期"
,
showCancel
:
!
1
,
confirmText
:
"确定"
,
success
:
function
(
t
){
t
.
confirm
&&
(
window
.
location
.
href
=
"/"
)}});
else
if
(
r
.
data
&&
r
.
data
.
h5_html_config
){
this
.
ActivityInfo
=
r
.
data
;
var
l
=
JSON
.
parse
(
r
.
data
.
h5_html_config
),
a
=
Object
.
entries
(
l
).
filter
((
t
=>
"baseConfig"
!==
t
[
0
])).
reduce
(((
t
,[
e
,
o
])
=>
Object
.
assign
(
t
,{[
e
]:
o
})),{});
this
.
list
=
a
;
var
c
=
JSON
.
parse
(
this
.
ActivityInfo
.
h5_html_config
).
baseConfig
,
i
=
c
.
page_color
||
""
,
n
=
c
.
page_background
;
this
.
boxStyle
=
{
background
:
i
,
backgroundImage
:
`url(
${
n
}
)`
,
backgroundSize
:
"contain"
,
backgroundRepeat
:
"no-repeat"
,
backgroundPosition
:
"center 45px"
};
var
s
=!
1
;
Object
.
values
(
a
).
forEach
((
t
=>
{
const
o
=
t
.
basic_elements
;
if
(
"coupon"
!==
o
||
s
)
"formModule"
===
o
&&
(
this
.
formModuleData
=
t
,
this
.
formModule
.
form_data
=
t
.
form_data
.
map
((
t
=>
({...
t
,
input_value
:
""
}))));
else
{
var
r
=
JSON
.
parse
(
t
.
columnCouponId
);
this
.
coupon_flag
=
e
(
r
.
length
,
!
1
),
s
=!
0
}}))}
else
o
({
title
:
"暂无该活动,请检查活动地址"
,
icon
:
"none"
}),
setTimeout
((()
=>
{
window
.
location
.
href
=
"/"
}),
2
e3
);
else
o
({
title
:
r
.
msg
,
icon
:
"none"
})}))},
issueChange
(
t
,
e
){
this
.
request
(
b
+
"/api/coupon/issue"
,
"GET"
,{
id
:
t
},
!
0
,
!
0
).
then
((
t
=>
{
0
===
t
.
code
?(
this
.
$set
(
this
.
coupon_flag
,
e
,
!
0
),
o
({
title
:
t
.
msg
,
icon
:
"success"
}),
setTimeout
((()
=>
{
this
.
getData
()}),
2
e3
)):
o
({
title
:
t
.
msg
,
icon
:
"none"
})}))}}},[[
"render"
,
function
(
t
,
e
,
o
,
b
,
w
,
C
){
const
_
=
y
,
v
=
f
,
O
=
c
,
H
=
k
,
T
=
x
;
return
i
(),
r
(
O
,{
class
:
"activity-box"
,
style
:
a
(
w
.
boxStyle
)},{
default
:
l
((()
=>
[
n
(
O
,{
class
:
"cube-set-drag-area"
},{
default
:
l
((()
=>
[(
i
(
!
0
),
s
(
h
,
null
,
u
(
w
.
list
,((
e
,
o
)
=>
(
i
(),
r
(
O
,{
class
:
"cube-initial row verCenter rowCenter"
,
key
:
o
,
style
:
a
(
"height:"
+
e
.
height
+
"rpx"
)},{
default
:
l
((()
=>
[
"customLayout"
==
e
.
basic_elements
?(
i
(),
s
(
h
,{
key
:
0
},[
1
==
e
.
columns
?(
i
(),
r
(
O
,{
key
:
0
,
class
:
"cube-set-drag-content customLayout row verCenter"
,
style
:
a
(
750
==
e
.
width
?
"width:100%"
:
"width:"
+
e
.
width
+
"rpx"
)},{
default
:
l
((()
=>
[
p
(
"a"
,{
class
:
"box row"
,
href
:
e
.
columnOneHref
?
e
.
columnOneHref
:
"javascript:;"
,
target
:
e
.
columnOneHref
?
"_blank"
:
""
,
style
:
a
(
750
==
e
.
columnWidthOne
?
"width:100%"
:
e
.
width
)},[
e
.
hot
?(
i
(),
r
(
_
,{
key
:
0
,
onClick
:
d
((
o
=>
t
.
toUrl
(
e
.
hot
[
0
].
url
,
o
)),[
"stop"
]),
style
:
a
(
"position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"
+
e
.
hot
[
0
].
width
+
"rpx;height:"
+
e
.
hot
[
0
].
height
+
"rpx;left:"
+
e
.
hot
[
0
].
x
+
"rpx;top:"
+
e
.
hot
[
0
].
y
+
"rpx;background-image:url("
+
e
.
hot
[
0
].
pic
+
")"
)},
null
,
8
,[
"onClick"
,
"style"
])):
g
(
""
,
!
0
),
n
(
v
,{
style
:
a
(
750
==
e
.
columnWidthOne
?
"width:100%"
:
e
.
width
),
class
:
"pic"
,
src
:
e
.
columnOneUrl
,
mode
:
"aspectFill"
},
null
,
8
,[
"style"
,
"src"
])],
12
,[
"href"
,
"target"
])])),
_
:
2
},
1032
,[
"style"
])):
2
==
e
.
columns
?(
i
(),
r
(
O
,{
key
:
1
,
class
:
"cube-set-drag-content customLayout row verCenter"
,
style
:
a
(
750
==
e
.
width
?
"width:100%"
:
"width:"
+
e
.
width
+
"rpx"
)},{
default
:
l
((()
=>
[
p
(
"a"
,{
class
:
"box row"
,
href
:
e
.
columnOneHref
?
e
.
columnOneHref
:
"javascript:;"
,
target
:
e
.
columnOneHref
?
"_blank"
:
""
,
style
:
a
(
"width:"
+
e
.
columnWidthOne
+
"rpx;margin-right:"
+
e
.
spacing
+
"rpx"
)},[
e
.
hot
?(
i
(),
r
(
_
,{
key
:
0
,
onClick
:
d
((
o
=>
t
.
toUrl
(
e
.
hot
[
0
].
url
,
o
)),[
"stop"
]),
style
:
a
(
"position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"
+
e
.
hot
[
0
].
width
+
"rpx;height:"
+
e
.
hot
[
0
].
height
+
"rpx;left:"
+
e
.
hot
[
0
].
x
+
"rpx;top:"
+
e
.
hot
[
0
].
y
+
"rpx;background-image:url("
+
e
.
hot
[
0
].
pic
+
")"
)},
null
,
8
,[
"onClick"
,
"style"
])):
g
(
""
,
!
0
),
n
(
v
,{
class
:
"pic"
,
src
:
e
.
columnOneUrl
,
mode
:
"aspectFill"
},
null
,
8
,[
"src"
])],
12
,[
"href"
,
"target"
]),
p
(
"a"
,{
class
:
"box row"
,
href
:
e
.
columnTwoHref
?
e
.
columnTwoHref
:
"javascript:;"
,
target
:
e
.
columnTwoHref
?
"_blank"
:
""
,
style
:
a
(
"width:"
+
e
.
columnWidthTwo
+
"rpx"
)},[
e
.
hot
?(
i
(),
r
(
_
,{
key
:
0
,
onClick
:
d
((
o
=>
t
.
toUrl
(
e
.
hot
[
1
].
url
,
o
)),[
"stop"
]),
style
:
a
(
"position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"
+
e
.
hot
[
1
].
width
+
"rpx;height:"
+
e
.
hot
[
1
].
height
+
"rpx;left:"
+
e
.
hot
[
1
].
x
+
"rpx;top:"
+
e
.
hot
[
1
].
y
+
"rpx;background-image:url("
+
e
.
hot
[
1
].
pic
+
")"
)},
null
,
8
,[
"onClick"
,
"style"
])):
g
(
""
,
!
0
),
n
(
v
,{
class
:
"pic"
,
src
:
e
.
columnTwoUrl
,
mode
:
"aspectFill"
},
null
,
8
,[
"src"
])],
12
,[
"href"
,
"target"
])])),
_
:
2
},
1032
,[
"style"
])):
3
==
e
.
columns
?(
i
(),
r
(
O
,{
key
:
2
,
class
:
"cube-set-drag-content customLayout row verCenter"
,
style
:
a
(
750
==
e
.
width
?
"width:100%"
:
"width:"
+
e
.
width
+
"rpx"
)},{
default
:
l
((()
=>
[
p
(
"a"
,{
class
:
"box row"
,
href
:
e
.
columnOneHref
?
e
.
columnOneHref
:
"javascript:;"
,
target
:
e
.
columnOneHref
?
"_blank"
:
""
,
style
:
a
(
"width:"
+
e
.
columnWidthOne
+
"rpx;margin-right:"
+
e
.
spacing
+
"rpx"
)},[
e
.
hot
?(
i
(),
r
(
_
,{
key
:
0
,
onClick
:
d
((
o
=>
t
.
toUrl
(
e
.
hot
[
0
].
url
,
o
)),[
"stop"
]),
style
:
a
(
"position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"
+
e
.
hot
[
0
].
width
+
"rpx;height:"
+
e
.
hot
[
0
].
height
+
"rpx;left:"
+
e
.
hot
[
0
].
x
+
"rpx;top:"
+
e
.
hot
[
0
].
y
+
"rpx;background-image:url("
+
e
.
hot
[
0
].
pic
+
")"
)},
null
,
8
,[
"onClick"
,
"style"
])):
g
(
""
,
!
0
),
n
(
v
,{
class
:
"pic"
,
src
:
e
.
columnOneUrl
,
mode
:
"aspectFill"
},
null
,
8
,[
"src"
])],
12
,[
"href"
,
"target"
]),
p
(
"a"
,{
class
:
"box row"
,
href
:
e
.
columnTwoHref
?
e
.
columnTwoHref
:
"javascript:;"
,
target
:
e
.
columnTwoHref
?
"_blank"
:
""
,
style
:
a
(
"width:"
+
e
.
columnWidthTwo
+
"rpx;margin-right:"
+
e
.
spacing
+
"rpx"
)},[
e
.
hot
?(
i
(),
r
(
_
,{
key
:
0
,
onClick
:
d
((
o
=>
t
.
toUrl
(
e
.
hot
[
1
].
url
,
o
)),[
"stop"
]),
style
:
a
(
"position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"
+
e
.
hot
[
1
].
width
+
"rpx;height:"
+
e
.
hot
[
1
].
height
+
"rpx;left:"
+
e
.
hot
[
1
].
x
+
"rpx;top:"
+
e
.
hot
[
1
].
y
+
"rpx;background-image:url("
+
e
.
hot
[
1
].
pic
+
")"
)},
null
,
8
,[
"onClick"
,
"style"
])):
g
(
""
,
!
0
),
n
(
v
,{
class
:
"pic"
,
src
:
e
.
columnTwoUrl
,
mode
:
"aspectFill"
},
null
,
8
,[
"src"
])],
12
,[
"href"
,
"target"
]),
p
(
"a"
,{
class
:
"box row"
,
href
:
e
.
columnThreeHref
?
e
.
columnThreeHref
:
"javascript:;"
,
target
:
e
.
columnThreeHref
?
"_blank"
:
""
,
style
:
a
(
"width:"
+
e
.
columnWidthThree
+
"rpx"
)},[
e
.
hot
?(
i
(),
r
(
_
,{
key
:
0
,
onClick
:
d
((
o
=>
t
.
toUrl
(
e
.
hot
[
2
].
url
,
o
)),[
"stop"
]),
style
:
a
(
"position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"
+
e
.
hot
[
2
].
width
+
"rpx;height:"
+
e
.
hot
[
2
].
height
+
"rpx;left:"
+
e
.
hot
[
2
].
x
+
"rpx;top:"
+
e
.
hot
[
2
].
y
+
"rpx;background-image:url("
+
e
.
hot
[
2
].
pic
+
")"
)},
null
,
8
,[
"onClick"
,
"style"
])):
g
(
""
,
!
0
),
n
(
v
,{
class
:
"pic"
,
src
:
e
.
columnThreeUrl
,
mode
:
"aspectFill"
},
null
,
8
,[
"src"
])],
12
,[
"href"
,
"target"
])])),
_
:
2
},
1032
,[
"style"
])):
4
==
e
.
columns
?(
i
(),
r
(
O
,{
key
:
3
,
class
:
"cube-set-drag-content customLayout row verCenter"
,
style
:
a
(
750
==
e
.
width
?
"width:100%"
:
"width:"
+
e
.
width
+
"rpx"
)},{
default
:
l
((()
=>
[
p
(
"a"
,{
class
:
"box row"
,
href
:
e
.
columnOneHref
?
e
.
columnOneHref
:
"javascript:;"
,
target
:
e
.
columnOneHref
?
"_blank"
:
""
,
style
:
a
(
"width:"
+
e
.
columnWidthOne
+
"rpx;margin-right:"
+
e
.
spacing
+
"rpx"
)},[
e
.
hot
?(
i
(),
r
(
_
,{
key
:
0
,
onClick
:
d
((
o
=>
t
.
toUrl
(
e
.
hot
[
0
].
url
,
o
)),[
"stop"
]),
style
:
a
(
"position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"
+
e
.
hot
[
0
].
width
+
"rpx;height:"
+
e
.
hot
[
0
].
height
+
"rpx;left:"
+
e
.
hot
[
0
].
x
+
"rpx;top:"
+
e
.
hot
[
0
].
y
+
"rpx;background-image:url("
+
e
.
hot
[
0
].
pic
+
")"
)},
null
,
8
,[
"onClick"
,
"style"
])):
g
(
""
,
!
0
),
n
(
v
,{
class
:
"pic"
,
src
:
e
.
columnOneUrl
,
mode
:
"aspectFill"
},
null
,
8
,[
"src"
])],
12
,[
"href"
,
"target"
]),
p
(
"a"
,{
class
:
"box row"
,
href
:
e
.
columnTwoHref
?
e
.
columnTwoHref
:
"javascript:;"
,
target
:
e
.
columnTwoHref
?
"_blank"
:
""
,
style
:
a
(
"width:"
+
e
.
columnWidthTwo
+
"rpx;margin-right:"
+
e
.
spacing
+
"rpx"
)},[
e
.
hot
?(
i
(),
r
(
_
,{
key
:
0
,
onClick
:
d
((
o
=>
t
.
toUrl
(
e
.
hot
[
1
].
url
,
o
)),[
"stop"
]),
style
:
a
(
"position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"
+
e
.
hot
[
1
].
width
+
"rpx;height:"
+
e
.
hot
[
1
].
height
+
"rpx;left:"
+
e
.
hot
[
1
].
x
+
"rpx;top:"
+
e
.
hot
[
1
].
y
+
"rpx;background-image:url("
+
e
.
hot
[
1
].
pic
+
")"
)},
null
,
8
,[
"onClick"
,
"style"
])):
g
(
""
,
!
0
),
n
(
v
,{
class
:
"pic"
,
src
:
e
.
columnTwoUrl
,
mode
:
"aspectFill"
},
null
,
8
,[
"src"
])],
12
,[
"href"
,
"target"
]),
p
(
"a"
,{
class
:
"box row"
,
href
:
e
.
columnThreeHref
?
e
.
columnThreeHref
:
"javascript:;"
,
target
:
e
.
columnThreeHref
?
"_blank"
:
""
,
style
:
a
(
"width:"
+
e
.
columnWidthThree
+
"rpx;margin-right:"
+
e
.
spacing
+
"rpx"
)},[
e
.
hot
?(
i
(),
r
(
_
,{
key
:
0
,
onClick
:
d
((
o
=>
t
.
toUrl
(
e
.
hot
[
2
].
url
,
o
)),[
"stop"
]),
style
:
a
(
"position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"
+
e
.
hot
[
2
].
width
+
"rpx;height:"
+
e
.
hot
[
2
].
height
+
"rpx;left:"
+
e
.
hot
[
2
].
x
+
"rpx;top:"
+
e
.
hot
[
2
].
y
+
"rpx;background-image:url("
+
e
.
hot
[
2
].
pic
+
")"
)},
null
,
8
,[
"onClick"
,
"style"
])):
g
(
""
,
!
0
),
n
(
v
,{
class
:
"pic"
,
src
:
e
.
columnThreeUrl
,
mode
:
"aspectFill"
},
null
,
8
,[
"src"
])],
12
,[
"href"
,
"target"
]),
p
(
"a"
,{
class
:
"box row"
,
href
:
e
.
columnFourHref
?
e
.
columnFourHref
:
"javascript:;"
,
target
:
e
.
columnFourHref
?
"_blank"
:
""
,
style
:
a
(
"width:"
+
e
.
columnWidthFour
+
"rpx"
)},[
e
.
hot
?(
i
(),
r
(
_
,{
key
:
0
,
onClick
:
d
((
o
=>
t
.
toUrl
(
e
.
hot
[
3
].
url
,
o
)),[
"stop"
]),
style
:
a
(
"position:absolute;background-size:cover;background-repeat:no-repeat;background-position: center;z-index:8;width:"
+
e
.
hot
[
3
].
width
+
"rpx;height:"
+
e
.
hot
[
3
].
height
+
"rpx;left:"
+
e
.
hot
[
3
].
x
+
"rpx;top:"
+
e
.
hot
[
3
].
y
+
"rpx;background-image:url("
+
e
.
hot
[
3
].
pic
+
")"
)},
null
,
8
,[
"onClick"
,
"style"
])):
g
(
""
,
!
0
),
n
(
v
,{
class
:
"pic"
,
src
:
e
.
columnFourUrl
,
mode
:
"aspectFill"
},
null
,
8
,[
"src"
])],
12
,[
"href"
,
"target"
])])),
_
:
2
},
1032
,[
"style"
])):
g
(
""
,
!
0
)],
64
)):
"coupon"
==
e
.
basic_elements
?(
i
(),
r
(
O
,{
key
:
1
,
class
:
"cube-set-drag-content coupon"
,
style
:
a
(
"width:100%;background-size:cover;background-repeat:no-repeat;background-position: center;background-image:url("
+
e
.
bg
+
")"
)},{
default
:
l
((()
=>
[
1
==
e
.
pattern
?(
i
(),
r
(
O
,{
key
:
0
,
class
:
"carousel row"
,
style
:
a
(
"height:"
+
e
.
couponWidth
+
"rpx"
)},{
default
:
l
((()
=>
[
n
(
T
,{
class
:
"swiper"
,
circular
:
""
,
"indicator-dots"
:
t
.
indicatorDots
,
autoplay
:
t
.
autoplay
,
"indicator-color"
:
"#C6C7CC"
,
"indicator-active-color"
:
"#1969F9"
},{
default
:
l
((()
=>
[(
i
(
!
0
),
s
(
h
,
null
,
u
(
JSON
.
parse
(
e
.
columnCouponUrl
),((
t
,
o
)
=>
(
i
(),
r
(
H
,{
class
:
m
([
"swiper-item"
,{
curr
:
w
.
coupon_flag
[
o
]}]),
onClick
:
t
=>
C
.
issueChange
(
JSON
.
parse
(
e
.
columnCouponId
)[
o
],
o
),
key
:
o
},{
default
:
l
((()
=>
[
n
(
v
,{
mode
:
"aspectFill"
,
src
:
t
,
"lazy-load"
:
"true"
,
class
:
"pic"
},
null
,
8
,[
"src"
])])),
_
:
2
},
1032
,[
"class"
,
"onClick"
])))),
128
))])),
_
:
2
},
1032
,[
"indicator-dots"
,
"autoplay"
])])),
_
:
2
},
1032
,[
"style"
])):
2
==
e
.
pattern
?(
i
(),
r
(
O
,{
key
:
1
,
class
:
"carousel-list row rowCenter verCenter"
},{
default
:
l
((()
=>
[
1
==
JSON
.
parse
(
e
.
columnCouponUrl
).
length
?(
i
(
!
0
),
s
(
h
,{
key
:
0
},
u
(
JSON
.
parse
(
e
.
columnCouponUrl
),((
t
,
o
)
=>
(
i
(),
r
(
O
,{
class
:
m
([
"box"
,{
curr
:
w
.
coupon_flag
[
o
]}]),
onClick
:
t
=>
C
.
issueChange
(
JSON
.
parse
(
e
.
columnCouponId
)[
o
],
o
),
"data-id"
:
JSON
.
parse
(
e
.
columnCouponId
)[
o
],
style
:
a
(
"width:"
+
e
.
couponLength
+
"rpx;margin-right:0;height:"
+
e
.
couponWidth
+
"rpx"
),
key
:
o
},{
default
:
l
((()
=>
[
n
(
v
,{
mode
:
"aspectFill"
,
src
:
t
,
"lazy-load"
:
"true"
,
class
:
"pic"
},
null
,
8
,[
"src"
])])),
_
:
2
},
1032
,[
"class"
,
"onClick"
,
"data-id"
,
"style"
])))),
128
)):(
i
(
!
0
),
s
(
h
,{
key
:
1
},
u
(
JSON
.
parse
(
e
.
columnCouponUrl
),((
t
,
o
)
=>
(
i
(),
r
(
O
,{
class
:
m
([
"box"
,{
curr
:
w
.
coupon_flag
[
o
]}]),
onClick
:
t
=>
C
.
issueChange
(
JSON
.
parse
(
e
.
columnCouponId
)[
o
],
o
),
"data-id"
:
JSON
.
parse
(
e
.
columnCouponId
)[
o
],
style
:
a
(
"width:"
+
e
.
couponLength
+
"rpx;height:"
+
e
.
couponWidth
+
"rpx"
),
key
:
o
},{
default
:
l
((()
=>
[
n
(
v
,{
mode
:
"aspectFill"
,
src
:
t
,
"lazy-load"
:
"true"
,
class
:
"pic"
},
null
,
8
,[
"src"
])])),
_
:
2
},
1032
,[
"class"
,
"onClick"
,
"data-id"
,
"style"
])))),
128
))])),
_
:
2
},
1024
)):
g
(
""
,
!
0
)])),
_
:
2
},
1032
,[
"style"
])):
g
(
""
,
!
0
)])),
_
:
2
},
1032
,[
"style"
])))),
128
))])),
_
:
1
})])),
_
:
1
},
8
,[
"style"
])}],[
"__scopeId"
,
"data-v-452cb2c0"
]]);
export
{
C
as
default
};
unpackage/dist/build/web/assets/pages-auth-changeEmail.Bc_k-bsh.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
e
,
G
as
o
,
r
as
l
,
c
as
t
,
w
as
i
,
i
as
d
,
o
as
s
,
d
as
a
,
e
as
c
,
f
as
n
,
v
as
r
,
t
as
m
,
m
as
h
,
I
as
u
,
k
as
_
}
from
"./index-B52OZNum.js"
;
import
{
A
as
b
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
f
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
p
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
C
=
p
({
data
:()
=>
({
mobile
:
""
,
email
:
""
,
code
:
""
,
imgCode
:
""
,
imgCodeSrc
:
""
,
verify_rand_key
:
""
,
isShowImgCode
:
!
1
,
code_disabled
:
!
1
,
code_text
:
"获取验证码"
}),
watch
:{},
onLoad
:
function
(
e
){
this
.
mobile
=
e
.
phone
||
""
},
methods
:{
submit
(){
if
(
!
this
.
mobile
||!
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
.
test
(
this
.
mobile
))
return
e
({
title
:
"请输入正确的手机号"
,
icon
:
"none"
}),
!
1
;
if
(
!
this
.
code
)
return
void
e
({
title
:
"请输入验证码"
,
icon
:
"none"
});
if
(
!
this
.
email
)
return
void
e
({
title
:
"请输入新邮箱"
,
icon
:
"none"
});
let
o
=
{
mobile
:
this
.
mobile
,
intl_code
:
"0086"
,
mobile_code
:
this
.
code
,
email
:
this
.
email
};
console
.
log
(
o
)},
getImgCode
(){
this
.
request
(
b
+
"/api/verifyCode/getVerifyCode"
,
"GET"
,{
mobile
:
this
.
mobile
,
intl_code
:
"0086"
,
verify_code
:
this
.
imgCode
,
verify_rand_key
:
this
.
verify_rand_key
},
!
0
,
!
0
).
then
((
o
=>
{
0
==
o
.
code
?(
this
.
imgCodeSrc
=
o
.
data
.
captcha
,
this
.
verify_rand_key
=
o
.
data
.
rand_key
,
this
.
isShowImgCode
=!
0
):
e
({
title
:
o
.
msg
,
icon
:
"none"
})}))},
countdownChange
(){
if
(
!
this
.
code_disabled
){
if
(
!
this
.
mobile
||
"0086"
==
this
.
intl_code
&&!
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
.
test
(
this
.
mobile
))
return
e
({
title
:
"请输正确的手机号"
,
icon
:
"none"
}),
!
1
;
this
.
request
(
b
+
"/api/verifyCode/sendMobileVerifyCode"
,
"GET"
,{
mobile
:
this
.
mobile
,
intl_code
:
"0086"
,
verify_code
:
this
.
imgCode
,
verify_rand_key
:
this
.
verify_rand_key
},
!
0
,
!
0
).
then
((
l
=>
{
if
(
this
.
code_disabled
=!
1
,
this
.
code_text
=
"获取验证码"
,
0
===
l
.
code
){
o
({
duration
:
60
,
onTick
:
e
=>
{
this
.
code_disabled
=!
0
,
this
.
code_text
=
`重新发送
${
e
}
S`
},
onComplete
:()
=>
{
this
.
code_disabled
=!
1
,
this
.
code_text
=
"获取验证码"
}}).
start
()}
else
2
==
l
.
code
?(
l
.
data
.
sms_need_verify
&&
this
.
getImgCode
(),
e
({
title
:
l
.
msg
,
icon
:
"none"
})):(
this
.
code_disabled
=!
1
,
e
({
title
:
l
.
msg
,
icon
:
"none"
}))}))}}},
components
:{
barX
:
f
}},[[
"render"
,
function
(
e
,
o
,
b
,
f
,
p
,
C
){
const
g
=
l
(
"barX"
),
y
=
h
,
v
=
d
,
k
=
u
,
x
=
_
;
return
s
(),
t
(
v
,{
class
:
"changeEmailPage"
},{
default
:
i
((()
=>
[
a
(
g
),
a
(
v
,{
class
:
"close-box"
},{
default
:
i
((()
=>
[
a
(
y
,{
class
:
"icon iconfont icon-close2"
,
onClick
:
e
.
$goBack
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
a
(
v
,{
class
:
"title"
},{
default
:
i
((()
=>
[
a
(
v
,
null
,{
default
:
i
((()
=>
[
c
(
"更换邮箱"
)])),
_
:
1
})])),
_
:
1
}),
a
(
v
,{
class
:
"cons"
},{
default
:
i
((()
=>
[
a
(
v
,{
class
:
"input-box row verCenter nobd"
},{
default
:
i
((()
=>
[
a
(
k
,{
type
:
"text"
,
modelValue
:
p
.
mobile
,
"onUpdate:modelValue"
:
o
[
0
]
||
(
o
[
0
]
=
e
=>
p
.
mobile
=
e
),
placeholder
:
"请输入手机号"
,
"placeholder-class"
:
"placeholder-class"
,
disabled
:
""
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
p
.
isShowImgCode
?(
s
(),
t
(
v
,{
key
:
0
,
class
:
"input-box row verCenter bothSide"
},{
default
:
i
((()
=>
[
a
(
k
,{
type
:
"text"
,
modelValue
:
p
.
imgCode
,
"onUpdate:modelValue"
:
o
[
1
]
||
(
o
[
1
]
=
e
=>
p
.
imgCode
=
e
),
placeholder
:
"请输入图片验证码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
]),
a
(
v
,{
class
:
"img-code"
},{
default
:
i
((()
=>
[
a
(
x
,{
src
:
p
.
imgCodeSrc
,
onClick
:
C
.
getImgCode
},
null
,
8
,[
"src"
,
"onClick"
])])),
_
:
1
})])),
_
:
1
})):
n
(
""
,
!
0
),
a
(
v
,{
class
:
"input-box row verCenter bothSide"
},{
default
:
i
((()
=>
[
a
(
k
,{
type
:
"text"
,
modelValue
:
p
.
code
,
"onUpdate:modelValue"
:
o
[
2
]
||
(
o
[
2
]
=
e
=>
p
.
code
=
e
),
placeholder
:
"请输入验证码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
]),
a
(
v
,{
class
:
r
([
"code-btn"
,{
dis
:
p
.
code_disabled
}]),
onClick
:
C
.
countdownChange
},{
default
:
i
((()
=>
[
c
(
m
(
p
.
code_text
),
1
)])),
_
:
1
},
8
,[
"class"
,
"onClick"
])])),
_
:
1
}),
a
(
v
,{
class
:
"input-box row verCenter bothSide"
},{
default
:
i
((()
=>
[
a
(
k
,{
type
:
"text"
,
modelValue
:
p
.
email
,
"onUpdate:modelValue"
:
o
[
3
]
||
(
o
[
3
]
=
e
=>
p
.
email
=
e
),
placeholder
:
"请输入新邮箱"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
a
(
v
,{
class
:
"sub-btn"
,
onClick
:
C
.
submit
},{
default
:
i
((()
=>
[
c
(
"完成"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-a2444f2b"
]]);
export
{
C
as
default
};
unpackage/dist/build/web/assets/pages-auth-findSuccess.CeLP5cRh.js
0 → 100644
View file @
6eb3aa03
import
{
r
as
s
,
c
as
a
,
w
as
o
,
i
as
n
,
o
as
c
,
d
as
e
,
e
as
l
,
m
as
t
,
l
as
u
}
from
"./index-B52OZNum.js"
;
import
{
b
as
r
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
i
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
d
=
i
({
data
:()
=>
({}),
onLoad
:
function
(){},
methods
:{},
components
:{
barX
:
r
}},[[
"render"
,
function
(
r
,
i
,
d
,
f
,
p
,
_
){
const
m
=
s
(
"barX"
),
g
=
t
,
b
=
n
,
x
=
u
;
return
c
(),
a
(
b
,{
class
:
"findSuccessPage"
},{
default
:
o
((()
=>
[
e
(
m
),
e
(
b
,{
class
:
"close-box"
},{
default
:
o
((()
=>
[
e
(
g
,{
class
:
"icon iconfont icon-close2"
,
onClick
:
i
[
0
]
||
(
i
[
0
]
=
s
=>
r
.
$goBack
({
url
:
"/pages/auth/login"
}))})])),
_
:
1
}),
e
(
b
,{
class
:
"cons"
},{
default
:
o
((()
=>
[
e
(
g
,{
class
:
"icon iconfont icon-success"
}),
e
(
b
,
null
,{
default
:
o
((()
=>
[
l
(
"修改成功"
)])),
_
:
1
}),
e
(
g
,
null
,{
default
:
o
((()
=>
[
l
(
"您的新密码即时生效,请返回登录。"
)])),
_
:
1
})])),
_
:
1
}),
e
(
x
,{
url
:
"/pages/auth/login"
,
class
:
"btn"
},{
default
:
o
((()
=>
[
l
(
"返回"
)])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-93200051"
]]);
export
{
d
as
default
};
unpackage/dist/build/web/assets/pages-auth-forget.ZZWTukFV.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
e
,
n
as
o
,
G
as
s
,
r
as
a
,
x
as
l
,
c
as
t
,
w
as
i
,
i
as
d
,
o
as
n
,
d
as
c
,
e
as
r
,
t
as
h
,
v
as
u
,
f
as
p
,
m
,
H
as
_
,
I
as
f
,
k
as
w
}
from
"./index-B52OZNum.js"
;
import
{
r
as
b
,
_
as
C
}
from
"./uni-popup.B33pbe0T.js"
;
import
{
A
as
g
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
y
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
v
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
x
=
v
({
data
:()
=>
({
mobile
:
""
,
code
:
""
,
imgCode
:
""
,
imgCodeSrc
:
""
,
verify_rand_key
:
""
,
isShowImgCode
:
!
1
,
password
:
""
,
password1
:
""
,
passwordShow
:
!
1
,
passwordShow1
:
!
1
,
step
:
1
,
showClearIcon
:
!
1
,
intl_code
:
"0086"
,
areaIndex
:
0
,
code_disabled
:
!
1
,
code_text
:
"获取验证码"
,
areaArray
:[{
name
:
"0086(中国大陆)"
,
value
:
"0086"
},{
name
:
"00852(中国香港)"
,
value
:
"00852"
},{
name
:
"00853(中国澳门)"
,
value
:
"00853"
},{
name
:
"00886(中国台湾)"
,
value
:
"00886"
},{
name
:
"0066(泰国)"
,
value
:
"0066"
},{
name
:
"0084(越南)"
,
value
:
"0084"
}]}),
onLoad
:
function
(){},
methods
:{
submit
(){
if
(
!
this
.
mobile
||
"0086"
==
this
.
intl_code
&&!
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
.
test
(
this
.
mobile
))
return
e
({
title
:
"请输正确的手机号"
,
icon
:
"none"
}),
!
1
;
if
(
!
this
.
code
)
return
void
e
({
title
:
"请输入验证码"
,
icon
:
"none"
});
if
(
!
this
.
password
||
this
.
password
.
length
<
6
)
return
void
e
({
title
:
"请输入密码,长度不小于6个字符"
,
icon
:
"none"
});
if
(
!
this
.
password1
||
this
.
password1
.
length
<
6
)
return
void
e
({
title
:
"请确认密码,长度不小于6个字符"
,
icon
:
"none"
});
if
(
this
.
password1
!=
this
.
password
)
return
void
e
({
title
:
"两次输入密码不一致"
,
icon
:
"none"
});
let
s
=
{
intl_code
:
this
.
intl_code
,
mobile
:
this
.
mobile
,
password
:
this
.
password
,
mobile_code
:
this
.
code
};
this
.
request
(
g
+
"/api/auth/resetPassword"
,
"POST"
,
s
,
!
0
).
then
((
s
=>
{
0
==
s
.
code
?
o
({
url
:
"/pages/auth/findSuccess"
}):
e
({
title
:
s
.
msg
,
icon
:
"none"
})}))},
getImgCode
(){
this
.
request
(
g
+
"/api/verifyCode/getVerifyCode"
,
"GET"
,{
mobile
:
this
.
mobile
,
intl_code
:
this
.
intl_code
,
verify_code
:
this
.
imgCode
,
verify_rand_key
:
this
.
verify_rand_key
},
!
0
,
!
0
).
then
((
o
=>
{
0
==
o
.
code
?(
this
.
imgCodeSrc
=
o
.
data
.
captcha
,
this
.
verify_rand_key
=
o
.
data
.
rand_key
,
this
.
isShowImgCode
=!
0
):
e
({
title
:
o
.
msg
,
icon
:
"none"
})}))},
countdownChange
(){
if
(
!
this
.
code_disabled
){
if
(
!
this
.
mobile
||
"0086"
==
this
.
intl_code
&&!
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
.
test
(
this
.
mobile
))
return
e
({
title
:
"请输正确的手机号"
,
icon
:
"none"
}),
!
1
;
this
.
request
(
g
+
"/api/verifyCode/sendMobileVerifyCode"
,
"GET"
,{
mobile
:
this
.
mobile
,
intl_code
:
this
.
intl_code
,
verify_code
:
this
.
imgCode
,
verify_rand_key
:
this
.
verify_rand_key
},
!
0
,
!
0
).
then
((
o
=>
{
if
(
this
.
code_disabled
=!
1
,
this
.
code_text
=
"获取验证码"
,
0
===
o
.
code
){
s
({
duration
:
60
,
onTick
:
e
=>
{
this
.
code_disabled
=!
0
,
this
.
code_text
=
`重新发送
${
e
}
S`
},
onComplete
:()
=>
{
this
.
code_disabled
=!
1
,
this
.
code_text
=
"获取验证码"
}}).
start
()}
else
2
==
o
.
code
?(
o
.
data
.
sms_need_verify
&&
this
.
getImgCode
(),
e
({
title
:
o
.
msg
,
icon
:
"none"
})):(
this
.
code_disabled
=!
1
,
e
({
title
:
o
.
msg
,
icon
:
"none"
}))}))}},
bindPickerChange
:
function
(
e
,
o
){
this
.
areaIndex
=
e
.
detail
.
value
,
this
.
intl_code
=
this
.
areaArray
[
e
.
detail
.
value
].
value
,
console
.
log
(
this
.
intl_code
)},
stepNext
(){
if
(
!
this
.
mobile
||
"0086"
==
this
.
intl_code
&&!
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
.
test
(
this
.
mobile
))
return
e
({
title
:
"请输正确的手机号"
,
icon
:
"none"
}),
!
1
;
this
.
request
(
g
+
"/api/auth/checkExist"
,
"POST"
,{
intl_code
:
this
.
intl_code
,
mobile
:
this
.
mobile
},
!
0
).
then
((
o
=>
{
0
==
o
.
code
&&
1
==
o
.
data
.
exist
?
this
.
step
=
2
:
e
({
title
:
"当前账号不存在,请先去注册"
,
icon
:
"none"
})}))},
clearInput
:
function
(
e
){
this
.
showClearIcon
=
this
.
mobile
.
length
>
0
},
clearIcon
:
function
(){
this
.
mobile
=
""
,
this
.
showClearIcon
=!
1
}},
components
:{
barX
:
y
}},[[
"render"
,
function
(
e
,
o
,
s
,
g
,
y
,
v
){
const
x
=
a
(
"barX"
),
k
=
m
,
S
=
d
,
I
=
_
,
V
=
f
,
U
=
w
,
P
=
b
(
l
(
"uni-popup"
),
C
);
return
n
(),
t
(
S
,{
class
:
"forgetPage"
},{
default
:
i
((()
=>
[
c
(
x
),
c
(
S
,{
class
:
"close-box"
},{
default
:
i
((()
=>
[
c
(
k
,{
class
:
"icon iconfont icon-close2"
,
onClick
:
e
.
$goBack
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
c
(
S
,{
class
:
"title"
},{
default
:
i
((()
=>
[
r
(
"忘记密码"
)])),
_
:
1
}),
1
==
y
.
step
?(
n
(),
t
(
S
,{
key
:
0
,
class
:
"cons"
},{
default
:
i
((()
=>
[
c
(
S
,{
class
:
"input-box row verCenter"
},{
default
:
i
((()
=>
[
c
(
I
,{
onChange
:
o
[
0
]
||
(
o
[
0
]
=
e
=>
v
.
bindPickerChange
(
e
,
1
)),
value
:
y
.
areaIndex
,
range
:
y
.
areaArray
,
"range-key"
:
"name"
},{
default
:
i
((()
=>
[
c
(
S
,{
class
:
"areabox-box row verCenter"
},{
default
:
i
((()
=>
[
c
(
k
,{
class
:
"areabox-but"
},{
default
:
i
((()
=>
[
r
(
h
(
y
.
areaArray
[
y
.
areaIndex
].
value
),
1
)])),
_
:
1
}),
c
(
k
,{
class
:
u
([
"icon"
,
"iconfont"
,
"icon-arrowxia"
])})])),
_
:
1
})])),
_
:
1
},
8
,[
"value"
,
"range"
]),
c
(
V
,{
type
:
"text"
,
modelValue
:
y
.
mobile
,
"onUpdate:modelValue"
:
o
[
1
]
||
(
o
[
1
]
=
e
=>
y
.
mobile
=
e
),
onInput
:
v
.
clearInput
,
placeholder
:
"请输入手机号"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
,
"onInput"
]),
y
.
showClearIcon
?(
n
(),
t
(
k
,{
key
:
0
,
class
:
"icon iconfont icon-searchclose"
,
onClick
:
o
[
2
]
||
(
o
[
2
]
=
e
=>
v
.
clearIcon
())})):
p
(
""
,
!
0
)])),
_
:
1
}),
c
(
S
,{
class
:
"btn-go onego"
,
onClick
:
o
[
3
]
||
(
o
[
3
]
=
e
=>
v
.
stepNext
())},{
default
:
i
((()
=>
[
r
(
"下一步"
)])),
_
:
1
})])),
_
:
1
})):
p
(
""
,
!
0
),
2
==
y
.
step
?(
n
(),
t
(
S
,{
key
:
1
,
class
:
"cons"
},{
default
:
i
((()
=>
[
y
.
isShowImgCode
?(
n
(),
t
(
S
,{
key
:
0
,
class
:
"input-box row verCenter bothSide"
},{
default
:
i
((()
=>
[
c
(
V
,{
type
:
"text"
,
modelValue
:
y
.
imgCode
,
"onUpdate:modelValue"
:
o
[
4
]
||
(
o
[
4
]
=
e
=>
y
.
imgCode
=
e
),
placeholder
:
"请输入图片验证码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
]),
c
(
S
,{
class
:
"img-code"
},{
default
:
i
((()
=>
[
c
(
U
,{
src
:
y
.
imgCodeSrc
,
onClick
:
v
.
getImgCode
},
null
,
8
,[
"src"
,
"onClick"
])])),
_
:
1
})])),
_
:
1
})):
p
(
""
,
!
0
),
c
(
S
,{
class
:
"input-box row verCenter bothSide"
},{
default
:
i
((()
=>
[
c
(
V
,{
type
:
"text"
,
modelValue
:
y
.
code
,
"onUpdate:modelValue"
:
o
[
5
]
||
(
o
[
5
]
=
e
=>
y
.
code
=
e
),
placeholder
:
"请输入验证码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
]),
c
(
S
,{
class
:
u
([
"code-btn"
,{
dis
:
y
.
code_disabled
}]),
onClick
:
v
.
countdownChange
},{
default
:
i
((()
=>
[
r
(
h
(
y
.
code_text
),
1
)])),
_
:
1
},
8
,[
"class"
,
"onClick"
])])),
_
:
1
}),
c
(
S
,{
class
:
"input-box row verCenter bothSide"
},{
default
:
i
((()
=>
[
c
(
S
,{
class
:
"row verCenter"
},{
default
:
i
((()
=>
[
y
.
passwordShow
?(
n
(),
t
(
V
,{
key
:
0
,
type
:
"text"
,
modelValue
:
y
.
password
,
"onUpdate:modelValue"
:
o
[
6
]
||
(
o
[
6
]
=
e
=>
y
.
password
=
e
),
placeholder
:
"请输入新密码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])):(
n
(),
t
(
V
,{
key
:
1
,
type
:
"password"
,
modelValue
:
y
.
password
,
"onUpdate:modelValue"
:
o
[
7
]
||
(
o
[
7
]
=
e
=>
y
.
password
=
e
),
placeholder
:
"请输入新密码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
]))])),
_
:
1
}),
c
(
k
,{
class
:
u
([
"icon iconfont icon-see2"
,{
"icon-see1"
:
!
y
.
passwordShow
}]),
onClick
:
o
[
8
]
||
(
o
[
8
]
=
e
=>
y
.
passwordShow
=!
y
.
passwordShow
)},
null
,
8
,[
"class"
])])),
_
:
1
}),
c
(
S
,{
class
:
"input-box row verCenter bothSide"
},{
default
:
i
((()
=>
[
c
(
S
,{
class
:
"row verCenter"
},{
default
:
i
((()
=>
[
y
.
passwordShow1
?(
n
(),
t
(
V
,{
key
:
0
,
type
:
"text"
,
modelValue
:
y
.
password1
,
"onUpdate:modelValue"
:
o
[
9
]
||
(
o
[
9
]
=
e
=>
y
.
password1
=
e
),
placeholder
:
"请输入新密码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])):(
n
(),
t
(
V
,{
key
:
1
,
type
:
"password"
,
modelValue
:
y
.
password1
,
"onUpdate:modelValue"
:
o
[
10
]
||
(
o
[
10
]
=
e
=>
y
.
password1
=
e
),
placeholder
:
"请输入新密码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
]))])),
_
:
1
}),
c
(
k
,{
class
:
u
([
"icon iconfont icon-see2"
,{
"icon-see1"
:
!
y
.
passwordShow1
}]),
onClick
:
o
[
11
]
||
(
o
[
11
]
=
e
=>
y
.
passwordShow1
=!
y
.
passwordShow1
)},
null
,
8
,[
"class"
])])),
_
:
1
}),
c
(
S
,{
class
:
"btn-go"
,
onClick
:
o
[
12
]
||
(
o
[
12
]
=
e
=>
v
.
submit
())},{
default
:
i
((()
=>
[
r
(
"确定"
)])),
_
:
1
})])),
_
:
1
})):
p
(
""
,
!
0
),
c
(
P
,{
ref
:
"popupareabox"
,
type
:
"bottom"
},{
default
:
i
((()
=>
[
c
(
S
,{
class
:
"pop-areabox"
},{
default
:
i
((()
=>
[
c
(
S
,{
class
:
"row bothSide"
},{
default
:
i
((()
=>
[
c
(
S
,{
class
:
"cancel"
},{
default
:
i
((()
=>
[
r
(
"取消"
)])),
_
:
1
}),
c
(
S
,{
class
:
"cancel"
},{
default
:
i
((()
=>
[
r
(
"确认"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
},
512
)])),
_
:
1
})}],[
"__scopeId"
,
"data-v-a4c7c7dd"
]]);
export
{
x
as
default
};
unpackage/dist/build/web/assets/pages-auth-login.B_8EVSei.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
e
,
D
as
o
,
A
as
i
,
E
as
s
,
G
as
t
,
r
as
l
,
c
as
n
,
w
as
a
,
i
as
d
,
o
as
c
,
d
as
r
,
e
as
h
,
t
as
u
,
v
as
m
,
f
as
p
,
m
as
f
,
H
as
g
,
I
as
_
,
k
as
b
,
l
as
y
,
J
as
C
}
from
"./index-B52OZNum.js"
;
import
{
A
as
k
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
w
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
v
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
x
=
v
({
data
:()
=>
({
isH5
:
!
0
,
isYes
:
!
1
,
referer
:
""
,
loginType
:
!
0
,
isTest
:
!
1
,
mobile
:
""
,
code
:
""
,
imgCode
:
""
,
imgCodeSrc
:
""
,
verify_rand_key
:
""
,
isShowImgCode
:
!
1
,
password
:
""
,
passwordShow
:
!
1
,
showClearIcon
:
!
1
,
intl_code
:
"0086"
,
areaIndex
:
0
,
code_disabled
:
!
1
,
code_text
:
"获取验证码"
,
areaArray
:[{
name
:
"0086(中国大陆)"
,
value
:
"0086"
},{
name
:
"00852(中国香港)"
,
value
:
"00852"
},{
name
:
"00853(中国澳门)"
,
value
:
"00853"
},{
name
:
"00886(中国台湾)"
,
value
:
"00886"
},{
name
:
"0066(泰国)"
,
value
:
"0066"
},{
name
:
"0084(越南)"
,
value
:
"0084"
}]}),
watch
:{
loginType
(
e
,
o
){
this
.
imgCode
=
""
,
this
.
verify_rand_key
=
""
,
this
.
isShowImgCode
=!
1
,
this
.
imgCodeSrc
=
""
,
this
.
btnUi
()},
mobile
(
e
,
o
){
this
.
btnUi
()},
code
(
e
,
o
){
this
.
btnUi
()},
password
(
e
,
o
){
this
.
btnUi
()}},
onLoad
:
function
(
e
){
this
.
referer
=
e
.
referer
||
""
,
console
.
log
(
this
.
loginType
,
this
.
isShowImgCode
,
"h5"
)},
methods
:{
btnUi
(){
this
.
isYes
=!
1
,
this
.
loginType
?
this
.
mobile
&&
this
.
code
&&
(
this
.
isYes
=!
0
):
this
.
mobile
&&
this
.
password
&&
(
this
.
isYes
=!
0
)},
isHasAccount
(){
if
(
!
this
.
loginType
&&
this
.
mobile
){
var
o
=
{};
-
1
!=
this
.
mobile
.
indexOf
(
"@"
)?
o
.
email
=
this
.
mobile
:(
o
.
mobile
=
this
.
mobile
,
o
.
intl_code
=
this
.
intl_code
),
this
.
request
(
k
+
"/api/auth/checkExist"
,
"POST"
,
o
,
!
1
).
then
((
o
=>
{
0
==
o
.
code
&&
1
!=
o
.
data
.
exist
&&
e
({
title
:
"账号不存在,您可以先去注册"
,
icon
:
"none"
})}))}},
getPhoneNumber
(
e
){
if
(
"getPhoneNumber:ok"
===
e
.
detail
.
errMsg
){
const
o
=
e
.
detail
.
code
;
this
.
weixinLogin
(
o
)}},
weixinLogin
(
i
){
let
s
=
{
phone_code
:
i
},
t
=
this
;
o
({
provider
:
"weixin"
,
success
:
function
(
o
){
console
.
log
(
"登录凭证 code:"
,
o
),
s
.
code
=
o
.
code
,
uni
.
getUserInfo
({
provider
:
"weixin"
,
success
:
function
(
o
){
o
.
userInfo
,
s
.
encryptedData
=
o
.
encryptedData
,
s
.
iv
=
o
.
iv
,
console
.
log
(
s
,
o
),
t
.
request
(
k
+
"/api/auth/loginByWxMiniProgram"
,
"POST"
,
s
,
!
0
).
then
((
o
=>
{
0
==
o
.
code
?
t
.
loginSuccess
(
o
):
e
({
title
:
o
.
msg
,
icon
:
"none"
})}))}})}})},
bindPickerChange
:
function
(
e
,
o
){
this
.
areaIndex
=
e
.
detail
.
value
,
this
.
intl_code
=
this
.
areaArray
[
e
.
detail
.
value
].
value
,
console
.
log
(
this
.
intl_code
)},
loginSuccess
(
o
){
e
({
title
:
"登录成功"
,
icon
:
"success"
}),
i
(
"token"
,
o
.
data
.
token
),
i
(
"user_info"
,
JSON
.
stringify
(
o
.
data
.
user_info
)),
setTimeout
((()
=>
{
console
.
log
(
this
.
referer
),
s
({
url
:
this
.
referer
?
decodeURIComponent
(
this
.
referer
):
"/pages/index/index"
})}),
2
e3
)},
submit
(){
if
(
this
.
isTest
)
if
(
this
.
loginType
){
if
(
!
this
.
mobile
||
"0086"
==
this
.
intl_code
&&!
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
.
test
(
this
.
mobile
))
return
e
({
title
:
"请输入正确的手机号"
,
icon
:
"none"
}),
!
1
;
if
(
!
this
.
code
)
return
void
e
({
title
:
"请输入验证码"
,
icon
:
"none"
});
this
.
request
(
k
+
"/api/auth/loginByMobileVerifyCode"
,
"POST"
,{
mobile
:
this
.
mobile
,
intl_code
:
this
.
intl_code
,
mobile_code
:
this
.
code
},
!
0
).
then
((
o
=>
{
0
==
o
.
code
?
this
.
loginSuccess
(
o
):
e
({
title
:
o
.
msg
,
icon
:
"none"
})}))}
else
{
if
(
!
this
.
mobile
)
return
e
({
title
:
"请输入账号"
,
icon
:
"none"
}),
!
1
;
if
(
!
this
.
password
)
return
void
e
({
title
:
"请输入密码"
,
icon
:
"none"
});
let
o
=
{
password
:
this
.
password
,
verify_code
:
this
.
imgCode
,
verify_rand_key
:
this
.
verify_rand_key
};
-
1
!=
this
.
mobile
.
indexOf
(
"@"
)?
o
.
email
=
this
.
mobile
:(
o
.
mobile
=
this
.
mobile
,
o
.
intl_code
=
"0086"
),
this
.
request
(
k
+
"/api/auth/login"
,
"POST"
,
o
,
!
0
).
then
((
o
=>
{
0
==
o
.
code
?
this
.
loginSuccess
(
o
):
2
==
o
.
code
?(
o
.
data
.
login_need_verify
&&
this
.
getImgCode
(),
e
({
title
:
o
.
msg
,
icon
:
"none"
})):
e
({
title
:
o
.
msg
,
icon
:
"none"
})}))}
else
e
({
title
:
"请勾选爱智网服务协议和隐私政策"
,
icon
:
"none"
})},
getImgCode
(){
this
.
request
(
k
+
"/api/verifyCode/getVerifyCode"
,
"GET"
,{
mobile
:
this
.
mobile
,
intl_code
:
this
.
intl_code
,
verify_code
:
this
.
imgCode
,
verify_rand_key
:
this
.
verify_rand_key
},
!
0
,
!
0
).
then
((
o
=>
{
0
==
o
.
code
?(
this
.
imgCodeSrc
=
o
.
data
.
captcha
,
this
.
verify_rand_key
=
o
.
data
.
rand_key
,
this
.
isShowImgCode
=!
0
):
e
({
title
:
o
.
msg
,
icon
:
"none"
})}))},
countdownChange
(){
if
(
!
this
.
code_disabled
){
if
(
!
this
.
mobile
||
"0086"
==
this
.
intl_code
&&!
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
.
test
(
this
.
mobile
))
return
e
({
title
:
"请输正确的手机号"
,
icon
:
"none"
}),
!
1
;
this
.
request
(
k
+
"/api/verifyCode/sendMobileVerifyCode"
,
"GET"
,{
mobile
:
this
.
mobile
,
intl_code
:
this
.
intl_code
,
verify_code
:
this
.
imgCode
,
verify_rand_key
:
this
.
verify_rand_key
},
!
0
,
!
0
).
then
((
o
=>
{
if
(
this
.
code_disabled
=!
1
,
this
.
code_text
=
"获取验证码"
,
0
===
o
.
code
){
t
({
duration
:
60
,
onTick
:
e
=>
{
this
.
code_disabled
=!
0
,
this
.
code_text
=
`重新发送
${
e
}
S`
},
onComplete
:()
=>
{
this
.
code_disabled
=!
1
,
this
.
code_text
=
"获取验证码"
}}).
start
()}
else
2
==
o
.
code
?(
o
.
data
.
sms_need_verify
&&
this
.
getImgCode
(),
e
({
title
:
o
.
msg
,
icon
:
"none"
})):(
this
.
code_disabled
=!
1
,
e
({
title
:
o
.
msg
,
icon
:
"none"
}))}))}},
clearInput
:
function
(
e
){
this
.
imgCode
=
""
,
this
.
verify_rand_key
=
""
,
this
.
showClearIcon
=
this
.
mobile
.
length
>
0
},
clearIcon
:
function
(){
this
.
mobile
=
""
,
this
.
showClearIcon
=!
1
}},
components
:{
barX
:
w
}},[[
"render"
,
function
(
e
,
o
,
i
,
s
,
t
,
k
){
const
w
=
l
(
"barX"
),
v
=
f
,
x
=
d
,
I
=
g
,
T
=
_
,
S
=
b
,
V
=
y
,
P
=
C
;
return
c
(),
n
(
x
,{
class
:
"loginPage"
},{
default
:
a
((()
=>
[
r
(
w
),
r
(
x
,{
class
:
"close-box"
},{
default
:
a
((()
=>
[
r
(
v
,{
class
:
"icon iconfont icon-close2"
,
onClick
:
e
.
$goBack
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
r
(
x
,{
class
:
"title"
},{
default
:
a
((()
=>
[
r
(
x
,
null
,{
default
:
a
((()
=>
[
h
(
u
(
t
.
loginType
?
"短信验证码登录"
:
"密码登录"
),
1
)])),
_
:
1
}),
r
(
v
,
null
,{
default
:
a
((()
=>
[
h
(
"为了方便联系,请输入您的常用手机号码"
)])),
_
:
1
})])),
_
:
1
}),
r
(
x
,{
class
:
"cons"
},{
default
:
a
((()
=>
[
r
(
x
,{
class
:
"input-box row verCenter"
},{
default
:
a
((()
=>
[
t
.
loginType
?(
c
(),
n
(
I
,{
key
:
0
,
onChange
:
o
[
0
]
||
(
o
[
0
]
=
e
=>
k
.
bindPickerChange
(
e
,
1
)),
value
:
t
.
areaIndex
,
range
:
t
.
areaArray
,
"range-key"
:
"name"
},{
default
:
a
((()
=>
[
r
(
x
,{
class
:
"areabox-box row verCenter"
},{
default
:
a
((()
=>
[
r
(
v
,{
class
:
"areabox-but"
},{
default
:
a
((()
=>
[
h
(
u
(
t
.
areaArray
[
t
.
areaIndex
].
value
),
1
)])),
_
:
1
}),
r
(
v
,{
class
:
m
([
"icon"
,
"iconfont"
,
"icon-arrowxia"
])})])),
_
:
1
})])),
_
:
1
},
8
,[
"value"
,
"range"
])):
p
(
""
,
!
0
),
r
(
T
,{
type
:
"text"
,
modelValue
:
t
.
mobile
,
"onUpdate:modelValue"
:
o
[
1
]
||
(
o
[
1
]
=
e
=>
t
.
mobile
=
e
),
onBlur
:
k
.
isHasAccount
,
onInput
:
k
.
clearInput
,
placeholder
:
t
.
loginType
?
"请输入手机号"
:
"请输入账号"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
,
"onBlur"
,
"onInput"
,
"placeholder"
]),
t
.
showClearIcon
?(
c
(),
n
(
v
,{
key
:
1
,
class
:
"icon iconfont icon-searchclose"
,
onClick
:
o
[
2
]
||
(
o
[
2
]
=
e
=>
k
.
clearIcon
())})):
p
(
""
,
!
0
)])),
_
:
1
}),
t
.
isShowImgCode
?(
c
(),
n
(
x
,{
key
:
0
,
class
:
"input-box row verCenter bothSide"
},{
default
:
a
((()
=>
[
r
(
T
,{
type
:
"text"
,
modelValue
:
t
.
imgCode
,
"onUpdate:modelValue"
:
o
[
3
]
||
(
o
[
3
]
=
e
=>
t
.
imgCode
=
e
),
placeholder
:
"请输入图片验证码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
]),
r
(
x
,{
class
:
"img-code"
},{
default
:
a
((()
=>
[
r
(
S
,{
src
:
t
.
imgCodeSrc
,
onClick
:
k
.
getImgCode
},
null
,
8
,[
"src"
,
"onClick"
])])),
_
:
1
})])),
_
:
1
})):
p
(
""
,
!
0
),
t
.
loginType
?(
c
(),
n
(
x
,{
key
:
1
,
class
:
"input-box row verCenter bothSide"
},{
default
:
a
((()
=>
[
r
(
T
,{
type
:
"text"
,
modelValue
:
t
.
code
,
"onUpdate:modelValue"
:
o
[
4
]
||
(
o
[
4
]
=
e
=>
t
.
code
=
e
),
placeholder
:
"请输入验证码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
]),
r
(
x
,{
class
:
m
([
"code-btn"
,{
dis
:
t
.
code_disabled
}]),
onClick
:
k
.
countdownChange
},{
default
:
a
((()
=>
[
h
(
u
(
t
.
code_text
),
1
)])),
_
:
1
},
8
,[
"class"
,
"onClick"
])])),
_
:
1
})):
p
(
""
,
!
0
),
t
.
loginType
?
p
(
""
,
!
0
):(
c
(),
n
(
x
,{
key
:
2
,
class
:
"input-box row verCenter bothSide"
},{
default
:
a
((()
=>
[
t
.
passwordShow
?(
c
(),
n
(
T
,{
key
:
0
,
type
:
"text"
,
modelValue
:
t
.
password
,
"onUpdate:modelValue"
:
o
[
5
]
||
(
o
[
5
]
=
e
=>
t
.
password
=
e
),
placeholder
:
"请输入密码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])):(
c
(),
n
(
T
,{
key
:
1
,
type
:
"password"
,
modelValue
:
t
.
password
,
"onUpdate:modelValue"
:
o
[
6
]
||
(
o
[
6
]
=
e
=>
t
.
password
=
e
),
placeholder
:
"请输入密码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])),
r
(
x
,{
class
:
"row verCenter"
},{
default
:
a
((()
=>
[
r
(
v
,{
class
:
m
([
"icon iconfont icon-see2"
,{
"icon-see1"
:
!
t
.
passwordShow
}]),
onClick
:
o
[
7
]
||
(
o
[
7
]
=
e
=>
t
.
passwordShow
=!
t
.
passwordShow
)},
null
,
8
,[
"class"
]),
r
(
V
,{
url
:
"/pages/auth/forget"
,
class
:
"link-forget"
},{
default
:
a
((()
=>
[
h
(
"忘记密码"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})),
r
(
x
,{
class
:
"rule row verCenter"
},{
default
:
a
((()
=>
[
r
(
v
,{
class
:
m
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
t
.
isTest
}]),
onClick
:
o
[
8
]
||
(
o
[
8
]
=
e
=>
t
.
isTest
=!
t
.
isTest
)},
null
,
8
,[
"class"
]),
r
(
v
,{
onClick
:
o
[
9
]
||
(
o
[
9
]
=
e
=>
t
.
isTest
=!
t
.
isTest
)},{
default
:
a
((()
=>
[
h
(
"我已阅读并同意"
)])),
_
:
1
}),
r
(
V
,{
url
:
"/pages/auth/rule?id=1"
,
class
:
"link"
},{
default
:
a
((()
=>
[
h
(
"《爱智网站服务协议》"
)])),
_
:
1
}),
r
(
v
,
null
,{
default
:
a
((()
=>
[
h
(
"及"
)])),
_
:
1
}),
r
(
V
,{
url
:
"/pages/auth/rule?id=2"
,
class
:
"link"
},{
default
:
a
((()
=>
[
h
(
"《爱智隐私政策》"
)])),
_
:
1
})])),
_
:
1
}),
r
(
x
,{
class
:
m
([
"login-btn"
,{
yes
:
t
.
isYes
}]),
onClick
:
k
.
submit
},{
default
:
a
((()
=>
[
h
(
"登录"
)])),
_
:
1
},
8
,[
"class"
,
"onClick"
]),
r
(
x
,{
class
:
"self"
},{
default
:
a
((()
=>
[
h
(
"爱智不会在任何地方泄露您的信息"
)])),
_
:
1
}),
r
(
x
,{
class
:
"link-box row verCenter rowCenter"
},{
default
:
a
((()
=>
[
r
(
v
,{
onClick
:
o
[
10
]
||
(
o
[
10
]
=
e
=>
t
.
loginType
=!
t
.
loginType
)},{
default
:
a
((()
=>
[
h
(
u
(
t
.
loginType
?
"密码登录"
:
"短信验证码登录"
),
1
)])),
_
:
1
}),
r
(
V
,{
url
:
"/pages/auth/reg"
,
class
:
"link"
},{
default
:
a
((()
=>
[
h
(
"免费注册"
)])),
_
:
1
})])),
_
:
1
}),
t
.
isH5
?
p
(
""
,
!
0
):(
c
(),
n
(
x
,{
key
:
3
,
class
:
"other-login"
},{
default
:
a
((()
=>
[
r
(
v
,
null
,{
default
:
a
((()
=>
[
h
(
"手机号快捷登录"
)])),
_
:
1
}),
r
(
P
,{
plain
:
"true"
,
"open-type"
:
"getPhoneNumber"
,
onGetphonenumber
:
k
.
getPhoneNumber
},{
default
:
a
((()
=>
[
r
(
S
,{
src
:
"https://img.ichunt.com/images/ichunt/202503/12/b7e9be7f76205529ad280b3af01dbfdc.png"
})])),
_
:
1
},
8
,[
"onGetphonenumber"
])])),
_
:
1
}))])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-9e33f2e6"
]]);
export
{
x
as
default
};
unpackage/dist/build/web/assets/pages-auth-reg.DEWrU9fM.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
e
,
A
as
o
,
n
as
s
,
G
as
l
,
r
as
a
,
c
as
i
,
w
as
t
,
i
as
n
,
o
as
c
,
d
,
e
as
r
,
t
as
u
,
v
as
h
,
f
as
p
,
m
,
k
as
_
,
H
as
f
,
I
as
w
,
l
as
g
}
from
"./index-B52OZNum.js"
;
import
{
A
as
b
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
C
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
k
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
v
=
k
({
data
:()
=>
({
isTest
:
!
1
,
mobile
:
""
,
code
:
""
,
imgCode
:
""
,
imgCodeSrc
:
""
,
verify_rand_key
:
""
,
isShowImgCode
:
!
1
,
password
:
""
,
password1
:
""
,
passwordShow
:
!
1
,
passwordShow1
:
!
1
,
showClearIcon
:
!
1
,
intl_code
:
"0086"
,
areaIndex
:
0
,
code_disabled
:
!
1
,
code_text
:
"获取验证码"
,
areaArray
:[{
name
:
"0086(中国大陆)"
,
value
:
"0086"
},{
name
:
"00852(中国香港)"
,
value
:
"00852"
},{
name
:
"00853(中国澳门)"
,
value
:
"00853"
},{
name
:
"00886(中国台湾)"
,
value
:
"00886"
},{
name
:
"0066(泰国)"
,
value
:
"0066"
},{
name
:
"0084(越南)"
,
value
:
"0084"
}]}),
onLoad
:
function
(){},
methods
:{
checkIsReg
(){
if
(
"0086"
==
this
.
intl_code
&&!
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
.
test
(
this
.
mobile
))
return
e
({
title
:
"请输正确的手机号"
,
icon
:
"none"
}),
!
1
;
this
.
mobile
&&
this
.
request
(
b
+
"/api/auth/checkExist"
,
"POST"
,{
intl_code
:
this
.
intl_code
,
mobile
:
this
.
mobile
},
!
1
).
then
((
o
=>
{
0
==
o
.
code
&&
1
==
o
.
data
.
exist
&&
e
({
title
:
"账号已存在,您可以直接登录或找回密码"
,
icon
:
"none"
})}))},
loginSuccess
(
e
){
o
(
"token"
,
e
.
data
.
token
),
o
(
"user_info"
,
JSON
.
stringify
(
e
.
data
.
user_info
))},
submit
(){
if
(
!
this
.
mobile
||
"0086"
==
this
.
intl_code
&&!
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
.
test
(
this
.
mobile
))
return
e
({
title
:
"请输正确的手机号"
,
icon
:
"none"
}),
!
1
;
if
(
!
this
.
code
)
return
void
e
({
title
:
"请输入验证码"
,
icon
:
"none"
});
if
(
!
this
.
password
||
this
.
password
.
length
<
6
)
return
void
e
({
title
:
"请输入密码,长度不小于6个字符"
,
icon
:
"none"
});
if
(
!
this
.
password1
||
this
.
password1
.
length
<
6
)
return
void
e
({
title
:
"请确认密码,长度不小于6个字符"
,
icon
:
"none"
});
if
(
this
.
password1
!=
this
.
password
)
return
void
e
({
title
:
"两次输入密码不一致"
,
icon
:
"none"
});
if
(
!
this
.
isTest
)
return
void
e
({
title
:
"请勾选爱智网服务协议和隐私政策"
,
icon
:
"none"
});
let
o
=
{
intl_code
:
this
.
intl_code
,
mobile
:
this
.
mobile
,
password
:
this
.
password
,
mobile_code
:
this
.
code
};
this
.
request
(
b
+
"/api/auth/register"
,
"POST"
,
o
,
!
0
).
then
((
o
=>
{
0
==
o
.
code
?(
this
.
loginSuccess
(
o
),
s
({
url
:
"/pages/auth/regSuccess"
})):
e
({
title
:
o
.
msg
,
icon
:
"none"
})}))},
getImgCode
(){
this
.
request
(
b
+
"/api/verifyCode/getVerifyCode"
,
"GET"
,{
mobile
:
this
.
mobile
,
intl_code
:
this
.
intl_code
,
verify_code
:
this
.
imgCode
,
verify_rand_key
:
this
.
verify_rand_key
},
!
0
,
!
0
).
then
((
o
=>
{
0
==
o
.
code
?(
this
.
imgCodeSrc
=
o
.
data
.
captcha
,
this
.
verify_rand_key
=
o
.
data
.
rand_key
,
this
.
isShowImgCode
=!
0
):
e
({
title
:
o
.
msg
,
icon
:
"none"
})}))},
countdownChange
(){
if
(
!
this
.
code_disabled
){
if
(
!
this
.
mobile
||
"0086"
==
this
.
intl_code
&&!
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
.
test
(
this
.
mobile
))
return
e
({
title
:
"请输正确的手机号"
,
icon
:
"none"
}),
!
1
;
this
.
request
(
b
+
"/api/verifyCode/sendMobileVerifyCode"
,
"GET"
,{
mobile
:
this
.
mobile
,
intl_code
:
this
.
intl_code
,
verify_code
:
this
.
imgCode
,
verify_rand_key
:
this
.
verify_rand_key
},
!
0
,
!
0
).
then
((
o
=>
{
if
(
this
.
code_disabled
=!
1
,
this
.
code_text
=
"获取验证码"
,
0
===
o
.
code
){
l
({
duration
:
60
,
onTick
:
e
=>
{
this
.
code_disabled
=!
0
,
this
.
code_text
=
`重新发送
${
e
}
S`
},
onComplete
:()
=>
{
this
.
code_disabled
=!
1
,
this
.
code_text
=
"获取验证码"
}}).
start
()}
else
2
==
o
.
code
?(
o
.
data
.
sms_need_verify
&&
this
.
getImgCode
(),
e
({
title
:
o
.
msg
,
icon
:
"none"
})):(
this
.
code_disabled
=!
1
,
e
({
title
:
o
.
msg
,
icon
:
"none"
}))}))}},
bindPickerChange
:
function
(
e
,
o
){
this
.
areaIndex
=
e
.
detail
.
value
,
this
.
intl_code
=
this
.
areaArray
[
e
.
detail
.
value
].
value
,
console
.
log
(
this
.
intl_code
)},
clearInput
:
function
(
e
){
this
.
showClearIcon
=
this
.
mobile
.
length
>
0
},
clearIcon
:
function
(){
this
.
mobile
=
""
,
this
.
showClearIcon
=!
1
}},
components
:{
barX
:
C
}},[[
"render"
,
function
(
e
,
o
,
s
,
l
,
b
,
C
){
const
k
=
a
(
"barX"
),
v
=
m
,
y
=
n
,
x
=
_
,
S
=
f
,
I
=
w
,
V
=
g
;
return
c
(),
i
(
y
,{
class
:
"regPage"
},{
default
:
t
((()
=>
[
d
(
k
),
d
(
y
,{
class
:
"close-box"
},{
default
:
t
((()
=>
[
d
(
v
,{
class
:
"icon iconfont icon-close2"
,
onClick
:
e
.
$goBack
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
d
(
x
,{
src
:
"/assets/logored-U6i9TuW5.png"
,
class
:
"logos"
}),
d
(
y
,{
class
:
"cons"
},{
default
:
t
((()
=>
[
d
(
y
,{
class
:
"input-box row verCenter"
},{
default
:
t
((()
=>
[
d
(
v
,{
class
:
"icon iconfont icon-mobile ics"
}),
d
(
S
,{
onChange
:
o
[
0
]
||
(
o
[
0
]
=
e
=>
C
.
bindPickerChange
(
e
,
1
)),
value
:
b
.
areaIndex
,
range
:
b
.
areaArray
,
"range-key"
:
"name"
},{
default
:
t
((()
=>
[
d
(
y
,{
class
:
"areabox-box row verCenter"
},{
default
:
t
((()
=>
[
d
(
v
,{
class
:
"areabox-but"
},{
default
:
t
((()
=>
[
r
(
u
(
b
.
areaArray
[
b
.
areaIndex
].
value
),
1
)])),
_
:
1
}),
d
(
v
,{
class
:
h
([
"icon"
,
"iconfont"
,
"icon-arrowxia"
])})])),
_
:
1
})])),
_
:
1
},
8
,[
"value"
,
"range"
]),
d
(
I
,{
type
:
"text"
,
modelValue
:
b
.
mobile
,
"onUpdate:modelValue"
:
o
[
1
]
||
(
o
[
1
]
=
e
=>
b
.
mobile
=
e
),
onBlur
:
C
.
checkIsReg
,
onInput
:
C
.
clearInput
,
placeholder
:
"请输入手机号"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
,
"onBlur"
,
"onInput"
]),
b
.
showClearIcon
?(
c
(),
i
(
v
,{
key
:
0
,
class
:
"icon iconfont icon-searchclose"
,
onClick
:
o
[
2
]
||
(
o
[
2
]
=
e
=>
C
.
clearIcon
())})):
p
(
""
,
!
0
)])),
_
:
1
}),
b
.
isShowImgCode
?(
c
(),
i
(
y
,{
key
:
0
,
class
:
"input-box row verCenter bothSide"
},{
default
:
t
((()
=>
[
d
(
I
,{
type
:
"text"
,
modelValue
:
b
.
imgCode
,
"onUpdate:modelValue"
:
o
[
3
]
||
(
o
[
3
]
=
e
=>
b
.
imgCode
=
e
),
placeholder
:
"请输入图片验证码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
]),
d
(
y
,{
class
:
"img-code"
},{
default
:
t
((()
=>
[
d
(
x
,{
src
:
b
.
imgCodeSrc
,
onClick
:
C
.
getImgCode
},
null
,
8
,[
"src"
,
"onClick"
])])),
_
:
1
})])),
_
:
1
})):
p
(
""
,
!
0
),
d
(
y
,{
class
:
"input-box row verCenter bothSide"
},{
default
:
t
((()
=>
[
d
(
y
,{
class
:
"row verCenter"
},{
default
:
t
((()
=>
[
d
(
v
,{
class
:
"icon iconfont icon-code ics"
}),
d
(
I
,{
type
:
"text"
,
modelValue
:
b
.
code
,
"onUpdate:modelValue"
:
o
[
4
]
||
(
o
[
4
]
=
e
=>
b
.
code
=
e
),
placeholder
:
"请输入验证码"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
d
(
y
,{
class
:
h
([
"code-btn"
,{
dis
:
b
.
code_disabled
}]),
onClick
:
C
.
countdownChange
},{
default
:
t
((()
=>
[
r
(
u
(
b
.
code_text
),
1
)])),
_
:
1
},
8
,[
"class"
,
"onClick"
])])),
_
:
1
}),
d
(
y
,{
class
:
"input-box row verCenter bothSide"
},{
default
:
t
((()
=>
[
d
(
y
,{
class
:
"row verCenter"
},{
default
:
t
((()
=>
[
d
(
v
,{
class
:
"icon iconfont icon-password ics"
}),
b
.
passwordShow
?(
c
(),
i
(
I
,{
key
:
0
,
type
:
"text"
,
modelValue
:
b
.
password
,
"onUpdate:modelValue"
:
o
[
5
]
||
(
o
[
5
]
=
e
=>
b
.
password
=
e
),
placeholder
:
"请设置登录密码(6-20个字符)"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])):(
c
(),
i
(
I
,{
key
:
1
,
type
:
"password"
,
modelValue
:
b
.
password
,
"onUpdate:modelValue"
:
o
[
6
]
||
(
o
[
6
]
=
e
=>
b
.
password
=
e
),
placeholder
:
"请设置登录密码(6-20个字符)"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
]))])),
_
:
1
}),
d
(
v
,{
class
:
h
([
"icon iconfont icon-see2"
,{
"icon-see1"
:
!
b
.
passwordShow
}]),
onClick
:
o
[
7
]
||
(
o
[
7
]
=
e
=>
b
.
passwordShow
=!
b
.
passwordShow
)},
null
,
8
,[
"class"
])])),
_
:
1
}),
d
(
y
,{
class
:
"input-box row verCenter bothSide"
},{
default
:
t
((()
=>
[
d
(
y
,{
class
:
"row verCenter"
},{
default
:
t
((()
=>
[
d
(
v
,{
class
:
"icon iconfont icon-password ics"
}),
b
.
passwordShow1
?(
c
(),
i
(
I
,{
key
:
0
,
type
:
"text"
,
modelValue
:
b
.
password1
,
"onUpdate:modelValue"
:
o
[
8
]
||
(
o
[
8
]
=
e
=>
b
.
password1
=
e
),
placeholder
:
"确认登录密码(6-20个字符)"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])):(
c
(),
i
(
I
,{
key
:
1
,
type
:
"password"
,
modelValue
:
b
.
password1
,
"onUpdate:modelValue"
:
o
[
9
]
||
(
o
[
9
]
=
e
=>
b
.
password1
=
e
),
placeholder
:
"确认登录密码(6-20个字符)"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
]))])),
_
:
1
}),
d
(
v
,{
class
:
h
([
"icon iconfont icon-see2"
,{
"icon-see1"
:
!
b
.
passwordShow1
}]),
onClick
:
o
[
10
]
||
(
o
[
10
]
=
e
=>
b
.
passwordShow1
=!
b
.
passwordShow1
)},
null
,
8
,[
"class"
])])),
_
:
1
}),
d
(
y
,{
class
:
"rule row verCenter"
},{
default
:
t
((()
=>
[
d
(
v
,{
class
:
h
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
b
.
isTest
}]),
onClick
:
o
[
11
]
||
(
o
[
11
]
=
e
=>
b
.
isTest
=!
b
.
isTest
)},
null
,
8
,[
"class"
]),
d
(
v
,{
onClick
:
o
[
12
]
||
(
o
[
12
]
=
e
=>
b
.
isTest
=!
b
.
isTest
)},{
default
:
t
((()
=>
[
r
(
"我已阅读并同意"
)])),
_
:
1
}),
d
(
V
,{
url
:
"/pages/auth/rule?id=1"
,
class
:
"link"
},{
default
:
t
((()
=>
[
r
(
"《爱智网站服务协议》"
)])),
_
:
1
}),
d
(
v
,
null
,{
default
:
t
((()
=>
[
r
(
"及"
)])),
_
:
1
}),
d
(
V
,{
url
:
"/pages/auth/rule?id=2"
,
class
:
"link"
},{
default
:
t
((()
=>
[
r
(
"《爱智隐私政策》"
)])),
_
:
1
})])),
_
:
1
}),
d
(
y
,{
class
:
"reg-btn"
,
onClick
:
C
.
submit
},{
default
:
t
((()
=>
[
r
(
"注册"
)])),
_
:
1
},
8
,[
"onClick"
]),
d
(
y
,{
class
:
"self"
},{
default
:
t
((()
=>
[
r
(
"爱智不会在任何地方泄露您的信息"
)])),
_
:
1
}),
d
(
y
,{
class
:
"go-login"
},{
default
:
t
((()
=>
[
d
(
V
,{
url
:
"/pages/auth/login"
},{
default
:
t
((()
=>
[
r
(
"已有账号,去登录"
),
d
(
v
,{
class
:
"icon iconfont icon-arrow2"
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-43de710c"
]]);
export
{
v
as
default
};
unpackage/dist/build/web/assets/pages-auth-regSuccess.BHm9lcsA.js
0 → 100644
View file @
6eb3aa03
import
{
r
as
s
,
c
as
a
,
w
as
o
,
i
as
c
,
o
as
e
,
d
as
n
,
e
as
l
,
m
as
t
,
l
as
d
}
from
"./index-B52OZNum.js"
;
import
{
b
as
i
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
r
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
u
=
r
({
data
:()
=>
({}),
onLoad
:
function
(){},
methods
:{},
components
:{
barX
:
i
}},[[
"render"
,
function
(
i
,
r
,
u
,
f
,
_
,
m
){
const
p
=
s
(
"barX"
),
b
=
t
,
x
=
c
,
g
=
d
;
return
e
(),
a
(
x
,{
class
:
"regSuccessPage"
},{
default
:
o
((()
=>
[
n
(
p
),
n
(
x
,{
class
:
"close-box"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"icon iconfont icon-close2"
,
onClick
:
i
.
$goBack
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
n
(
x
,{
class
:
"cons"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"icon iconfont icon-success"
}),
n
(
x
,
null
,{
default
:
o
((()
=>
[
l
(
"恭喜您注册成为iEdge爱智会员"
)])),
_
:
1
}),
n
(
b
,
null
,{
default
:
o
((()
=>
[
l
(
"现在可以进行订购、报价、询价等操作"
)])),
_
:
1
})])),
_
:
1
}),
n
(
x
,{
class
:
"bottom"
},{
default
:
o
((()
=>
[
n
(
g
,{
url
:
"/pages/index/index"
,
class
:
"btn"
},{
default
:
o
((()
=>
[
l
(
"进入首页"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-fd95c2c2"
]]);
export
{
u
as
default
};
unpackage/dist/build/web/assets/pages-auth-rule.BNJssEbp.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
t
,
r
as
a
,
c
as
e
,
w
as
n
,
i
as
s
,
o
,
d
as
r
,
e
as
i
,
t
as
c
,
m
as
l
}
from
"./index-B52OZNum.js"
;
import
{
A
as
d
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
u
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
p
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
f
=
p
({
data
:()
=>
({
id
:
1
,
content
:
""
}),
onLoad
:
function
(
t
){
this
.
id
=
t
.
id
,
this
.
getData
()},
methods
:{
getData
(){
this
.
request
(
d
+
"/api/xcx/newsPage"
,
"GET"
,{
type
:
this
.
id
},
!
0
).
then
((
a
=>
{
0
==
a
.
code
?
this
.
content
=
a
.
data
.
content
:
t
({
title
:
a
.
msg
,
icon
:
"error"
})}))}},
components
:{
barX
:
u
}},[[
"render"
,
function
(
t
,
d
,
u
,
p
,
f
,
m
){
const
h
=
a
(
"barX"
),
_
=
l
,
g
=
s
;
return
o
(),
e
(
g
,{
class
:
"rulePage"
},{
default
:
n
((()
=>
[
r
(
h
),
r
(
g
,{
class
:
"header row verCenter"
},{
default
:
n
((()
=>
[
r
(
_
,{
class
:
"icon iconfont icon-arrowleft"
,
onClick
:
t
.
$goBack
},
null
,
8
,[
"onClick"
]),
r
(
g
,
null
,{
default
:
n
((()
=>
[
i
(
c
(
1
==
f
.
id
?
"爱智网站服务协议"
:
"爱智隐私政策"
),
1
)])),
_
:
1
})])),
_
:
1
}),
r
(
g
,{
class
:
"content"
,
innerHTML
:
f
.
content
},
null
,
8
,[
"innerHTML"
])])),
_
:
1
})}],[
"__scopeId"
,
"data-v-27140733"
]]);
export
{
f
as
default
};
unpackage/dist/build/web/assets/pages-car-confirmOrder.jzh-Un9r.js
0 → 100644
View file @
6eb3aa03
import
{
g
as
e
,
b
as
s
,
A
as
i
,
n
as
o
,
r
as
t
,
x
as
a
,
c
as
d
,
w
as
r
,
i
as
n
,
o
as
l
,
d
as
c
,
e
as
_
,
t
as
u
,
f
,
h
as
p
,
j
as
h
,
F
as
m
,
m
as
v
,
l
as
g
,
I
,
v
as
y
,
k
}
from
"./index-B52OZNum.js"
;
import
{
r
as
b
,
_
as
w
}
from
"./uni-popup.B33pbe0T.js"
;
import
{
A
as
C
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
x
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
q
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
S
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
L
=
S
({
data
:()
=>
({
confirmOrderBackUrl
:
e
(
"confirmOrderBackUrl"
)
||
""
,
carList
:[],
coupon_list
:[],
coupon_id
:
""
,
address_id
:
""
,
addressInfo
:
""
,
invoice_id
:
""
,
invoice_id_org
:
""
,
invoiceInfo
:
""
,
priceInfo
:
""
,
order_remark
:
""
,
isCompany
:
!
(
!
e
(
"user_info"
)
||!
JSON
.
parse
(
e
(
"user_info"
)).
company_name
)}),
onLoad
(
e
){
this
.
address_id
=
e
.
address_id
||
""
,
this
.
invoice_id
=
e
.
invoice_id
||
""
,
this
.
invoice_id_org
=
e
.
invoice_id
||
""
,
this
.
coupon_id
=
e
.
coupon_id
||
""
},
onShow
(){
this
.
getCarList
(),
this
.
getAddress
(),
this
.
getinvoice
(),
this
.
calPrice
()},
methods
:{
chooseYhq
(
e
){
this
.
coupon_id
=
e
},
chooseUp
(){
0
!=
this
.
coupon_list
&&
this
.
openPop
()},
confirmYhq
(){
this
.
calPrice
(),
this
.
closePop
()},
getAddress
(){
this
.
request
(
C
+
"/api/address/getList"
,
"GET"
,{},
!
0
).
then
((
e
=>
{
if
(
0
==
e
.
code
){
let
s
=
e
.
data
.
list
||
[];
s
.
forEach
((
e
=>
{
this
.
address_id
?
e
.
address_id
==
this
.
address_id
&&
(
this
.
addressInfo
=
e
):
1
==
e
.
is_default
&&
(
this
.
addressInfo
=
e
)})),
s
.
length
>
0
&&!
this
.
addressInfo
&&
(
this
.
addressInfo
=
s
[
0
]),
this
.
addressInfo
&&
(
this
.
address_id
=
this
.
addressInfo
.
address_id
)}}))},
getinvoice
(){
if
(
"460053411"
==
this
.
invoice_id_org
)
return
this
.
invoice_id
=
""
,
void
(
this
.
invoiceInfo
=
""
);
this
.
request
(
C
+
"/api/invoice/getList"
,
"GET"
,{},
!
0
).
then
((
e
=>
{
if
(
0
==
e
.
code
){
let
s
=
e
.
data
.
list
||
[];
s
.
forEach
((
e
=>
{
this
.
invoice_id
?
e
.
tax_id
==
this
.
invoice_id
&&
(
this
.
invoiceInfo
=
e
):
1
==
e
.
is_default
&&
(
this
.
invoiceInfo
=
e
)})),
s
.
length
>
0
&&!
this
.
invoiceInfo
&&
(
this
.
invoiceInfo
=
s
[
0
]),
this
.
invoiceInfo
&&
(
this
.
invoice_id
=
this
.
invoiceInfo
.
tax_id
)}}))},
calPrice
(){
this
.
request
(
C
+
"/api/order/calPrice"
,
"post"
,{
sku_ids
:
e
(
"car_ids"
),
user_coupon_id
:
this
.
coupon_id
||
""
},
!
0
,
!
0
).
then
((
e
=>
{
0
==
e
.
code
&&
(
this
.
priceInfo
=
e
.
data
)}))},
getCarList
(){
this
.
carList
=
[],
this
.
request
(
C
+
"/api/cart/getCartGoodsInfo"
,
"GET"
,{
sku_ids
:
e
(
"car_ids"
)},
!
0
,
!
0
).
then
((
e
=>
{
if
(
0
==
e
.
code
){
e
.
data
.
goods_list
.
forEach
((
e
=>
{
e
.
delivery_list
.
forEach
((
e
=>
{
this
.
carList
.
push
(
e
)}))})),
this
.
coupon_list
=
e
.
data
.
coupon_list
||
[]}}))},
openPop
(){
this
.
$refs
.
popupyhq
.
open
(
"bottom"
)},
closePop
(){
this
.
$refs
.
popupyhq
.
close
(
"bottom"
)},
createOrder
(){
if
(
!
this
.
address_id
)
return
void
s
({
title
:
"请选择地址"
,
icon
:
"none"
});
let
e
=
[];
this
.
carList
.
forEach
((
s
=>
{
e
.
push
({
sku_id
:
s
.
goods_id
,
num
:
s
.
goods_num
})}));
let
t
=
{
order_shipping_type
:
1
,
zy_delivery_type
:
"3"
,
order_remark
:
this
.
order_remark
,
address_id
:
this
.
address_id
,
invoice_id
:
this
.
invoice_id
||
""
,
user_coupon_id
:
this
.
coupon_id
||
""
,
goods_json
:
JSON
.
stringify
(
e
)};
this
.
request
(
C
+
"/api/order/add"
,
"post"
,
t
,
!
0
).
then
((
e
=>
{
0
==
e
.
code
?(
s
({
title
:
"提交订单成功"
,
icon
:
"success"
}),
setTimeout
((()
=>
{
i
(
"car_ids"
,
""
),
o
({
url
:
"/pages/user/orderList?status=1"
})}),
2
e3
)):
s
({
title
:
e
.
msg
,
icon
:
"nonde"
})}))}},
components
:{
barX
:
x
,
titleNav
:
q
}},[[
"render"
,
function
(
e
,
s
,
i
,
o
,
C
,
x
){
const
q
=
t
(
"barX"
),
S
=
t
(
"titleNav"
),
L
=
v
,
O
=
n
,
P
=
g
,
j
=
k
,
E
=
I
,
U
=
b
(
a
(
"uni-popup"
),
w
);
return
l
(),
d
(
O
,{
class
:
"confirmOrderPage"
},{
default
:
r
((()
=>
[
c
(
q
),
c
(
S
,{
title
:
"确认订单"
,
backurl
:
C
.
confirmOrderBackUrl
},
null
,
8
,[
"backurl"
]),
c
(
O
,{
class
:
"cons"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"top-box"
},{
default
:
r
((()
=>
[
C
.
addressInfo
?(
l
(),
d
(
P
,{
key
:
0
,
url
:
"/pages/user/address?form=confirmOrder&address_id="
+
C
.
address_id
+
"&coupon_id="
+
C
.
coupon_id
+
"&invoice_id="
+
C
.
invoice_id
,
class
:
"address-box"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"addbx row bothSide verCenter"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"l"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"ad row verCenter"
},{
default
:
r
((()
=>
[
c
(
L
,{
class
:
"csq"
},{
default
:
r
((()
=>
[
_
(
u
(
"中国"
!=
C
.
addressInfo
.
nation_cn
?
C
.
addressInfo
.
nation_cn
:
""
)
+
" "
+
u
(
C
.
addressInfo
.
province_val
)
+
" "
+
u
(
C
.
addressInfo
.
city_val
)
+
" "
+
u
(
C
.
addressInfo
.
district_val
),
1
)])),
_
:
1
}),
1
==
C
.
addressInfo
.
is_default
?(
l
(),
d
(
L
,{
key
:
0
,
class
:
"mr"
},{
default
:
r
((()
=>
[
_
(
"默认"
)])),
_
:
1
})):
f
(
""
,
!
0
)])),
_
:
1
}),
c
(
O
,{
class
:
"ad1"
},{
default
:
r
((()
=>
[
_
(
u
(
C
.
addressInfo
.
detail_address
),
1
)])),
_
:
1
}),
c
(
O
,{
class
:
"cnnk"
},{
default
:
r
((()
=>
[
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
u
(
C
.
addressInfo
.
consignee
),
1
)])),
_
:
1
}),
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
u
(
C
.
addressInfo
.
mobile
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
c
(
L
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})])),
_
:
1
},
8
,[
"url"
])):(
l
(),
d
(
P
,{
key
:
1
,
url
:
"/pages/user/address?form=confirmOrder&address_id="
+
C
.
address_id
+
"&coupon_id="
+
C
.
coupon_id
+
"&invoice_id="
+
C
.
invoice_id
,
class
:
"address-box"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"noadd row verCenter bothSide"
},{
default
:
r
((()
=>
[
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
"收货地址"
)])),
_
:
1
}),
c
(
O
,
null
,{
default
:
r
((()
=>
[
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
"暂无地址信息去设置"
)])),
_
:
1
}),
c
(
L
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
},
8
,[
"url"
]))])),
_
:
1
}),
C
.
carList
.
length
>
0
?(
l
(),
d
(
O
,{
key
:
0
,
class
:
"goods-box"
},{
default
:
r
((()
=>
[(
l
(
!
0
),
p
(
m
,
null
,
h
(
C
.
carList
,((
e
,
s
)
=>
(
l
(),
d
(
O
,{
class
:
"group row"
,
key
:
s
},{
default
:
r
((()
=>
[
c
(
j
,{
src
:
e
.
goods_images
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
},
null
,
8
,[
"src"
]),
c
(
O
,{
class
:
"infos"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"ganme elep2"
},{
default
:
r
((()
=>
[
_
(
u
(
e
.
sku_name
),
1
)])),
_
:
2
},
1024
),
c
(
O
,{
class
:
"hqs row verCenter bothSide"
},{
default
:
r
((()
=>
[
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
"货期:"
+
u
(
e
.
delivery_time
),
1
)])),
_
:
2
},
1024
),
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
"x"
+
u
(
e
.
goods_num
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
c
(
O
,{
class
:
"price"
},{
default
:
r
((()
=>
[
_
(
"¥"
+
u
(
C
.
isCompany
&&
e
.
company_price
||
e
.
origin_price
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)))),
128
)),
c
(
O
,{
class
:
"coupo-box row bothSide verCenter"
,
onClick
:
s
[
0
]
||
(
s
[
0
]
=
e
=>
x
.
chooseUp
())},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"l"
},{
default
:
r
((()
=>
[
_
(
"选择您的优惠券"
)])),
_
:
1
}),
c
(
O
,{
class
:
"r row verCenter"
},{
default
:
r
((()
=>
[
0
==
C
.
coupon_list
.
length
?(
l
(),
d
(
O
,{
key
:
0
,
class
:
"not"
},{
default
:
r
((()
=>
[
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
"未识别到可用优惠券"
)])),
_
:
1
}),
c
(
L
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})):(
l
(),
d
(
O
,{
key
:
1
},{
default
:
r
((()
=>
[
C
.
priceInfo
?(
l
(),
d
(
L
,{
key
:
0
},{
default
:
r
((()
=>
[
_
(
"-"
+
u
(
C
.
priceInfo
.
currency_sign
)
+
u
(
C
.
priceInfo
.
discount_fee
||
"0.00"
),
1
)])),
_
:
1
})):
f
(
""
,
!
0
),
c
(
L
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
}))])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):
f
(
""
,
!
0
),
c
(
O
,{
class
:
"cginfo"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"tit"
},{
default
:
r
((()
=>
[
_
(
"采购信息确认"
)])),
_
:
1
}),
c
(
P
,{
url
:
"/pages/user/invoice?form=confirmOrder&invoice_id="
+
C
.
invoice_id
+
"&coupon_id="
+
C
.
coupon_id
+
"&address_id="
+
C
.
address_id
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"row bothSide item"
},{
default
:
r
((()
=>
[
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
"发票信息"
)])),
_
:
1
}),
c
(
O
,
null
,{
default
:
r
((()
=>
[
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
u
(
"460053411"
==
C
.
invoice_id_org
?
"不开发票"
:
C
.
invoiceInfo
?
C
.
invoiceInfo
.
tax_title
:
"暂无发票去设置"
),
1
)])),
_
:
1
}),
c
(
L
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
},
8
,[
"url"
]),
c
(
O
,{
class
:
"pur-sn-box"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"tit"
},{
default
:
r
((()
=>
[
_
(
"订单备注"
)])),
_
:
1
}),
c
(
E
,{
type
:
"text"
,
class
:
"pur-sn-val"
,
modelValue
:
C
.
order_remark
,
"onUpdate:modelValue"
:
s
[
1
]
||
(
s
[
1
]
=
e
=>
C
.
order_remark
=
e
),
"placeholder-class"
:
"placeholder-class"
,
placeholder
:
"请输入订单备注"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})])),
_
:
1
}),
C
.
priceInfo
?(
l
(),
d
(
O
,{
key
:
1
,
class
:
"price-infos"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"top"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"item row bothSide"
},{
default
:
r
((()
=>
[
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
"商品含税总额"
)])),
_
:
1
}),
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
u
(
C
.
priceInfo
.
currency_sign
)
+
u
(
C
.
priceInfo
.
total_amount
),
1
)])),
_
:
1
})])),
_
:
1
}),
c
(
O
,{
class
:
"item row bothSide"
},{
default
:
r
((()
=>
[
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
"运费(未税)"
)])),
_
:
1
}),
Number
(
C
.
priceInfo
.
discovery_fee
)
<=
0
?(
l
(),
d
(
L
,{
key
:
0
},{
default
:
r
((()
=>
[
_
(
"已免运费"
)])),
_
:
1
})):(
l
(),
d
(
L
,{
key
:
1
},{
default
:
r
((()
=>
[
_
(
u
(
C
.
priceInfo
.
currency_sign
)
+
u
(
C
.
priceInfo
.
discovery_fee
||
"0.00"
),
1
)])),
_
:
1
}))])),
_
:
1
})])),
_
:
1
}),
c
(
O
,{
class
:
"bottom"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"item row bothSide"
},{
default
:
r
((()
=>
[
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
"优惠金额"
)])),
_
:
1
}),
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
u
(
C
.
priceInfo
.
currency_sign
)
+
u
(
C
.
priceInfo
.
discount_fee
||
"0.00"
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):
f
(
""
,
!
0
)])),
_
:
1
}),
c
(
O
,{
class
:
"foot row verCenter bothSide"
},{
default
:
r
((()
=>
[
C
.
priceInfo
?(
l
(),
d
(
O
,{
key
:
0
,
class
:
"l row verCenter"
},{
default
:
r
((()
=>
[
_
(
"含税总额:"
),
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
u
(
C
.
priceInfo
.
currency_sign
)
+
u
(
C
.
priceInfo
.
pay_amount
),
1
)])),
_
:
1
})])),
_
:
1
})):
f
(
""
,
!
0
),
c
(
O
,{
class
:
"submit-btn"
,
onClick
:
x
.
createOrder
},{
default
:
r
((()
=>
[
_
(
"提交订单"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
}),
c
(
U
,{
ref
:
"popupyhq"
,
type
:
"bottom"
,
"safe-area"
:
!
1
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"pop-yhq"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"trt"
},{
default
:
r
((()
=>
[
c
(
L
,{
class
:
"icon iconfont icon-caca"
,
onClick
:
x
.
closePop
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
c
(
O
,{
class
:
"ttit elep"
},{
default
:
r
((()
=>
[
_
(
"优惠券"
)])),
_
:
1
}),
C
.
coupon_list
.
length
>
0
?(
l
(),
d
(
O
,{
key
:
0
,
class
:
"cons"
},{
default
:
r
((()
=>
[(
l
(
!
0
),
p
(
m
,
null
,
h
(
C
.
coupon_list
,((
e
,
s
)
=>
(
l
(),
d
(
O
,{
class
:
y
([
"group row bothSide verCenter"
,{
act
:
C
.
coupon_id
==
e
.
coupon_id
}]),
key
:
s
,
onClick
:
s
=>
x
.
chooseYhq
(
e
.
coupon_id
)},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"l row"
},{
default
:
r
((()
=>
[
c
(
O
,{
class
:
"price"
},{
default
:
r
((()
=>
[
2
==
e
.
coupon_type
?(
l
(),
d
(
L
,{
key
:
0
},{
default
:
r
((()
=>
[
_
(
"折"
),
c
(
L
,{
class
:
"textp"
},{
default
:
r
((()
=>
[
_
(
u
(
10
*
e
.
sale_amount
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)):(
l
(),
d
(
L
,{
key
:
1
},{
default
:
r
((()
=>
[
_
(
u
(
e
.
currency_sign
),
1
),
c
(
L
,{
class
:
"textp"
},{
default
:
r
((()
=>
[
_
(
u
(
e
.
sale_amount
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)),
c
(
O
,{
class
:
"tips"
},{
default
:
r
((()
=>
[
_
(
u
(
e
.
require_amount
<=
.
01
?
"无门槛优惠券"
:
e
.
coupon_name
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
c
(
O
,{
class
:
"yhld"
},{
default
:
r
((()
=>
[
c
(
O
,
null
,{
default
:
r
((()
=>
[
_
(
"商品优惠券"
)])),
_
:
1
}),
c
(
L
,
null
,{
default
:
r
((()
=>
[
_
(
u
(
e
.
start_time
)
+
" - "
+
u
(
e
.
end_time
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"class"
,
"onClick"
])))),
128
))])),
_
:
1
})):
f
(
""
,
!
0
),
c
(
O
,{
class
:
"add-btn"
,
onClick
:
x
.
confirmYhq
},{
default
:
r
((()
=>
[
_
(
"确认"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
},
512
)])),
_
:
1
})}],[
"__scopeId"
,
"data-v-590ed507"
]]);
export
{
L
as
default
};
unpackage/dist/build/web/assets/pages-car-confirmQuote.BUX6yvqw.js
0 → 100644
View file @
6eb3aa03
import
{
g
as
e
,
A
as
s
,
n
as
t
,
b
as
a
,
r
as
o
,
x
as
i
,
c
as
l
,
w
as
n
,
i
as
c
,
o
as
r
,
d
as
u
,
e
as
d
,
t
as
_
,
h
as
p
,
j
as
f
,
F
as
h
,
f
as
m
,
v
as
y
,
I
as
g
,
m
as
k
,
l
as
I
,
k
as
b
}
from
"./index-B52OZNum.js"
;
import
{
r
as
C
,
_
as
w
}
from
"./uni-popup.B33pbe0T.js"
;
import
{
A
as
x
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
v
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
q
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
S
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
L
=
S
({
data
:()
=>
({
isTest
:
!
0
,
pdf_email
:
""
,
purchase_sn
:
""
,
userInfo
:
""
,
create_name
:
""
,
address_id
:
""
,
addressInfo
:
""
,
carList
:[],
coupon_list
:[],
coupon_id
:
""
,
priceInfo
:
""
,
company_name
:
""
,
isCompany
:
!
(
!
e
(
"user_info"
)
||!
JSON
.
parse
(
e
(
"user_info"
)).
company_name
)}),
onLoad
:
function
(
s
){
this
.
address_id
=
s
.
address_id
||
""
,
this
.
coupon_id
=
s
.
coupon_id
||
""
,
this
.
userInfo
=
JSON
.
parse
(
e
(
"user_info"
)),
this
.
create_name
=
this
.
userInfo
.
wx_nickname
||
this
.
userInfo
.
phone
||
this
.
userInfo
.
email
},
onShow
(){
this
.
getCarList
()},
methods
:{
chooseYhq
(
e
){
this
.
coupon_id
=
e
},
chooseUp
(){
0
!=
this
.
coupon_list
&&
this
.
openPop
()},
confirmYhq
(){
this
.
calPrice
(),
this
.
closePop
()},
calPrice
(){
let
e
=
[];
this
.
carList
.
forEach
((
s
=>
{
e
.
push
({
sku_id
:
s
.
goods_id
,
num
:
s
.
goods_num
})})),
this
.
request
(
x
+
"/api/order/calQuotePrice"
,
"post"
,{
sku_json
:
JSON
.
stringify
(
e
),
user_coupon_id
:
this
.
coupon_id
||
""
},
!
0
,
!
0
).
then
((
e
=>
{
0
==
e
.
code
&&
(
this
.
priceInfo
=
e
.
data
,
this
.
company_name
=
e
.
data
.
company_name
,
this
.
pdf_email
=
e
.
data
.
recent_quote_email
)}))},
getCarList
(){
this
.
carList
=
[],
this
.
request
(
x
+
"/api/cart/getCartGoodsInfo"
,
"GET"
,{
sku_ids
:
e
(
"car_ids"
)},
!
0
,
!
0
).
then
((
e
=>
{
if
(
0
==
e
.
code
){
e
.
data
.
goods_list
.
forEach
((
e
=>
{
e
.
delivery_list
.
forEach
((
e
=>
{
this
.
carList
.
push
(
e
)}))})),
this
.
coupon_list
=
e
.
data
.
coupon_list
||
[],
this
.
calPrice
()}}))},
getAddress
(){
this
.
request
(
x
+
"/api/address/getList"
,
"GET"
,{},
!
0
).
then
((
e
=>
{
if
(
0
==
e
.
code
){
let
s
=
e
.
data
.
list
||
[];
s
.
forEach
((
e
=>
{
this
.
address_id
?
e
.
address_id
==
this
.
address_id
&&
(
this
.
addressInfo
=
e
):
1
==
e
.
is_default
&&
(
this
.
addressInfo
=
e
)})),
s
.
length
>
0
&&!
this
.
addressInfo
&&
(
this
.
addressInfo
=
s
[
0
]),
this
.
addressInfo
&&
(
this
.
address_id
=
this
.
addressInfo
.
address_id
)}}))},
createQuote
(){
let
e
=
[];
this
.
carList
.
forEach
((
s
=>
{
e
.
push
({
sku_id
:
s
.
goods_id
,
num
:
s
.
goods_num
})}));
let
o
=
{
create_name
:
this
.
create_name
,
pdf_email
:
this
.
pdf_email
,
sku_json
:
JSON
.
stringify
(
e
),
user_coupon_id
:
this
.
coupon_id
,
address_id
:
this
.
address_id
,
purchase_sn
:
this
.
purchase_sn
,
company_name
:
this
.
company_name
};
this
.
request
(
x
+
"/api/xcx/confirmQuote"
,
"post"
,
o
,
!
0
).
then
((
e
=>
{
0
==
e
.
code
?(
s
(
"quoteInfo"
,
JSON
.
stringify
(
e
.
data
)),
t
({
url
:
"/pages/car/confirmQuoteSuccess"
})):
a
({
title
:
e
.
msg
,
icon
:
"nonde"
})}))},
openTipsx
(){
this
.
isTest
?
this
.
$refs
.
popuptips
.
open
(
"bottom"
):
a
({
title
:
"请勾选并确认交易条款"
,
icon
:
"none"
})},
closeTipsx
(){
this
.
$refs
.
popuptips
.
close
(
"bottom"
)},
openPop
(){
this
.
$refs
.
popupyhq
.
open
(
"bottom"
)},
closePop
(){
this
.
$refs
.
popupyhq
.
close
(
"bottom"
)}},
components
:{
barX
:
v
,
titleNav
:
q
}},[[
"render"
,
function
(
e
,
s
,
t
,
a
,
x
,
v
){
const
q
=
o
(
"barX"
),
S
=
o
(
"titleNav"
),
L
=
c
,
P
=
g
,
T
=
b
,
j
=
k
,
E
=
I
,
N
=
C
(
i
(
"uni-popup"
),
w
);
return
r
(),
l
(
L
,{
class
:
"confirmQuotePage"
},{
default
:
n
((()
=>
[
u
(
q
),
u
(
S
,{
title
:
"确认报价单"
}),
u
(
L
,{
class
:
"cons"
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"top-box"
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"tit"
},{
default
:
n
((()
=>
[
d
(
"询价人:"
+
_
(
x
.
create_name
),
1
)])),
_
:
1
}),
u
(
L
,{
class
:
"tit row verCenter"
},{
default
:
n
((()
=>
[
d
(
" 公司名称:"
),
u
(
P
,{
class
:
"uni-input"
,
modelValue
:
x
.
company_name
,
"onUpdate:modelValue"
:
s
[
0
]
||
(
s
[
0
]
=
e
=>
x
.
company_name
=
e
)},
null
,
8
,[
"modelValue"
])])),
_
:
1
})])),
_
:
1
}),
x
.
carList
.
length
>
0
?(
r
(),
l
(
L
,{
key
:
0
,
class
:
"goods-box"
},{
default
:
n
((()
=>
[(
r
(
!
0
),
p
(
h
,
null
,
f
(
x
.
carList
,((
e
,
s
)
=>
(
r
(),
l
(
L
,{
class
:
"group row"
,
key
:
s
},{
default
:
n
((()
=>
[
u
(
T
,{
src
:
e
.
goods_images
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
},
null
,
8
,[
"src"
]),
u
(
L
,{
class
:
"infos"
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"ganme elep2"
},{
default
:
n
((()
=>
[
d
(
_
(
e
.
sku_name
),
1
)])),
_
:
2
},
1024
),
u
(
L
,{
class
:
"hqs row verCenter bothSide"
},{
default
:
n
((()
=>
[
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
"货期:"
+
_
(
e
.
delivery_time
),
1
)])),
_
:
2
},
1024
),
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
"x"
+
_
(
e
.
goods_num
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
u
(
L
,{
class
:
"price"
},{
default
:
n
((()
=>
[
d
(
"¥"
+
_
(
x
.
isCompany
&&
e
.
company_price
||
e
.
origin_price
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)))),
128
)),
u
(
L
,{
class
:
"coupo-box row bothSide verCenter"
,
onClick
:
s
[
1
]
||
(
s
[
1
]
=
e
=>
v
.
chooseUp
())},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"l"
},{
default
:
n
((()
=>
[
d
(
"选择您的优惠券"
)])),
_
:
1
}),
u
(
L
,{
class
:
"r row verCenter"
},{
default
:
n
((()
=>
[
0
==
x
.
coupon_list
.
length
?(
r
(),
l
(
L
,{
key
:
0
,
class
:
"not"
},{
default
:
n
((()
=>
[
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
"未识别到可用优惠券"
)])),
_
:
1
}),
u
(
j
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})):(
r
(),
l
(
L
,{
key
:
1
},{
default
:
n
((()
=>
[
x
.
priceInfo
?(
r
(),
l
(
j
,{
key
:
0
},{
default
:
n
((()
=>
[
d
(
"-"
+
_
(
x
.
priceInfo
.
currency_sign
)
+
_
(
x
.
priceInfo
.
discount_fee
||
"0.00"
),
1
)])),
_
:
1
})):
m
(
""
,
!
0
),
u
(
j
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
}))])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):
m
(
""
,
!
0
),
x
.
priceInfo
?(
r
(),
l
(
L
,{
key
:
1
,
class
:
"price-infos"
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"top"
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"item row bothSide"
},{
default
:
n
((()
=>
[
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
"商品含税总额"
)])),
_
:
1
}),
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
_
(
x
.
priceInfo
.
currency_sign
)
+
_
(
x
.
priceInfo
.
all_amount
),
1
)])),
_
:
1
})])),
_
:
1
}),
u
(
L
,{
class
:
"item row bothSide"
},{
default
:
n
((()
=>
[
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
"运费(未税)"
)])),
_
:
1
}),
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
_
(
x
.
priceInfo
.
currency_sign
)
+
_
(
x
.
priceInfo
.
discovery_fee
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
u
(
L
,{
class
:
"bottom"
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"item row bothSide"
},{
default
:
n
((()
=>
[
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
"总金额(未税)"
)])),
_
:
1
}),
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
_
(
x
.
priceInfo
.
currency_sign
)
+
_
(
x
.
priceInfo
.
total_amount
),
1
)])),
_
:
1
})])),
_
:
1
}),
u
(
L
,{
class
:
"item row bothSide"
},{
default
:
n
((()
=>
[
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
"总税额"
)])),
_
:
1
}),
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
_
(
x
.
priceInfo
.
currency_sign
)
+
_
(
x
.
priceInfo
.
tax_rate_amount
||
0
),
1
)])),
_
:
1
})])),
_
:
1
}),
u
(
L
,{
class
:
"item row bothSide"
},{
default
:
n
((()
=>
[
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
"应付金额(含税)"
)])),
_
:
1
}),
u
(
j
,{
class
:
"price-pay"
},{
default
:
n
((()
=>
[
d
(
_
(
x
.
priceInfo
.
currency_sign
)
+
_
(
x
.
priceInfo
.
pay_amount
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):
m
(
""
,
!
0
),
u
(
L
,{
class
:
"rules row verCenter"
},{
default
:
n
((()
=>
[
u
(
j
,{
class
:
y
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
x
.
isTest
}]),
onClick
:
s
[
2
]
||
(
s
[
2
]
=
e
=>
x
.
isTest
=!
x
.
isTest
)},
null
,
8
,[
"class"
]),
u
(
E
,{
url
:
"/pages/car/confirmRule"
,
class
:
"tklink"
},{
default
:
n
((()
=>
[
d
(
"查看交易条款"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
u
(
L
,{
class
:
"foot row verCenter bothSide"
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"l row verCenter"
},{
default
:
n
((()
=>
[
d
(
"含税总额:"
),
x
.
priceInfo
?(
r
(),
l
(
j
,{
key
:
0
},{
default
:
n
((()
=>
[
d
(
_
(
x
.
priceInfo
.
currency_sign
)
+
_
(
x
.
priceInfo
.
pay_amount
),
1
)])),
_
:
1
})):
m
(
""
,
!
0
)])),
_
:
1
}),
u
(
L
,{
class
:
"submit-btn"
,
onClick
:
v
.
openTipsx
},{
default
:
n
((()
=>
[
d
(
"完成报价"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
}),
u
(
N
,{
ref
:
"popuptips"
,
type
:
"bottom"
,
"safe-area"
:
!
1
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"pop-tips"
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"trt"
},{
default
:
n
((()
=>
[
u
(
j
,{
class
:
"icon iconfont icon-caca"
,
onClick
:
v
.
closeTipsx
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
u
(
L
,{
class
:
"ttit elep"
},{
default
:
n
((()
=>
[
d
(
"温馨提示"
)])),
_
:
1
}),
u
(
L
,{
class
:
"tipjk"
},{
default
:
n
((()
=>
[
d
(
"请确认邮箱地址,爱智将以PDF格式报价单"
)])),
_
:
1
}),
u
(
L
,{
class
:
"cons"
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"label"
},{
default
:
n
((()
=>
[
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
"*"
)])),
_
:
1
}),
d
(
"邮箱"
)])),
_
:
1
}),
u
(
P
,{
type
:
"text"
,
class
:
"inputv"
,
modelValue
:
x
.
pdf_email
,
"onUpdate:modelValue"
:
s
[
3
]
||
(
s
[
3
]
=
e
=>
x
.
pdf_email
=
e
),
placeholder
:
"请输入邮箱"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
u
(
L
,{
class
:
"sure"
,
onClick
:
v
.
createQuote
},{
default
:
n
((()
=>
[
d
(
"确认"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
},
512
),
u
(
N
,{
ref
:
"popupyhq"
,
type
:
"bottom"
,
"safe-area"
:
!
1
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"pop-yhq"
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"trt"
},{
default
:
n
((()
=>
[
u
(
j
,{
class
:
"icon iconfont icon-caca"
,
onClick
:
v
.
closePop
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
u
(
L
,{
class
:
"ttit elep"
},{
default
:
n
((()
=>
[
d
(
"优惠券"
)])),
_
:
1
}),
x
.
coupon_list
.
length
>
0
?(
r
(),
l
(
L
,{
key
:
0
,
class
:
"cons"
},{
default
:
n
((()
=>
[(
r
(
!
0
),
p
(
h
,
null
,
f
(
x
.
coupon_list
,((
e
,
s
)
=>
(
r
(),
l
(
L
,{
class
:
y
([
"group row bothSide verCenter"
,{
act
:
x
.
coupon_id
==
e
.
coupon_id
}]),
key
:
s
,
onClick
:
s
=>
v
.
chooseYhq
(
e
.
coupon_id
)},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"l row"
},{
default
:
n
((()
=>
[
u
(
L
,{
class
:
"price"
},{
default
:
n
((()
=>
[
2
==
e
.
coupon_type
?(
r
(),
l
(
j
,{
key
:
0
},{
default
:
n
((()
=>
[
d
(
"折"
),
u
(
j
,{
class
:
"textp"
},{
default
:
n
((()
=>
[
d
(
_
(
10
*
e
.
sale_amount
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)):(
r
(),
l
(
j
,{
key
:
1
},{
default
:
n
((()
=>
[
d
(
_
(
e
.
currency_sign
),
1
),
u
(
j
,{
class
:
"textp"
},{
default
:
n
((()
=>
[
d
(
_
(
e
.
sale_amount
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)),
u
(
L
,{
class
:
"tips"
},{
default
:
n
((()
=>
[
d
(
_
(
e
.
require_amount
<=
.
01
?
"无门槛优惠券"
:
e
.
coupon_name
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
u
(
L
,{
class
:
"yhld"
},{
default
:
n
((()
=>
[
u
(
L
,
null
,{
default
:
n
((()
=>
[
d
(
"商品优惠券"
)])),
_
:
1
}),
u
(
j
,
null
,{
default
:
n
((()
=>
[
d
(
_
(
e
.
start_time
)
+
" - "
+
_
(
e
.
end_time
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"class"
,
"onClick"
])))),
128
))])),
_
:
1
})):
m
(
""
,
!
0
),
u
(
L
,{
class
:
"add-btn"
,
onClick
:
v
.
confirmYhq
},{
default
:
n
((()
=>
[
d
(
"确认"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
},
512
)])),
_
:
1
})}],[
"__scopeId"
,
"data-v-8cac18c1"
]]);
export
{
L
as
default
};
unpackage/dist/build/web/assets/pages-car-confirmQuoteSuccess.CxvpqH6S.js
0 → 100644
View file @
6eb3aa03
import
{
g
as
e
,
n
as
a
,
r
as
o
,
c
as
t
,
w
as
s
,
i
as
l
,
o
as
n
,
d
as
u
,
e
as
c
,
t
as
f
,
f
as
r
,
m
as
d
}
from
"./index-B52OZNum.js"
;
import
{
b
as
_
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
i
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
m
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
p
=
m
({
data
:()
=>
({
quoteInfo
:
""
}),
onLoad
:
function
(){
this
.
quoteInfo
=
JSON
.
parse
(
e
(
"quoteInfo"
))},
methods
:{
goOrder
(){
a
({
url
:
"/pages/car/confirmOrder"
})}},
components
:{
barX
:
_
,
titleNav
:
i
}},[[
"render"
,
function
(
e
,
a
,
_
,
i
,
m
,
p
){
const
I
=
o
(
"barX"
),
b
=
o
(
"titleNav"
),
q
=
d
,
g
=
l
;
return
n
(),
t
(
g
,{
class
:
"confirmQuoteSuccessPage"
},{
default
:
s
((()
=>
[
u
(
I
),
u
(
b
,{
title
:
"确认报价单"
}),
m
.
quoteInfo
?(
n
(),
t
(
g
,{
key
:
0
,
class
:
"cons"
},{
default
:
s
((()
=>
[
u
(
g
,{
class
:
"status-box"
},{
default
:
s
((()
=>
[
m
.
quoteInfo
.
mail_send_res
?(
n
(),
t
(
q
,{
key
:
0
,
class
:
"icon iconfont icon-goucc"
})):(
n
(),
t
(
q
,{
key
:
1
,
class
:
"icon iconfont icon-cccz"
})),
u
(
g
,
null
,{
default
:
s
((()
=>
[
c
(
f
(
m
.
quoteInfo
.
mail_send_res
?
"邮件已发送"
:
"邮箱发送不成功!"
),
1
)])),
_
:
1
})])),
_
:
1
}),
u
(
g
,{
class
:
"sec"
},{
default
:
s
((()
=>
[
u
(
g
,{
class
:
"row bothSide"
},{
default
:
s
((()
=>
[
u
(
q
,
null
,{
default
:
s
((()
=>
[
c
(
"询价单号"
)])),
_
:
1
}),
u
(
q
,
null
,{
default
:
s
((()
=>
[
c
(
f
(
m
.
quoteInfo
.
quote_sn
),
1
)])),
_
:
1
})])),
_
:
1
}),
u
(
g
,{
class
:
"row bothSide"
},{
default
:
s
((()
=>
[
u
(
q
,
null
,{
default
:
s
((()
=>
[
c
(
"客户采购单号"
)])),
_
:
1
}),
u
(
q
,
null
,{
default
:
s
((()
=>
[
c
(
f
(
m
.
quoteInfo
.
purchase_sn
),
1
)])),
_
:
1
})])),
_
:
1
}),
u
(
g
,{
class
:
"row bothSide"
},{
default
:
s
((()
=>
[
u
(
q
,
null
,{
default
:
s
((()
=>
[
c
(
"询价人"
)])),
_
:
1
}),
u
(
q
,
null
,{
default
:
s
((()
=>
[
c
(
f
(
m
.
quoteInfo
.
create_name
),
1
)])),
_
:
1
})])),
_
:
1
}),
u
(
g
,{
class
:
"row bothSide"
},{
default
:
s
((()
=>
[
u
(
q
,
null
,{
default
:
s
((()
=>
[
c
(
"询价时间"
)])),
_
:
1
}),
u
(
q
,
null
,{
default
:
s
((()
=>
[
c
(
f
(
m
.
quoteInfo
.
create_time
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
u
(
g
,{
class
:
"btns row rowCenter"
},{
default
:
s
((()
=>
[
u
(
g
,{
class
:
"back"
,
onClick
:
e
.
$goBack
},{
default
:
s
((()
=>
[
c
(
"返回"
)])),
_
:
1
},
8
,[
"onClick"
]),
u
(
g
,{
class
:
"dg"
,
onClick
:
p
.
goOrder
},{
default
:
s
((()
=>
[
c
(
"立即订购"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
})):
r
(
""
,
!
0
)])),
_
:
1
})}],[
"__scopeId"
,
"data-v-336fda8d"
]]);
export
{
p
as
default
};
unpackage/dist/build/web/assets/pages-car-confirmRule.Bq9cAirx.js
0 → 100644
View file @
6eb3aa03
import
{
r
as
a
,
c
as
t
,
w
as
l
,
i
as
e
,
o
as
s
,
d
as
o
,
e
as
n
}
from
"./index-B52OZNum.js"
;
import
{
b
as
u
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
r
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
d
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
c
=
d
({
data
:()
=>
({}),
onLoad
:
function
(){},
methods
:{},
components
:{
barX
:
u
,
titleNav
:
r
}},[[
"render"
,
function
(
u
,
r
,
d
,
c
,
f
,
i
){
const
_
=
a
(
"barX"
),
m
=
a
(
"titleNav"
),
p
=
e
;
return
s
(),
t
(
p
,{
class
:
"carRulePage"
},{
default
:
l
((()
=>
[
o
(
_
),
o
(
m
,{
title
:
"交易条款"
}),
o
(
p
,{
class
:
"cons"
},{
default
:
l
((()
=>
[
n
(
" 我们根据法律法规的要求,遵循合法、正当、必要和诚信的原则,仅收集实现产品功能所必要的个人信息。这些信息包括: 您在使用我们服务时主动提供的信息 "
),
o
(
p
,
null
,{
default
:
l
((()
=>
[
n
(
"·您在注册或使用我们的产品或服务时,主动填写或上传的昵称、手机号码、头像、图片等。"
)])),
_
:
1
}),
o
(
p
,
null
,{
default
:
l
((()
=>
[
n
(
"·您通过我们的客服或参加我们举办的活动时所提交的信息。"
)])),
_
:
1
}),
o
(
p
,
null
,{
default
:
l
((()
=>
[
n
(
" ·我们一些特定的服务可能需要您提供特定的个人信息来实现相关功能。若您选择不提供该类信息,将不会影响您使用产品或服务中的其他功能。 我们在您使用服务时获取的信息 "
)])),
_
:
1
}),
o
(
p
,
null
,{
default
:
l
((()
=>
[
n
(
" ·日志信息 例如,当您使用我们的服务时,为了维护产品与服务的安全稳定运行,我们可能会收集设备信息、软件信息、服务日志信息等相关信息。 "
)])),
_
:
1
}),
o
(
p
,
null
,{
default
:
l
((()
=>
[
n
(
" ·位置信息 例如,当您使用与位置有关的服务时,我们可能会记录您设备所在的位置信息,以便为您提供相关服务。 "
)])),
_
:
1
})])),
_
:
1
}),
o
(
p
,{
class
:
"foot"
},{
default
:
l
((()
=>
[
o
(
p
,{
class
:
"nava"
,
onClick
:
u
.
$goBack
},{
default
:
l
((()
=>
[
n
(
"我已阅读"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-0666cb60"
]]);
export
{
c
as
default
};
unpackage/dist/build/web/assets/pages-car-list.Hd6B9LRB.js
0 → 100644
View file @
6eb3aa03
import
{
o
as
t
,
c
as
e
,
w
as
s
,
d
as
i
,
K
as
o
,
L
as
a
,
e
as
l
,
i
as
c
,
g
as
n
,
b
as
d
,
y
as
r
,
A
as
u
,
n
as
h
,
r
as
f
,
x
as
_
,
t
as
m
,
f
as
p
,
h
as
g
,
j
as
k
,
F
as
b
,
v
as
L
,
p
as
C
,
m
as
w
,
l
as
x
,
k
as
v
,
I
as
y
}
from
"./index-B52OZNum.js"
;
import
{
r
as
N
,
_
as
S
}
from
"./uni-popup.B33pbe0T.js"
;
import
{
A
as
E
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
j
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
q
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
import
{
b
as
I
}
from
"./bottom_nav.Epavr9vk.js"
;
const
T
=
q
({
data
:()
=>
({
timeout
:
""
,
dataInited
:
!
1
,
allcheck
:
!
0
,
isEdit
:
!
1
,
carList
:[],
totalprice
:
0
,
checkcount
:
0
,
isLogin
:
!!
n
(
"token"
),
list_name
:
""
,
qDList
:[]}),
onLoad
:
function
(){
this
.
isLogin
&&
this
.
getData
(),
this
.
getQdList
()},
methods
:{
getData
(
t
){
t
||
(
this
.
carList
=
[]),
this
.
request
(
E
+
"/api/cart/getCartList"
,
"GET"
,{},
!
t
).
then
((
t
=>
{
if
(
this
.
dataInited
=!
0
,
this
.
allcheck
=!
0
,
this
.
carList
=
[],
0
==
t
.
code
){
let
e
=
t
.
data
.
delivery_time_data
||
[],
s
=
[];
Object
.
keys
(
e
).
forEach
((
t
=>
{
e
[
t
].
forEach
((
t
=>
{
s
.
push
(
t
)}))})),
s
.
forEach
((
t
=>
{
t
.
checked
=!
0
,
t
.
goods_num
=
Number
(
t
.
goods_num
),
this
.
carList
.
push
(
t
)})),
this
.
listUi
()}}))},
listUi
(){
this
.
totalprice
=
0
,
this
.
checkcount
=
0
,
this
.
carList
.
forEach
((
t
=>
{
t
.
checked
&&
(
this
.
checkcount
++
,
this
.
totalprice
+=
Number
((
10
==
t
.
goods_info
.
ac_type
?
t
.
goods_info
.
ladder_price
[
0
].
price_ac
:
t
.
price
)
*
t
.
goods_num
))})),
this
.
totalprice
=
this
.
totalprice
.
toFixed
(
2
)},
changeNum
(
t
,
e
){
clearTimeout
(
this
.
timeout
),
this
.
timeout
=
setTimeout
((()
=>
{
let
e
=
this
.
carList
.
filter
((
e
=>
e
.
sku_id
==
t
))[
0
],
s
=
Number
(
e
.
goods_info
.
multiple
||
e
.
goods_info
.
mpl
),
i
=
Number
(
e
.
goods_info
.
stock
),
o
=
Number
(
e
.
goods_info
.
moq
),
a
=
Number
(
e
.
goods_num
);
a
=
Math
.
ceil
(
a
/
s
)
*
s
,
e
.
goods_num
=
a
,
a
<
o
&&
(
e
.
goods_num
=
o
),
a
>
i
&&
(
e
.
goods_num
=
Math
.
floor
(
i
/
s
)
*
s
),
this
.
request
(
E
+
"/api/cart/updateCartNum"
,
"POST"
,{
sku_id
:
e
.
sku_id
,
goods_num
:
e
.
goods_num
},
!
1
).
then
((
t
=>
{
this
.
listUi
()}))}),
800
)},
addjNum
(
t
,
e
){
let
s
=
this
.
carList
.
filter
((
e
=>
e
.
sku_id
==
t
))[
0
],
i
=
Number
(
s
.
goods_info
.
multiple
||
s
.
goods_info
.
mpl
),
o
=
Number
(
s
.
goods_info
.
stock
),
a
=
Number
(
s
.
goods_info
.
moq
),
l
=
Number
(
s
.
goods_num
);
if
(
1
==
e
){
var
c
=
l
-
i
;
c
<
a
?(
s
.
goods_num
=
a
,
d
({
title
:
"数量不能小于起订量"
,
duration
:
2
e3
,
icon
:
"none"
})):
s
.
goods_num
=
c
}
else
{
var
n
=
l
+
i
;
n
>
o
?(
d
({
title
:
"数量不能大于库存"
,
duration
:
2
e3
,
icon
:
"none"
}),
s
.
goods_num
=
Math
.
floor
(
o
/
i
)
*
i
):
s
.
goods_num
=
n
}
this
.
request
(
E
+
"/api/cart/updateCartNum"
,
"POST"
,{
sku_id
:
s
.
sku_id
,
goods_num
:
s
.
goods_num
},
!
1
).
then
((
t
=>
{
this
.
listUi
()}))},
checkboxchange
(
t
){
if
(
"460053411"
==
t
)
this
.
allcheck
=!
this
.
allcheck
,
this
.
carList
.
forEach
((
t
=>
{
t
.
checked
=
this
.
allcheck
}));
else
{
var
e
=
1
;
this
.
carList
.
forEach
((
s
=>
{
s
.
sku_id
==
t
&&
(
s
.
checked
=!
s
.
checked
),
s
.
checked
||
(
e
=
0
)})),
this
.
allcheck
=!!
e
}
return
this
.
listUi
(),
!
1
},
dels
(
t
){
let
e
=
this
.
carList
.
filter
((
t
=>
t
.
checked
)).
map
((
t
=>
t
.
sku_id
)).
join
(
","
);
t
&&
(
e
=
String
(
t
)),
e
?
r
({
title
:
"删除"
,
content
:
"是否删除当前"
+
(
t
?
"选中"
:
""
)
+
"商品?"
,
success
:
t
=>
{
t
.
confirm
&&
this
.
request
(
E
+
"/api/cart/delCart"
,
"POST"
,{
sku_id
:
e
},
!
0
).
then
((
t
=>
{
if
(
0
==
t
.
code
){
d
({
title
:
"删除成功"
,
duration
:
2
e3
,
icon
:
"none"
}),
this
.
$refs
.
bottomNav
.
updateCar
();
let
t
=
this
.
carList
.
filter
((
t
=>-
1
==
e
.
indexOf
(
t
.
sku_id
)));
this
.
carList
=
JSON
.
parse
(
JSON
.
stringify
(
t
)),
this
.
listUi
()}
else
d
({
title
:
t
.
msg
,
duration
:
2
e3
,
icon
:
"none"
})}))}}):
d
({
title
:
"请选择至少一个商品"
,
duration
:
2
e3
,
icon
:
"none"
})},
confirm
(
t
){
let
e
=
this
.
carList
.
filter
((
t
=>
t
.
checked
)).
map
((
t
=>
t
.
sku_id
)).
join
(
","
);
e
?(
u
(
"car_ids"
,
e
),
u
(
"confirmOrderBackUrl"
,
"/pages/car/list"
),
h
({
url
:
1
==
t
?
"/pages/car/confirmOrder"
:
"/pages/car/confirmQuote"
})):
d
({
title
:
"请选择至少一个商品"
,
duration
:
2
e3
,
icon
:
"none"
})},
getQdList
(){
n
(
"token"
)
&&
this
.
request
(
E
+
"/api/xcx/getGoodsList"
,
"get"
,{
page
:
1
,
limit
:
100
},
!
1
).
then
((
t
=>
{
if
(
this
.
qDList
=
[],
0
==
t
.
code
){
let
e
=
t
.
data
.
list
||
[];
e
.
forEach
((
t
=>
{
t
.
checked
=!
1
})),
this
.
qDList
=
e
}}))},
chooseQd
(
t
){
this
.
qDList
.
forEach
((
e
=>
{
e
.
list_id
==
t
?
e
.
checked
=!
e
.
checked
:
e
.
checked
=!
1
}))},
createList
(){
this
.
list_name
?
this
.
request
(
E
+
"/api/xcx/createGoodsList"
,
"post"
,{
list_name
:
this
.
list_name
},
!
0
).
then
((
t
=>
{
0
==
t
.
code
?(
d
({
title
:
"创建清单成功"
,
icon
:
"success"
}),
this
.
closeNewList
(),
this
.
getQdList
()):
d
({
title
:
t
.
msg
,
icon
:
"nonde"
})})):
d
({
title
:
"请输入清单名称"
,
icon
:
"none"
})},
addQdList
(){
let
t
=
this
.
qDList
.
filter
((
t
=>
t
.
checked
));
if
(
0
==
t
.
length
)
return
void
d
({
title
:
"请选择一条清单"
,
icon
:
"none"
});
let
e
=
this
.
carList
.
filter
((
t
=>
t
.
checked
)),
s
=
[];
e
.
forEach
((
t
=>
{
s
.
push
({
sku_id
:
t
.
sku_id
,
qty
:
t
.
goods_num
})})),
this
.
request
(
E
+
"/api/xcx/addGoodsList"
,
"post"
,{
list_id
:
t
[
0
].
list_id
,
sku_json
:
JSON
.
stringify
(
s
)},
!
0
,
!
0
).
then
((
t
=>
{
0
==
t
.
code
?(
d
({
title
:
"加入清单成功"
,
icon
:
"success"
}),
this
.
closeAddList
(),
this
.
getQdList
()):
d
({
title
:
t
.
msg
,
icon
:
"nonde"
})}))},
openAddList
(){
0
!=
this
.
carList
.
filter
((
t
=>
t
.
checked
)).
length
?
n
(
"token"
)?
this
.
$refs
.
popupaddlist
.
open
(
"bottom"
):
h
({
url
:
"/pages/auth/login?referer="
+
encodeURIComponent
(
`/pages/goods/detail?goods_id=
${
this
.
goods_id_page
}
`
)}):
d
({
title
:
"请至少选择一条数据"
,
icon
:
"none"
})},
closeAddList
(){
this
.
$refs
.
popupaddlist
.
close
(
"bottom"
)},
openNewList
(){
this
.
closeAddList
(),
this
.
$refs
.
popupnewlist
.
open
(
"bottom"
)},
closeNewList
(){
this
.
$refs
.
popupnewlist
.
close
(
"bottom"
)}},
components
:{
barX
:
j
,
bottomNavFixed
:
I
,
delSlideLeft
:
q
({
components
:{},
props
:{
data_transit
:{
type
:
Object
,
default
:()
=>
({})},
item
:{
type
:
Object
,
default
:()
=>
({})}},
computed
:{},
data
:()
=>
({
item_show
:{},
delBtnWidth
:
60
,
startX
:
""
}),
created
:
function
(){
this
.
item
.
hasOwnProperty
(
"txtStyle"
)
||
this
.
$set
(
this
.
item
,
"txtStyle"
,
""
),
this
.
item_show
=
this
.
item
},
watch
:{
item
(
t
){
this
.
item_show
=
t
}},
methods
:{
delItem
:
function
(
t
){
let
e
=
{
item
:
t
,
data
:
this
.
data_transit
};
this
.
$emit
(
"delItem"
,
e
)},
touchS
:
function
(
t
){
1
==
t
.
touches
.
length
&&
(
this
.
startX
=
t
.
touches
[
0
].
clientX
)},
touchM
:
function
(
t
){
let
e
=
this
;
if
(
1
==
t
.
touches
.
length
){
var
s
=
t
.
touches
[
0
].
clientX
,
i
=
this
.
startX
-
s
,
o
=
this
.
delBtnWidth
,
a
=
""
;
0
==
i
||
i
<
0
?
a
=
"left:0px"
:
i
>
0
&&
(
a
=
"left:-"
+
i
+
"px"
,
i
>=
o
&&
(
a
=
"left:-"
+
o
+
"px"
)),
e
.
item_show
.
txtStyle
=
a
}},
touchE
:
function
(
t
){
let
e
=
this
;
if
(
1
==
t
.
changedTouches
.
length
){
var
s
=
t
.
changedTouches
[
0
].
clientX
,
i
=
this
.
startX
-
s
,
o
=
this
.
delBtnWidth
,
a
=
i
>
o
/
2
?
"left:-"
+
o
+
"px"
:
"left:0px"
;
e
.
item_show
.
txtStyle
=
a
}}}},[[
"render"
,
function
(
n
,
d
,
r
,
u
,
h
,
f
){
const
_
=
c
;
return
t
(),
e
(
_
,{
class
:
"box-slideLeft"
},{
default
:
s
((()
=>
[
i
(
_
,{
class
:
"touch-item touch-slideLeft"
,
onTouchstart
:
f
.
touchS
,
onTouchmove
:
f
.
touchM
,
onTouchend
:
f
.
touchE
,
style
:
a
(
h
.
item_show
.
txtStyle
)},{
default
:
s
((()
=>
[
o
(
n
.
$slots
,
"default"
,{},
void
0
,
!
0
)])),
_
:
3
},
8
,[
"onTouchstart"
,
"onTouchmove"
,
"onTouchend"
,
"style"
]),
i
(
_
,{
class
:
"touch-item del-box-touch-slideLeft cf-shuCenter"
,
onClick
:
d
[
0
]
||
(
d
[
0
]
=
t
=>
f
.
delItem
(
h
.
item_show
))},{
default
:
s
((()
=>
[
l
(
" 删除 "
)])),
_
:
1
})])),
_
:
3
})}],[
"__scopeId"
,
"data-v-0c3bb47f"
]])}},[[
"render"
,
function
(
o
,
a
,
n
,
d
,
r
,
u
){
const
h
=
f
(
"barX"
),
E
=
w
,
j
=
c
,
q
=
x
,
I
=
v
,
T
=
y
,
D
=
f
(
"delSlideLeft"
),
O
=
f
(
"bottomNavFixed"
),
U
=
N
(
_
(
"uni-popup"
),
S
);
return
t
(),
e
(
j
,{
class
:
"carListPage"
},{
default
:
s
((()
=>
[
i
(
h
),
i
(
j
,{
class
:
"car-head row bothSide"
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"l row verCenter"
},{
default
:
s
((()
=>
[
i
(
E
,{
class
:
"icon iconfont icon-arrowleft"
,
onClick
:
o
.
$goBack
},
null
,
8
,[
"onClick"
]),
i
(
j
,
null
,{
default
:
s
((()
=>
[
l
(
"购物车("
+
m
(
r
.
carList
.
length
)
+
")"
,
1
)])),
_
:
1
})])),
_
:
1
}),
r
.
isEdit
?
p
(
""
,
!
0
):(
t
(),
e
(
j
,{
key
:
0
,
class
:
"r row verCenter"
},{
default
:
s
((()
=>
[
i
(
E
,{
onClick
:
a
[
0
]
||
(
a
[
0
]
=
t
=>
r
.
isEdit
=!
r
.
isEdit
)},{
default
:
s
((()
=>
[
l
(
"管理"
)])),
_
:
1
}),
i
(
q
,{
url
:
o
.
$globalData
.
KFQQ
,
class
:
"it"
},{
default
:
s
((()
=>
[
l
(
"客服"
)])),
_
:
1
},
8
,[
"url"
])])),
_
:
1
})),
r
.
isEdit
?(
t
(),
e
(
j
,{
key
:
1
,
class
:
"r row verCenter"
},{
default
:
s
((()
=>
[
i
(
E
,{
onClick
:
a
[
1
]
||
(
a
[
1
]
=
t
=>
r
.
isEdit
=!
r
.
isEdit
)},{
default
:
s
((()
=>
[
l
(
"退出管理"
)])),
_
:
1
})])),
_
:
1
})):
p
(
""
,
!
0
)])),
_
:
1
}),
i
(
j
,{
class
:
"cons"
},{
default
:
s
((()
=>
[
!
r
.
isLogin
||
r
.
dataInited
&&
0
==
r
.
carList
.
length
?(
t
(),
e
(
j
,{
key
:
0
,
class
:
"no-data"
},{
default
:
s
((()
=>
[
i
(
I
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/19/7fdab385a25db187f8e57370875f7546.png"
}),
i
(
E
,
null
,{
default
:
s
((()
=>
[
l
(
"暂无商品信息!"
)])),
_
:
1
})])),
_
:
1
})):
p
(
""
,
!
0
),
r
.
isLogin
?
p
(
""
,
!
0
):(
t
(),
e
(
j
,{
key
:
1
,
class
:
"nodl"
},{
default
:
s
((()
=>
[
i
(
q
,{
url
:
`/pages/auth/login?referer=
${
encodeURIComponent
(
"/pages/car/list"
)}
`
,
class
:
"login-btn"
},{
default
:
s
((()
=>
[
l
(
"登录 / 注册"
)])),
_
:
1
},
8
,[
"url"
])])),
_
:
1
})),
r
.
carList
.
length
>
0
?(
t
(),
e
(
j
,{
key
:
2
,
class
:
"list-box"
},{
default
:
s
((()
=>
[(
t
(
!
0
),
g
(
b
,
null
,
k
(
r
.
carList
,((
o
,
a
)
=>
(
t
(),
e
(
D
,{
key
:
a
,
onDelItem
:
t
=>
u
.
dels
(
o
.
sku_id
)},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"item-group row verCenter bothSide"
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"l row verCenter"
},{
default
:
s
((()
=>
[
i
(
E
,{
class
:
L
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
o
.
checked
}]),
onClick
:
C
((
t
=>
u
.
checkboxchange
(
o
.
sku_id
)),[
"stop"
])},
null
,
8
,[
"class"
,
"onClick"
]),
i
(
q
,{
url
:
"/pages/goods/detail?goods_id="
+
o
.
sku_id
},{
default
:
s
((()
=>
[
i
(
I
,{
src
:
o
.
goods_info
.
goods_images
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
},
null
,
8
,[
"src"
])])),
_
:
2
},
1032
,[
"url"
])])),
_
:
2
},
1024
),
i
(
j
,{
class
:
"r"
},{
default
:
s
((()
=>
[
i
(
q
,{
url
:
"/pages/goods/detail?goods_id="
+
o
.
sku_id
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"elep skun"
},{
default
:
s
((()
=>
[
l
(
m
(
o
.
goods_info
.
sku_name
),
1
)])),
_
:
2
},
1024
),
i
(
j
,{
class
:
"txt"
},{
default
:
s
((()
=>
[
l
(
"型号:"
+
m
(
o
.
goods_info
.
goods_name
),
1
)])),
_
:
2
},
1024
),
i
(
j
,{
class
:
"txt"
},{
default
:
s
((()
=>
[
l
(
"品牌:"
+
m
(
o
.
goods_info
.
brand_name
),
1
)])),
_
:
2
},
1024
),
i
(
j
,{
class
:
"txt"
},{
default
:
s
((()
=>
[
l
(
"货期:"
+
m
(
o
.
goods_info
.
cn_delivery_time
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"url"
]),
i
(
j
,{
class
:
"row verCenter bothSide"
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"price"
},{
default
:
s
((()
=>
[
l
(
"¥"
+
m
(
10
==
o
.
goods_info
.
ac_type
?
o
.
goods_info
.
ladder_price
[
0
].
price_ac
:
o
.
price
),
1
)])),
_
:
2
},
1024
),
i
(
j
,{
class
:
"hbha row verCenter bothSide"
},{
default
:
s
((()
=>
[
i
(
E
,{
class
:
"icon iconfont icon-jian"
,
onClick
:
t
=>
u
.
addjNum
(
o
.
sku_id
,
1
)},
null
,
8
,[
"onClick"
]),
i
(
T
,{
type
:
"number"
,
modelValue
:
o
.
goods_num
,
"onUpdate:modelValue"
:
t
=>
o
.
goods_num
=
t
,
onInput
:
t
=>
u
.
changeNum
(
o
.
sku_id
)},
null
,
8
,[
"modelValue"
,
"onUpdate:modelValue"
,
"onInput"
]),
i
(
E
,{
class
:
"icon iconfont icon-jia"
,
onClick
:
t
=>
u
.
addjNum
(
o
.
sku_id
,
2
)},
null
,
8
,[
"onClick"
])])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"onDelItem"
])))),
128
))])),
_
:
1
})):
p
(
""
,
!
0
)])),
_
:
1
}),
r
.
isEdit
?(
t
(),
e
(
j
,{
key
:
0
,
class
:
"car-foot row verCenter bothSide"
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"checked-box row verCenter"
,
onClick
:
a
[
2
]
||
(
a
[
2
]
=
C
((
t
=>
u
.
checkboxchange
(
460053411
)),[
"stop"
]))},{
default
:
s
((()
=>
[
i
(
E
,{
class
:
L
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
r
.
allcheck
}])},
null
,
8
,[
"class"
]),
l
(
"全选"
)])),
_
:
1
}),
i
(
j
,{
class
:
"del-btn"
,
onClick
:
a
[
3
]
||
(
a
[
3
]
=
t
=>
u
.
dels
())},{
default
:
s
((()
=>
[
l
(
"删除"
)])),
_
:
1
})])),
_
:
1
})):
p
(
""
,
!
0
),
r
.
isEdit
?
p
(
""
,
!
0
):(
t
(),
e
(
j
,{
key
:
1
,
class
:
"car-foot car-foot1"
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"t row bothSide"
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"checked-box row verCenter"
,
onClick
:
a
[
4
]
||
(
a
[
4
]
=
C
((
t
=>
u
.
checkboxchange
(
460053411
)),[
"stop"
]))},{
default
:
s
((()
=>
[
i
(
E
,{
class
:
L
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
r
.
allcheck
}])},
null
,
8
,[
"class"
]),
l
(
"全选"
)])),
_
:
1
}),
i
(
j
,{
class
:
"pbx"
},{
default
:
s
((()
=>
[
l
(
"已选"
+
m
(
r
.
checkcount
)
+
"件,含税总额:"
,
1
),
i
(
E
,{
class
:
"price"
},{
default
:
s
((()
=>
[
l
(
"¥ "
+
m
(
r
.
totalprice
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
i
(
j
,{
class
:
"b row bothSide"
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"bj-btn"
,
onClick
:
a
[
5
]
||
(
a
[
5
]
=
t
=>
u
.
confirm
(
2
))},{
default
:
s
((()
=>
[
l
(
"生成报价单"
)])),
_
:
1
}),
i
(
j
,{
class
:
"row verCenter bothSide"
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"add-car"
,
onClick
:
u
.
openAddList
},{
default
:
s
((()
=>
[
l
(
"加入清单"
)])),
_
:
1
},
8
,[
"onClick"
]),
i
(
j
,{
class
:
"add-confirm"
,
onClick
:
a
[
6
]
||
(
a
[
6
]
=
t
=>
u
.
confirm
(
1
))},{
default
:
s
((()
=>
[
l
(
"去订购"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})),
i
(
O
,{
actval
:
"3"
,
ref
:
"bottomNav"
},
null
,
512
),
i
(
U
,{
ref
:
"popupaddlist"
,
type
:
"bottom"
,
"safe-area"
:
!
1
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"pop-add-list"
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"trt"
},{
default
:
s
((()
=>
[
i
(
E
,{
class
:
"icon iconfont icon-caca"
,
onClick
:
u
.
closeAddList
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
i
(
j
,{
class
:
"ttit elep"
},{
default
:
s
((()
=>
[
l
(
"加入清单"
)])),
_
:
1
}),
i
(
j
,{
class
:
"new-box row"
},{
default
:
s
((()
=>
[
i
(
E
,{
class
:
"new-btn row verCenter"
,
onClick
:
u
.
openNewList
},{
default
:
s
((()
=>
[
l
(
"新建清单"
),
i
(
E
,{
class
:
"icon iconfont icon-jia"
})])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
}),
r
.
qDList
.
length
>
0
?(
t
(),
e
(
j
,{
key
:
0
,
class
:
"list-box"
},{
default
:
s
((()
=>
[(
t
(
!
0
),
g
(
b
,
null
,
k
(
r
.
qDList
,((
o
,
a
)
=>
(
t
(),
e
(
j
,{
class
:
"item row verCenter bothSide"
,
key
:
a
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"row verCenter"
,
onClick
:
C
((
t
=>
u
.
chooseQd
(
o
.
list_id
)),[
"stop"
])},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"l"
},{
default
:
s
((()
=>
[
i
(
E
,{
class
:
L
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
o
.
checked
}])},
null
,
8
,[
"class"
])])),
_
:
2
},
1024
),
i
(
j
,{
class
:
"c"
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"elep"
},{
default
:
s
((()
=>
[
l
(
m
(
o
.
list_name
),
1
)])),
_
:
2
},
1024
),
i
(
E
,
null
,{
default
:
s
((()
=>
[
l
(
m
(
o
.
create_time
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"onClick"
]),
i
(
q
,{
url
:
"/pages/user/qdDetail?list_id="
+
o
.
list_id
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"r row verCenter"
},{
default
:
s
((()
=>
[
i
(
E
,
null
,{
default
:
s
((()
=>
[
l
(
m
(
o
.
list_goods_count
)
+
"个商品"
,
1
)])),
_
:
2
},
1024
),
i
(
E
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"url"
])])),
_
:
2
},
1024
)))),
128
))])),
_
:
1
})):(
t
(),
e
(
j
,{
key
:
1
,
class
:
"list-box"
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"no-data"
},{
default
:
s
((()
=>
[
i
(
I
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/24/07a360187d83ccf80a9d835029c27446.png"
}),
i
(
j
,
null
,{
default
:
s
((()
=>
[
l
(
"暂无清单数据,先去创建清单吧!"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})),
i
(
j
,{
class
:
"add-list"
,
onClick
:
a
[
7
]
||
(
a
[
7
]
=
t
=>
u
.
addQdList
())},{
default
:
s
((()
=>
[
l
(
"确认"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
},
512
),
i
(
U
,{
ref
:
"popupnewlist"
,
type
:
"bottom"
,
"safe-area"
:
!
1
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"pop-new-list"
},{
default
:
s
((()
=>
[
i
(
j
,{
class
:
"trt"
},{
default
:
s
((()
=>
[
i
(
E
,{
class
:
"icon iconfont icon-caca"
,
onClick
:
u
.
closeNewList
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
i
(
j
,{
class
:
"ttit elep"
},{
default
:
s
((()
=>
[
l
(
"新建清单"
)])),
_
:
1
}),
i
(
j
,{
class
:
"cons"
},{
default
:
s
((()
=>
[
i
(
T
,{
type
:
"text"
,
class
:
"inputv"
,
modelValue
:
r
.
list_name
,
"onUpdate:modelValue"
:
a
[
8
]
||
(
a
[
8
]
=
t
=>
r
.
list_name
=
t
),
placeholder
:
"请输入清单名称,若未输入则显示商品分类;"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
i
(
j
,{
class
:
"add-list"
,
onClick
:
a
[
9
]
||
(
a
[
9
]
=
t
=>
u
.
createList
())},{
default
:
s
((()
=>
[
l
(
"确认"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
},
512
)])),
_
:
1
})}],[
"__scopeId"
,
"data-v-d4b34d4b"
]]);
export
{
T
as
default
};
unpackage/dist/build/web/assets/pages-class-list.o2xu5DtJ.js
0 → 100644
View file @
6eb3aa03
import
{
n
as
s
,
b
as
t
,
r
as
a
,
x
as
e
,
c
as
i
,
w
as
l
,
i
as
o
,
o
as
c
,
d
as
r
,
v
as
n
,
e
as
h
,
h
as
d
,
j
as
g
,
F
as
u
,
f
as
p
,
t
as
f
,
m
as
_
,
k
}
from
"./index-B52OZNum.js"
;
import
{
r
as
m
,
_
as
b
}
from
"./uni-popup.B33pbe0T.js"
;
import
{
A
as
x
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
C
}
from
"./barx._hPkFqJr.js"
;
import
{
s
as
y
}
from
"./search_head.Bd-A-aAE.js"
;
import
{
o
as
w
}
from
"./one_item.Ch3BEFeS.js"
;
import
{
_
as
v
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
A
=
v
({
data
:()
=>
({
isHasAttr
:
!
1
,
isInit
:
!
1
,
class_id2
:
""
,
tabType
:
1
,
stocksort
:
!
1
,
pricesort
:
!
1
,
page_size
:
10
,
page
:
1
,
totals
:
0
,
isLoadEnd
:
!
1
,
aggs
:[],
list
:[]}),
async
onReachBottom
(){
this
.
isLoadEnd
||
this
.
getData
()},
onLoad
:
function
(
s
){
this
.
class_id2
=
s
.
class_id2
,
this
.
getData
()},
methods
:{
uiChage
(
s
){
this
.
aggs
.
forEach
((
t
=>
{
t
.
namex
==
s
&&
(
t
.
hideAll
=!
t
.
hideAll
)}))},
clearAttr
(){
this
.
aggs
.
forEach
((
s
=>
{
s
.
listx
.
forEach
((
s
=>
{
s
.
checked
=
0
}))})),
this
.
initGetData
()},
changeAttr
(
s
,
t
){
this
.
aggs
.
forEach
((
a
=>
{
s
==
a
.
namex
&&
a
.
listx
.
forEach
((
s
=>
{
t
==
s
.
attr_value_id
&&
(
s
.
checked
=
0
==
s
.
checked
?
"1"
:
"0"
)}))})),
this
.
initGetData
()},
getAttr
(){
let
s
=
{};
if
(
0
==
this
.
aggs
.
length
)
return
s
;
let
t
=
[],
a
=
[],
e
=
{};
return
this
.
aggs
.
forEach
((
s
=>
{
s
.
listx
.
forEach
((
s
=>
{
if
(
1
==
s
.
checked
)
switch
(
s
.
attr_id
){
case
"class_id1"
:
a
.
push
(
s
.
attr_value_id
);
break
;
case
"standard_brand_id"
:
t
.
push
(
s
.
attr_value_id
);
break
;
default
:
e
[
s
.
attr_id
]
||
(
e
[
s
.
attr_id
]
=
[]),
e
[
s
.
attr_id
].
push
(
String
(
s
.
attr_value_id
))}}))})),
t
.
length
>
0
&&
(
s
[
"standard_brand_id/eqs"
]
=
t
.
join
(
","
)),
Object
.
keys
(
e
).
length
>
0
&&
(
s
[
"attrs/group"
]
=
JSON
.
stringify
(
e
)),
s
},
getData
(){
let
s
=
this
.
getAttr
(),
t
=
{
page_size
:
this
.
page_size
,
page
:
this
.
page
,
hcy_test
:
1122
,
class_id2
:
this
.
class_id2
,...
s
};
2
==
this
.
tabType
&&
(
t
[
"stock/sort"
]
=
this
.
stocksort
?
"asc"
:
"desc"
),
3
==
this
.
tabType
&&
(
t
[
"single_price/sort"
]
=
this
.
pricesort
?
"asc"
:
"desc"
),
this
.
request
(
x
+
"/api/search/getData"
,
"POST"
,
t
,
!
0
).
then
((
s
=>
{
if
(
1
==
this
.
page
&&
(
this
.
list
=
[]),
0
==
s
.
code
){
if
(
!
this
.
isHasAttr
){
let
t
=
s
.
data
.
aggs
?
JSON
.
parse
(
JSON
.
stringify
(
s
.
data
.
aggs
)):[];
this
.
aggs
=
[],
Object
.
keys
(
t
).
forEach
((
s
=>
{
let
a
=
t
[
s
]
||
[];
"分类"
!=
s
&&
this
.
aggs
.
push
({
namex
:
s
,
listx
:
a
,
hideAll
:
!
1
})}))}
this
.
isHasAttr
=
1
,
this
.
isInit
=
1
,
this
.
list
=
[...
this
.
list
,...
s
.
data
.
lists
||
[]],
this
.
totals
=
s
.
data
.
total
||
0
,
this
.
page
*
this
.
page_size
>=
Number
(
s
.
data
.
total
)
&&
(
this
.
isLoadEnd
=!
0
),
this
.
page
++
}
else
this
.
totals
=
0
,
this
.
isInit
=
1
,
this
.
list
=
[]}))},
tab
(
s
){
this
.
tabType
=
s
,
2
==
s
?
this
.
stocksort
=!
this
.
stocksort
:
3
==
s
&&
(
this
.
pricesort
=!
this
.
pricesort
),
this
.
initGetData
()},
initGetData
(){
this
.
page
=
1
,
this
.
isInit
=!
1
,
this
.
isLoadEnd
=!
1
,
this
.
list
=
[],
this
.
getData
()},
goUrl
(){
s
({
url
:
"/pages/search/nav"
})},
onConfirm
(
a
){
let
e
=
a
.
detail
.
value
;
e
.
length
<
2
?
t
({
title
:
"关键字不能小于2个字符"
,
duration
:
2
e3
,
icon
:
"none"
}):
s
({
url
:
"/pages/search/list?k="
+
e
})},
open
(){
this
.
$refs
.
popupsx
.
open
(
"right"
)},
close
(){
this
.
$refs
.
popupsx
.
close
(
"right"
)}},
components
:{
barX
:
C
,
searchHead
:
y
,
oneItem
:
w
}},[[
"render"
,
function
(
s
,
t
,
x
,
C
,
y
,
w
){
const
v
=
a
(
"barX"
),
A
=
a
(
"searchHead"
),
j
=
o
,
E
=
_
,
D
=
a
(
"oneItem"
),
I
=
k
,
S
=
m
(
e
(
"uni-popup"
),
b
);
return
c
(),
i
(
j
,{
class
:
"searchPage"
},{
default
:
l
((()
=>
[
r
(
v
),
r
(
j
,{
class
:
"fixed-tp"
},{
default
:
l
((()
=>
[
r
(
A
,{
onConfirm
:
w
.
onConfirm
,
onGoUrl
:
w
.
goUrl
},
null
,
8
,[
"onConfirm"
,
"onGoUrl"
]),
r
(
j
,{
class
:
"shiftbox row bothSide verCenter"
},{
default
:
l
((()
=>
[
r
(
j
,{
class
:
n
([
"rank1 rank row"
,{
act
:
1
==
y
.
tabType
}]),
onClick
:
t
[
0
]
||
(
t
[
0
]
=
s
=>
w
.
tab
(
1
))},{
default
:
l
((()
=>
[
h
(
"综合排序"
)])),
_
:
1
},
8
,[
"class"
]),
r
(
j
,{
class
:
n
([
"rank2 rank row verCenter"
,{
act
:
2
==
y
.
tabType
}]),
onClick
:
t
[
1
]
||
(
t
[
1
]
=
s
=>
w
.
tab
(
2
))},{
default
:
l
((()
=>
[
h
(
"库存"
),
r
(
E
,{
class
:
n
([
"icon"
,
"iconfont"
,
y
.
stocksort
?
"icon-arrowshang"
:
"icon-arrowxia"
])},
null
,
8
,[
"class"
])])),
_
:
1
},
8
,[
"class"
]),
r
(
j
,{
class
:
n
([
"rank3 rank row verCenter"
,{
act
:
3
==
y
.
tabType
}]),
onClick
:
t
[
2
]
||
(
t
[
2
]
=
s
=>
w
.
tab
(
3
))},{
default
:
l
((()
=>
[
h
(
"价格"
),
r
(
E
,{
class
:
n
([
"icon"
,
"iconfont"
,
y
.
pricesort
?
"icon-arrowshang"
:
"icon-arrowxia"
])},
null
,
8
,[
"class"
])])),
_
:
1
},
8
,[
"class"
]),
r
(
j
,{
class
:
"sxbox row verCenter"
,
onClick
:
w
.
open
},{
default
:
l
((()
=>
[
h
(
"筛选"
),
r
(
E
,{
class
:
"icon iconfont icon-saixuan"
})])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
}),
r
(
j
,{
class
:
"cons"
},{
default
:
l
((()
=>
[
r
(
j
,{
class
:
"databox"
},{
default
:
l
((()
=>
[(
c
(
!
0
),
d
(
u
,
null
,
g
(
y
.
list
,((
s
,
t
)
=>
(
c
(),
i
(
D
,{
key
:
t
,
obj
:
s
},
null
,
8
,[
"obj"
])))),
128
)),
y
.
list
.
length
>
0
&&
y
.
isLoadEnd
?(
c
(),
i
(
j
,{
key
:
0
,
class
:
"pagebot"
},{
default
:
l
((()
=>
[
h
(
"—— 已经全部加载完 ——"
)])),
_
:
1
})):
p
(
""
,
!
0
),
y
.
isInit
&&
0
==
y
.
list
.
length
?(
c
(),
i
(
j
,{
key
:
1
,
class
:
"no-data-box"
},{
default
:
l
((()
=>
[
r
(
I
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/07/676f987065320e89a68d473ec62c8cea.png"
}),
r
(
j
,
null
,{
default
:
l
((()
=>
[
h
(
"抱歉,您可以联系客服咨询上品相关事宜!"
)])),
_
:
1
}),
r
(
j
,{
class
:
"backs"
,
onClick
:
s
.
$goBack
},{
default
:
l
((()
=>
[
h
(
"返回"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})):
p
(
""
,
!
0
)])),
_
:
1
})])),
_
:
1
}),
r
(
S
,{
ref
:
"popupsx"
,
type
:
"right"
},{
default
:
l
((()
=>
[
r
(
j
,{
class
:
"pop-consx"
},{
default
:
l
((()
=>
[
r
(
j
,{
class
:
"section"
},{
default
:
l
((()
=>
[
y
.
aggs
.
length
>
0
?(
c
(),
i
(
j
,{
key
:
0
},{
default
:
l
((()
=>
[(
c
(
!
0
),
d
(
u
,
null
,
g
(
y
.
aggs
,((
s
,
t
)
=>
(
c
(),
i
(
j
,{
class
:
"item-group"
,
key
:
t
},{
default
:
l
((()
=>
[
r
(
j
,{
class
:
"item-t row bothSide verCenter"
},{
default
:
l
((()
=>
[
r
(
E
,{
class
:
"names elep"
},{
default
:
l
((()
=>
[
h
(
f
(
s
.
namex
),
1
)])),
_
:
2
},
1024
),
s
.
listx
.
length
>
6
?(
c
(),
i
(
j
,{
key
:
0
,
class
:
"row verCenter status-box"
,
onClick
:
t
=>
w
.
uiChage
(
s
.
namex
)},{
default
:
l
((()
=>
[
r
(
E
,{
class
:
"status-name"
},{
default
:
l
((()
=>
[
h
(
f
(
s
.
hideAll
?
"收起"
:
"展开"
),
1
)])),
_
:
2
},
1024
),
r
(
E
,{
class
:
n
([
"icon"
,
"iconfont"
,
s
.
hideAll
?
"icon-arrowshang"
:
"icon-arrowxia"
])},
null
,
8
,[
"class"
])])),
_
:
2
},
1032
,[
"onClick"
])):
p
(
""
,
!
0
)])),
_
:
2
},
1024
),
r
(
j
,{
class
:
n
([
"item-c row"
,{
showAll
:
s
.
hideAll
}])},{
default
:
l
((()
=>
[(
c
(
!
0
),
d
(
u
,
null
,
g
(
s
.
listx
,((
t
,
a
)
=>
(
c
(),
i
(
j
,{
class
:
n
([
"citem elep"
,{
act
:
1
==
t
.
checked
}]),
onClick
:
a
=>
w
.
changeAttr
(
s
.
namex
,
t
.
attr_value_id
),
key
:
a
},{
default
:
l
((()
=>
[
h
(
f
(
t
.
value
),
1
)])),
_
:
2
},
1032
,[
"class"
,
"onClick"
])))),
128
))])),
_
:
2
},
1032
,[
"class"
])])),
_
:
2
},
1024
)))),
128
))])),
_
:
1
})):
p
(
""
,
!
0
)])),
_
:
1
}),
r
(
j
,{
class
:
"foot row bothSide"
},{
default
:
l
((()
=>
[
r
(
j
,{
class
:
"cz"
,
onClick
:
w
.
clearAttr
},{
default
:
l
((()
=>
[
h
(
"重置"
)])),
_
:
1
},
8
,[
"onClick"
]),
r
(
j
,{
class
:
"cx"
,
onClick
:
w
.
close
},{
default
:
l
((()
=>
[
h
(
"确认("
+
f
(
y
.
totals
)
+
"个型号)"
,
1
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
})])),
_
:
1
},
512
)])),
_
:
1
})}],[
"__scopeId"
,
"data-v-212251cc"
]]);
export
{
A
as
default
};
unpackage/dist/build/web/assets/pages-class-nav.D0I6JcYf.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
s
,
n
as
a
,
r
as
e
,
c
as
t
,
w
as
c
,
i
as
l
,
o
as
i
,
d
as
o
,
v
as
n
,
h
as
r
,
j
as
d
,
F
as
h
,
e
as
_
,
m
as
f
,
t
as
u
,
k
as
m
,
l
as
g
}
from
"./index-B52OZNum.js"
;
import
{
A
as
k
}
from
"./api.Cl4HE8_F.js"
;
import
{
s
as
p
}
from
"./search_head.Bd-A-aAE.js"
;
import
{
b
as
w
}
from
"./barx._hPkFqJr.js"
;
import
{
b
as
x
}
from
"./bottom_nav.Epavr9vk.js"
;
import
{
_
as
b
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
C
=
b
({
data
:()
=>
({
isShowClassOne
:
!
1
,
pageData
:[],
erJList
:[],
sanJlist
:[],
class_id1
:
""
,
class_id2
:
""
}),
onLoad
:
function
(
s
){
this
.
class_id1
=
s
.
class_id1
?
s
.
class_id1
:
""
,
this
.
class_id2
=
s
.
class_id2
?
s
.
class_id2
:
""
,
this
.
getData
()},
methods
:{
tab
(
s
,
a
){
1
==
s
?
this
.
pageData
.
forEach
((
s
=>
{
s
.
base_id
==
a
?(
s
.
checkedx
=!
0
,
this
.
erJList
=
s
.
right_cate_list
||
[]):
s
.
checkedx
=!
1
,(
this
.
erJList
||
[]).
forEach
(((
s
,
a
)
=>
{
0
==
a
?(
s
.
checkedx
=!
0
,
this
.
sanJlist
=
s
.
children
):
s
.
checkedx
=!
1
}))})):
this
.
erJList
.
forEach
(((
s
,
e
)
=>
{
s
.
class_id
==
a
?(
s
.
checkedx
=!
0
,
this
.
sanJlist
=
s
.
children
):
s
.
checkedx
=!
1
}))},
getData
(){
this
.
request
(
k
+
"/api/xcx/category"
,
"GET"
,{},
!
0
).
then
((
a
=>
{
0
==
a
.
code
?(
this
.
pageData
=
a
.
data
.
category_list
||
[],
this
.
pageData
.
forEach
(((
s
,
a
)
=>
{
this
.
class_id1
?
this
.
class_id1
==
s
.
base_id
?(
s
.
checkedx
=!
0
,
this
.
erJList
=
s
.
right_cate_list
||
[]):
s
.
checkedx
=!
1
:
0
==
a
?(
s
.
checkedx
=!
0
,
this
.
erJList
=
s
.
right_cate_list
||
[]):
s
.
checkedx
=!
1
,(
this
.
erJList
||
[]).
forEach
(((
s
,
a
)
=>
{
this
.
class_id2
?
this
.
class_id2
==
s
.
class_id
?(
s
.
checkedx
=!
0
,
this
.
sanJlist
=
s
.
children
):
s
.
checkedx
=!
1
:
0
==
a
?(
s
.
checkedx
=!
0
,
this
.
sanJlist
=
s
.
children
):
s
.
checkedx
=!
1
}))}))):
s
({
title
:
a
.
msg
,
icon
:
"error"
})}))},
onConfirm
(
e
){
let
t
=
e
.
detail
.
value
;
t
.
length
<
2
?
s
({
title
:
"关键字不能小于2个字符"
,
duration
:
2
e3
,
icon
:
"none"
}):
a
({
url
:
"/pages/search/list?k="
+
t
})},
goUrl
(){
a
({
url
:
"/pages/search/nav"
})}},
components
:{
searchHead
:
p
,
barX
:
w
,
bottomNav
:
x
}},[[
"render"
,
function
(
s
,
a
,
k
,
p
,
w
,
x
){
const
b
=
e
(
"barX"
),
C
=
e
(
"searchHead"
),
J
=
l
,
v
=
f
,
L
=
m
,
D
=
g
,
j
=
e
(
"bottomNav"
);
return
i
(),
t
(
J
,{
class
:
"classNavPage"
},{
default
:
c
((()
=>
[
o
(
b
),
o
(
J
,{
class
:
"bugc-ceng"
},{
default
:
c
((()
=>
[
o
(
C
,{
onConfirm
:
x
.
onConfirm
,
onGoUrl
:
x
.
goUrl
},
null
,
8
,[
"onConfirm"
,
"onGoUrl"
])])),
_
:
1
}),
o
(
J
,{
class
:
"cons"
},{
default
:
c
((()
=>
[
o
(
J
,{
class
:
n
([
"one-c-box"
,{
show
:
w
.
isShowClassOne
}])},{
default
:
c
((()
=>
[
o
(
J
,{
class
:
"lb row"
},{
default
:
c
((()
=>
[(
i
(
!
0
),
r
(
h
,
null
,
d
(
w
.
pageData
,((
s
,
a
)
=>
(
i
(),
t
(
J
,{
class
:
n
([
"itemo"
,{
act
:
s
.
checkedx
}]),
key
:
a
,
onClick
:
a
=>
x
.
tab
(
1
,
s
.
base_id
)},{
default
:
c
((()
=>
[
_
(
u
(
s
.
title
),
1
)])),
_
:
2
},
1032
,[
"class"
,
"onClick"
])))),
128
))])),
_
:
1
}),
o
(
J
,{
class
:
"rb row verCenter rowCenter"
,
onClick
:
a
[
0
]
||
(
a
[
0
]
=
s
=>
w
.
isShowClassOne
=!
w
.
isShowClassOne
)},{
default
:
c
((()
=>
[
o
(
v
,{
class
:
n
([
"icon"
,
"iconfont"
,
"icon-arrowxia"
])})])),
_
:
1
}),
o
(
J
,{
class
:
"one-c-hide-cons"
},{
default
:
c
((()
=>
[
o
(
J
,{
class
:
"tit"
},{
default
:
c
((()
=>
[
_
(
"全部分类"
)])),
_
:
1
}),
o
(
J
,{
class
:
"hide-sec row"
},{
default
:
c
((()
=>
[(
i
(
!
0
),
r
(
h
,
null
,
d
(
w
.
pageData
,((
s
,
a
)
=>
(
i
(),
t
(
J
,{
class
:
n
([
"itemh"
,{
act
:
s
.
checkedx
}]),
key
:
a
,
onClick
:
a
=>
x
.
tab
(
1
,
s
.
base_id
)},{
default
:
c
((()
=>
[
o
(
L
,{
src
:
s
.
images
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
,
mode
:
"aspectFit"
},
null
,
8
,[
"src"
]),
o
(
v
,{
class
:
"elep"
},{
default
:
c
((()
=>
[
_
(
u
(
s
.
title
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"class"
,
"onClick"
])))),
128
))])),
_
:
1
}),
o
(
J
,{
class
:
"foot row verCenter rowCenter"
,
onClick
:
a
[
1
]
||
(
a
[
1
]
=
s
=>
w
.
isShowClassOne
=!
w
.
isShowClassOne
)},{
default
:
c
((()
=>
[
_
(
"收起"
),
o
(
v
,{
class
:
"icon iconfont icon-arrowshang"
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
},
8
,[
"class"
]),
o
(
J
,{
class
:
"two-c-box row bothSide"
},{
default
:
c
((()
=>
[
o
(
J
,{
class
:
"lc"
},{
default
:
c
((()
=>
[(
i
(
!
0
),
r
(
h
,
null
,
d
(
w
.
erJList
,((
s
,
a
)
=>
(
i
(),
t
(
J
,{
class
:
n
([
"item row verCenter"
,{
act
:
s
.
checkedx
}]),
key
:
a
,
onClick
:
a
=>
x
.
tab
(
2
,
s
.
class_id
)},{
default
:
c
((()
=>
[
_
(
u
(
s
.
class_name
),
1
)])),
_
:
2
},
1032
,[
"class"
,
"onClick"
])))),
128
))])),
_
:
1
}),
o
(
J
,{
class
:
"rc"
},{
default
:
c
((()
=>
[(
i
(
!
0
),
r
(
h
,
null
,
d
(
w
.
sanJlist
,((
s
,
a
)
=>
(
i
(),
t
(
D
,{
url
:
"/pages/class/list?class_id2="
+
s
.
class_id
,
class
:
"item"
,
key
:
a
},{
default
:
c
((()
=>
[
o
(
L
,{
src
:
s
.
class_icon
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
,
mode
:
"aspectFit"
},
null
,
8
,[
"src"
]),
o
(
v
,{
class
:
"elep"
},{
default
:
c
((()
=>
[
_
(
u
(
s
.
class_name
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"url"
])))),
128
))])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
o
(
j
,{
actval
:
"2"
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-067ef2cc"
]]);
export
{
C
as
default
};
unpackage/dist/build/web/assets/pages-goods-detail.BsACuf0V.js
0 → 100644
View file @
6eb3aa03
import
{
g
as
s
,
b
as
e
,
n
as
o
,
A
as
t
,
B
as
i
,
C
as
a
,
r
as
l
,
x
as
d
,
c
,
w
as
n
,
f
as
r
,
i
as
u
,
o
as
_
,
d
as
g
,
v
as
f
,
e
as
p
,
h
,
j
as
m
,
F
as
b
,
t
as
k
,
m
as
y
,
k
as
w
,
S
as
x
,
l
as
C
,
I
as
L
,
p
as
v
,
q
as
T
}
from
"./index-B52OZNum.js"
;
import
{
r
as
q
,
_
as
N
}
from
"./uni-popup.B33pbe0T.js"
;
import
{
A
as
S
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
D
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
P
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
j
=
P
({
data
:()
=>
({
isLogin
:
!!
s
(
"token"
),
goods_id_page
:
""
,
buyPrice
:
""
,
isCompany
:
!
(
!
s
(
"user_info"
)
||!
JSON
.
parse
(
s
(
"user_info"
)).
company_name
),
productType
:
1
,
pageTab
:
1
,
productTop
:
0
,
goBuyType
:
1
,
images
:[],
positions
:
""
,
currentPage
:
0
,
goods_numberx
:
1
,
goods_id
:
""
,
goods_info
:
""
,
goods_series
:[],
addType
:
1
,
list_name
:
""
,
qDList
:[],
miniShareOptions
:{
title
:
"爱智工业平台"
,
path
:
"/pages/goods/detail?goods_id="
,
imageUrl
:
"https://img.ichunt.com/images/ichunt/202503/19/cdaebc710d636541b8d9916210b46a49.png"
,
desc
:
""
}}),
onShareAppMessage
(){
return
{...
this
.
miniShareOptions
,
success
:()
=>
{
e
({
title
:
"分享成功"
,
icon
:
"success"
})},
fail
:()
=>
{
e
({
title
:
"分享失败"
,
icon
:
"none"
})}}},
onShareTimeline
(){
return
{...
this
.
miniShareOptions
,
success
:()
=>
{
e
({
title
:
"分享成功"
,
icon
:
"success"
})},
fail
:()
=>
{
e
({
title
:
"分享失败"
,
icon
:
"none"
})}}},
onLoad
(
s
){
this
.
goods_id_page
=
s
.
goods_id
,
this
.
goods_id
=
s
.
goods_id
,
this
.
getData
(),
this
.
getQdList
(),
this
.
miniShareOptions
.
path
=
"/pages/goods/detail?goods_id="
+
s
.
goods_id
},
onPageScroll
(
s
){
this
.
pageTab
=
1
,
s
.
scrollTop
>=
300
&&
(
this
.
pageTab
=
2
)},
methods
:{
gocar
(){
if
(
!
s
(
"token"
))
return
void
o
({
url
:
"/pages/auth/login?referer="
+
encodeURIComponent
(
`/pages/goods/detail?goods_id=
${
this
.
goods_id_page
}
`
)});
let
i
=
{
sku_id
:
this
.
goods_id
,
goods_num
:
this
.
goods_numberx
,
price
:
this
.
buyPrice
,
guid_
:
this
.
addType
};
2
==
this
.
addType
&&
(
i
.
is_cover_goods_num
=
1
),
this
.
request
(
S
+
"/api/cart/addCart"
,
"GET"
,
i
,
!
0
).
then
((
s
=>
{
0
==
s
.
code
?
1
==
this
.
addType
?(
e
({
title
:
"添加购物车成功"
,
icon
:
"success"
}),
this
.
close
()):(
t
(
"car_ids"
,
this
.
goods_id
),
t
(
"confirmOrderBackUrl"
,
`/pages/goods/detail?goods_id=
${
this
.
goods_id_page
}
`
),
o
({
url
:
"/pages/car/confirmOrder"
})):
e
({
title
:
s
.
msg
,
icon
:
"error"
})}))},
changeNum
(
s
,
e
){
clearTimeout
(
this
.
timeout
),
this
.
timeout
=
setTimeout
((()
=>
{
let
s
=
this
.
goods_info
,
e
=
Number
(
s
.
multiple
||
s
.
mpl
),
o
=
Number
(
s
.
stock
),
t
=
Number
(
s
.
moq
),
i
=
Number
(
this
.
goods_numberx
);
i
=
Math
.
ceil
(
i
/
e
)
*
e
,
this
.
goods_numberx
=
i
,
i
<
t
&&
(
this
.
goods_numberx
=
t
),
i
>
o
&&
(
this
.
goods_numberx
=
Math
.
floor
(
o
/
e
)
*
e
)}),
800
)},
addjNum
(
s
,
o
){
let
t
=
this
.
goods_info
,
i
=
Number
(
t
.
multiple
||
t
.
mpl
),
a
=
Number
(
t
.
stock
),
l
=
Number
(
t
.
moq
),
d
=
Number
(
this
.
goods_numberx
);
if
(
1
==
o
){
var
c
=
d
-
i
;
c
<
l
?(
this
.
goods_numberx
=
l
,
e
({
title
:
"数量不能小于起订量"
,
duration
:
2
e3
,
icon
:
"none"
})):
this
.
goods_numberx
=
c
}
else
{
var
n
=
d
+
i
;
n
>
a
?(
e
({
title
:
"数量不能大于库存"
,
duration
:
2
e3
,
icon
:
"none"
}),
this
.
goods_numberx
=
Math
.
floor
(
a
/
i
)
*
i
):
this
.
goods_numberx
=
n
}},
changeSku
(
s
){
this
.
goods_id
=
s
,
this
.
getData
(
1
)},
pdfPre
(){
window
.
open
(
this
.
goods_info
.
pdf
)},
getData
(
s
){
this
.
request
(
S
+
"/api/xcx/goodsDetail"
,
"GET"
,{
goods_id
:
this
.
goods_id
},
!
0
).
then
((
o
=>
{
0
==
o
.
code
?(
this
.
goods_info
=
o
.
data
.
goods_info
,
this
.
miniShareOptions
.
title
=
this
.
goods_info
.
goods_name
+
" "
+
this
.
goods_info
.
class_name
,
this
.
miniShareOptions
.
imageUrl
=
this
.
goods_info
.
goods_images
||
"https://img.ichunt.com/images/ichunt/202503/19/cdaebc710d636541b8d9916210b46a49.png"
,
this
.
goods_info
.
sku_detail
&&
(
this
.
goods_info
.
sku_detail
=
this
.
goods_info
.
sku_detail
.
replace
(
/<img/gi
,
'<img class="img-style"'
)),
this
.
goods_numberx
=
Number
(
this
.
goods_info
.
moq
),
this
.
buyPrice
=
0
,
this
.
goods_info
.
ladder_price
&&
this
.
goods_info
.
ladder_price
.
length
>
0
&&
(
this
.
buyPrice
=
this
.
isCompany
?
this
.
goods_info
.
ladder_price
[
1
].
price_cn
||
0
:
this
.
goods_info
.
ladder_price
[
0
].
price_cn
||
0
),
10
==
this
.
goods_info
.
ac_type
&&
(
this
.
buyPrice
=
this
.
goods_info
.
ladder_price
[
0
].
price_ac
||
0
),
s
||
(
this
.
goods_series
=
o
.
data
.
goods_series
||
[],
this
.
goods_series
.
sort
(((
s
,
e
)
=>
s
.
goods_id
==
this
.
goods_id
?
-
1
:
e
.
goods_id
==
this
.
goods_id
?
1
:
0
))),
this
.
images
=
[{
name
:
"default.png"
,
thumbnail
:
o
.
data
.
goods_info
.
goods_images
||
""
},...
o
.
data
.
goods_info
.
spu_extra
.
image_list
||
[]],
setTimeout
((()
=>
{
this
.
calculatePositions
()}),
100
)):
e
({
title
:
o
.
msg
,
icon
:
"error"
})}))},
calculatePositions
(){
const
s
=
i
();
s
.
select
(
".product-box"
).
boundingClientRect
(),
s
.
exec
((
s
=>
{
s
[
0
]
&&
(
this
.
productTop
=
s
[
0
].
top
)}))},
tab
(
s
){
this
.
pageTab
=
s
,
a
({
scrollTop
:
2
==
s
?
this
.
productTop
-
140
:
0
,
duration
:
300
})},
handleSwiperChange
(
s
){
this
.
currentPage
=
s
.
detail
.
current
,
setTimeout
((()
=>
{
this
.
calculatePositions
()}),
100
)},
getQdList
(){
s
(
"token"
)
&&
this
.
request
(
S
+
"/api/xcx/getGoodsList"
,
"get"
,{
page
:
1
,
limit
:
100
},
!
1
).
then
((
s
=>
{
if
(
this
.
qDList
=
[],
0
==
s
.
code
){
let
e
=
s
.
data
.
list
||
[];
e
.
forEach
((
s
=>
{
s
.
checked
=!
1
})),
this
.
qDList
=
e
}}))},
chooseQd
(
s
){
this
.
qDList
.
forEach
((
e
=>
{
e
.
list_id
==
s
&&
(
e
.
checked
=!
e
.
checked
)}))},
createList
(){
this
.
request
(
S
+
"/api/xcx/createGoodsList"
,
"post"
,{
list_name
:
this
.
list_name
||
this
.
goods_info
.
class_name
},
!
0
).
then
((
s
=>
{
0
==
s
.
code
?(
e
({
title
:
"创建清单成功"
,
icon
:
"success"
}),
this
.
closeNewList
(),
this
.
getQdList
()):
e
({
title
:
s
.
msg
,
icon
:
"nonde"
})}))},
addQdList
(){
let
s
=
this
.
qDList
.
filter
((
s
=>
s
.
checked
)),
o
=
s
.
map
((
s
=>
s
.
list_id
));
if
(
0
==
s
.
length
)
return
void
e
({
title
:
"请选择一条清单"
,
icon
:
"none"
});
let
t
=
[{
sku_id
:
this
.
goods_id
,
qty
:
this
.
goods_numberx
}];
this
.
request
(
S
+
"/api/xcx/addGoodsList"
,
"post"
,{
list_id
:
o
.
join
(
","
),
sku_json
:
JSON
.
stringify
(
t
)},
!
0
).
then
((
s
=>
{
0
==
s
.
code
?(
e
({
title
:
"加入清单成功"
,
icon
:
"success"
}),
this
.
closeAddList
(),
this
.
getQdList
()):
e
({
title
:
s
.
msg
,
icon
:
"nonde"
})}))},
open
(
s
){
this
.
addType
=
s
,
this
.
$refs
.
popupcar
.
open
(
"bottom"
)},
close
(){
this
.
$refs
.
popupcar
.
close
(
"bottom"
)},
openAddList
(){
s
(
"token"
)?
this
.
$refs
.
popupaddlist
.
open
(
"bottom"
):
o
({
url
:
"/pages/auth/login?referer="
+
encodeURIComponent
(
`/pages/goods/detail?goods_id=
${
this
.
goods_id_page
}
`
)})},
closeAddList
(){
this
.
$refs
.
popupaddlist
.
close
(
"bottom"
)},
openNewList
(){
this
.
closeAddList
(),
this
.
$refs
.
popupnewlist
.
open
(
"bottom"
)},
closeNewList
(){
this
.
$refs
.
popupnewlist
.
close
(
"bottom"
)}},
components
:{
barX
:
D
}},[[
"render"
,
function
(
s
,
e
,
o
,
t
,
i
,
a
){
const
S
=
l
(
"barX"
),
D
=
y
,
P
=
u
,
j
=
w
,
Q
=
T
,
$
=
x
,
O
=
C
,
A
=
L
,
M
=
q
(
d
(
"uni-popup"
),
N
);
return
i
.
goods_info
?(
_
(),
c
(
P
,{
key
:
0
,
class
:
"goodsDetailPage"
},{
default
:
n
((()
=>
[
g
(
S
),
g
(
P
,{
class
:
"header row verCenter"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"icon iconfont icon-arrowleft"
,
onClick
:
s
.
$goBack
},
null
,
8
,[
"onClick"
]),
g
(
D
,{
class
:
f
([
"tab-item"
,{
act
:
1
==
i
.
pageTab
}]),
onClick
:
e
[
0
]
||
(
e
[
0
]
=
s
=>
a
.
tab
(
1
))},{
default
:
n
((()
=>
[
p
(
"商品"
)])),
_
:
1
},
8
,[
"class"
]),
g
(
D
,{
class
:
f
([
"tab-item"
,{
act
:
2
==
i
.
pageTab
}]),
onClick
:
e
[
1
]
||
(
e
[
1
]
=
s
=>
a
.
tab
(
2
))},{
default
:
n
((()
=>
[
p
(
"详情"
)])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
}),
g
(
P
,{
class
:
"goods_info"
},{
default
:
n
((()
=>
[
i
.
images
.
length
>
0
?(
_
(),
c
(
P
,{
key
:
0
,
class
:
"swiper-box"
},{
default
:
n
((()
=>
[
g
(
$
,{
class
:
"swiper"
,
onChange
:
a
.
handleSwiperChange
,
"indicator-dots"
:
!
1
,
autoplay
:
!
1
,
interval
:
3
e3
,
duration
:
500
},{
default
:
n
((()
=>
[(
_
(
!
0
),
h
(
b
,
null
,
m
(
i
.
images
,((
s
,
e
)
=>
(
_
(),
c
(
Q
,{
class
:
"swiper-item"
,
key
:
e
},{
default
:
n
((()
=>
[
g
(
j
,{
class
:
"swiper-image"
,
src
:
s
.
thumbnail
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
,
mode
:
"aspectFit"
},
null
,
8
,[
"src"
])])),
_
:
2
},
1024
)))),
128
))])),
_
:
1
},
8
,[
"onChange"
]),
g
(
D
,{
class
:
"page-indicator"
},{
default
:
n
((()
=>
[
p
(
k
(
i
.
currentPage
+
1
)
+
"/"
+
k
(
i
.
images
.
length
),
1
)])),
_
:
1
}),
10
==
i
.
goods_info
.
ac_type
?(
_
(),
c
(
P
,{
key
:
0
,
class
:
"ac618tagt"
})):
r
(
""
,
!
0
),
10
==
i
.
goods_info
.
ac_type
?(
_
(),
c
(
P
,{
key
:
1
,
class
:
"ac618tagb"
})):
r
(
""
,
!
0
)])),
_
:
1
})):
r
(
""
,
!
0
),
g
(
P
,{
class
:
"info-box"
},{
default
:
n
((()
=>
[
10
==
i
.
goods_info
.
ac_type
?(
_
(),
c
(
P
,{
key
:
0
,
class
:
"priceac168Box"
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"tops row verCenter"
},{
default
:
n
((()
=>
[
g
(
P
,
null
,{
default
:
n
((()
=>
[
p
(
"¥"
+
k
(
i
.
goods_info
.
ladder_price
[
0
].
price_ac
),
1
)])),
_
:
1
}),
g
(
D
,
null
,{
default
:
n
((()
=>
[
p
(
"活动价 | 已补贴¥"
+
k
(
i
.
goods_info
.
ladder_price
[
0
].
price_diff
),
1
)])),
_
:
1
})])),
_
:
1
}),
g
(
P
,{
class
:
"bots"
},{
default
:
n
((()
=>
[
p
(
"日常价:"
),
g
(
D
,
null
,{
default
:
n
((()
=>
[
p
(
"¥"
+
k
(
i
.
goods_info
.
ladder_price
[
0
].
price_cn
),
1
)])),
_
:
1
})])),
_
:
1
}),
g
(
O
,{
class
:
"ac618link"
,
url
:
"/pages/activity/ac618"
})])),
_
:
1
})):(
_
(),
c
(
P
,{
key
:
1
,
class
:
"pricenormalbox"
},{
default
:
n
((()
=>
[
i
.
goods_info
.
ladder_price
&&
i
.
goods_info
.
ladder_price
.
length
>
0
?(
_
(),
c
(
P
,{
key
:
0
,
class
:
"price-box row verCenter"
},{
default
:
n
((()
=>
[
i
.
goods_info
.
ladder_price
[
0
].
price_cn
?(
_
(),
c
(
D
,{
key
:
0
,
class
:
"price1"
},{
default
:
n
((()
=>
[
p
(
"¥ "
+
k
(
i
.
goods_info
.
ladder_price
[
0
].
price_cn
),
1
)])),
_
:
1
})):(
_
(),
c
(
D
,{
key
:
1
,
class
:
"price1"
},{
default
:
n
((()
=>
[
p
(
"¥立即咨询"
)])),
_
:
1
})),
i
.
isLogin
?(
_
(),
c
(
P
,{
key
:
2
},{
default
:
n
((()
=>
[
i
.
goods_info
.
ladder_price
[
1
].
price_cn
?(
_
(),
c
(
P
,{
key
:
0
,
class
:
"row verCenter"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"price2"
},{
default
:
n
((()
=>
[
p
(
"¥ "
+
k
(
i
.
goods_info
.
ladder_price
[
1
].
price_cn
||
"立即咨询"
),
1
)])),
_
:
1
}),
g
(
D
,{
class
:
"qy"
},{
default
:
n
((()
=>
[
p
(
"企业价"
)])),
_
:
1
})])),
_
:
1
})):
r
(
""
,
!
0
)])),
_
:
1
})):(
_
(),
c
(
P
,{
key
:
3
,
class
:
"row verCenter"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"price2"
},{
default
:
n
((()
=>
[
p
(
"¥ ****"
)])),
_
:
1
}),
g
(
D
,{
class
:
"qy"
},{
default
:
n
((()
=>
[
p
(
"企业价"
)])),
_
:
1
}),
g
(
D
,{
class
:
"qytip"
},{
default
:
n
((()
=>
[
p
(
"登录后查看企业价"
)])),
_
:
1
})])),
_
:
1
}))])),
_
:
1
})):(
_
(),
c
(
P
,{
key
:
1
,
class
:
"price-box row verCenter"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"price1 price1no"
},{
default
:
n
((()
=>
[
p
(
"¥立即咨询"
)])),
_
:
1
})])),
_
:
1
}))])),
_
:
1
})),
i
.
goods_info
.
goods_tag
&&
i
.
goods_info
.
goods_tag
.
goods_tag_names
&&
i
.
goods_info
.
goods_tag
.
goods_tag_names
.
length
>
0
?(
_
(),
c
(
P
,{
key
:
2
,
class
:
"tag-box row"
},{
default
:
n
((()
=>
[(
_
(
!
0
),
h
(
b
,
null
,
m
(
i
.
goods_info
.
goods_tag
.
goods_tag_names
,((
s
,
e
)
=>
(
_
(),
c
(
P
,{
class
:
f
([
"tag"
,{
tag1
:
e
%
2
!=
0
,
tag2
:
e
%
2
==
0
}]),
key
:
e
},{
default
:
n
((()
=>
[
p
(
k
(
s
),
1
)])),
_
:
2
},
1032
,[
"class"
])))),
128
))])),
_
:
1
})):
r
(
""
,
!
0
),
g
(
P
,{
class
:
"goods-name elep2"
},{
default
:
n
((()
=>
[
g
(
D
,{
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
k
(
i
.
goods_info
.
sku_name
),
1
)])),
_
:
1
})])),
_
:
1
}),
g
(
P
,{
class
:
"attr-box"
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"item row"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"text"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
"品牌"
)])),
_
:
1
}),
g
(
D
,{
class
:
"view"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
k
(
i
.
goods_info
.
brand_name
),
1
)])),
_
:
1
})])),
_
:
1
}),
g
(
P
,{
class
:
"item row"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"text"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
"型号"
)])),
_
:
1
}),
g
(
D
,{
class
:
"view"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
k
(
i
.
goods_info
.
goods_name
),
1
)])),
_
:
1
})])),
_
:
1
}),
g
(
P
,{
class
:
"item row"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"text"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
"分类"
)])),
_
:
1
}),
g
(
D
,{
class
:
"view"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
k
(
i
.
goods_info
.
class_name
),
1
)])),
_
:
1
})])),
_
:
1
}),
g
(
P
,{
class
:
"item row"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"text"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
"商品编码"
)])),
_
:
1
}),
g
(
D
,{
class
:
"view"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
k
(
i
.
goods_info
.
goods_id
),
1
)])),
_
:
1
})])),
_
:
1
}),
g
(
P
,{
class
:
"item row"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"text"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
"描述"
)])),
_
:
1
}),
g
(
P
,{
class
:
"view"
,
innerHTML
:
i
.
goods_info
.
spu_brief
,
"user-select"
:
"true"
},
null
,
8
,[
"innerHTML"
])])),
_
:
1
}),
g
(
P
,{
class
:
"item row"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"text"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
"货期"
)])),
_
:
1
}),
g
(
D
,{
class
:
"view"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
k
(
i
.
goods_info
.
cn_delivery_time
),
1
)])),
_
:
1
})])),
_
:
1
}),
g
(
P
,{
class
:
"item row"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"text"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
"库存"
)])),
_
:
1
}),
g
(
D
,{
class
:
"view"
,
"user-select"
:
"true"
},{
default
:
n
((()
=>
[
p
(
k
(
i
.
goods_info
.
stock
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
g
(
P
,{
class
:
"product-box"
,
ref
:
"productBox"
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"tab row verCenter"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
f
({
act
:
1
==
i
.
productType
}),
onClick
:
e
[
2
]
||
(
e
[
2
]
=
s
=>
i
.
productType
=
1
)},{
default
:
n
((()
=>
[
p
(
"商品介绍"
)])),
_
:
1
},
8
,[
"class"
]),
i
.
goods_info
.
pdf
?(
_
(),
c
(
D
,{
key
:
0
,
onClick
:
a
.
pdfPre
},{
default
:
n
((()
=>
[
p
(
"数据手册"
)])),
_
:
1
},
8
,[
"onClick"
])):
r
(
""
,
!
0
)])),
_
:
1
}),
g
(
P
,{
class
:
f
([
"tabcon tabcon1 row verCenter rowCenter"
,{
act
:
1
==
i
.
productType
}]),
innerHTML
:
i
.
goods_info
.
sku_detail
},
null
,
8
,[
"class"
,
"innerHTML"
])])),
_
:
1
},
512
)])),
_
:
1
}),
g
(
P
,{
class
:
"foot row verCenter bothSide"
},{
default
:
n
((()
=>
[
g
(
O
,{
class
:
"item"
,
url
:
s
.
$globalData
.
KFQQ
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"icon iconfont icon-kfd"
}),
g
(
P
,
null
,{
default
:
n
((()
=>
[
p
(
"客服"
)])),
_
:
1
})])),
_
:
1
},
8
,[
"url"
]),
g
(
O
,{
class
:
"item"
,
url
:
"/pages/car/list"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"icon iconfont icon-card"
}),
g
(
P
,
null
,{
default
:
n
((()
=>
[
p
(
"购物车"
)])),
_
:
1
})])),
_
:
1
}),
1
!=
i
.
goods_info
.
is_buy
?(
_
(),
c
(
O
,{
key
:
0
,
class
:
"kefzx"
,
url
:
s
.
$globalData
.
KFQQ
},{
default
:
n
((()
=>
[
p
(
" 立即咨询 "
)])),
_
:
1
},
8
,[
"url"
])):
r
(
""
,
!
0
),
1
==
i
.
goods_info
.
is_buy
?(
_
(),
c
(
P
,{
key
:
1
,
class
:
"item"
,
onClick
:
e
[
3
]
||
(
e
[
3
]
=
s
=>
a
.
openAddList
())},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"icon iconfont icon-qdd"
}),
g
(
P
,
null
,{
default
:
n
((()
=>
[
p
(
"加入清单"
)])),
_
:
1
})])),
_
:
1
})):
r
(
""
,
!
0
),
1
==
i
.
goods_info
.
is_buy
?(
_
(),
c
(
P
,{
key
:
2
,
class
:
"row"
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"add-car"
,
onClick
:
e
[
4
]
||
(
e
[
4
]
=
s
=>
a
.
open
(
1
))},{
default
:
n
((()
=>
[
p
(
"加入购物车"
)])),
_
:
1
}),
g
(
P
,{
class
:
"add-confirm"
,
onClick
:
e
[
5
]
||
(
e
[
5
]
=
s
=>
a
.
open
(
2
))},{
default
:
n
((()
=>
[
p
(
"立即订购"
)])),
_
:
1
})])),
_
:
1
})):
r
(
""
,
!
0
)])),
_
:
1
}),
g
(
M
,{
ref
:
"popupcar"
,
type
:
"bottom"
,
"safe-area"
:
!
1
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"pop-detail-car"
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"trt"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"icon iconfont icon-caca"
,
onClick
:
a
.
close
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
g
(
P
,{
class
:
"handle row"
},{
default
:
n
((()
=>
[
g
(
j
,{
src
:
i
.
goods_info
.
goods_images
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
},
null
,
8
,[
"src"
]),
g
(
P
,{
class
:
"hbox"
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"price1"
},{
default
:
n
((()
=>
[
p
(
"¥ "
+
k
(
i
.
buyPrice
),
1
)])),
_
:
1
}),
g
(
P
,{
class
:
"hbha row verCenter bothSide"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"icon iconfont icon-jian"
,
onClick
:
e
[
6
]
||
(
e
[
6
]
=
s
=>
a
.
addjNum
(
i
.
goods_info
.
sku_id
,
1
))}),
g
(
A
,{
type
:
"number"
,
modelValue
:
i
.
goods_numberx
,
"onUpdate:modelValue"
:
e
[
7
]
||
(
e
[
7
]
=
s
=>
i
.
goods_numberx
=
s
),
onInput
:
e
[
8
]
||
(
e
[
8
]
=
s
=>
a
.
changeNum
(
i
.
goods_info
.
sku_id
))},
null
,
8
,[
"modelValue"
]),
g
(
D
,{
class
:
"icon iconfont icon-jia"
,
onClick
:
e
[
9
]
||
(
e
[
9
]
=
s
=>
a
.
addjNum
(
i
.
goods_info
.
sku_id
,
2
))})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
g
(
P
,{
class
:
"goods-box"
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"tit"
},{
default
:
n
((()
=>
[
p
(
"型号"
)])),
_
:
1
}),(
_
(
!
0
),
h
(
b
,
null
,
m
(
i
.
goods_series
,((
s
,
e
)
=>
(
_
(),
c
(
P
,{
class
:
f
([
"item"
,{
act
:
i
.
goods_id
==
s
.
goods_id
}]),
key
:
e
},{
default
:
n
((()
=>
[
g
(
D
,{
onClick
:
e
=>
a
.
changeSku
(
s
.
goods_id
)},{
default
:
n
((()
=>
[
p
(
k
(
s
.
goods_name
),
1
)])),
_
:
2
},
1032
,[
"onClick"
])])),
_
:
2
},
1032
,[
"class"
])))),
128
))])),
_
:
1
}),
1
!=
i
.
goods_info
.
is_buy
?(
_
(),
c
(
O
,{
key
:
0
,
url
:
s
.
$globalData
.
KFQQ
,
class
:
"xunjia"
},{
default
:
n
((()
=>
[
p
(
"立即询价"
)])),
_
:
1
},
8
,[
"url"
])):
r
(
""
,
!
0
),
1
==
i
.
goods_info
.
is_buy
?(
_
(),
c
(
P
,{
key
:
1
,
class
:
"add-btn"
,
onClick
:
a
.
gocar
},{
default
:
n
((()
=>
[
p
(
k
(
1
==
i
.
addType
?
"加入购物车"
:
"立即订购"
),
1
)])),
_
:
1
},
8
,[
"onClick"
])):
r
(
""
,
!
0
)])),
_
:
1
})])),
_
:
1
},
512
),
g
(
M
,{
ref
:
"popupaddlist"
,
type
:
"bottom"
,
"safe-area"
:
!
1
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"pop-add-list"
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"trt"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"icon iconfont icon-caca"
,
onClick
:
a
.
closeAddList
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
g
(
P
,{
class
:
"ttit elep"
},{
default
:
n
((()
=>
[
p
(
k
(
i
.
goods_info
.
goods_name
),
1
)])),
_
:
1
}),
g
(
P
,{
class
:
"new-box row"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"new-btn row verCenter"
,
onClick
:
a
.
openNewList
},{
default
:
n
((()
=>
[
p
(
"新建清单"
),
g
(
D
,{
class
:
"icon iconfont icon-jia"
})])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
}),
i
.
qDList
.
length
>
0
?(
_
(),
c
(
P
,{
key
:
0
,
class
:
"list-box"
},{
default
:
n
((()
=>
[(
_
(
!
0
),
h
(
b
,
null
,
m
(
i
.
qDList
,((
s
,
e
)
=>
(
_
(),
c
(
P
,{
class
:
"item row verCenter bothSide"
,
key
:
e
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"row verCenter"
,
onClick
:
v
((
e
=>
a
.
chooseQd
(
s
.
list_id
)),[
"stop"
])},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"l"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
f
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
s
.
checked
}])},
null
,
8
,[
"class"
])])),
_
:
2
},
1024
),
g
(
P
,{
class
:
"c"
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"elep"
},{
default
:
n
((()
=>
[
p
(
k
(
s
.
list_name
),
1
)])),
_
:
2
},
1024
),
g
(
D
,
null
,{
default
:
n
((()
=>
[
p
(
k
(
s
.
create_time
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"onClick"
]),
g
(
O
,{
url
:
"/pages/user/qdDetail?list_id="
+
s
.
list_id
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"r row verCenter"
},{
default
:
n
((()
=>
[
g
(
D
,
null
,{
default
:
n
((()
=>
[
p
(
k
(
s
.
list_goods_count
)
+
"个商品"
,
1
)])),
_
:
2
},
1024
),
g
(
D
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"url"
])])),
_
:
2
},
1024
)))),
128
))])),
_
:
1
})):(
_
(),
c
(
P
,{
key
:
1
,
class
:
"list-box"
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"no-data"
},{
default
:
n
((()
=>
[
g
(
j
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/24/07a360187d83ccf80a9d835029c27446.png"
}),
g
(
P
,
null
,{
default
:
n
((()
=>
[
p
(
"暂无清单数据,先去创建清单吧!"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})),
g
(
P
,{
class
:
"add-list"
,
onClick
:
e
[
10
]
||
(
e
[
10
]
=
s
=>
a
.
addQdList
())},{
default
:
n
((()
=>
[
p
(
"确认"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
},
512
),
g
(
M
,{
ref
:
"popupnewlist"
,
type
:
"bottom"
,
"safe-area"
:
!
1
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"pop-new-list"
},{
default
:
n
((()
=>
[
g
(
P
,{
class
:
"trt"
},{
default
:
n
((()
=>
[
g
(
D
,{
class
:
"icon iconfont icon-caca"
,
onClick
:
a
.
closeNewList
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
g
(
P
,{
class
:
"ttit elep"
},{
default
:
n
((()
=>
[
p
(
"新建清单"
)])),
_
:
1
}),
g
(
P
,{
class
:
"cons"
},{
default
:
n
((()
=>
[
g
(
A
,{
type
:
"text"
,
class
:
"inputv"
,
modelValue
:
i
.
list_name
,
"onUpdate:modelValue"
:
e
[
11
]
||
(
e
[
11
]
=
s
=>
i
.
list_name
=
s
),
placeholder
:
"请输入清单名称,若未输入则显示商品分类;"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
g
(
P
,{
class
:
"add-list"
,
onClick
:
e
[
12
]
||
(
e
[
12
]
=
s
=>
a
.
createList
())},{
default
:
n
((()
=>
[
p
(
"确认"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
},
512
)])),
_
:
1
})):
r
(
""
,
!
0
)}],[
"__scopeId"
,
"data-v-0b75b70f"
]]);
export
{
j
as
default
};
unpackage/dist/build/web/assets/pages-index-index.CdfYYadg.js
0 → 100644
View file @
6eb3aa03
import
{
g
as
a
,
s
as
e
,
a
as
s
,
n
as
l
,
b
as
t
,
r
as
o
,
c
,
w
as
r
,
i
,
o
as
n
,
d
,
e
as
p
,
f
as
u
,
h
as
_
,
j
as
g
,
F
as
f
,
k
as
m
,
l
as
k
,
m
as
h
,
S
as
y
,
t
as
b
,
p
as
x
,
q
as
w
}
from
"./index-B52OZNum.js"
;
import
{
A
as
D
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
v
}
from
"./bottom_nav.Epavr9vk.js"
;
import
{
b
as
C
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
T
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
F
=
T
({
data
:()
=>
({
isLogin
:
!!
a
(
"token"
),
pageTitle
:
""
,
type
:
1
,
scrollTop
:
0
,
pageData
:
""
}),
onPageScroll
(
a
){
this
.
scrollTop
=
a
.
scrollTop
,
a
.
scrollTop
>
180
?(
this
.
pageTitle
=
"爱智工业品平台"
,
this
.
type
=
0
,
e
({
frontColor
:
"#000000"
,
backgroundColor
:
"#F8F8F8"
,
animation
:{
duration
:
300
,
timingFunc
:
"ease-in-out"
}})):(
this
.
pageTitle
=
""
,
this
.
type
=
1
,
e
({
frontColor
:
"#ffffff"
,
backgroundColor
:
"#BF0009"
,
animation
:{
duration
:
300
,
timingFunc
:
"ease-in-out"
}})),
s
({
title
:
"爱智工业品"
})},
onLoad
(){
this
.
getData
(),
s
({
title
:
"爱智工业品"
})},
methods
:{
goxj
(){
l
({
url
:
this
.
$globalData
.
KFQQ
})},
getData
(){
this
.
request
(
D
+
"/api/xcx/homepage"
,
"GET"
,{},
!
0
).
then
((
a
=>
{
0
==
a
.
code
?
this
.
pageData
=
a
.
data
:
t
({
title
:
a
.
msg
,
icon
:
"error"
})}))},
goSearch
(){
l
({
url
:
"/pages/search/nav"
})}},
components
:{
bottomNavFixed
:
v
,
barX
:
C
}},[[
"render"
,
function
(
a
,
e
,
s
,
l
,
t
,
D
){
const
v
=
o
(
"barX"
),
C
=
m
,
T
=
k
,
F
=
h
,
j
=
i
,
S
=
w
,
q
=
y
,
Q
=
o
(
"bottomNavFixed"
);
return
n
(),
c
(
j
,{
class
:
"indexPage"
},{
default
:
r
((()
=>
[
d
(
v
,{
pageTitle
:
t
.
pageTitle
,
type
:
t
.
type
},
null
,
8
,[
"pageTitle"
,
"type"
]),
t
.
scrollTop
<=
180
?(
n
(),
c
(
j
,{
key
:
0
,
class
:
"header"
},{
default
:
r
((()
=>
[
d
(
C
,{
class
:
"logo"
,
src
:
"/assets/logo-0Cv4B4yG.png"
}),
d
(
T
,{
url
:
"/pages/user/userInfo"
,
class
:
"menber"
},{
default
:
r
((()
=>
[
p
(
"会员入口"
)])),
_
:
1
}),
d
(
j
,{
class
:
"input-box row verCenter"
},{
default
:
r
((()
=>
[
d
(
F
,{
class
:
"icon iconfont icon-search"
,
onClick
:
e
[
0
]
||
(
e
[
0
]
=
a
=>
D
.
goSearch
())}),
d
(
j
,{
onClick
:
e
[
1
]
||
(
e
[
1
]
=
a
=>
D
.
goSearch
())},{
default
:
r
((()
=>
[
p
(
"请输入商品名称/品牌/型号/商品编码"
)])),
_
:
1
}),
d
(
T
,{
class
:
"kfbtn"
,
url
:
a
.
$globalData
.
KFQQ
},
null
,
8
,[
"url"
])])),
_
:
1
})])),
_
:
1
})):
u
(
""
,
!
0
),
t
.
pageData
.
banner_list
&&
t
.
pageData
.
banner_list
.
length
>
0
?(
n
(),
c
(
q
,{
key
:
1
,
class
:
"swiper swiper-box"
,
"indicator-dots"
:
!
0
,
autoplay
:
!
0
,
interval
:
3
e3
,
duration
:
500
},{
default
:
r
((()
=>
[(
n
(
!
0
),
_
(
f
,
null
,
g
(
t
.
pageData
.
banner_list
,((
a
,
e
)
=>
(
n
(),
c
(
S
,{
class
:
"swiper-item"
,
key
:
e
},{
default
:
r
((()
=>
[
d
(
T
,{
url
:
a
.
url
,
class
:
"bannert"
},{
default
:
r
((()
=>
[
d
(
C
,{
src
:
a
.
images
,
"lazy-load"
:
""
},
null
,
8
,[
"src"
])])),
_
:
2
},
1032
,[
"url"
])])),
_
:
2
},
1024
)))),
128
))])),
_
:
1
})):
u
(
""
,
!
0
),
t
.
pageData
.
quick_links
&&
t
.
pageData
.
quick_links
.
length
>
0
?(
n
(),
c
(
j
,{
key
:
2
,
class
:
"cate-box row bothSide"
},{
default
:
r
((()
=>
[(
n
(
!
0
),
_
(
f
,
null
,
g
(
t
.
pageData
.
quick_links
,((
a
,
e
)
=>
(
n
(),
c
(
T
,{
url
:
a
.
url
,
class
:
"item"
,
key
:
e
},{
default
:
r
((()
=>
[
d
(
C
,{
src
:
a
.
images
},
null
,
8
,[
"src"
]),
d
(
F
,{
class
:
"elep"
},{
default
:
r
((()
=>
[
p
(
b
(
a
.
title
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"url"
])))),
128
))])),
_
:
1
})):
u
(
""
,
!
0
),
t
.
pageData
.
recommend_goods
&&
t
.
pageData
.
recommend_goods
.
length
>
0
?(
n
(),
c
(
j
,{
key
:
3
,
class
:
"recommend-box"
},{
default
:
r
((()
=>
[
d
(
j
,{
class
:
"tit"
},{
default
:
r
((()
=>
[
p
(
"为你推荐"
)])),
_
:
1
}),
d
(
j
,{
class
:
"itembox row bothSide"
},{
default
:
r
((()
=>
[(
n
(
!
0
),
_
(
f
,
null
,
g
(
t
.
pageData
.
recommend_goods
,((
a
,
s
)
=>
(
n
(),
c
(
T
,{
url
:
"/pages/goods/detail?goods_id="
+
a
.
goods_id
,
class
:
"item"
,
key
:
s
},{
default
:
r
((()
=>
[
10
==
a
.
ac_type
?(
n
(),
c
(
j
,{
key
:
0
,
class
:
"ac618tagt"
})):
u
(
""
,
!
0
),
10
==
a
.
ac_type
?(
n
(),
c
(
j
,{
key
:
1
,
class
:
"ac618tagb"
})):
u
(
""
,
!
0
),
d
(
C
,{
src
:
a
.
goods_images
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
},
null
,
8
,[
"src"
]),
d
(
j
,{
class
:
"title elep2"
},{
default
:
r
((()
=>
[
p
(
b
(
a
.
sku_name
),
1
)])),
_
:
2
},
1024
),
10
==
a
.
ac_type
?(
n
(),
c
(
j
,{
key
:
2
,
class
:
"priceac168Box"
},{
default
:
r
((()
=>
[
d
(
j
,{
class
:
"row item12"
},{
default
:
r
((()
=>
[
d
(
j
,{
class
:
"price0"
},{
default
:
r
((()
=>
[
p
(
"¥"
+
b
(
a
.
ladder_price
[
0
].
price_ac
||
""
),
1
)])),
_
:
2
},
1024
),
d
(
j
,{
class
:
"tagac"
},{
default
:
r
((()
=>
[
p
(
"活动价"
)])),
_
:
1
})])),
_
:
2
},
1024
),
d
(
j
,{
class
:
"row item11"
},{
default
:
r
((()
=>
[
d
(
j
,{
class
:
"t3"
},{
default
:
r
((()
=>
[
p
(
"¥"
+
b
(
a
.
ladder_price
[
0
].
price_cn
||
""
),
1
)])),
_
:
2
},
1024
),
d
(
j
,{
class
:
"tagac2"
},{
default
:
r
((()
=>
[
p
(
"日常价"
)])),
_
:
1
})])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)):(
n
(),
c
(
j
,{
key
:
3
,
class
:
"pricenormalbox"
},{
default
:
r
((()
=>
[
a
.
ladder_price
&&
a
.
ladder_price
.
length
>
0
?(
n
(),
c
(
j
,{
key
:
0
,
class
:
"price"
},{
default
:
r
((()
=>
[
d
(
j
,{
class
:
"price0"
},{
default
:
r
((()
=>
[
p
(
"¥"
+
b
(
a
.
ladder_price
[
0
].
price_cn
||
""
),
1
)])),
_
:
2
},
1024
),
d
(
j
,{
class
:
"row verCenter qibox"
},{
default
:
r
((()
=>
[
t
.
isLogin
?(
n
(),
c
(
F
,{
key
:
0
,
class
:
"price1"
},{
default
:
r
((()
=>
[
a
.
ladder_price
[
1
].
price_cn
?(
n
(),
c
(
F
,{
key
:
0
,
class
:
"price1"
},{
default
:
r
((()
=>
[
p
(
"¥"
+
b
(
a
.
ladder_price
[
1
].
price_cn
),
1
)])),
_
:
2
},
1024
)):
u
(
""
,
!
0
)])),
_
:
2
},
1024
)):(
n
(),
c
(
F
,{
key
:
1
,
class
:
"price1"
},{
default
:
r
((()
=>
[
p
(
"¥****"
)])),
_
:
1
})),
a
.
ladder_price
[
1
].
price_cn
?(
n
(),
c
(
F
,{
key
:
2
,
class
:
"qytag"
},{
default
:
r
((()
=>
[
p
(
"企业价"
)])),
_
:
1
})):
u
(
""
,
!
0
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)):(
n
(),
c
(
j
,{
key
:
1
,
class
:
"price-c"
},{
default
:
r
((()
=>
[
d
(
F
,{
class
:
"xunj"
,
onClick
:
e
[
2
]
||
(
e
[
2
]
=
x
((
a
=>
D
.
goxj
()),[
"stop"
,
"prevent"
]))},{
default
:
r
((()
=>
[
p
(
"立即询价"
)])),
_
:
1
})])),
_
:
1
}))])),
_
:
2
},
1024
))])),
_
:
2
},
1032
,[
"url"
])))),
128
))])),
_
:
1
})])),
_
:
1
})):
u
(
""
,
!
0
),
t
.
scrollTop
>
180
?(
n
(),
c
(
j
,{
key
:
4
,
class
:
"fixed-search"
},{
default
:
r
((()
=>
[
d
(
j
,{
class
:
"input-box row verCenter"
},{
default
:
r
((()
=>
[
d
(
F
,{
class
:
"icon iconfont icon-search"
,
onClick
:
e
[
3
]
||
(
e
[
3
]
=
a
=>
D
.
goSearch
())}),
d
(
j
,{
onClick
:
e
[
4
]
||
(
e
[
4
]
=
a
=>
D
.
goSearch
())},{
default
:
r
((()
=>
[
p
(
"请输入商品名称、品牌、型号、商品编码"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):
u
(
""
,
!
0
),
d
(
Q
,{
actval
:
"1"
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-e5610061"
]]);
export
{
F
as
default
};
unpackage/dist/build/web/assets/pages-index-kf.BZDaSYeT.js
0 → 100644
View file @
6eb3aa03
import
{
r
as
a
,
c
as
e
,
w
as
s
,
i
as
o
,
o
as
r
,
d
as
t
,
u
as
c
}
from
"./index-B52OZNum.js"
;
import
{
b
as
n
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
d
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
f
=
d
({
data
:()
=>
({}),
onLoad
(){},
methods
:{},
components
:{
barX
:
n
}},[[
"render"
,
function
(
n
,
d
,
f
,
p
,
i
,
m
){
const
l
=
a
(
"barX"
),
u
=
c
,
b
=
o
;
return
r
(),
e
(
b
,{
class
:
"kfPage"
},{
default
:
s
((()
=>
[
t
(
l
,{
type
:
1
,
pageTitle
:
"iEdge爱智 - 在线咨询"
}),
t
(
u
,{
src
:
"https://11012981.saas.53kf.com/code/xcx/a4d13c38cc838fb6be490633eff7260b6/1?header=none"
},
null
,
8
,[
"src"
])])),
_
:
1
})}]]);
export
{
f
as
default
};
unpackage/dist/build/web/assets/pages-search-list.BOnN_O8F.js
0 → 100644
View file @
6eb3aa03
import
{
g
as
t
,
A
as
s
,
b
as
a
,
n
as
e
,
r
as
i
,
x
as
l
,
c
as
o
,
w
as
r
,
i
as
c
,
o
as
n
,
d
as
h
,
v
as
d
,
e
as
g
,
h
as
u
,
j
as
p
,
F
as
f
,
f
as
_
,
t
as
k
,
m
,
k
as
b
}
from
"./index-B52OZNum.js"
;
import
{
r
as
x
,
_
as
C
}
from
"./uni-popup.B33pbe0T.js"
;
import
{
A
as
y
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
w
}
from
"./barx._hPkFqJr.js"
;
import
{
s
as
A
}
from
"./search_head.Bd-A-aAE.js"
;
import
{
o
as
v
}
from
"./one_item.Ch3BEFeS.js"
;
import
{
_
as
j
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
I
=
j
({
data
:()
=>
({
isHasAttr
:
!
1
,
isInit
:
!
1
,
searchVal
:
""
,
tabType
:
1
,
stocksort
:
!
1
,
pricesort
:
!
1
,
page_size
:
10
,
page
:
1
,
totals
:
0
,
isLoadEnd
:
!
1
,
aggs
:[],
list
:[]}),
async
onReachBottom
(){
this
.
isLoadEnd
||
this
.
getData
()},
onLoad
:
function
(
t
){
this
.
searchVal
=
t
.
k
,
this
.
getData
(),
this
.
setHistoryItems
(
this
.
searchVal
)},
methods
:{
uiChage
(
t
){
this
.
aggs
.
forEach
((
s
=>
{
s
.
namex
==
t
&&
(
s
.
hideAll
=!
s
.
hideAll
)}))},
clearAttr
(){
this
.
aggs
.
forEach
((
t
=>
{
t
.
listx
.
forEach
((
t
=>
{
t
.
checked
=
0
}))})),
this
.
initGetData
()},
changeAttr
(
t
,
s
){
this
.
aggs
.
forEach
((
a
=>
{
t
==
a
.
namex
&&
a
.
listx
.
forEach
((
t
=>
{
s
==
t
.
attr_value_id
&&
(
t
.
checked
=
0
==
t
.
checked
?
"1"
:
"0"
)}))})),
this
.
initGetData
()},
getAttr
(){
let
t
=
{};
if
(
0
==
this
.
aggs
.
length
)
return
t
;
let
s
=
[],
a
=
[],
e
=
{};
return
this
.
aggs
.
forEach
((
t
=>
{
t
.
listx
.
forEach
((
t
=>
{
if
(
1
==
t
.
checked
)
switch
(
t
.
attr_id
){
case
"class_id1"
:
a
.
push
(
t
.
attr_value_id
);
break
;
case
"standard_brand_id"
:
s
.
push
(
t
.
attr_value_id
);
break
;
default
:
e
[
t
.
attr_id
]
||
(
e
[
t
.
attr_id
]
=
[]),
e
[
t
.
attr_id
].
push
(
String
(
t
.
attr_value_id
))}}))})),
s
.
length
>
0
&&
(
t
[
"standard_brand_id/eqs"
]
=
s
.
join
(
","
)),
a
.
length
>
0
&&
(
t
[
"class_id1/eqs"
]
=
a
.
join
(
","
)),
Object
.
keys
(
e
).
length
>
0
&&
(
t
[
"attrs/group"
]
=
JSON
.
stringify
(
e
)),
t
},
getData
(){
let
t
=
this
.
getAttr
(),
s
=
{
"goods_name_ik/like"
:
this
.
searchVal
,
page_size
:
this
.
page_size
,
page
:
this
.
page
,
hcy_test
:
1122
,...
t
};
2
==
this
.
tabType
&&
(
s
[
"stock/sort"
]
=
this
.
stocksort
?
"asc"
:
"desc"
),
3
==
this
.
tabType
&&
(
s
[
"single_price/sort"
]
=
this
.
pricesort
?
"asc"
:
"desc"
),
this
.
request
(
y
+
"/api/search/getData"
,
"POST"
,
s
,
!
0
).
then
((
t
=>
{
if
(
1
==
this
.
page
&&
(
this
.
list
=
[]),
0
==
t
.
code
){
if
(
!
this
.
isHasAttr
){
let
s
=
t
.
data
.
aggs
?
JSON
.
parse
(
JSON
.
stringify
(
t
.
data
.
aggs
)):[];
this
.
aggs
=
Object
.
keys
(
s
).
map
((
t
=>
({
namex
:
t
,
listx
:
s
[
t
]
||
[],
hideAll
:
!
1
})))}
this
.
isHasAttr
=
1
,
this
.
isInit
=
1
,
this
.
list
=
[...
this
.
list
,...
t
.
data
.
lists
||
[]],
this
.
totals
=
t
.
data
.
total
||
0
,
this
.
page
*
this
.
page_size
>=
Number
(
t
.
data
.
total
)
&&
(
this
.
isLoadEnd
=!
0
),
this
.
page
++
}
else
this
.
totals
=
0
,
this
.
isInit
=
1
,
this
.
list
=
[]}))},
tab
(
t
){
this
.
tabType
=
t
,
2
==
t
?
this
.
stocksort
=!
this
.
stocksort
:
3
==
t
&&
(
this
.
pricesort
=!
this
.
pricesort
),
this
.
initGetData
()},
initGetData
(){
this
.
page
=
1
,
this
.
isInit
=!
1
,
this
.
isLoadEnd
=!
1
,
this
.
list
=
[],
this
.
getData
()},
setHistoryItems
(
a
){
a
=
a
.
trim
();
let
e
=
t
(
"historyItems"
);
if
(
void
0
===
e
)
s
(
"historyItems"
,
a
);
else
{
let
t
=
e
.
split
(
"|"
).
filter
((
function
(
t
){
return
t
!=
a
}));
t
.
length
>=
10
&&
(
t
=
t
.
splice
(
0
,
9
)),
t
.
length
>
0
&&
(
e
=
a
+
"|"
+
t
.
join
(
"|"
)),
s
(
"historyItems"
,
e
)}},
onConfirm
(
t
){
let
s
=
t
.
detail
.
value
;
s
.
length
<
2
?
a
({
title
:
"关键字不能小于2个字符"
,
duration
:
2
e3
,
icon
:
"none"
}):
e
({
url
:
"/pages/search/list?k="
+
s
})},
open
(){
this
.
$refs
.
popupsx
.
open
(
"right"
)},
close
(){
this
.
$refs
.
popupsx
.
close
(
"right"
)}},
components
:{
barX
:
w
,
searchHead
:
A
,
oneItem
:
v
}},[[
"render"
,
function
(
t
,
s
,
a
,
e
,
y
,
w
){
const
A
=
i
(
"barX"
),
v
=
i
(
"searchHead"
),
j
=
c
,
I
=
m
,
E
=
i
(
"oneItem"
),
D
=
b
,
H
=
x
(
l
(
"uni-popup"
),
C
);
return
n
(),
o
(
j
,{
class
:
"searchPage"
},{
default
:
r
((()
=>
[
h
(
A
),
h
(
j
,{
class
:
"fixed-tp"
},{
default
:
r
((()
=>
[
h
(
v
,{
onConfirm
:
w
.
onConfirm
,
searchVal
:
y
.
searchVal
,
backurl
:
"/pages/index/index"
},
null
,
8
,[
"onConfirm"
,
"searchVal"
]),
h
(
j
,{
class
:
"shiftbox row bothSide verCenter"
},{
default
:
r
((()
=>
[
h
(
j
,{
class
:
d
([
"rank1 rank row"
,{
act
:
1
==
y
.
tabType
}]),
onClick
:
s
[
0
]
||
(
s
[
0
]
=
t
=>
w
.
tab
(
1
))},{
default
:
r
((()
=>
[
g
(
"综合排序"
)])),
_
:
1
},
8
,[
"class"
]),
h
(
j
,{
class
:
d
([
"rank2 rank row verCenter"
,{
act
:
2
==
y
.
tabType
}]),
onClick
:
s
[
1
]
||
(
s
[
1
]
=
t
=>
w
.
tab
(
2
))},{
default
:
r
((()
=>
[
g
(
"库存"
),
h
(
I
,{
class
:
d
([
"icon"
,
"iconfont"
,
y
.
stocksort
?
"icon-arrowshang"
:
"icon-arrowxia"
])},
null
,
8
,[
"class"
])])),
_
:
1
},
8
,[
"class"
]),
h
(
j
,{
class
:
d
([
"rank3 rank row verCenter"
,{
act
:
3
==
y
.
tabType
}]),
onClick
:
s
[
2
]
||
(
s
[
2
]
=
t
=>
w
.
tab
(
3
))},{
default
:
r
((()
=>
[
g
(
"价格"
),
h
(
I
,{
class
:
d
([
"icon"
,
"iconfont"
,
y
.
pricesort
?
"icon-arrowshang"
:
"icon-arrowxia"
])},
null
,
8
,[
"class"
])])),
_
:
1
},
8
,[
"class"
]),
h
(
j
,{
class
:
"sxbox row verCenter"
,
onClick
:
w
.
open
},{
default
:
r
((()
=>
[
g
(
"筛选"
),
h
(
I
,{
class
:
"icon iconfont icon-saixuan"
})])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
}),
h
(
j
,{
class
:
"cons"
},{
default
:
r
((()
=>
[
h
(
j
,{
class
:
"databox"
},{
default
:
r
((()
=>
[(
n
(
!
0
),
u
(
f
,
null
,
p
(
y
.
list
,((
t
,
s
)
=>
(
n
(),
o
(
E
,{
key
:
s
,
obj
:
t
},
null
,
8
,[
"obj"
])))),
128
)),
y
.
list
.
length
>
0
&&
y
.
isLoadEnd
?(
n
(),
o
(
j
,{
key
:
0
,
class
:
"pagebot"
},{
default
:
r
((()
=>
[
g
(
"—— 已经全部加载完 ——"
)])),
_
:
1
})):
_
(
""
,
!
0
),
y
.
isInit
&&
0
==
y
.
list
.
length
?(
n
(),
o
(
j
,{
key
:
1
,
class
:
"no-data-box"
},{
default
:
r
((()
=>
[
h
(
D
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/07/676f987065320e89a68d473ec62c8cea.png"
}),
h
(
j
,
null
,{
default
:
r
((()
=>
[
g
(
"抱歉,您可以联系客服咨询上品相关事宜!"
)])),
_
:
1
}),
h
(
j
,{
class
:
"backs"
,
onClick
:
t
.
$goBack
},{
default
:
r
((()
=>
[
g
(
"返回"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})):
_
(
""
,
!
0
)])),
_
:
1
})])),
_
:
1
}),
h
(
H
,{
ref
:
"popupsx"
,
type
:
"right"
},{
default
:
r
((()
=>
[
h
(
j
,{
class
:
"pop-consx"
},{
default
:
r
((()
=>
[
h
(
j
,{
class
:
"section"
},{
default
:
r
((()
=>
[
y
.
aggs
.
length
>
0
?(
n
(),
o
(
j
,{
key
:
0
},{
default
:
r
((()
=>
[(
n
(
!
0
),
u
(
f
,
null
,
p
(
y
.
aggs
,((
t
,
s
)
=>
(
n
(),
o
(
j
,{
class
:
"item-group"
,
key
:
s
},{
default
:
r
((()
=>
[
h
(
j
,{
class
:
"item-t row bothSide verCenter"
},{
default
:
r
((()
=>
[
h
(
I
,{
class
:
"names elep"
},{
default
:
r
((()
=>
[
g
(
k
(
t
.
namex
),
1
)])),
_
:
2
},
1024
),
t
.
listx
.
length
>
6
?(
n
(),
o
(
j
,{
key
:
0
,
class
:
"row verCenter status-box"
,
onClick
:
s
=>
w
.
uiChage
(
t
.
namex
)},{
default
:
r
((()
=>
[
h
(
I
,{
class
:
"status-name"
},{
default
:
r
((()
=>
[
g
(
k
(
t
.
hideAll
?
"收起"
:
"展开"
),
1
)])),
_
:
2
},
1024
),
h
(
I
,{
class
:
d
([
"icon"
,
"iconfont"
,
t
.
hideAll
?
"icon-arrowshang"
:
"icon-arrowxia"
])},
null
,
8
,[
"class"
])])),
_
:
2
},
1032
,[
"onClick"
])):
_
(
""
,
!
0
)])),
_
:
2
},
1024
),
h
(
j
,{
class
:
d
([
"item-c row"
,{
showAll
:
t
.
hideAll
}])},{
default
:
r
((()
=>
[(
n
(
!
0
),
u
(
f
,
null
,
p
(
t
.
listx
,((
s
,
a
)
=>
(
n
(),
o
(
j
,{
class
:
d
([
"citem elep"
,{
act
:
1
==
s
.
checked
}]),
onClick
:
a
=>
w
.
changeAttr
(
t
.
namex
,
s
.
attr_value_id
),
key
:
a
},{
default
:
r
((()
=>
[
g
(
k
(
s
.
value
),
1
)])),
_
:
2
},
1032
,[
"class"
,
"onClick"
])))),
128
))])),
_
:
2
},
1032
,[
"class"
])])),
_
:
2
},
1024
)))),
128
))])),
_
:
1
})):
_
(
""
,
!
0
)])),
_
:
1
}),
h
(
j
,{
class
:
"foot row bothSide"
},{
default
:
r
((()
=>
[
h
(
j
,{
class
:
"cz"
,
onClick
:
w
.
clearAttr
},{
default
:
r
((()
=>
[
g
(
"重置"
)])),
_
:
1
},
8
,[
"onClick"
]),
h
(
j
,{
class
:
"cx"
,
onClick
:
w
.
close
},{
default
:
r
((()
=>
[
g
(
"确认("
+
k
(
y
.
totals
)
+
"个型号)"
,
1
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
})])),
_
:
1
},
512
)])),
_
:
1
})}],[
"__scopeId"
,
"data-v-287e3886"
]]);
export
{
I
as
default
};
unpackage/dist/build/web/assets/pages-search-nav.D0ht0Fx0.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
s
,
n
as
e
,
g
as
t
,
y
as
a
,
z
as
o
,
r
,
c
as
i
,
w
as
l
,
i
as
n
,
o
as
c
,
d
as
h
,
e
as
d
,
t
as
u
,
f
,
v
as
g
,
h
as
_
,
j
as
m
,
F
as
p
,
m
as
y
,
l
as
C
}
from
"./index-B52OZNum.js"
;
import
{
A
as
w
}
from
"./api.Cl4HE8_F.js"
;
import
{
s
as
x
}
from
"./search_head.Bd-A-aAE.js"
;
import
{
b
as
H
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
k
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
b
=
k
({
data
:()
=>
({
isExpanded
:
!
1
,
showToggle
:
!
0
,
hot_search_list
:[],
searchHistory
:[]}),
onReady
(){
this
.
getContentHeight
()},
onShow
:
function
(){
this
.
getData
(),
this
.
getsearchHistory
()},
methods
:{
getData
(){
this
.
request
(
w
+
"/api/xcx/hotSearch"
,
"GET"
,{},
!
0
).
then
((
e
=>
{
0
==
e
.
code
?
this
.
hot_search_list
=
e
.
data
.
hot_search_list
||
[]:
s
({
title
:
e
.
msg
,
icon
:
"error"
})}))},
onConfirm
(
t
){
let
a
=
t
.
detail
.
value
;
a
.
length
<
2
?
s
({
title
:
"关键字不能小于2个字符"
,
duration
:
2
e3
,
icon
:
"none"
}):
e
({
url
:
"/pages/search/list?k="
+
a
})},
getContentHeight
(){},
toggleContent
(){
this
.
isExpanded
=!
this
.
isExpanded
},
getsearchHistory
(){
let
s
=
t
(
"historyItems"
);
if
(
this
.
searchHistory
=
[],
s
){
s
.
split
(
"|"
).
forEach
((
s
=>
{
s
&&
this
.
searchHistory
.
push
(
s
)}))}
console
.
log
(
this
.
searchHistory
)},
delsearchHistory
(){
a
({
title
:
"删除"
,
content
:
"您确定要删除最近搜索内容吗?"
,
success
:
s
=>
{
s
.
confirm
&&
(
o
(
"historyItems"
),
this
.
getsearchHistory
())}})}},
components
:{
searchHead
:
x
,
barX
:
H
}},[[
"render"
,
function
(
s
,
e
,
t
,
a
,
o
,
w
){
const
x
=
r
(
"barX"
),
H
=
r
(
"searchHead"
),
k
=
y
,
b
=
n
,
v
=
C
;
return
c
(),
i
(
b
,{
class
:
"searchNavPage"
},{
default
:
l
((()
=>
[
h
(
x
),
h
(
H
,{
onConfirm
:
w
.
onConfirm
,
isFocus
:
!
0
},
null
,
8
,[
"onConfirm"
]),
o
.
hot_search_list
.
length
>
0
?(
c
(),
i
(
b
,{
key
:
0
,
class
:
"hot-search"
},{
default
:
l
((()
=>
[
h
(
b
,{
class
:
"tit row bothSide verCenter"
},{
default
:
l
((()
=>
[
h
(
k
,{
class
:
"word-name"
},{
default
:
l
((()
=>
[
d
(
"热搜"
)])),
_
:
1
}),
h
(
b
,{
class
:
"rt row verCenter"
},{
default
:
l
((()
=>
[
o
.
showToggle
?(
c
(),
i
(
k
,{
key
:
0
,
class
:
"status-name"
,
onClick
:
w
.
toggleContent
},{
default
:
l
((()
=>
[
d
(
u
(
o
.
isExpanded
?
"收起"
:
"展开"
),
1
)])),
_
:
1
},
8
,[
"onClick"
])):
f
(
""
,
!
0
),
o
.
showToggle
?(
c
(),
i
(
k
,{
key
:
1
,
class
:
g
([
"icon"
,
"iconfont"
,
o
.
isExpanded
?
"icon-arrowshang"
:
"icon-arrowxia"
]),
onClick
:
w
.
toggleContent
},
null
,
8
,[
"class"
,
"onClick"
])):
f
(
""
,
!
0
)])),
_
:
1
})])),
_
:
1
}),
h
(
b
,{
class
:
g
([
"content-box"
,
"row"
,{
hidex
:
o
.
showToggle
&&!
o
.
isExpanded
}])},{
default
:
l
((()
=>
[(
c
(
!
0
),
_
(
p
,
null
,
m
(
o
.
hot_search_list
,((
s
,
e
)
=>
(
c
(),
i
(
v
,{
url
:
"/pages/search/list?k="
+
s
.
title
,
class
:
"item"
,
key
:
e
},{
default
:
l
((()
=>
[
d
(
u
(
s
.
title
),
1
)])),
_
:
2
},
1032
,[
"url"
])))),
128
))])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
})):
f
(
""
,
!
0
),
h
(
b
,{
class
:
"history-search"
},{
default
:
l
((()
=>
[
h
(
b
,{
class
:
"tit row bothSide verCenter"
},{
default
:
l
((()
=>
[
h
(
k
,{
class
:
"word-name"
},{
default
:
l
((()
=>
[
d
(
"历史搜索"
)])),
_
:
1
}),
h
(
b
,{
class
:
"rt row verCenter"
},{
default
:
l
((()
=>
[
h
(
k
,{
class
:
"icon iconfont icon-del"
,
onClick
:
w
.
delsearchHistory
},
null
,
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
}),
h
(
b
,{
class
:
"content-box-item row"
},{
default
:
l
((()
=>
[(
c
(
!
0
),
_
(
p
,
null
,
m
(
o
.
searchHistory
,((
s
,
e
)
=>
(
c
(),
i
(
v
,{
class
:
"item"
,
url
:
"/pages/search/list?k="
+
s
,
key
:
e
},{
default
:
l
((()
=>
[
d
(
u
(
s
),
1
)])),
_
:
2
},
1032
,[
"url"
])))),
128
))])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-fd544af5"
]]);
export
{
b
as
default
};
unpackage/dist/build/web/assets/pages-user-address.Yuc3Kk6Y.js
0 → 100644
View file @
6eb3aa03
import
{
n
as
s
,
O
as
e
,
b
as
t
,
y
as
a
,
r
as
i
,
c
as
d
,
w
as
o
,
i
as
c
,
o
as
r
,
d
as
l
,
h
as
n
,
j
as
_
,
F
as
u
,
e
as
f
,
f
as
h
,
k
as
p
,
l
as
m
,
v
as
k
,
t
as
v
,
p
as
g
,
m
as
C
}
from
"./index-B52OZNum.js"
;
import
{
A
as
b
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
x
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
y
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
w
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
j
=
w
({
data
:()
=>
({
isInit
:
!
1
,
form
:
""
,
address_id
:
""
,
invoice_id
:
""
,
coupon_id
:
""
,
list
:[]}),
onLoad
:
function
(
s
){
this
.
form
=
s
.
form
||
""
,
this
.
address_id
=
s
.
address_id
||
""
,
this
.
invoice_id
=
s
.
invoice_id
||
""
,
this
.
coupon_id
=
s
.
coupon_id
||
""
},
onShow
(){
this
.
getData
()},
methods
:{
goUpdate
(
e
){
s
({
url
:
"/pages/user/addressEdit?address_id="
+
e
})},
setChoose
(
e
){
if
(
!
this
.
form
)
return
;
let
t
=
""
;
this
.
list
.
forEach
((
s
=>
{
s
.
checkedx
=!
1
,
e
==
s
.
address_id
&&
(
s
.
checkedx
=!
0
,
t
=
s
.
address_id
)})),
setTimeout
((()
=>
{
"confirmQuote"
!=
this
.
form
?
s
({
url
:
"/pages/car/confirmOrder?address_id="
+
t
+
"&coupon_id="
+
this
.
coupon_id
+
"&invoice_id="
+
this
.
invoice_id
}):
s
({
url
:
"/pages/car/confirmQuote?address_id="
+
t
+
"&coupon_id="
+
this
.
coupon_id
})}),
200
)},
copy
(
s
){
e
({
data
:(
"中国"
!=
s
.
nation_cn
?
s
.
nation_cn
:
""
)
+
s
.
province_val
+
" "
+
s
.
city_val
+
" "
+
s
.
district_val
+
" "
+
s
.
detail_address
,
success
:
function
(){
t
({
title
:
"复制成功"
,
icon
:
"success"
})}})},
deleteAdress
(
s
){
a
({
title
:
""
,
content
:
"您确定删除该地址嘛"
,
success
:
e
=>
{
e
.
confirm
&&
this
.
request
(
b
+
"/api/address/del"
,
"POST"
,{
address_id
:
s
},
!
0
).
then
((
s
=>
{
0
===
s
.
code
?(
t
({
title
:
"删除成功"
,
icon
:
"success"
}),
this
.
getData
(
1
)):
t
({
title
:
s
.
msg
,
icon
:
"none"
})}))}})},
setdefault
(
s
){
this
.
request
(
b
+
"/api/address/default"
,
"POST"
,{
address_id
:
s
},
!
0
).
then
((
s
=>
{
0
===
s
.
code
?(
t
({
title
:
"设置成功"
,
icon
:
"success"
}),
this
.
getData
(
1
)):
t
({
title
:
s
.
err_msg
,
icon
:
"none"
})}))},
getData
(
s
){
this
.
request
(
b
+
"/api/address/getList"
,
"GET"
,{
p
:
1
},
!
s
).
then
((
s
=>
{
if
(
0
==
s
.
code
){
this
.
isInit
=
1
;
let
e
=
s
.
data
.
list
||
[];
e
.
forEach
((
s
=>
{
s
.
checkedx
=!
1
,
s
.
address_id
==
this
.
address_id
&&
(
s
.
checkedx
=!
0
)})),
this
.
list
=
e
}
else
this
.
isInit
=
1
,
this
.
list
=
[]}))}},
components
:{
barX
:
x
,
titleNav
:
y
}},[[
"render"
,
function
(
s
,
e
,
t
,
a
,
b
,
x
){
const
y
=
i
(
"barX"
),
w
=
i
(
"titleNav"
),
j
=
C
,
I
=
c
,
A
=
p
,
D
=
m
;
return
r
(),
d
(
I
,{
class
:
"addressPage"
},{
default
:
o
((()
=>
[
l
(
y
),
l
(
w
,{
title
:
"收货地址"
}),
l
(
I
,{
class
:
"cons"
},{
default
:
o
((()
=>
[
l
(
I
,{
class
:
"data-box"
},{
default
:
o
((()
=>
[(
r
(
!
0
),
n
(
u
,
null
,
_
(
b
.
list
,((
s
,
e
)
=>
(
r
(),
d
(
I
,{
class
:
k
([
"group"
,{
hkk
:
s
.
checkedx
}]),
key
:
e
,
onClick
:
e
=>
x
.
setChoose
(
s
.
address_id
)},{
default
:
o
((()
=>
[
l
(
I
,{
class
:
"t row verCenter"
},{
default
:
o
((()
=>
[
l
(
j
,{
class
:
"tet"
},{
default
:
o
((()
=>
[
f
(
v
(
"中国"
!=
s
.
nation_cn
?
s
.
nation_cn
:
""
)
+
" "
+
v
(
s
.
province_val
)
+
" "
+
v
(
s
.
city_val
)
+
" "
+
v
(
s
.
district_val
)
+
" "
+
v
(
s
.
consignee
),
1
)])),
_
:
2
},
1024
),
1
==
s
.
is_default
?(
r
(),
d
(
j
,{
key
:
0
,
class
:
"mr row verCenter rowCenter"
},{
default
:
o
((()
=>
[
f
(
"默认"
)])),
_
:
1
})):
h
(
""
,
!
0
)])),
_
:
2
},
1024
),
l
(
I
,{
class
:
"c"
},{
default
:
o
((()
=>
[
f
(
v
(
s
.
detail_address
),
1
)])),
_
:
2
},
1024
),
l
(
I
,{
class
:
"b row bothSide"
},{
default
:
o
((()
=>
[
b
.
form
?(
r
(),
d
(
I
,{
key
:
1
})):(
r
(),
d
(
I
,{
key
:
0
,
class
:
"l row verCenter"
,
onClick
:
e
=>
x
.
setdefault
(
s
.
address_id
)},{
default
:
o
((()
=>
[
l
(
j
,{
class
:
k
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
1
==
s
.
is_default
}])},
null
,
8
,[
"class"
]),
l
(
j
,
null
,{
default
:
o
((()
=>
[
f
(
v
(
1
==
s
.
is_default
?
"已默认"
:
"设为默认"
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"onClick"
])),
l
(
I
,{
class
:
"r row verCenter"
},{
default
:
o
((()
=>
[
l
(
j
,{
onClick
:
g
((
e
=>
x
.
deleteAdress
(
s
.
address_id
)),[
"stop"
])},{
default
:
o
((()
=>
[
f
(
"删除"
)])),
_
:
2
},
1032
,[
"onClick"
]),
l
(
I
,{
onClick
:
g
((
e
=>
x
.
goUpdate
(
s
.
address_id
)),[
"stop"
])},{
default
:
o
((()
=>
[
f
(
"修改"
)])),
_
:
2
},
1032
,[
"onClick"
])])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"class"
,
"onClick"
])))),
128
))])),
_
:
1
}),
b
.
isInit
&&
0
==
b
.
list
.
length
?(
r
(),
d
(
I
,{
key
:
0
,
class
:
"no-data"
},{
default
:
o
((()
=>
[
l
(
A
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/07/676f987065320e89a68d473ec62c8cea.png"
}),
l
(
I
,
null
,{
default
:
o
((()
=>
[
f
(
"暂无地址信息!"
)])),
_
:
1
})])),
_
:
1
})):
h
(
""
,
!
0
)])),
_
:
1
}),
l
(
I
,{
class
:
"foot"
},{
default
:
o
((()
=>
[
l
(
D
,{
url
:
"/pages/user/addressAdd"
,
class
:
"btn"
},{
default
:
o
((()
=>
[
f
(
"新增收货地址"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-299b87fd"
]]);
export
{
j
as
default
};
unpackage/dist/build/web/assets/pages-user-addressAdd.H4DcJtWU.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
e
,
U
as
a
,
r
as
t
,
c
as
l
,
w
as
i
,
i
as
s
,
o
as
r
,
d
as
n
,
e
as
o
,
t
as
d
,
v
as
u
,
m
,
I
as
c
,
H
as
h
,
V
as
f
}
from
"./index-B52OZNum.js"
;
import
{
A
as
p
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
v
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
g
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
x
=
_
({
data
:()
=>
({
multiArray
:[[],[],[]],
multiIndex
:[
0
,
0
,
0
],
selectText
:
"请选择省市区"
,
formParams
:{
consignee
:
""
,
province_id
:
""
,
city_id
:
""
,
district_id
:
""
,
detail_address
:
""
,
is_default
:
0
,
mobile
:
""
,
intl_code
:
"0086"
},
areaIndex
:
0
,
areaArray
:[{
name
:
"0086(中国大陆)"
,
value
:
"0086"
}]}),
onLoad
:
function
(){},
onShow
(){
this
.
getProvince
()},
methods
:{
bindPickerChange
:
function
(
e
,
a
){
this
.
areaIndex
=
e
.
detail
.
value
,
this
.
formParams
.
intl_code
=
this
.
areaArray
[
e
.
detail
.
value
].
value
},
onSwitchChange
(
e
){
this
.
formParams
.
is_default
=
e
.
detail
.
value
?
1
:
0
},
bindMultiPickerColumnChange
(
e
){
console
.
log
(
e
.
detail
),
0
===
e
.
detail
.
column
?(
this
.
multiIndex
[
0
]
=
e
.
detail
.
value
,
this
.
getCity
(
this
.
multiArray
[
0
][
e
.
detail
.
value
].
value
,
!
0
),
this
.
multiIndex
.
splice
(
1
,
1
,
0
),
this
.
multiIndex
.
splice
(
2
,
1
,
0
)):
1
===
e
.
detail
.
column
?(
this
.
multiIndex
[
1
]
=
e
.
detail
.
value
,
this
.
getDistrict
(
this
.
multiArray
[
1
][
e
.
detail
.
value
].
value
),
this
.
multiIndex
.
splice
(
2
,
1
,
0
)):
2
===
e
.
detail
.
column
&&
(
this
.
multiIndex
[
2
]
=
e
.
detail
.
value
),
this
.
$forceUpdate
()},
pickerChange
(
e
){
this
.
multiIndex
=
e
.
detail
.
value
,
this
.
formParams
.
province_id
=
this
.
multiArray
[
0
][
this
.
multiIndex
[
0
]].
value
,
this
.
formParams
.
city_id
=
this
.
multiArray
[
1
][
this
.
multiIndex
[
1
]].
value
,
this
.
formParams
.
district_id
=
this
.
multiArray
[
2
][
this
.
multiIndex
[
2
]].
value
,
this
.
selectText
=
""
+
(
this
.
multiArray
[
0
][
this
.
multiIndex
[
0
]].
name
+
","
+
this
.
multiArray
[
1
][
this
.
multiIndex
[
1
]].
name
+
","
+
this
.
multiArray
[
2
][
this
.
multiIndex
[
2
]].
name
)},
getProvince
(
e
=
1
){
console
.
log
(
"获取省数据id:"
+
e
),
this
.
request
(
p
+
"/api/address/getOptions"
,
"GET"
,{
id
:
e
},
!
1
,
!
0
).
then
((
e
=>
{
if
(
0
===
e
.
code
){
var
a
=
[];
for
(
var
t
in
e
.
data
)
a
.
push
({
name
:
e
.
data
[
t
],
value
:
parseInt
(
t
)});
this
.
multiArray
[
0
]
=
a
,
this
.
getCity
(
2
,
!
0
),
this
.
$forceUpdate
()}}))},
getCity
(
e
,
a
){
console
.
log
(
"获取市数据id:"
+
e
),
this
.
request
(
p
+
"/api/address/getOptions"
,
"GET"
,{
id
:
e
},
!
1
,
!
0
).
then
((
e
=>
{
if
(
0
===
e
.
code
){
var
t
=
[];
for
(
var
l
in
e
.
data
)
t
.
push
({
name
:
e
.
data
[
l
],
value
:
parseInt
(
l
)});
this
.
multiArray
[
1
]
=
t
,
a
&&
this
.
getDistrict
(
t
[
0
].
value
),
this
.
$forceUpdate
()}}))},
getDistrict
(
e
){
console
.
log
(
"获取区数据id:"
+
e
),
this
.
request
(
p
+
"/api/address/getOptions"
,
"GET"
,{
id
:
e
},
!
1
,
!
0
).
then
((
e
=>
{
if
(
0
===
e
.
code
){
var
a
=
[];
for
(
var
t
in
e
.
data
)
a
.
push
({
name
:
e
.
data
[
t
],
value
:
parseInt
(
t
)});
this
.
multiArray
[
2
]
=
a
,
this
.
$forceUpdate
()}}))},
create
(){
if
(
!
this
.
formParams
.
consignee
)
return
e
({
title
:
"请输入收货人"
,
icon
:
"none"
}),
!
1
;
return
!
this
.
formParams
.
mobile
||
"0086"
==
this
.
formParams
.
intl_code
&&!
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
.
test
(
this
.
formParams
.
mobile
)?(
e
({
title
:
"请输入正确的手机号"
,
icon
:
"none"
}),
!
1
):
this
.
formParams
.
province_id
?
this
.
formParams
.
detail_address
?
void
this
.
request
(
p
+
"/api/address/add"
,
"POST"
,
this
.
formParams
,
!
0
).
then
((
t
=>
{
0
===
t
.
code
?(
e
({
title
:
"新增地址成功"
,
icon
:
"success"
}),
setTimeout
((()
=>
{
a
({
delta
:
1
})}),
2
e3
)):
e
({
title
:
t
.
msg
,
icon
:
"none"
})})):(
e
({
title
:
"请输入详细街道地址"
,
icon
:
"none"
}),
!
1
):(
e
({
title
:
"请选择省市区"
,
icon
:
"none"
}),
!
1
)}},
components
:{
barX
:
v
,
titleNav
:
g
}},[[
"render"
,
function
(
e
,
a
,
p
,
v
,
g
,
_
){
const
x
=
t
(
"barX"
),
y
=
t
(
"titleNav"
),
C
=
m
,
P
=
c
,
b
=
s
,
I
=
h
,
A
=
f
;
return
r
(),
l
(
b
,{
class
:
"addressAddPage"
},{
default
:
i
((()
=>
[
n
(
x
),
n
(
y
,{
title
:
"新增收货地址"
}),
n
(
b
,{
class
:
"cons"
},{
default
:
i
((()
=>
[
n
(
b
,{
class
:
"input-box"
},{
default
:
i
((()
=>
[
n
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
i
((()
=>
[
n
(
C
,{
class
:
"label"
},{
default
:
i
((()
=>
[
o
(
"收货人"
)])),
_
:
1
}),
n
(
P
,{
type
:
"text"
,
placeholder
:
"请输入收货人"
,
modelValue
:
g
.
formParams
.
consignee
,
"onUpdate:modelValue"
:
a
[
0
]
||
(
a
[
0
]
=
e
=>
g
.
formParams
.
consignee
=
e
),
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
n
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
i
((()
=>
[
n
(
C
,{
class
:
"label"
},{
default
:
i
((()
=>
[
o
(
"手机号"
)])),
_
:
1
}),
n
(
I
,{
onChange
:
a
[
1
]
||
(
a
[
1
]
=
e
=>
_
.
bindPickerChange
(
e
)),
value
:
g
.
areaIndex
,
range
:
g
.
areaArray
,
"range-key"
:
"name"
},{
default
:
i
((()
=>
[
n
(
b
,{
class
:
"areabox-but"
},{
default
:
i
((()
=>
[
n
(
C
,{
class
:
"but-val"
},{
default
:
i
((()
=>
[
o
(
d
(
g
.
areaArray
[
g
.
areaIndex
].
value
),
1
)])),
_
:
1
}),
n
(
C
,{
class
:
"icon iconfont icon-arrowxia"
})])),
_
:
1
})])),
_
:
1
},
8
,[
"value"
,
"range"
]),
n
(
P
,{
type
:
"number"
,
modelValue
:
g
.
formParams
.
mobile
,
"onUpdate:modelValue"
:
a
[
2
]
||
(
a
[
2
]
=
e
=>
g
.
formParams
.
mobile
=
e
),
placeholder
:
"请输入手机号"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
n
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
i
((()
=>
[
n
(
C
,{
class
:
"label"
},{
default
:
i
((()
=>
[
o
(
"收货地区"
)])),
_
:
1
}),
n
(
I
,{
mode
:
"multiSelector"
,
onChange
:
_
.
pickerChange
,
onColumnchange
:
_
.
bindMultiPickerColumnChange
,
value
:
g
.
multiIndex
,
range
:
g
.
multiArray
,
"range-key"
:
"name"
},{
default
:
i
((()
=>
[
n
(
b
,{
class
:
u
([
"uni-input"
,{
color666
:
"请选择省市区"
==
g
.
selectText
}])},{
default
:
i
((()
=>
[
o
(
d
(
g
.
selectText
),
1
)])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
},
8
,[
"onChange"
,
"onColumnchange"
,
"value"
,
"range"
])])),
_
:
1
}),
n
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
i
((()
=>
[
n
(
C
,{
class
:
"label"
},{
default
:
i
((()
=>
[
o
(
"详细地址"
)])),
_
:
1
}),
n
(
P
,{
type
:
"text"
,
modelValue
:
g
.
formParams
.
detail_address
,
"onUpdate:modelValue"
:
a
[
3
]
||
(
a
[
3
]
=
e
=>
g
.
formParams
.
detail_address
=
e
),
placeholder
:
"请输入详细地址"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})])),
_
:
1
}),
n
(
b
,{
class
:
"setting-default row verCenter bothSide"
},{
default
:
i
((()
=>
[
n
(
b
,{
class
:
"tt"
},{
default
:
i
((()
=>
[
n
(
b
,
null
,{
default
:
i
((()
=>
[
o
(
"设为默认地址"
)])),
_
:
1
}),
o
(
" 下单时会优先使用该地址 "
)])),
_
:
1
}),
n
(
b
,
null
,{
default
:
i
((()
=>
[
n
(
A
,{
onChange
:
_
.
onSwitchChange
,
color
:
"#D0121B"
,
style
:{
transform
:
"scale(0.8)"
}},
null
,
8
,[
"onChange"
])])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
n
(
b
,{
class
:
"foot"
},{
default
:
i
((()
=>
[
n
(
b
,{
class
:
"btn"
,
onClick
:
_
.
create
},{
default
:
i
((()
=>
[
o
(
"确认"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-79375a06"
]]);
export
{
x
as
default
};
unpackage/dist/build/web/assets/pages-user-addressEdit.at1LtFSV.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
e
,
U
as
a
,
r
as
t
,
c
as
i
,
w
as
s
,
i
as
l
,
o
as
r
,
d
,
e
as
n
,
t
as
o
,
m
,
I
as
u
,
H
as
c
,
V
as
h
}
from
"./index-B52OZNum.js"
;
import
{
A
as
f
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
p
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
_
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
v
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
g
=
v
({
data
:()
=>
({
multiArray
:[[],[],[]],
multiIndex
:[
0
,
0
,
0
],
selectText
:
"请选择省市区"
,
formParams
:{
consignee
:
""
,
province_id
:
""
,
city_id
:
""
,
district_id
:
""
,
detail_address
:
""
,
is_default
:
1
,
mobile
:
""
,
intl_code
:
"0086"
,
address_id
:
""
},
areaIndex
:
0
,
areaArray
:[{
name
:
"0086(中国大陆)"
,
value
:
"0086"
},{
name
:
"00852(中国香港)"
,
value
:
"00852"
},{
name
:
"00853(中国澳门)"
,
value
:
"00853"
},{
name
:
"00886(中国台湾)"
,
value
:
"00886"
},{
name
:
"0066(泰国)"
,
value
:
"0066"
},{
name
:
"0084(越南)"
,
value
:
"0084"
}]}),
onLoad
:
function
(
e
){
this
.
formParams
.
address_id
=
e
.
address_id
||
""
},
onShow
(){
this
.
getData
()},
methods
:{
getData
(){
this
.
request
(
f
+
"/api/address/getList"
,
"get"
,{
p
:
1
},
!
0
,
!
0
).
then
((
e
=>
{
if
(
0
===
e
.
code
){
let
a
=
e
.
data
.
list
.
filter
((
e
=>
e
.
address_id
==
this
.
formParams
.
address_id
))[
0
];
this
.
formParams
.
consignee
=
a
.
consignee
,
this
.
formParams
.
mobile
=
a
.
mobile
,
this
.
selectText
=
""
+
(
a
.
province_val
+
","
+
a
.
city_val
+
","
+
a
.
district_val
),
this
.
formParams
.
province_id
=
a
.
province
,
this
.
formParams
.
city_id
=
a
.
city
,
this
.
formParams
.
district_id
=
a
.
district
,
this
.
formParams
.
detail_address
=
a
.
detail_address
,
this
.
formParams
.
is_default
=
a
.
is_default
,
this
.
formParams
.
intl_code
=
a
.
intl_code
,
this
.
getProvince
(
1
,
this
.
formParams
.
province_id
);
let
t
=
this
.
findIndexFilte
(
this
.
areaArray
,
this
.
formParams
.
intl_code
);
this
.
areaIndex
=
t
}}))},
bindPickerChange
:
function
(
e
,
a
){
this
.
areaIndex
=
e
.
detail
.
value
,
this
.
formParams
.
intl_code
=
this
.
areaArray
[
e
.
detail
.
value
].
value
},
onSwitchChange
(
e
){
this
.
formParams
.
is_default
=
e
.
detail
.
value
?
1
:
0
},
findIndex
(
e
,
a
){
const
t
=
[];
return
e
.
map
(((
e
,
i
)
=>
{
e
.
value
==
a
&&
t
.
push
(
i
)})),
t
},
findIndexFilte
(
e
,
a
){
const
t
=
[];
return
e
.
map
(((
e
,
i
)
=>
{
e
.
value
==
a
&&
t
.
push
(
i
)})),
t
},
bindMultiPickerColumnChange
(
e
){
console
.
log
(
e
.
detail
),
0
===
e
.
detail
.
column
?(
this
.
multiIndex
[
0
]
=
e
.
detail
.
value
,
this
.
getCity
(
this
.
multiArray
[
0
][
e
.
detail
.
value
].
value
,
!
0
),
this
.
multiIndex
.
splice
(
1
,
1
,
0
),
this
.
multiIndex
.
splice
(
2
,
1
,
0
)):
1
===
e
.
detail
.
column
?(
this
.
multiIndex
[
1
]
=
e
.
detail
.
value
,
this
.
getDistrict
(
this
.
multiArray
[
1
][
e
.
detail
.
value
].
value
),
this
.
multiIndex
.
splice
(
2
,
1
,
0
)):
2
===
e
.
detail
.
column
&&
(
this
.
multiIndex
[
2
]
=
e
.
detail
.
value
),
this
.
$forceUpdate
()},
pickerChange
(
e
){
this
.
multiIndex
=
e
.
detail
.
value
,
this
.
formParams
.
province_id
=
this
.
multiArray
[
0
][
this
.
multiIndex
[
0
]].
value
,
this
.
formParams
.
city_id
=
this
.
multiArray
[
1
][
this
.
multiIndex
[
1
]].
value
,
this
.
formParams
.
district_id
=
this
.
multiArray
[
2
][
this
.
multiIndex
[
2
]].
value
,
this
.
selectText
=
""
+
(
this
.
multiArray
[
0
][
this
.
multiIndex
[
0
]].
name
+
","
+
this
.
multiArray
[
1
][
this
.
multiIndex
[
1
]].
name
+
","
+
this
.
multiArray
[
2
][
this
.
multiIndex
[
2
]].
name
)},
getProvince
(
e
=
1
,
a
){
this
.
request
(
f
+
"/api/address/getOptions"
,
"GET"
,{
id
:
e
},
!
1
,
!
0
).
then
((
e
=>
{
if
(
0
===
e
.
code
){
var
t
=
[];
for
(
var
i
in
e
.
data
)
t
.
push
({
name
:
e
.
data
[
i
],
value
:
parseInt
(
i
)});
if
(
this
.
multiArray
[
0
]
=
t
,
a
){
let
e
=
this
.
findIndex
(
t
,
a
);
this
.
multiIndex
.
splice
(
0
,
1
,
e
[
0
])}
this
.
getCity
(
this
.
formParams
.
province_id
,
this
.
formParams
.
city_id
),
this
.
$forceUpdate
()}}))},
getCity
(
e
,
a
){
console
.
log
(
"获取市数据id:"
+
e
),
this
.
request
(
f
+
"/api/address/getOptions"
,
"GET"
,{
id
:
e
},
!
1
,
!
0
).
then
((
e
=>
{
if
(
0
===
e
.
code
){
var
t
=
[];
for
(
var
i
in
e
.
data
)
t
.
push
({
name
:
e
.
data
[
i
],
value
:
parseInt
(
i
)});
if
(
this
.
multiArray
[
1
]
=
t
,
a
){
let
e
=
this
.
findIndex
(
t
,
a
);
this
.
multiIndex
.
splice
(
1
,
1
,
e
[
0
]),
this
.
getDistrict
(
this
.
formParams
.
city_id
,
this
.
formParams
.
district_id
)}
this
.
$forceUpdate
()}}))},
getDistrict
(
e
,
a
){
console
.
log
(
"获取区数据id:"
+
e
),
this
.
request
(
f
+
"/api/address/getOptions"
,
"GET"
,{
id
:
e
},
!
1
,
!
0
).
then
((
e
=>
{
if
(
0
===
e
.
code
){
var
t
=
[];
for
(
var
i
in
e
.
data
)
t
.
push
({
name
:
e
.
data
[
i
],
value
:
parseInt
(
i
)});
if
(
this
.
multiArray
[
2
]
=
t
,
a
){
let
e
=
this
.
findIndex
(
t
,
a
);
this
.
multiIndex
.
splice
(
2
,
1
,
e
[
0
])}
this
.
$forceUpdate
()}}))},
create
(){
if
(
!
this
.
formParams
.
consignee
)
return
e
({
title
:
"请输入收货人"
,
icon
:
"none"
}),
!
1
;
return
!
this
.
formParams
.
mobile
||
"0086"
==
this
.
formParams
.
intl_code
&&!
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
.
test
(
this
.
formParams
.
mobile
)?(
e
({
title
:
"请输入正确的手机号"
,
icon
:
"none"
}),
!
1
):
this
.
formParams
.
province_id
?
this
.
formParams
.
detail_address
?
void
this
.
request
(
f
+
"/api/address/update"
,
"POST"
,
this
.
formParams
,
!
0
).
then
((
t
=>
{
0
===
t
.
code
?(
e
({
title
:
"编辑地址成功"
,
icon
:
"success"
}),
setTimeout
((()
=>
{
a
({
delta
:
1
})}),
2
e3
)):
e
({
title
:
t
.
msg
,
icon
:
"none"
})})):(
e
({
title
:
"请输入详细街道地址"
,
icon
:
"none"
}),
!
1
):(
e
({
title
:
"请选择省市区"
,
icon
:
"none"
}),
!
1
)}},
components
:{
barX
:
p
,
titleNav
:
_
}},[[
"render"
,
function
(
e
,
a
,
f
,
p
,
_
,
v
){
const
g
=
t
(
"barX"
),
P
=
t
(
"titleNav"
),
x
=
m
,
I
=
u
,
y
=
l
,
b
=
c
,
C
=
h
;
return
r
(),
i
(
y
,{
class
:
"addressAddPage"
},{
default
:
s
((()
=>
[
d
(
g
),
d
(
P
,{
title
:
"编辑收货地址"
}),
d
(
y
,{
class
:
"cons"
},{
default
:
s
((()
=>
[
d
(
y
,{
class
:
"input-box"
},{
default
:
s
((()
=>
[
d
(
y
,{
class
:
"input-group row verCenter"
},{
default
:
s
((()
=>
[
d
(
x
,{
class
:
"label"
},{
default
:
s
((()
=>
[
n
(
"收货人"
)])),
_
:
1
}),
d
(
I
,{
type
:
"text"
,
placeholder
:
"请输入收货人"
,
modelValue
:
_
.
formParams
.
consignee
,
"onUpdate:modelValue"
:
a
[
0
]
||
(
a
[
0
]
=
e
=>
_
.
formParams
.
consignee
=
e
),
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
d
(
y
,{
class
:
"input-group row verCenter"
},{
default
:
s
((()
=>
[
d
(
x
,{
class
:
"label"
},{
default
:
s
((()
=>
[
n
(
"手机号"
)])),
_
:
1
}),
d
(
b
,{
onChange
:
a
[
1
]
||
(
a
[
1
]
=
e
=>
v
.
bindPickerChange
(
e
)),
value
:
_
.
areaIndex
,
range
:
_
.
areaArray
,
"range-key"
:
"name"
},{
default
:
s
((()
=>
[
d
(
x
,{
class
:
"areabox-but"
},{
default
:
s
((()
=>
[
d
(
x
,{
class
:
"but-val"
},{
default
:
s
((()
=>
[
n
(
o
(
_
.
areaArray
[
_
.
areaIndex
].
value
),
1
)])),
_
:
1
}),
d
(
x
,{
class
:
"icon iconfont icon-arrowxia"
})])),
_
:
1
})])),
_
:
1
},
8
,[
"value"
,
"range"
]),
d
(
I
,{
type
:
"number"
,
modelValue
:
_
.
formParams
.
mobile
,
"onUpdate:modelValue"
:
a
[
2
]
||
(
a
[
2
]
=
e
=>
_
.
formParams
.
mobile
=
e
),
placeholder
:
"请输入手机号"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
d
(
y
,{
class
:
"input-group row verCenter"
},{
default
:
s
((()
=>
[
d
(
x
,{
class
:
"label"
},{
default
:
s
((()
=>
[
n
(
"收货地区"
)])),
_
:
1
}),
d
(
b
,{
mode
:
"multiSelector"
,
onChange
:
v
.
pickerChange
,
onColumnchange
:
v
.
bindMultiPickerColumnChange
,
value
:
_
.
multiIndex
,
range
:
_
.
multiArray
,
"range-key"
:
"name"
},{
default
:
s
((()
=>
[
d
(
y
,{
class
:
"uni-input"
},{
default
:
s
((()
=>
[
n
(
o
(
_
.
selectText
),
1
)])),
_
:
1
})])),
_
:
1
},
8
,[
"onChange"
,
"onColumnchange"
,
"value"
,
"range"
])])),
_
:
1
}),
d
(
y
,{
class
:
"input-group row verCenter"
},{
default
:
s
((()
=>
[
d
(
x
,{
class
:
"label"
},{
default
:
s
((()
=>
[
n
(
"详细地址"
)])),
_
:
1
}),
d
(
I
,{
type
:
"text"
,
modelValue
:
_
.
formParams
.
detail_address
,
"onUpdate:modelValue"
:
a
[
3
]
||
(
a
[
3
]
=
e
=>
_
.
formParams
.
detail_address
=
e
),
placeholder
:
"请输入详细地址"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})])),
_
:
1
}),
d
(
y
,{
class
:
"setting-default row verCenter bothSide"
},{
default
:
s
((()
=>
[
d
(
y
,{
class
:
"tt"
},{
default
:
s
((()
=>
[
d
(
y
,
null
,{
default
:
s
((()
=>
[
n
(
"设为默认地址"
)])),
_
:
1
}),
n
(
" 下单时会优先使用该地址 "
)])),
_
:
1
}),
d
(
y
,
null
,{
default
:
s
((()
=>
[
d
(
C
,{
onChange
:
v
.
onSwitchChange
,
checked
:
1
==
_
.
formParams
.
is_default
,
color
:
"#D0121B"
,
style
:{
transform
:
"scale(0.8)"
}},
null
,
8
,[
"onChange"
,
"checked"
])])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
d
(
y
,{
class
:
"foot"
},{
default
:
s
((()
=>
[
d
(
y
,{
class
:
"btn"
,
onClick
:
v
.
create
},{
default
:
s
((()
=>
[
n
(
"确认"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-b897a322"
]]);
export
{
g
as
default
};
unpackage/dist/build/web/assets/pages-user-companyInfo.DXCXIYg_.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
a
,
n
as
e
,
r
as
o
,
c
as
t
,
w
as
l
,
i
as
r
,
o
as
s
,
d
as
i
,
e
as
m
,
m
as
n
,
I
as
d
}
from
"./index-B52OZNum.js"
;
import
{
A
as
c
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
u
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
p
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
f
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
h
=
f
({
data
:()
=>
({
id
:
""
,
dis
:
!
1
,
formParams
:{
com_name
:
""
,
tax_no
:
""
,
com_tel
:
""
,
com_addr
:
""
,
contact_person
:
""
,
contact_phone
:
""
,
email
:
""
},
certification
:[]}),
onLoad
:
function
(
a
){
this
.
id
=
a
.
id
||
""
,
console
.
log
(
this
.
id
),
this
.
id
&&
(
this
.
dis
=!
0
,
this
.
getData
())},
onShow
(){},
methods
:{
getData
(){
this
.
request
(
c
+
"/api/user/info"
,
"GET"
,{},
!
0
).
then
((
a
=>
{
if
(
0
==
a
.
code
){
let
e
=
a
.
data
.
certification
||
[];
this
.
certification
=
e
.
filter
((
a
=>
a
.
id
==
this
.
id
)),
this
.
formParams
=
{...
this
.
certification
[
0
]}}}))},
tianyancha
(){
this
.
formParams
.
com_name
&&
this
.
request
(
c
+
"/api/user/tianyancha"
,
"GET"
,{
company_name
:
this
.
formParams
.
com_name
},
!
1
).
then
((
e
=>
{
0
==
e
.
code
?(
e
.
data
.
com_name
||
a
({
title
:
"天眼查没有查到该公司信息"
,
icon
:
"none"
}),
e
.
data
.
com_name
&&
(
this
.
formParams
.
com_name
=
e
.
data
.
com_name
),
this
.
formParams
.
tax_no
=
e
.
data
.
tax_number
,
this
.
formParams
.
com_tel
=
e
.
data
.
phone_number
,
this
.
formParams
.
com_addr
=
e
.
data
.
com_address
):
a
({
title
:
e
.
msg
,
icon
:
"none"
})}))},
changeTab
(
a
){
this
.
formParams
.
inv_type
=
a
,
console
.
log
(
this
.
formParams
.
inv_type
)},
onSwitchChange
(
a
){
this
.
formParams
.
is_default
=
a
.
detail
.
value
?
1
:
0
},
submitI
(){
if
(
!
this
.
formParams
.
com_name
)
return
void
a
({
title
:
"公司名称不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
tax_no
)
return
void
a
({
title
:
"公司税号不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
com_tel
)
return
void
a
({
title
:
"公司电话不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
com_addr
)
return
void
a
({
title
:
"注册地址不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
contact_person
)
return
void
a
({
title
:
"联系人不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
contact_phone
)
return
void
a
({
title
:
"联系电话不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
email
)
return
void
a
({
title
:
"邮箱不能为空"
,
icon
:
"none"
});
let
o
=
"/api/com/add"
;
this
.
id
&&
(
this
.
formParams
.
id
=
this
.
id
,
o
=
"/api/com/edit"
),
this
.
request
(
c
+
o
,
"POST"
,
this
.
formParams
,
!
0
).
then
((
o
=>
{
0
==
o
.
code
?(
a
({
title
:
this
.
id
?
"编辑成功"
:
"新增成功"
,
icon
:
"success"
}),
setTimeout
((()
=>
{
e
({
url
:
"/pages/user/companyInfoList"
})}),
2
e3
)):
a
({
title
:
o
.
msg
,
icon
:
"none"
})}))}},
components
:{
barX
:
u
,
titleNav
:
p
}},[[
"render"
,
function
(
a
,
e
,
c
,
u
,
p
,
f
){
const
h
=
o
(
"barX"
),
_
=
o
(
"titleNav"
),
P
=
n
,
v
=
d
,
b
=
r
;
return
s
(),
t
(
b
,{
class
:
"companyInfoPage"
},{
default
:
l
((()
=>
[
i
(
h
),
i
(
_
,{
title
:
"资料管理"
}),
i
(
b
,{
class
:
"cons"
},{
default
:
l
((()
=>
[
i
(
b
,{
class
:
"input-box"
},{
default
:
l
((()
=>
[
i
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
l
((()
=>
[
i
(
P
,{
class
:
"label required"
},{
default
:
l
((()
=>
[
m
(
"公司名称"
)])),
_
:
1
}),
i
(
v
,{
type
:
"text"
,
modelValue
:
p
.
formParams
.
com_name
,
"onUpdate:modelValue"
:
e
[
0
]
||
(
e
[
0
]
=
a
=>
p
.
formParams
.
com_name
=
a
),
placeholder
:
"请输入公司名称"
,
"placeholder-class"
:
"placeholder-class"
,
onBlur
:
e
[
1
]
||
(
e
[
1
]
=
a
=>
f
.
tianyancha
()),
disabled
:
p
.
dis
},
null
,
8
,[
"modelValue"
,
"disabled"
])])),
_
:
1
}),
i
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
l
((()
=>
[
i
(
P
,{
class
:
"label required"
},{
default
:
l
((()
=>
[
m
(
"公司税号"
)])),
_
:
1
}),
i
(
v
,{
type
:
"text"
,
modelValue
:
p
.
formParams
.
tax_no
,
"onUpdate:modelValue"
:
e
[
2
]
||
(
e
[
2
]
=
a
=>
p
.
formParams
.
tax_no
=
a
),
placeholder
:
"系统自动查询后补充"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
i
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
l
((()
=>
[
i
(
P
,{
class
:
"label required"
},{
default
:
l
((()
=>
[
m
(
"公司电话"
)])),
_
:
1
}),
i
(
v
,{
type
:
"text"
,
modelValue
:
p
.
formParams
.
com_tel
,
"onUpdate:modelValue"
:
e
[
3
]
||
(
e
[
3
]
=
a
=>
p
.
formParams
.
com_tel
=
a
),
placeholder
:
"系统自动查询后补充"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
i
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
l
((()
=>
[
i
(
P
,{
class
:
"label required"
},{
default
:
l
((()
=>
[
m
(
"注册地址"
)])),
_
:
1
}),
i
(
v
,{
type
:
"text"
,
modelValue
:
p
.
formParams
.
com_addr
,
"onUpdate:modelValue"
:
e
[
4
]
||
(
e
[
4
]
=
a
=>
p
.
formParams
.
com_addr
=
a
),
placeholder
:
"系统自动查询后补充"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
i
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
l
((()
=>
[
i
(
P
,{
class
:
"label required"
},{
default
:
l
((()
=>
[
m
(
"联系人"
)])),
_
:
1
}),
i
(
v
,{
type
:
"text"
,
modelValue
:
p
.
formParams
.
contact_person
,
"onUpdate:modelValue"
:
e
[
5
]
||
(
e
[
5
]
=
a
=>
p
.
formParams
.
contact_person
=
a
),
placeholder
:
"请输入联系人"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
i
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
l
((()
=>
[
i
(
P
,{
class
:
"label required"
},{
default
:
l
((()
=>
[
m
(
"联系电话"
)])),
_
:
1
}),
i
(
v
,{
type
:
"text"
,
modelValue
:
p
.
formParams
.
contact_phone
,
"onUpdate:modelValue"
:
e
[
6
]
||
(
e
[
6
]
=
a
=>
p
.
formParams
.
contact_phone
=
a
),
placeholder
:
"请输入联系电话"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
i
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
l
((()
=>
[
i
(
P
,{
class
:
"label required"
},{
default
:
l
((()
=>
[
m
(
"邮箱"
)])),
_
:
1
}),
i
(
v
,{
type
:
"text"
,
modelValue
:
p
.
formParams
.
email
,
"onUpdate:modelValue"
:
e
[
7
]
||
(
e
[
7
]
=
a
=>
p
.
formParams
.
email
=
a
),
placeholder
:
"请输入邮箱"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
i
(
b
,{
class
:
"foot"
},{
default
:
l
((()
=>
[
i
(
b
,{
class
:
"btn"
,
onClick
:
e
[
8
]
||
(
e
[
8
]
=
a
=>
f
.
submitI
())},{
default
:
l
((()
=>
[
m
(
"保存"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-1d8911ee"
]]);
export
{
h
as
default
};
unpackage/dist/build/web/assets/pages-user-companyInfoList.axKXn4hg.js
0 → 100644
View file @
6eb3aa03
import
{
n
as
t
,
y
as
e
,
b
as
s
,
r
as
a
,
c
as
i
,
w
as
l
,
i
as
o
,
o
as
c
,
d
as
n
,
h
as
r
,
j
as
d
,
F
as
u
,
e
as
f
,
f
as
_
,
k
as
m
,
l
as
p
,
t
as
h
,
v
as
g
,
p
as
k
,
m
as
C
}
from
"./index-B52OZNum.js"
;
import
{
A
as
v
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
I
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
w
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
y
=
w
({
data
:()
=>
({
isInit
:
!
1
,
list
:[]}),
onLoad
:
function
(
t
){
this
.
form
=
t
.
form
||
""
},
onShow
(){
this
.
getData
()},
methods
:{
goUpdate
(
e
){
t
({
url
:
"/pages/user/companyInfo?id="
+
e
})},
deleteAdress
(
t
){
e
({
title
:
""
,
content
:
"您确定删除当前企业信息吗?"
,
success
:
e
=>
{
e
.
confirm
&&
this
.
request
(
v
+
"/api/com/del"
,
"POST"
,{
id
:
t
},
!
0
).
then
((
t
=>
{
0
===
t
.
code
?(
s
({
title
:
"删除成功"
,
icon
:
"success"
}),
this
.
getData
(
1
)):
s
({
title
:
t
.
msg
,
icon
:
"none"
})}))}})},
setdefault
(
t
){
this
.
request
(
v
+
"/api/com/setDefault"
,
"POST"
,{
id
:
t
},
!
0
).
then
((
t
=>
{
0
===
t
.
code
?(
s
({
title
:
"设置成功"
,
icon
:
"success"
}),
this
.
getData
(
1
)):
s
({
title
:
t
.
err_msg
,
icon
:
"none"
})}))},
getData
(
t
){
this
.
request
(
v
+
"/api/user/info"
,
"GET"
,{},
!
t
).
then
((
t
=>
{
if
(
0
==
t
.
code
){
this
.
isInit
=
1
;
let
e
=
t
.
data
.
certification
||
[];
e
.
forEach
(((
t
,
e
)
=>
{
t
.
is_default
=
0
==
e
?
1
:
0
})),
this
.
list
=
e
}
else
this
.
isInit
=
1
,
this
.
list
=
[]}))}},
components
:{
barX
:
b
,
titleNav
:
I
}},[[
"render"
,
function
(
t
,
e
,
s
,
v
,
b
,
I
){
const
w
=
a
(
"barX"
),
y
=
a
(
"titleNav"
),
j
=
C
,
x
=
o
,
D
=
m
,
S
=
p
;
return
c
(),
i
(
x
,{
class
:
"companyInfoListPage"
},{
default
:
l
((()
=>
[
n
(
w
),
n
(
y
,{
title
:
"资料管理"
}),
n
(
x
,{
class
:
"cons"
},{
default
:
l
((()
=>
[
n
(
x
,{
class
:
"data-box"
},{
default
:
l
((()
=>
[(
c
(
!
0
),
r
(
u
,
null
,
d
(
b
.
list
,((
t
,
e
)
=>
(
c
(),
i
(
x
,{
class
:
"group"
,
key
:
e
},{
default
:
l
((()
=>
[
n
(
x
,{
class
:
"t row verCenter"
},{
default
:
l
((()
=>
[
n
(
j
,{
class
:
"tet"
},{
default
:
l
((()
=>
[
f
(
h
(
t
.
com_name
),
1
)])),
_
:
2
},
1024
),
1
==
t
.
is_default
?(
c
(),
i
(
j
,{
key
:
0
,
class
:
"mr row verCenter rowCenter"
},{
default
:
l
((()
=>
[
f
(
"默认"
)])),
_
:
1
})):
_
(
""
,
!
0
)])),
_
:
2
},
1024
),
n
(
x
,{
class
:
"c"
},{
default
:
l
((()
=>
[
f
(
h
(
t
.
contact_person
),
1
)])),
_
:
2
},
1024
),
n
(
x
,{
class
:
"b row bothSide"
},{
default
:
l
((()
=>
[
n
(
x
,{
class
:
"l row verCenter"
,
onClick
:
e
=>
I
.
setdefault
(
t
.
id
)},{
default
:
l
((()
=>
[
n
(
j
,{
class
:
g
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
1
==
t
.
is_default
}])},
null
,
8
,[
"class"
]),
n
(
j
,
null
,{
default
:
l
((()
=>
[
f
(
h
(
1
==
t
.
is_default
?
"已默认"
:
"设为默认"
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"onClick"
]),
n
(
x
,{
class
:
"r row verCenter"
},{
default
:
l
((()
=>
[
n
(
j
,{
onClick
:
k
((
e
=>
I
.
deleteAdress
(
t
.
id
)),[
"stop"
])},{
default
:
l
((()
=>
[
f
(
"删除"
)])),
_
:
2
},
1032
,[
"onClick"
]),
n
(
x
,{
onClick
:
k
((
e
=>
I
.
goUpdate
(
t
.
id
)),[
"stop"
])},{
default
:
l
((()
=>
[
f
(
"修改"
)])),
_
:
2
},
1032
,[
"onClick"
])])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)))),
128
))])),
_
:
1
}),
b
.
isInit
&&
0
==
b
.
list
.
length
?(
c
(),
i
(
x
,{
key
:
0
,
class
:
"no-data"
},{
default
:
l
((()
=>
[
n
(
D
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/07/676f987065320e89a68d473ec62c8cea.png"
}),
n
(
x
,
null
,{
default
:
l
((()
=>
[
f
(
"暂无企业信息!"
)])),
_
:
1
})])),
_
:
1
})):
_
(
""
,
!
0
)])),
_
:
1
}),
n
(
x
,{
class
:
"foot"
},{
default
:
l
((()
=>
[
n
(
S
,{
url
:
"/pages/user/companyInfo"
,
class
:
"btn"
},{
default
:
l
((()
=>
[
f
(
"新增企业资料"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-cee05245"
]]);
export
{
y
as
default
};
unpackage/dist/build/web/assets/pages-user-coupon.9yvrjyUR.js
0 → 100644
View file @
6eb3aa03
import
{
r
as
t
,
c
as
a
,
w
as
s
,
i
as
e
,
o
as
l
,
d
as
u
,
v
as
c
,
e
as
i
,
t
as
o
,
h
as
n
,
j
as
r
,
F
as
d
,
f
as
_
,
k
as
f
,
m
as
p
,
l
as
m
}
from
"./index-B52OZNum.js"
;
import
{
A
as
h
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
g
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
k
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
y
=
k
({
data
:()
=>
({
isInit
:
!
1
,
status
:
-
1
,
list
:[],
countData
:{
"-1"
:
0
,
1
:
0
,
"-2"
:
0
}}),
onLoad
:
function
(){
this
.
getData
()},
methods
:{
tab
(
t
){
this
.
status
=
t
,
this
.
getData
()},
getData
(
t
){
let
a
=
{
status
:
this
.
status
};
this
.
request
(
h
+
"/api/coupon/getList"
,
"GET"
,
a
,
!
0
).
then
((
t
=>
{
if
(
0
==
t
.
code
){
this
.
isInit
=
1
;
let
a
=
t
.
data
.
coupon_list
||
[];
this
.
list
=
a
,
this
.
countData
=
t
.
data
.
count
}
else
this
.
isInit
=
1
,
this
.
list
=
[],
this
.
countData
=
{
"-1"
:
0
,
1
:
0
,
"-2"
:
0
}}))}},
components
:{
barX
:
b
,
titleNav
:
g
}},[[
"render"
,
function
(
h
,
b
,
g
,
k
,
y
,
v
){
const
x
=
t
(
"barX"
),
D
=
t
(
"titleNav"
),
C
=
e
,
j
=
p
,
w
=
m
,
I
=
f
;
return
l
(),
a
(
C
,{
class
:
"couponPage"
},{
default
:
s
((()
=>
[
u
(
x
),
u
(
D
,{
title
:
"我的优惠券"
}),
u
(
C
,{
class
:
"tabs row rowCenter verCenter"
},{
default
:
s
((()
=>
[
u
(
C
,{
class
:
c
([
"item"
,{
act
:
-
1
==
y
.
status
}]),
onClick
:
b
[
0
]
||
(
b
[
0
]
=
t
=>
v
.
tab
(
-
1
))},{
default
:
s
((()
=>
[
i
(
"待使用("
+
o
(
y
.
countData
[
-
1
])
+
")"
,
1
)])),
_
:
1
},
8
,[
"class"
]),
u
(
C
,{
class
:
c
([
"item"
,{
act
:
1
==
y
.
status
}]),
onClick
:
b
[
1
]
||
(
b
[
1
]
=
t
=>
v
.
tab
(
1
))},{
default
:
s
((()
=>
[
i
(
"已使用("
+
o
(
y
.
countData
[
1
])
+
")"
,
1
)])),
_
:
1
},
8
,[
"class"
]),
u
(
C
,{
class
:
c
([
"item"
,{
act
:
-
2
==
y
.
status
}]),
onClick
:
b
[
2
]
||
(
b
[
2
]
=
t
=>
v
.
tab
(
-
2
))},{
default
:
s
((()
=>
[
i
(
"已失效("
+
o
(
y
.
countData
[
-
2
])
+
")"
,
1
)])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
}),
u
(
C
,{
class
:
"cons"
},{
default
:
s
((()
=>
[
y
.
list
.
length
>
0
?(
l
(),
a
(
C
,{
key
:
0
,
class
:
"data-box"
},{
default
:
s
((()
=>
[(
l
(
!
0
),
n
(
d
,
null
,
r
(
y
.
list
,((
t
,
e
)
=>
(
l
(),
a
(
C
,{
class
:
c
([
"group row bothSide verCenter"
,{
sx
:
-
1
!=
t
.
status
}]),
key
:
e
},{
default
:
s
((()
=>
[
u
(
C
,{
class
:
"l row"
},{
default
:
s
((()
=>
[
u
(
C
,{
class
:
"price"
},{
default
:
s
((()
=>
[
2
==
t
.
coupon_type
?(
l
(),
a
(
j
,{
key
:
0
},{
default
:
s
((()
=>
[
i
(
"折"
),
u
(
j
,{
class
:
"textp"
},{
default
:
s
((()
=>
[
i
(
o
(
10
*
t
.
sale_amount
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)):(
l
(),
a
(
j
,{
key
:
1
},{
default
:
s
((()
=>
[
i
(
o
(
t
.
currency_sign
),
1
),
u
(
j
,{
class
:
"textp"
},{
default
:
s
((()
=>
[
i
(
o
(
t
.
sale_amount
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)),
u
(
C
,{
class
:
"tips"
},{
default
:
s
((()
=>
[
i
(
o
(
t
.
require_amount
<=
.
01
?
"无门槛优惠券"
:
t
.
coupon_name
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
u
(
C
,{
class
:
"yhld"
},{
default
:
s
((()
=>
[
u
(
C
,
null
,{
default
:
s
((()
=>
[
i
(
"商品优惠券"
)])),
_
:
1
}),
u
(
j
,
null
,{
default
:
s
((()
=>
[
i
(
o
(
t
.
start_time
)
+
" - "
+
o
(
t
.
end_time
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
u
(
C
,{
class
:
"r"
},{
default
:
s
((()
=>
[
-
1
==
t
.
status
?(
l
(),
a
(
w
,{
key
:
0
,
url
:
"/pages/car/list"
},{
default
:
s
((()
=>
[
u
(
C
,{
class
:
"boxjk"
},{
default
:
s
((()
=>
[
u
(
C
,{
class
:
"rbtn row verCenter rowCenter"
},{
default
:
s
((()
=>
[
u
(
C
,
null
,{
default
:
s
((()
=>
[
i
(
"使用"
)])),
_
:
1
}),
u
(
j
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):(
l
(),
a
(
C
,{
key
:
1
,
class
:
"alread"
},{
default
:
s
((()
=>
[
i
(
o
(
1
==
t
.
status
?
"已使用"
:
"已失效"
),
1
)])),
_
:
2
},
1024
))])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"class"
])))),
128
))])),
_
:
1
})):
_
(
""
,
!
0
),
y
.
isInit
&&
0
==
y
.
list
.
length
?(
l
(),
a
(
C
,{
key
:
1
,
class
:
"no-data"
},{
default
:
s
((()
=>
[
u
(
I
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/24/b0ca7a44c94cdd5a1446cae9198160eb.png"
}),
u
(
C
,
null
,{
default
:
s
((()
=>
[
i
(
"暂无优惠券!"
)])),
_
:
1
})])),
_
:
1
})):
_
(
""
,
!
0
)])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-e812e26d"
]]);
export
{
y
as
default
};
unpackage/dist/build/web/assets/pages-user-invoice.DtR9J6dC.js
0 → 100644
View file @
6eb3aa03
import
{
n
as
e
,
y
as
t
,
b
as
s
,
r
as
i
,
c
as
a
,
w
as
l
,
i
as
d
,
o
,
d
as
c
,
h
as
n
,
j
as
r
,
F
as
u
,
f
as
_
,
e
as
f
,
k
as
h
,
l
as
p
,
v
as
k
,
t
as
m
,
p
as
x
,
m
as
v
}
from
"./index-B52OZNum.js"
;
import
{
A
as
g
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
C
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
b
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
y
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
w
=
y
({
data
:()
=>
({
isInit
:
!
1
,
form
:
""
,
address_id
:
""
,
coupon_id
:
""
,
invoice_id
:
""
,
list
:[]}),
onLoad
:
function
(
e
){
this
.
invoice_id
=
e
.
invoice_id
||
""
,
this
.
form
=
e
.
form
||
""
,
this
.
address_id
=
e
.
address_id
||
""
,
this
.
coupon_id
=
e
.
coupon_id
||
""
},
onShow
(){
this
.
getData
()},
methods
:{
goUpdate
(
t
){
e
({
url
:
"/pages/user/invoiceEdit?tax_id="
+
t
})},
setChoose
(
t
){
if
(
!
this
.
form
)
return
;
let
s
=
""
;
this
.
list
.
forEach
((
e
=>
{
e
.
checkedx
=!
1
,
t
==
e
.
tax_id
&&
(
e
.
checkedx
=!
0
,
s
=
e
.
tax_id
)})),
setTimeout
((()
=>
{
e
({
url
:
"/pages/car/confirmOrder?invoice_id="
+
s
+
"&coupon_id="
+
this
.
coupon_id
+
"&address_id="
+
this
.
address_id
})}),
200
)},
deleteAdress
(
e
){
t
({
title
:
""
,
content
:
"您确定删除该发票嘛"
,
success
:
t
=>
{
t
.
confirm
&&
this
.
request
(
g
+
"/api/invoice/del"
,
"POST"
,{
tax_id
:
e
},
!
0
).
then
((
e
=>
{
0
===
e
.
code
?(
s
({
title
:
"删除成功"
,
icon
:
"success"
}),
this
.
getData
(
1
)):
s
({
title
:
e
.
msg
,
icon
:
"none"
})}))}})},
setdefault
(
e
){
this
.
request
(
g
+
"/api/invoice/default"
,
"POST"
,{
tax_id
:
e
},
!
0
).
then
((
e
=>
{
0
===
e
.
code
?(
s
({
title
:
"设置成功"
,
icon
:
"success"
}),
this
.
getData
(
1
)):
s
({
title
:
e
.
err_msg
,
icon
:
"none"
})}))},
getData
(
e
){
this
.
request
(
g
+
"/api/invoice/getList"
,
"GET"
,{
p
:
1
},
!
e
).
then
((
e
=>
{
if
(
0
==
e
.
code
){
this
.
isInit
=
1
;
let
t
=
e
.
data
.
list
||
[];
if
(
t
.
forEach
((
e
=>
{
e
.
checkedx
=!
1
,
this
.
invoice_id
==
e
.
tax_id
&&
(
e
.
checkedx
=!
0
)})),
this
.
form
&&
t
.
length
>
0
){
let
e
=
{
tax_id
:
"460053411"
,
checkedx
:
!
1
};
this
.
invoice_id
||
(
e
.
checkedx
=!
0
),
t
.
push
(
e
)}
this
.
list
=
t
}
else
this
.
isInit
=
1
,
this
.
list
=
[]}))}},
components
:{
barX
:
C
,
titleNav
:
b
}},[[
"render"
,
function
(
e
,
t
,
s
,
g
,
C
,
b
){
const
y
=
i
(
"barX"
),
w
=
i
(
"titleNav"
),
j
=
v
,
I
=
d
,
S
=
h
,
A
=
p
;
return
o
(),
a
(
I
,{
class
:
"invoicePage"
},{
default
:
l
((()
=>
[
c
(
y
),
c
(
w
,{
title
:
"发票管理"
}),
c
(
I
,{
class
:
"cons"
},{
default
:
l
((()
=>
[
C
.
list
.
length
>
0
?(
o
(),
a
(
I
,{
key
:
0
,
class
:
"data-box"
},{
default
:
l
((()
=>
[(
o
(
!
0
),
n
(
u
,
null
,
r
(
C
.
list
,((
e
,
t
)
=>
(
o
(),
a
(
I
,{
class
:
k
([
"group"
,{
hkk
:
e
.
checkedx
}]),
key
:
t
,
onClick
:
t
=>
b
.
setChoose
(
e
.
tax_id
)},{
default
:
l
((()
=>
[
"460053411"
!=
e
.
tax_id
?(
o
(),
a
(
I
,{
key
:
0
},{
default
:
l
((()
=>
[
c
(
I
,{
class
:
"t row verCenter"
},{
default
:
l
((()
=>
[
f
(
m
(
3
==
e
.
inv_type
?
"增值税专票"
:
2
==
e
.
inv_type
?
"增值税普票(个人)"
:
"增值税普票(公司)"
)
+
" "
,
1
),
1
==
e
.
is_default
?(
o
(),
a
(
j
,{
key
:
0
},{
default
:
l
((()
=>
[
f
(
"默认"
)])),
_
:
1
})):
_
(
""
,
!
0
)])),
_
:
2
},
1024
),
c
(
I
,{
class
:
"c"
},{
default
:
l
((()
=>
[
c
(
I
,
null
,{
default
:
l
((()
=>
[
c
(
j
,
null
,{
default
:
l
((()
=>
[
f
(
"公司名称"
)])),
_
:
1
}),
f
(
m
(
e
.
tax_title
),
1
)])),
_
:
2
},
1024
),
c
(
I
,
null
,{
default
:
l
((()
=>
[
c
(
j
,
null
,{
default
:
l
((()
=>
[
f
(
"公司税号"
)])),
_
:
1
}),
f
(
m
(
e
.
tax_no
),
1
)])),
_
:
2
},
1024
),
c
(
I
,
null
,{
default
:
l
((()
=>
[
c
(
j
,
null
,{
default
:
l
((()
=>
[
f
(
"收票邮箱"
)])),
_
:
1
}),
f
(
m
(
e
.
email
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
c
(
I
,{
class
:
"b row bothSide"
},{
default
:
l
((()
=>
[
C
.
form
?(
o
(),
a
(
I
,{
key
:
1
})):(
o
(),
a
(
I
,{
key
:
0
,
class
:
"l row verCenter"
,
onClick
:
t
=>
b
.
setdefault
(
e
.
tax_id
)},{
default
:
l
((()
=>
[
c
(
j
,{
class
:
k
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
1
==
e
.
is_default
}])},
null
,
8
,[
"class"
]),
c
(
j
,
null
,{
default
:
l
((()
=>
[
f
(
m
(
1
==
e
.
is_default
?
"已默认"
:
"设为默认"
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"onClick"
])),
c
(
I
,{
class
:
"r row verCenter"
},{
default
:
l
((()
=>
[
c
(
j
,{
onClick
:
x
((
t
=>
b
.
deleteAdress
(
e
.
tax_id
)),[
"stop"
])},{
default
:
l
((()
=>
[
f
(
"删除"
)])),
_
:
2
},
1032
,[
"onClick"
]),
c
(
I
,{
onClick
:
x
((
t
=>
b
.
goUpdate
(
e
.
tax_id
)),[
"stop"
])},{
default
:
l
((()
=>
[
f
(
"修改"
)])),
_
:
2
},
1032
,[
"onClick"
])])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)):(
o
(),
a
(
I
,{
key
:
1
},{
default
:
l
((()
=>
[
c
(
I
,{
class
:
"t row verCenter"
},{
default
:
l
((()
=>
[
f
(
"不开发票"
)])),
_
:
1
}),
c
(
I
,{
class
:
"b row bothSide"
},{
default
:
l
((()
=>
[
c
(
I
,{
class
:
"l row verCenter"
,
onClick
:
t
=>
b
.
setChoose
(
e
.
tax_id
)},{
default
:
l
((()
=>
[
c
(
I
,{
class
:
"nofps"
},{
default
:
l
((()
=>
[
f
(
"暂时无需发票"
)])),
_
:
1
})])),
_
:
2
},
1032
,[
"onClick"
])])),
_
:
2
},
1024
)])),
_
:
2
},
1024
))])),
_
:
2
},
1032
,[
"class"
,
"onClick"
])))),
128
))])),
_
:
1
})):
_
(
""
,
!
0
),
C
.
isInit
&&
0
==
C
.
list
.
length
?(
o
(),
a
(
I
,{
key
:
1
,
class
:
"no-data"
},{
default
:
l
((()
=>
[
c
(
S
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/07/676f987065320e89a68d473ec62c8cea.png"
}),
c
(
I
,
null
,{
default
:
l
((()
=>
[
f
(
"暂无发票信息!"
)])),
_
:
1
})])),
_
:
1
})):
_
(
""
,
!
0
)])),
_
:
1
}),
c
(
I
,{
class
:
"foot"
},{
default
:
l
((()
=>
[
c
(
A
,{
url
:
"/pages/user/invoiceAdd"
,
class
:
"btn"
},{
default
:
l
((()
=>
[
f
(
"新增发票"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-0c6c3855"
]]);
export
{
w
as
default
};
unpackage/dist/build/web/assets/pages-user-invoiceAdd.DCVFvyXV.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
e
,
U
as
a
,
r
as
l
,
c
as
t
,
w
as
o
,
i
as
s
,
o
as
r
,
d
as
n
,
e
as
i
,
v
as
m
,
f
as
c
,
m
as
d
,
I
as
u
,
V
as
f
}
from
"./index-B52OZNum.js"
;
import
{
A
as
p
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
_
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
h
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
P
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
v
=
P
({
data
:()
=>
({
formParams
:{
tax_title
:
""
,
consignee_address
:
""
,
company_phone
:
""
,
tax_no
:
""
,
bank_name
:
""
,
bank_account
:
""
,
consignee
:
""
,
consignee_phone
:
""
,
email
:
""
,
intl_code
:
"0086"
,
is_default
:
1
,
inv_type
:
3
}}),
onLoad
:
function
(){},
onShow
(){},
methods
:{
tianyancha
(){
this
.
formParams
.
tax_title
&&
this
.
request
(
p
+
"/api/user/tianyancha"
,
"GET"
,{
company_name
:
this
.
formParams
.
tax_title
},
!
1
).
then
((
a
=>
{
0
==
a
.
code
?(
a
.
data
.
com_name
||
e
({
title
:
"天眼查没有查到该公司信息"
,
icon
:
"none"
}),
this
.
formParams
.
tax_title
=
a
.
data
.
com_name
||
this
.
formParams
.
tax_title
,
this
.
formParams
.
tax_no
=
a
.
data
.
tax_number
||
this
.
formParams
.
tax_no
,
this
.
formParams
.
company_phone
=
a
.
data
.
phone_number
,
this
.
formParams
.
consignee_address
=
a
.
data
.
com_address
):
e
({
title
:
a
.
msg
,
icon
:
"none"
})}))},
changeTab
(
e
){
this
.
formParams
.
inv_type
=
e
,
console
.
log
(
this
.
formParams
.
inv_type
)},
onSwitchChange
(
e
){
this
.
formParams
.
is_default
=
e
.
detail
.
value
?
1
:
0
},
submitI
(){
if
(
this
.
formParams
.
tax_title
){
if
(
3
==
this
.
formParams
.
inv_type
){
if
(
!
this
.
formParams
.
tax_no
)
return
void
e
({
title
:
"公司税号不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
company_phone
)
return
void
e
({
title
:
"公司电话不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
consignee_address
)
return
void
e
({
title
:
"注册地址不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
bank_name
)
return
void
e
({
title
:
"开户银行不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
bank_account
)
return
void
e
({
title
:
"银行账号不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
email
)
return
void
e
({
title
:
"发票接收邮箱不能为空"
,
icon
:
"none"
})}
else
if
(
2
==
this
.
formParams
.
inv_type
){
if
(
!
this
.
formParams
.
email
)
return
void
e
({
title
:
"发票接收邮箱不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
consignee
)
return
void
e
({
title
:
"收票人不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
consignee_phone
)
return
void
e
({
title
:
"收票人手机不能为空"
,
icon
:
"none"
})}
else
{
if
(
!
this
.
formParams
.
tax_no
)
return
void
e
({
title
:
"公司税号不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
company_phone
)
return
void
e
({
title
:
"公司电话不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
email
)
return
void
e
({
title
:
"发票接收邮箱不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
consignee
)
return
void
e
({
title
:
"收票人不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
consignee_phone
)
return
void
e
({
title
:
"收票人手机不能为空"
,
icon
:
"none"
})}
this
.
request
(
p
+
"/api/invoice/add"
,
"POST"
,
this
.
formParams
,
!
0
).
then
((
l
=>
{
0
===
l
.
code
?(
e
({
title
:
"新增发票成功"
,
icon
:
"success"
}),
setTimeout
((()
=>
{
a
({
delta
:
1
})}),
2
e3
)):
e
({
title
:
l
.
msg
,
icon
:
"none"
})}))}
else
e
({
title
:
"发票抬头不能为空"
,
icon
:
"none"
})}},
components
:{
barX
:
_
,
titleNav
:
h
}},[[
"render"
,
function
(
e
,
a
,
p
,
_
,
h
,
P
){
const
v
=
l
(
"barX"
),
y
=
l
(
"titleNav"
),
b
=
s
,
g
=
d
,
x
=
u
,
V
=
f
;
return
r
(),
t
(
b
,{
class
:
"invoiceAddPage"
},{
default
:
o
((()
=>
[
n
(
v
),
n
(
y
,{
title
:
"新增发票"
}),
n
(
b
,{
class
:
"cons"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"input-box"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"tab-group"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"tit"
},{
default
:
o
((()
=>
[
i
(
"发票类型"
)])),
_
:
1
}),
n
(
b
,{
class
:
"tab row bothSide"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
m
({
act
:
3
==
h
.
formParams
.
inv_type
}),
onClick
:
a
[
0
]
||
(
a
[
0
]
=
e
=>
P
.
changeTab
(
3
))},{
default
:
o
((()
=>
[
i
(
"增值税专用发票"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
g
,{
class
:
m
({
act
:
3
!=
h
.
formParams
.
inv_type
}),
onClick
:
a
[
1
]
||
(
a
[
1
]
=
e
=>
P
.
changeTab
(
4
))},{
default
:
o
((()
=>
[
i
(
"增值税普通发票"
)])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
})])),
_
:
1
}),
3
!=
h
.
formParams
.
inv_type
?(
r
(),
t
(
b
,{
key
:
0
,
class
:
"tab-group"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"tit"
},{
default
:
o
((()
=>
[
i
(
"开票信息"
)])),
_
:
1
}),
n
(
b
,{
class
:
"tab row bothSide"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
m
({
act
:
2
!=
h
.
formParams
.
inv_type
&&
3
!=
h
.
formParams
.
inv_type
}),
onClick
:
a
[
2
]
||
(
a
[
2
]
=
e
=>
P
.
changeTab
(
4
))},{
default
:
o
((()
=>
[
i
(
"公司"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
g
,{
class
:
m
({
act
:
2
==
h
.
formParams
.
inv_type
}),
onClick
:
a
[
3
]
||
(
a
[
3
]
=
e
=>
P
.
changeTab
(
2
))},{
default
:
o
((()
=>
[
i
(
"个人"
)])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
})])),
_
:
1
})):
c
(
""
,
!
0
),
2
!=
h
.
formParams
.
inv_type
?(
r
(),
t
(
b
,{
key
:
1
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"公司名称"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
tax_title
,
"onUpdate:modelValue"
:
a
[
4
]
||
(
a
[
4
]
=
e
=>
h
.
formParams
.
tax_title
=
e
),
onBlur
:
a
[
5
]
||
(
a
[
5
]
=
e
=>
P
.
tianyancha
()),
placeholder
:
"请输入公司名称"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
2
==
h
.
formParams
.
inv_type
?(
r
(),
t
(
b
,{
key
:
2
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"开票人名称"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
tax_title
,
"onUpdate:modelValue"
:
a
[
6
]
||
(
a
[
6
]
=
e
=>
h
.
formParams
.
tax_title
=
e
),
placeholder
:
"请输入开票人名称"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
2
!=
h
.
formParams
.
inv_type
?(
r
(),
t
(
b
,{
key
:
3
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"公司税号"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
tax_no
,
"onUpdate:modelValue"
:
a
[
7
]
||
(
a
[
7
]
=
e
=>
h
.
formParams
.
tax_no
=
e
),
placeholder
:
"系统自动查询后补充"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
2
!=
h
.
formParams
.
inv_type
?(
r
(),
t
(
b
,{
key
:
4
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"公司电话"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
company_phone
,
"onUpdate:modelValue"
:
a
[
8
]
||
(
a
[
8
]
=
e
=>
h
.
formParams
.
company_phone
=
e
),
placeholder
:
"系统自动查询后补充"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
3
==
h
.
formParams
.
inv_type
?(
r
(),
t
(
b
,{
key
:
5
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"注册地址"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
consignee_address
,
"onUpdate:modelValue"
:
a
[
9
]
||
(
a
[
9
]
=
e
=>
h
.
formParams
.
consignee_address
=
e
),
placeholder
:
"系统自动查询后补充"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
3
==
h
.
formParams
.
inv_type
?(
r
(),
t
(
b
,{
key
:
6
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"开户银行"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
bank_name
,
"onUpdate:modelValue"
:
a
[
10
]
||
(
a
[
10
]
=
e
=>
h
.
formParams
.
bank_name
=
e
),
placeholder
:
"请输入开户银行"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
3
==
h
.
formParams
.
inv_type
?(
r
(),
t
(
b
,{
key
:
7
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"开户银行账号"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
bank_account
,
"onUpdate:modelValue"
:
a
[
11
]
||
(
a
[
11
]
=
e
=>
h
.
formParams
.
bank_account
=
e
),
placeholder
:
"请输入开户银行账号"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
n
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"发票接收邮箱"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
email
,
"onUpdate:modelValue"
:
a
[
12
]
||
(
a
[
12
]
=
e
=>
h
.
formParams
.
email
=
e
),
placeholder
:
"请输入发票接收邮箱"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
n
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
m
([
"label"
,{
required
:
3
!=
h
.
formParams
.
inv_type
}])},{
default
:
o
((()
=>
[
i
(
"收票人"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
consignee
,
"onUpdate:modelValue"
:
a
[
13
]
||
(
a
[
13
]
=
e
=>
h
.
formParams
.
consignee
=
e
),
placeholder
:
"请输入收票人"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
n
(
b
,{
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
m
([
"label"
,{
required
:
3
!=
h
.
formParams
.
inv_type
}])},{
default
:
o
((()
=>
[
i
(
"收票人手机号"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
x
,{
type
:
"number"
,
modelValue
:
h
.
formParams
.
consignee_phone
,
"onUpdate:modelValue"
:
a
[
14
]
||
(
a
[
14
]
=
e
=>
h
.
formParams
.
consignee_phone
=
e
),
placeholder
:
"请输入收票人手机号"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})])),
_
:
1
}),
n
(
b
,{
class
:
"setting-default row verCenter bothSide"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"tt"
},{
default
:
o
((()
=>
[
i
(
"默认发票信息"
)])),
_
:
1
}),
n
(
b
,
null
,{
default
:
o
((()
=>
[
n
(
V
,{
onChange
:
P
.
onSwitchChange
,
checked
:
""
,
color
:
"#D0121B"
,
style
:{
transform
:
"scale(0.8)"
}},
null
,
8
,[
"onChange"
])])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
n
(
b
,{
class
:
"foot"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"btn"
,
onClick
:
a
[
15
]
||
(
a
[
15
]
=
e
=>
P
.
submitI
())},{
default
:
o
((()
=>
[
i
(
"确认"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-50a9ca82"
]]);
export
{
v
as
default
};
unpackage/dist/build/web/assets/pages-user-invoiceEdit.CwH2BoxY.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
e
,
U
as
a
,
r
as
t
,
c
as
l
,
w
as
o
,
i
as
s
,
o
as
r
,
d
as
n
,
e
as
i
,
v
as
m
,
f
as
c
,
m
as
d
,
I
as
u
,
V
as
f
}
from
"./index-B52OZNum.js"
;
import
{
A
as
p
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
_
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
h
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
P
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
v
=
P
({
data
:()
=>
({
formParams
:{
tax_id
:
""
,
tax_title
:
""
,
consignee_address
:
""
,
company_phone
:
""
,
tax_no
:
""
,
bank_name
:
""
,
bank_account
:
""
,
consignee
:
""
,
consignee_phone
:
""
,
email
:
""
,
intl_code
:
"0086"
,
is_default
:
1
,
inv_type
:
3
}}),
onLoad
:
function
(
e
){
this
.
formParams
.
tax_id
=
e
.
tax_id
||
""
,
this
.
getData
()},
onShow
(){},
methods
:{
getData
(){
this
.
formParams
.
tax_id
&&
this
.
request
(
p
+
"/api/invoice/getList"
,
"get"
,{
p
:
1
},
!
0
).
then
((
e
=>
{
if
(
0
==
e
.
code
){
let
a
=
e
.
data
.
list
.
filter
((
e
=>
e
.
tax_id
==
this
.
formParams
.
tax_id
))[
0
];
this
.
formParams
=
{...
a
},
this
.
formParams
.
consignee_address
=
a
.
company_address
,
console
.
log
(
this
.
formParams
)}}))},
tianyancha
(){
this
.
formParams
.
tax_title
&&
this
.
request
(
p
+
"/api/user/tianyancha"
,
"GET"
,{
company_name
:
this
.
formParams
.
tax_title
},
!
1
).
then
((
a
=>
{
0
==
a
.
code
?(
a
.
data
.
com_name
||
e
({
title
:
"天眼查没有查到该公司信息"
,
icon
:
"none"
}),
this
.
formParams
.
tax_title
=
a
.
data
.
com_name
||
this
.
formParams
.
tax_title
,
this
.
formParams
.
tax_no
=
a
.
data
.
tax_number
||
this
.
formParams
.
tax_no
,
this
.
formParams
.
company_phone
=
a
.
data
.
phone_number
,
this
.
formParams
.
consignee_address
=
a
.
data
.
com_address
):
e
({
title
:
a
.
msg
,
icon
:
"none"
})}))},
changeTab
(
e
){
this
.
formParams
.
inv_type
=
e
,
console
.
log
(
this
.
formParams
.
inv_type
)},
onSwitchChange
(
e
){
this
.
formParams
.
is_default
=
e
.
detail
.
value
?
1
:
0
},
submitI
(){
if
(
this
.
formParams
.
tax_title
){
if
(
3
==
this
.
formParams
.
inv_type
){
if
(
!
this
.
formParams
.
tax_no
)
return
void
e
({
title
:
"公司税号不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
company_phone
)
return
void
e
({
title
:
"公司电话不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
consignee_address
)
return
void
e
({
title
:
"注册地址不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
bank_name
)
return
void
e
({
title
:
"开户银行不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
bank_account
)
return
void
e
({
title
:
"银行账号不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
email
)
return
void
e
({
title
:
"发票接收邮箱不能为空"
,
icon
:
"none"
})}
else
if
(
2
==
this
.
formParams
.
inv_type
){
if
(
!
this
.
formParams
.
email
)
return
void
e
({
title
:
"发票接收邮箱不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
consignee
)
return
void
e
({
title
:
"收票人不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
consignee_phone
)
return
void
e
({
title
:
"收票人手机不能为空"
,
icon
:
"none"
})}
else
{
if
(
!
this
.
formParams
.
tax_no
)
return
void
e
({
title
:
"公司税号不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
company_phone
)
return
void
e
({
title
:
"公司电话不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
email
)
return
void
e
({
title
:
"发票接收邮箱不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
consignee
)
return
void
e
({
title
:
"收票人不能为空"
,
icon
:
"none"
});
if
(
!
this
.
formParams
.
consignee_phone
)
return
void
e
({
title
:
"收票人手机不能为空"
,
icon
:
"none"
})}
this
.
request
(
p
+
"/api/invoice/update"
,
"POST"
,
this
.
formParams
,
!
0
).
then
((
t
=>
{
0
===
t
.
code
?(
e
({
title
:
"编辑发票成功"
,
icon
:
"success"
}),
setTimeout
((()
=>
{
a
({
delta
:
1
})}),
2
e3
)):
e
({
title
:
t
.
msg
,
icon
:
"none"
})}))}
else
e
({
title
:
"发票抬头不能为空"
,
icon
:
"none"
})}},
components
:{
barX
:
_
,
titleNav
:
h
}},[[
"render"
,
function
(
e
,
a
,
p
,
_
,
h
,
P
){
const
v
=
t
(
"barX"
),
y
=
t
(
"titleNav"
),
g
=
s
,
b
=
d
,
x
=
u
,
V
=
f
;
return
r
(),
l
(
g
,{
class
:
"invoiceAddPage"
},{
default
:
o
((()
=>
[
n
(
v
),
n
(
y
,{
title
:
"编辑发票"
}),
n
(
g
,{
class
:
"cons"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"input-box"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"tab-group"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"tit"
},{
default
:
o
((()
=>
[
i
(
"发票类型"
)])),
_
:
1
}),
n
(
g
,{
class
:
"tab row bothSide"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
m
({
act
:
3
==
h
.
formParams
.
inv_type
}),
onClick
:
a
[
0
]
||
(
a
[
0
]
=
e
=>
P
.
changeTab
(
3
))},{
default
:
o
((()
=>
[
i
(
"增值税专用发票"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
b
,{
class
:
m
({
act
:
3
!=
h
.
formParams
.
inv_type
}),
onClick
:
a
[
1
]
||
(
a
[
1
]
=
e
=>
P
.
changeTab
(
4
))},{
default
:
o
((()
=>
[
i
(
"增值税普通发票"
)])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
})])),
_
:
1
}),
3
!=
h
.
formParams
.
inv_type
?(
r
(),
l
(
g
,{
key
:
0
,
class
:
"tab-group"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"tit"
},{
default
:
o
((()
=>
[
i
(
"开票信息"
)])),
_
:
1
}),
n
(
g
,{
class
:
"tab row bothSide"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
m
({
act
:
2
!=
h
.
formParams
.
inv_type
&&
3
!=
h
.
formParams
.
inv_type
}),
onClick
:
a
[
2
]
||
(
a
[
2
]
=
e
=>
P
.
changeTab
(
4
))},{
default
:
o
((()
=>
[
i
(
"公司"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
b
,{
class
:
m
({
act
:
2
==
h
.
formParams
.
inv_type
}),
onClick
:
a
[
3
]
||
(
a
[
3
]
=
e
=>
P
.
changeTab
(
2
))},{
default
:
o
((()
=>
[
i
(
"个人"
)])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
})])),
_
:
1
})):
c
(
""
,
!
0
),
2
!=
h
.
formParams
.
inv_type
?(
r
(),
l
(
g
,{
key
:
1
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"公司名称"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
tax_title
,
"onUpdate:modelValue"
:
a
[
4
]
||
(
a
[
4
]
=
e
=>
h
.
formParams
.
tax_title
=
e
),
onBlur
:
a
[
5
]
||
(
a
[
5
]
=
e
=>
P
.
tianyancha
()),
placeholder
:
"请输入公司名称"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
2
==
h
.
formParams
.
inv_type
?(
r
(),
l
(
g
,{
key
:
2
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"开票人名称"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
tax_title
,
"onUpdate:modelValue"
:
a
[
6
]
||
(
a
[
6
]
=
e
=>
h
.
formParams
.
tax_title
=
e
),
placeholder
:
"请输入开票人名称"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
2
!=
h
.
formParams
.
inv_type
?(
r
(),
l
(
g
,{
key
:
3
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"公司税号"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
tax_no
,
"onUpdate:modelValue"
:
a
[
7
]
||
(
a
[
7
]
=
e
=>
h
.
formParams
.
tax_no
=
e
),
placeholder
:
"系统自动查询后补充"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
2
!=
h
.
formParams
.
inv_type
?(
r
(),
l
(
g
,{
key
:
4
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"公司电话"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
company_phone
,
"onUpdate:modelValue"
:
a
[
8
]
||
(
a
[
8
]
=
e
=>
h
.
formParams
.
company_phone
=
e
),
placeholder
:
"系统自动查询后补充"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
3
==
h
.
formParams
.
inv_type
?(
r
(),
l
(
g
,{
key
:
5
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"注册地址"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
consignee_address
,
"onUpdate:modelValue"
:
a
[
9
]
||
(
a
[
9
]
=
e
=>
h
.
formParams
.
consignee_address
=
e
),
placeholder
:
"系统自动查询后补充"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
3
==
h
.
formParams
.
inv_type
?(
r
(),
l
(
g
,{
key
:
6
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"开户银行"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
bank_name
,
"onUpdate:modelValue"
:
a
[
10
]
||
(
a
[
10
]
=
e
=>
h
.
formParams
.
bank_name
=
e
),
placeholder
:
"请输入开户银行"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
3
==
h
.
formParams
.
inv_type
?(
r
(),
l
(
g
,{
key
:
7
,
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"开户银行账号"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
bank_account
,
"onUpdate:modelValue"
:
a
[
11
]
||
(
a
[
11
]
=
e
=>
h
.
formParams
.
bank_account
=
e
),
placeholder
:
"请输入开户银行账号"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})):
c
(
""
,
!
0
),
n
(
g
,{
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
"label required"
},{
default
:
o
((()
=>
[
i
(
"发票接收邮箱"
)])),
_
:
1
}),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
email
,
"onUpdate:modelValue"
:
a
[
12
]
||
(
a
[
12
]
=
e
=>
h
.
formParams
.
email
=
e
),
placeholder
:
"请输入发票接收邮箱"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
n
(
g
,{
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
m
([
"label"
,{
required
:
3
!=
h
.
formParams
.
inv_type
}])},{
default
:
o
((()
=>
[
i
(
"收票人"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
x
,{
type
:
"text"
,
modelValue
:
h
.
formParams
.
consignee
,
"onUpdate:modelValue"
:
a
[
13
]
||
(
a
[
13
]
=
e
=>
h
.
formParams
.
consignee
=
e
),
placeholder
:
"请输入收票人"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
n
(
g
,{
class
:
"input-group row verCenter"
},{
default
:
o
((()
=>
[
n
(
b
,{
class
:
m
([
"label"
,{
required
:
3
!=
h
.
formParams
.
inv_type
}])},{
default
:
o
((()
=>
[
i
(
"收票人手机号"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
x
,{
type
:
"number"
,
modelValue
:
h
.
formParams
.
consignee_phone
,
"onUpdate:modelValue"
:
a
[
14
]
||
(
a
[
14
]
=
e
=>
h
.
formParams
.
consignee_phone
=
e
),
placeholder
:
"请输入收票人手机号"
,
"placeholder-class"
:
"placeholder-class"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
})])),
_
:
1
}),
n
(
g
,{
class
:
"setting-default row verCenter bothSide"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"tt"
},{
default
:
o
((()
=>
[
i
(
"默认发票信息"
)])),
_
:
1
}),
n
(
g
,
null
,{
default
:
o
((()
=>
[
n
(
V
,{
onChange
:
P
.
onSwitchChange
,
checked
:
1
==
h
.
formParams
.
is_default
,
color
:
"#D0121B"
,
style
:{
transform
:
"scale(0.8)"
}},
null
,
8
,[
"onChange"
,
"checked"
])])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
n
(
g
,{
class
:
"foot"
},{
default
:
o
((()
=>
[
n
(
g
,{
class
:
"btn"
,
onClick
:
a
[
15
]
||
(
a
[
15
]
=
e
=>
P
.
submitI
())},{
default
:
o
((()
=>
[
i
(
"确认"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-1f95ddc4"
]]);
export
{
v
as
default
};
unpackage/dist/build/web/assets/pages-user-msgList.3JQdPaDu.js
0 → 100644
View file @
6eb3aa03
import
{
y
as
t
,
b
as
s
,
r
as
a
,
c
as
e
,
w
as
i
,
i
as
n
,
o
as
c
,
d
as
o
,
e
as
l
,
v
as
u
,
t
as
d
,
h
as
r
,
j
as
h
,
F
as
_
,
f
,
m
as
g
,
k
as
m
}
from
"./index-B52OZNum.js"
;
import
{
A
as
p
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
C
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
w
=
C
({
data
:()
=>
({
isInit
:
!
1
,
page
:
1
,
limit
:
10
,
status
:
""
,
isLoadEnd
:
!
1
,
list
:[],
all_count
:
0
,
unreadcount
:
0
,
read_count
:
0
}),
onLoad
:
function
(){
this
.
getData
()},
async
onReachBottom
(){
this
.
isLoadEnd
||
this
.
getData
()},
methods
:{
clear
(){
t
({
title
:
""
,
content
:
"您确定清空所有已读消息吗?"
,
success
:
t
=>
{
t
.
confirm
&&
this
.
request
(
p
+
"/api/user/changeMsgStatus"
,
"post"
,{
status
:
2
},
!
0
).
then
((
t
=>
{
0
==
t
.
code
?(
s
({
title
:
"删除已读成功"
,
duration
:
2
e3
,
icon
:
"none"
}),
this
.
initGetData
()):
s
({
title
:
t
.
msg
,
duration
:
2
e3
,
icon
:
"none"
})}))}})},
bjyd
(){
t
({
title
:
""
,
content
:
"您确定标记所有消息为已读吗?"
,
success
:
t
=>
{
t
.
confirm
&&
this
.
request
(
p
+
"/api/user/changeMsgStatus"
,
"post"
,{
status
:
3
},
!
0
).
then
((
t
=>
{
0
==
t
.
code
?(
s
({
title
:
"标记已读成功"
,
duration
:
2
e3
,
icon
:
"none"
}),
this
.
initGetData
()):
s
({
title
:
t
.
msg
,
duration
:
2
e3
,
icon
:
"none"
})}))}})},
zankai
(
t
){
this
.
list
.
forEach
((
s
=>
{
s
.
msg_id
==
t
&&
(
s
.
showCons
=!
s
.
showCons
,
2
!=
s
.
status
&&
(
s
.
status
=
2
,
this
.
request
(
p
+
"/api/user/changeMsgStatusById"
,
"post"
,{
msg_id
:
s
.
msg_id
},
!
0
).
then
((
t
=>
{
this
.
getData
(
1
)}))))}))},
tab
(
t
){
this
.
status
=
t
,
this
.
initGetData
()},
initGetData
(){
this
.
page
=
1
,
this
.
isInit
=!
1
,
this
.
isLoadEnd
=!
1
,
this
.
list
=
[],
this
.
getData
()},
getData
(
t
){
let
s
=
{
status
:
this
.
status
,
page
:
this
.
page
,
limit
:
this
.
limit
};
this
.
request
(
p
+
"/api/user/msgList"
,
"GET"
,
s
,
!
0
).
then
((
s
=>
{
if
(
t
)
return
this
.
all_count
=
s
.
data
.
data
.
all_count
||
0
,
this
.
unreadcount
=
s
.
data
.
data
.
unreadcount
||
0
,
void
(
this
.
read_count
=
s
.
data
.
data
.
read_count
||
0
);
if
(
1
==
this
.
page
&&
(
this
.
list
=
[]),
this
.
all_count
=
s
.
data
.
data
.
all_count
||
0
,
this
.
unreadcount
=
s
.
data
.
data
.
unreadcount
||
0
,
this
.
read_count
=
s
.
data
.
data
.
read_count
||
0
,
0
==
s
.
code
){
this
.
isInit
=
1
;
let
t
=
s
.
data
.
data
.
list
||
[];
t
.
forEach
((
t
=>
{
t
.
showCons
=!
1
,
1
==
t
.
msg_type
&&
(
t
.
iconSrc
=
"https://img.ichunt.com/images/ichunt/202502/24/af70f0465763bc538222014215472f15.png"
),
2
==
t
.
msg_type
&&
(
t
.
iconSrc
=
"https://img.ichunt.com/images/ichunt/202502/24/076cb4c6de374b6f088852d822df770d.png"
),
3
==
t
.
msg_type
&&
(
t
.
iconSrc
=
"https://img.ichunt.com/images/ichunt/202502/24/f969027642ab0c8c94c1a8614c272198.png"
),
4
==
t
.
msg_type
&&
(
t
.
iconSrc
=
"https://img.ichunt.com/images/ichunt/202502/24/9d75f867b835d4f9b4461b5e1cf825c6.png"
)})),
this
.
list
=
[...
this
.
list
,...
t
],
this
.
page
*
this
.
limit
>=
Number
(
s
.
data
.
data
.
all_count
)
&&
(
this
.
isLoadEnd
=!
0
),
this
.
page
++
}
else
this
.
isInit
=
1
,
this
.
list
=
[]}))}},
components
:{
barX
:
b
}},[[
"render"
,
function
(
t
,
s
,
p
,
b
,
C
,
w
){
const
k
=
a
(
"barX"
),
y
=
g
,
v
=
n
,
L
=
m
;
return
c
(),
e
(
v
,{
class
:
"msgListPage"
},{
default
:
i
((()
=>
[
o
(
k
),
o
(
v
,{
class
:
"titsk-head row verCenter bothSide"
},{
default
:
i
((()
=>
[
o
(
v
,{
class
:
"l row verCenter"
},{
default
:
i
((()
=>
[
o
(
y
,{
class
:
"icon iconfont icon-arrowleft"
,
onClick
:
t
.
$goBack
},
null
,
8
,[
"onClick"
]),
o
(
v
,
null
,{
default
:
i
((()
=>
[
l
(
"我的消息"
)])),
_
:
1
})])),
_
:
1
}),
o
(
v
,{
class
:
"handle-box row verCenter"
},{
default
:
i
((()
=>
[
o
(
v
,{
class
:
"ite row verCenter"
,
onClick
:
s
[
0
]
||
(
s
[
0
]
=
t
=>
w
.
bjyd
())},{
default
:
i
((()
=>
[
o
(
y
,{
class
:
"icon iconfont icon-xib"
}),
o
(
y
,
null
,{
default
:
i
((()
=>
[
l
(
"标记已读"
)])),
_
:
1
})])),
_
:
1
}),
o
(
v
,{
class
:
"ite row verCenter"
,
onClick
:
s
[
1
]
||
(
s
[
1
]
=
t
=>
w
.
clear
())},{
default
:
i
((()
=>
[
o
(
y
,{
class
:
"icon iconfont icon-delk"
}),
o
(
y
,
null
,{
default
:
i
((()
=>
[
l
(
"删除"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
o
(
v
,{
class
:
"tabs row rowCenter verCenter"
},{
default
:
i
((()
=>
[
o
(
v
,{
class
:
u
([
"item"
,{
act
:
""
==
C
.
status
}]),
onClick
:
s
[
2
]
||
(
s
[
2
]
=
t
=>
w
.
tab
(
""
))},{
default
:
i
((()
=>
[
l
(
"全部("
+
d
(
C
.
all_count
)
+
")"
,
1
)])),
_
:
1
},
8
,[
"class"
]),
o
(
v
,{
class
:
u
([
"item"
,{
act
:
2
==
C
.
status
}]),
onClick
:
s
[
3
]
||
(
s
[
3
]
=
t
=>
w
.
tab
(
2
))},{
default
:
i
((()
=>
[
l
(
"已读("
+
d
(
C
.
read_count
)
+
")"
,
1
)])),
_
:
1
},
8
,[
"class"
]),
o
(
v
,{
class
:
u
([
"item"
,{
act
:
1
==
C
.
status
}]),
onClick
:
s
[
4
]
||
(
s
[
4
]
=
t
=>
w
.
tab
(
1
))},{
default
:
i
((()
=>
[
l
(
"未读("
+
d
(
C
.
unreadcount
)
+
")"
,
1
)])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
}),
o
(
v
,{
class
:
"cons"
},{
default
:
i
((()
=>
[
C
.
list
.
length
>
0
?(
c
(),
e
(
v
,{
key
:
0
,
class
:
"data-box"
},{
default
:
i
((()
=>
[(
c
(
!
0
),
r
(
_
,
null
,
h
(
C
.
list
,((
t
,
s
)
=>
(
c
(),
e
(
v
,{
class
:
"group"
,
key
:
s
},{
default
:
i
((()
=>
[
o
(
v
,{
class
:
"t row verCenter"
},{
default
:
i
((()
=>
[
o
(
L
,{
src
:
t
.
iconSrc
},
null
,
8
,[
"src"
]),
o
(
v
,{
class
:
"elep"
},{
default
:
i
((()
=>
[
l
(
d
(
t
.
title
),
1
)])),
_
:
2
},
1024
),
1
==
t
.
status
?(
c
(),
e
(
v
,{
key
:
0
,
class
:
"new"
})):
f
(
""
,
!
0
)])),
_
:
2
},
1024
),
t
.
showCons
?(
c
(),
e
(
v
,{
key
:
0
,
class
:
"c"
,
innerHTML
:
t
.
content
},
null
,
8
,[
"innerHTML"
])):
f
(
""
,
!
0
),
o
(
v
,{
class
:
"b row verCenter bothSide"
},{
default
:
i
((()
=>
[
o
(
v
,{
class
:
"l row verCenter"
},{
default
:
i
((()
=>
[
o
(
y
,
null
,{
default
:
i
((()
=>
[
l
(
d
(
1
==
t
.
msg_type
?
"公告"
:
2
==
t
.
msg_type
?
"活动"
:
3
==
t
.
msg_type
?
"新闻"
:
"其他"
),
1
)])),
_
:
2
},
1024
),
o
(
y
,{
class
:
"line"
}),
o
(
y
,
null
,{
default
:
i
((()
=>
[
l
(
d
(
t
.
actual_send_time_format
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
o
(
v
,{
class
:
"r row"
},{
default
:
i
((()
=>
[
o
(
v
,{
class
:
"btnj row verCenter"
,
onClick
:
s
=>
w
.
zankai
(
t
.
msg_id
)},{
default
:
i
((()
=>
[
l
(
d
(
t
.
showCons
?
"收起"
:
"展开"
),
1
),
o
(
y
,{
class
:
u
([
"icon"
,
"iconfont"
,
t
.
showCons
?
"icon-arrowshang"
:
"icon-arrowxia"
])},
null
,
8
,[
"class"
])])),
_
:
2
},
1032
,[
"onClick"
])])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)))),
128
))])),
_
:
1
})):
f
(
""
,
!
0
),
C
.
list
.
length
>
0
&&
C
.
isLoadEnd
?(
c
(),
e
(
v
,{
key
:
1
,
class
:
"pagebot"
},{
default
:
i
((()
=>
[
l
(
"—— 已经全部加载完 ——"
)])),
_
:
1
})):
f
(
""
,
!
0
),
C
.
isInit
&&
0
==
C
.
list
.
length
?(
c
(),
e
(
v
,{
key
:
2
,
class
:
"no-data"
},{
default
:
i
((()
=>
[
o
(
L
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/24/07a360187d83ccf80a9d835029c27446.png"
}),
o
(
v
,
null
,{
default
:
i
((()
=>
[
l
(
"暂无信息!"
)])),
_
:
1
})])),
_
:
1
})):
f
(
""
,
!
0
)])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-9ed24328"
]]);
export
{
w
as
default
};
unpackage/dist/build/web/assets/pages-user-orderDetail.BePz4UCg.js
0 → 100644
View file @
6eb3aa03
import
{
W
as
a
,
O
as
e
,
b
as
s
,
A
as
l
,
n
as
t
,
r
as
o
,
c
as
d
,
w
as
r
,
i
as
n
,
o
as
i
,
d
as
_
,
h
as
u
,
j
as
c
,
F
as
f
,
f
as
g
,
e
as
p
,
t
as
m
,
m
as
h
,
l
as
w
,
v
as
k
,
k
as
b
}
from
"./index-B52OZNum.js"
;
import
{
A
as
D
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
v
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
x
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
y
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
C
=
y
({
data
:()
=>
({
pageData
:
""
,
order_id
:
""
,
wlInfo
:[]}),
onLoad
:
function
(
a
){
this
.
order_id
=
a
.
order_id
||
""
,
this
.
getData
()},
methods
:{
callPhone
(
e
){
console
.
log
(
e
),
a
({
phoneNumber
:
e
,
success
:()
=>
{
console
.
log
(
"拨打电话成功"
)}})},
copywl
(
a
){
e
({
data
:
a
.
shipping_no
,
success
:
function
(){
s
({
title
:
"复制成功"
,
icon
:
"success"
})}})},
sqzk
(
a
){
this
.
wlInfo
.
forEach
((
e
=>
{
e
.
shipping_info
.
forEach
((
e
=>
{
a
==
e
.
shipping_no
&&
(
e
.
showUlAll
=!
e
.
showUlAll
)}))}))},
again
(
a
){
let
e
=
this
.
pageData
.
order_items
||
[],
o
=
[],
d
=
[];
e
.
forEach
((
e
=>
{
let
s
=
{
goods_num
:
e
.
goods_number
,
sku_id
:
e
.
goods_id
,
price
:
e
.
price_has_tax
};
a
&&
(
s
.
is_cover_goods_num
=
1
),
o
.
push
(
s
),
d
.
push
(
s
.
sku_id
)})),
this
.
request
(
D
+
"/api/cart/batchAddCart"
,
"POST"
,{
sku_json
:
JSON
.
stringify
(
o
)},
!
0
).
then
((
e
=>
{
0
==
e
.
code
?
a
?(
l
(
"car_ids"
,
d
.
join
(
","
)),
l
(
"confirmOrderBackUrl"
,
`/pages/user/orderDetail?order_id=
${
this
.
order_id
}
`
),
t
({
url
:
"/pages/car/confirmOrder"
})):
s
({
title
:
"添加购物车成功"
,
icon
:
"success"
}):
s
({
title
:
e
.
msg
,
icon
:
"error"
})}))},
getData
(){
this
.
request
(
D
+
"/api/order/detail"
,
"GET"
,{
order_id
:
this
.
order_id
},
!
0
).
then
((
a
=>
{
0
==
a
.
code
?(
this
.
pageData
=
a
.
data
,
this
.
wlInfo
=
a
.
data
.
order_shipping
||
[],
this
.
wlInfo
.
forEach
((
a
=>
{
a
.
showUlAll
=!
1
}))):
s
({
title
:
a
.
msg
,
icon
:
"error"
})}))}},
components
:{
barX
:
v
,
titleNav
:
x
}},[[
"render"
,
function
(
a
,
e
,
s
,
l
,
t
,
D
){
const
v
=
o
(
"barX"
),
x
=
o
(
"titleNav"
),
y
=
b
,
C
=
h
,
S
=
n
,
I
=
w
;
return
i
(),
d
(
S
,{
class
:
"orderDetailPage"
},{
default
:
r
((()
=>
[
_
(
v
),
_
(
x
,{
title
:
"订单详情"
}),
_
(
S
,{
class
:
"cons"
},{
default
:
r
((()
=>
[
t
.
pageData
?(
i
(),
d
(
S
,{
key
:
0
},{
default
:
r
((()
=>
[
t
.
wlInfo
.
length
>
0
?(
i
(),
d
(
S
,{
key
:
0
,
class
:
"wl-box"
},{
default
:
r
((()
=>
[(
i
(
!
0
),
u
(
f
,
null
,
c
(
t
.
wlInfo
,((
a
,
e
)
=>
(
i
(),
d
(
S
,{
class
:
"wiboxitem"
,
key
:
e
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"pack row"
},{
default
:
r
((()
=>
[(
i
(
!
0
),
u
(
f
,
null
,
c
(
a
.
shipping_items
,((
a
,
e
)
=>
(
i
(),
d
(
S
,{
class
:
"item row verCenter"
,
key
:
e
},{
default
:
r
((()
=>
[
_
(
y
,{
src
:
a
.
goods_images
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
},
null
,
8
,[
"src"
]),
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
m
(
a
.
goods_name
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)))),
128
))])),
_
:
2
},
1024
),
_
(
S
,{
class
:
"wlinfobox"
},{
default
:
r
((()
=>
[(
i
(
!
0
),
u
(
f
,
null
,
c
(
a
.
shipping_info
,((
e
,
s
)
=>
(
i
(),
d
(
S
,{
class
:
"wl-cons"
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"tit row bothSide verCenter"
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"row verCenter"
},{
default
:
r
((()
=>
[
p
(
m
(
e
.
tracking_name
)
+
" "
+
m
(
e
.
shipping_no
),
1
)])),
_
:
2
},
1024
),
_
(
S
,{
class
:
"row verCenter"
},{
default
:
r
((()
=>
[
_
(
C
,{
onClick
:
a
=>
D
.
copywl
(
e
)},{
default
:
r
((()
=>
[
p
(
"复制"
)])),
_
:
2
},
1032
,[
"onClick"
]),
_
(
C
,{
class
:
"call"
,
onClick
:
e
=>
D
.
callPhone
(
a
.
shipping_tel
)},{
default
:
r
((()
=>
[
p
(
"打电话"
)])),
_
:
2
},
1032
,[
"onClick"
])])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
_
(
S
,{
class
:
"consfg"
},{
default
:
r
((()
=>
[(
i
(
!
0
),
u
(
f
,
null
,
c
(
e
.
tracking_msg
,((
a
,
s
)
=>
(
i
(),
d
(
S
,{
class
:
k
([
"wlitem"
,{
hidex
:
s
>
0
&&!
e
.
showUlAll
}]),
key
:
s
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"row wlt verCenter"
},{
default
:
r
((()
=>
[
a
.
tracking_status_val
?(
i
(),
d
(
C
,{
key
:
0
,
class
:
"tet"
},{
default
:
r
((()
=>
[
p
(
m
(
a
.
tracking_status_val
),
1
)])),
_
:
2
},
1024
)):
g
(
""
,
!
0
),
_
(
C
,{
class
:
"txt"
},{
default
:
r
((()
=>
[
p
(
m
(
a
.
time
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
_
(
S
,{
class
:
"wlb"
},{
default
:
r
((()
=>
[
p
(
m
(
a
.
context
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"class"
])))),
128
))])),
_
:
2
},
1024
),
_
(
S
,{
class
:
"wlbt1 row verCenter"
,
onClick
:
a
=>
D
.
sqzk
(
e
.
shipping_no
)},{
default
:
r
((()
=>
[
p
(
m
(
e
.
showUlAll
?
"收起"
:
"查看"
)
+
"更多物流明细 "
,
1
),
_
(
C
,{
class
:
k
([
"icon"
,
"iconfont"
,
e
.
showUlAll
?
"icon-arrowshang"
:
"icon-arrowxia"
])},
null
,
8
,[
"class"
])])),
_
:
2
},
1032
,[
"onClick"
])])),
_
:
2
},
1024
)))),
256
))])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)))),
128
))])),
_
:
1
})):
g
(
""
,
!
0
),
t
.
wlInfo
.
length
>
0
?(
i
(),
d
(
S
,{
key
:
1
,
class
:
"wlfoot"
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"t row"
},{
default
:
r
((()
=>
[
_
(
C
,{
class
:
"icon iconfont icon-dzsd"
}),
_
(
S
,
null
,{
default
:
r
((()
=>
[
p
(
"送至 "
+
m
(
t
.
pageData
.
order_address
.
address
),
1
)])),
_
:
1
})])),
_
:
1
}),
_
(
S
,{
class
:
"b"
},{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_address
.
consignee
)
+
" "
+
m
(
t
.
pageData
.
order_address
.
mobile
),
1
)])),
_
:
1
})])),
_
:
1
})):
g
(
""
,
!
0
),
!
t
.
wlInfo
.
length
>
0
?(
i
(),
d
(
S
,{
key
:
2
,
class
:
"top-box"
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"address-box"
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"addbx row bothSide verCenter"
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"l"
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"ad row verCenter"
},{
default
:
r
((()
=>
[
_
(
C
,{
class
:
"csq"
},{
default
:
r
((()
=>
[
p
(
m
((
"中国"
!=
t
.
pageData
.
order_address
.
nation_cn
?
t
.
pageData
.
order_address
.
nation_cn
:
""
)
+
t
.
pageData
.
order_address
.
province_val
+
" "
+
t
.
pageData
.
order_address
.
city_val
+
" "
+
t
.
pageData
.
order_address
.
district_val
),
1
)])),
_
:
1
}),
1
==
t
.
pageData
.
order_address
.
is_default
?(
i
(),
d
(
C
,{
key
:
0
,
class
:
"mr"
},{
default
:
r
((()
=>
[
p
(
"默认"
)])),
_
:
1
})):
g
(
""
,
!
0
)])),
_
:
1
}),
_
(
S
,{
class
:
"ad1"
},{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_address
.
address
),
1
)])),
_
:
1
}),
_
(
S
,{
class
:
"cnnk"
},{
default
:
r
((()
=>
[
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_address
.
consignee
),
1
)])),
_
:
1
}),
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_address
.
mobile
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):
g
(
""
,
!
0
),
_
(
S
,{
class
:
"goods-box"
},{
default
:
r
((()
=>
[(
i
(
!
0
),
u
(
f
,
null
,
c
(
t
.
pageData
.
order_items
,((
a
,
e
)
=>
(
i
(),
d
(
S
,{
class
:
"group row"
,
key
:
e
},{
default
:
r
((()
=>
[
_
(
y
,{
src
:
a
.
goods_images
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
},
null
,
8
,[
"src"
]),
_
(
S
,{
class
:
"infos"
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"ganme elep2"
},{
default
:
r
((()
=>
[
p
(
m
(
a
.
sku_name
),
1
)])),
_
:
2
},
1024
),
_
(
S
,{
class
:
"hqs row verCenter bothSide"
},{
default
:
r
((()
=>
[
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
"货期:"
+
m
(
a
.
delivery_time
),
1
)])),
_
:
2
},
1024
),
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
"x"
+
m
(
a
.
goods_number
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
_
(
S
,{
class
:
"price"
},{
default
:
r
((()
=>
[
p
(
m
(
a
.
goods_amount_order
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)))),
128
))])),
_
:
1
}),
_
(
S
,{
class
:
"price-infos"
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"tit"
},{
default
:
r
((()
=>
[
p
(
"订单信息"
)])),
_
:
1
}),
_
(
S
,{
class
:
"row bothSide item"
},{
default
:
r
((()
=>
[
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
"发票信息"
)])),
_
:
1
}),
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_invoice
.
tax_title
),
1
)])),
_
:
1
})])),
_
:
1
}),
_
(
S
,{
class
:
"row bothSide item"
},{
default
:
r
((()
=>
[
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
"订单编号"
)])),
_
:
1
}),
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_info
.
order_sn
),
1
)])),
_
:
1
})])),
_
:
1
}),
_
(
S
,{
class
:
"row bothSide item"
},{
default
:
r
((()
=>
[
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
"下单时间"
)])),
_
:
1
}),
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_info
.
create_time
),
1
)])),
_
:
1
})])),
_
:
1
}),
_
(
S
,{
class
:
"row bothSide item"
},{
default
:
r
((()
=>
[
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
"订单备注"
)])),
_
:
1
}),
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_info
.
order_remark
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
_
(
S
,{
class
:
"price-infos"
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"tit"
},{
default
:
r
((()
=>
[
p
(
"结算信息"
)])),
_
:
1
}),
_
(
S
,{
class
:
"row bothSide item"
},{
default
:
r
((()
=>
[
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
"商品含税总额"
)])),
_
:
1
}),
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_info
.
goods_amount_has_tax_format
),
1
)])),
_
:
1
})])),
_
:
1
}),
_
(
S
,{
class
:
"row bothSide item"
},{
default
:
r
((()
=>
[
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
"税费"
)])),
_
:
1
}),
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_info
.
tax_amount_format
),
1
)])),
_
:
1
})])),
_
:
1
}),
_
(
S
,{
class
:
"row bothSide item"
},{
default
:
r
((()
=>
[
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
"优惠券抵用"
)])),
_
:
1
}),
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_info
.
coupon_amount_format
),
1
)])),
_
:
1
})])),
_
:
1
}),
_
(
S
,{
class
:
"row bothSide item"
},{
default
:
r
((()
=>
[
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
"运费"
)])),
_
:
1
}),
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_info
.
shipping_amount_format
),
1
)])),
_
:
1
})])),
_
:
1
}),
_
(
S
,{
class
:
"row bothSide item"
},{
default
:
r
((()
=>
[
_
(
C
,
null
,{
default
:
r
((()
=>
[
p
(
"含税总额"
)])),
_
:
1
}),
_
(
C
,{
class
:
"price"
},{
default
:
r
((()
=>
[
p
(
m
(
t
.
pageData
.
order_info
.
order_amount_format
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):
g
(
""
,
!
0
)])),
_
:
1
}),
t
.
pageData
?(
i
(),
d
(
S
,{
key
:
0
,
class
:
"foot row verCenter bothSide"
},{
default
:
r
((()
=>
[
_
(
I
,{
class
:
"item"
,
url
:
a
.
$globalData
.
KFQQ
},{
default
:
r
((()
=>
[
_
(
C
,{
class
:
"icon iconfont icon-kfd"
}),
_
(
S
,
null
,{
default
:
r
((()
=>
[
p
(
"我的客服"
)])),
_
:
1
})])),
_
:
1
},
8
,[
"url"
]),
_
(
S
,{
class
:
"row"
},{
default
:
r
((()
=>
[
_
(
S
,{
class
:
"add-car"
,
onClick
:
e
[
0
]
||
(
e
[
0
]
=
a
=>
D
.
again
())},{
default
:
r
((()
=>
[
p
(
"加入购物车"
)])),
_
:
1
}),
_
(
S
,{
class
:
"add-confirm"
,
onClick
:
e
[
1
]
||
(
e
[
1
]
=
a
=>
D
.
again
(
1
))},{
default
:
r
((()
=>
[
p
(
"再来一单"
)])),
_
:
1
}),
2
==
t
.
pageData
.
order_info
.
status
||
3
==
t
.
pageData
.
order_info
.
status
?(
i
(),
d
(
I
,{
key
:
0
,
url
:
"/pages/user/orderPay?order_id="
+
t
.
order_id
,
class
:
"pay"
},{
default
:
r
((()
=>
[
p
(
"立即支付"
)])),
_
:
1
},
8
,[
"url"
])):
g
(
""
,
!
0
)])),
_
:
1
})])),
_
:
1
})):
g
(
""
,
!
0
)])),
_
:
1
})}],[
"__scopeId"
,
"data-v-f07de8ed"
]]);
export
{
C
as
default
};
unpackage/dist/build/web/assets/pages-user-orderList.Dy6_4AI0.js
0 → 100644
View file @
6eb3aa03
import
{
A
as
t
,
n
as
s
,
b
as
a
,
y
as
e
,
r
as
l
,
c
as
i
,
w
as
o
,
i
as
c
,
o
as
u
,
d
as
n
,
f
as
r
,
v
as
d
,
e
as
_
,
h
,
j
as
f
,
F
as
p
,
m
,
I
as
g
,
k
,
t
as
C
,
p
as
b
,
l
as
v
}
from
"./index-B52OZNum.js"
;
import
{
A
as
y
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
w
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
I
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
x
=
I
({
data
:()
=>
({
isInit
:
!
1
,
status
:
""
,
limit
:
10
,
page
:
1
,
isLoadEnd
:
!
1
,
list
:[],
inputValue
:
""
,
showClearIcon
:
!
1
}),
onLoad
:
function
(
t
){
this
.
status
=
t
.
status
||
""
,
this
.
getData
()},
async
onReachBottom
(){
this
.
isLoadEnd
||
this
.
getData
()},
methods
:{
again
(
e
){
let
l
=
[],
i
=
[];
e
.
goods_list
.
forEach
((
t
=>
{
l
.
push
({
goods_num
:
t
.
goods_number
,
sku_id
:
t
.
sku_id
,
price
:
t
.
price_has_tax
,
is_cover_goods_num
:
1
}),
i
.
push
(
t
.
sku_id
)})),
this
.
request
(
y
+
"/api/cart/batchAddCart"
,
"POST"
,{
sku_json
:
JSON
.
stringify
(
l
)},
!
0
).
then
((
e
=>
{
0
==
e
.
code
?(
t
(
"car_ids"
,
i
.
join
(
","
)),
t
(
"confirmOrderBackUrl"
,
`/pages/user/orderList?status=
${
this
.
status
}
`
),
s
({
url
:
"/pages/car/confirmOrder"
})):
a
({
title
:
e
.
msg
,
icon
:
"error"
})}))},
payOrder
(
t
){
s
({
url
:
"/pages/user/orderPay?order_id="
+
t
})},
sure
(
t
){
e
({
title
:
"订单确认"
,
content
:
"您要把当前订单确认收货吗?"
,
success
:
s
=>
{
s
.
confirm
&&
this
.
request
(
y
+
"/api/order/confirmReceipt"
,
"POST"
,{
order_id
:
t
},
!
0
).
then
((
t
=>
{
0
==
t
.
code
?(
a
({
title
:
"确认收货成功"
,
icon
:
"success"
}),
setTimeout
((()
=>
{
this
.
initGetData
()}),
2
e3
)):
a
({
title
:
t
.
msg
,
icon
:
"none"
})}))}})},
cancelOrder
(
t
){
e
({
title
:
"取消订单"
,
content
:
"您确定要取消当前订单吗?"
,
success
:
s
=>
{
s
.
confirm
&&
this
.
request
(
y
+
"/api/order/cancel"
,
"POST"
,{
order_id
:
t
},
!
0
).
then
((
t
=>
{
0
==
t
.
code
?(
a
({
title
:
"取消订单成功"
,
icon
:
"success"
}),
setTimeout
((()
=>
{
this
.
initGetData
()}),
2
e3
)):
a
({
title
:
t
.
msg
,
icon
:
"none"
})}))}})},
onConfirm
(
t
){
t
.
detail
.
value
.
length
<
2
?
a
({
title
:
"关键字不能小于2个字符"
,
duration
:
2
e3
,
icon
:
"none"
}):(
this
.
status
=
""
,
this
.
initGetData
())},
tab
(
t
){
this
.
status
=
t
,
this
.
initGetData
()},
initGetData
(){
this
.
page
=
1
,
this
.
isInit
=!
1
,
this
.
isLoadEnd
=!
1
,
this
.
list
=
[],
this
.
getData
()},
getData
(){
let
t
=
{
is_multi
:
1
,
status
:
this
.
status
,
limit
:
this
.
limit
,
page
:
this
.
page
,
xcx_search
:
this
.
inputValue
};
this
.
request
(
y
+
"/api/order/list"
,
"GET"
,
t
,
!
0
,
!
0
).
then
((
t
=>
{
if
(
0
==
t
.
code
){
this
.
isInit
=
1
;
let
s
=
t
.
data
.
list
||
[];
s
.
forEach
((
t
=>
{
1
==
t
.
status
&&
(
t
.
status_val
=
"待确认"
),
2
!=
t
.
status
&&
3
!=
t
.
status
||
(
t
.
status_val
=
"待付款"
),
4
==
t
.
status
&&
(
t
.
status_val
=
"待发货"
),
7
!=
t
.
status
&&
8
!=
t
.
status
||
(
t
.
status_val
=
"待收货"
),
-
1
!=
t
.
status
&&
10
!=
t
.
status
||
(
t
.
status_val
=
"已完结"
)})),
this
.
list
=
[...
this
.
list
,...
s
],
this
.
page
*
this
.
limit
>=
Number
(
t
.
data
.
total
)
&&
(
this
.
isLoadEnd
=!
0
),
this
.
page
++
}
else
this
.
isInit
=
1
,
this
.
list
=
[]}))},
clearInput
:
function
(
t
){
this
.
inputValue
=
t
.
detail
.
value
,
t
.
detail
.
value
.
length
>
0
?
this
.
showClearIcon
=!
0
:
this
.
showClearIcon
=!
1
},
clearIcon
:
function
(){
this
.
inputValue
=
""
,
this
.
showClearIcon
=!
1
}},
components
:{
barX
:
w
}},[[
"render"
,
function
(
t
,
s
,
a
,
e
,
y
,
w
){
const
I
=
l
(
"barX"
),
x
=
m
,
D
=
g
,
O
=
c
,
E
=
k
,
L
=
v
;
return
u
(),
i
(
O
,{
class
:
"orderListPage"
},{
default
:
o
((()
=>
[
n
(
I
),
n
(
O
,{
class
:
"head"
},{
default
:
o
((()
=>
[
n
(
O
,{
class
:
"top-box-order row bothSide verCenter"
},{
default
:
o
((()
=>
[
n
(
x
,{
class
:
"icon iconfont icon-arrowleft"
,
onClick
:
s
[
0
]
||
(
s
[
0
]
=
s
=>
t
.
$goBack
())}),
n
(
O
,{
class
:
"search-box row verCenter"
},{
default
:
o
((()
=>
[
n
(
x
,{
class
:
"icon iconfont icon-search"
}),
n
(
D
,{
class
:
"uni-input"
,
placeholder
:
"请输入订单编号、商品名称、型号"
,
value
:
y
.
inputValue
,
onInput
:
w
.
clearInput
,
"confirm-type"
:
"search"
,
onConfirm
:
w
.
onConfirm
},
null
,
8
,[
"value"
,
"onInput"
,
"onConfirm"
]),
y
.
showClearIcon
?(
u
(),
i
(
x
,{
key
:
0
,
class
:
"icon iconfont icon-searchclose"
,
onClick
:
s
[
1
]
||
(
s
[
1
]
=
t
=>
w
.
clearIcon
())})):
r
(
""
,
!
0
)])),
_
:
1
})])),
_
:
1
}),
n
(
O
,{
class
:
"tabs row bothSide verCenter"
},{
default
:
o
((()
=>
[
n
(
O
,{
class
:
d
([
"item"
,{
act
:
""
==
y
.
status
}]),
onClick
:
s
[
2
]
||
(
s
[
2
]
=
t
=>
w
.
tab
(
""
))},{
default
:
o
((()
=>
[
_
(
"全部"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
O
,{
class
:
d
([
"item"
,{
act
:
"2,3"
==
y
.
status
}]),
onClick
:
s
[
3
]
||
(
s
[
3
]
=
t
=>
w
.
tab
(
"2,3"
))},{
default
:
o
((()
=>
[
_
(
"待付款"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
O
,{
class
:
d
([
"item"
,{
act
:
"4"
==
y
.
status
}]),
onClick
:
s
[
4
]
||
(
s
[
4
]
=
t
=>
w
.
tab
(
"4"
))},{
default
:
o
((()
=>
[
_
(
"待发货"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
O
,{
class
:
d
([
"item"
,{
act
:
"7"
==
y
.
status
}]),
onClick
:
s
[
5
]
||
(
s
[
5
]
=
t
=>
w
.
tab
(
"7"
))},{
default
:
o
((()
=>
[
_
(
"部分发货"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
O
,{
class
:
d
([
"item"
,{
act
:
"8"
==
y
.
status
}]),
onClick
:
s
[
6
]
||
(
s
[
6
]
=
t
=>
w
.
tab
(
"8"
))},{
default
:
o
((()
=>
[
_
(
"待收货"
)])),
_
:
1
},
8
,[
"class"
]),
n
(
O
,{
class
:
d
([
"item"
,{
act
:
"-1,10"
==
y
.
status
}]),
onClick
:
s
[
7
]
||
(
s
[
7
]
=
t
=>
w
.
tab
(
"-1,10"
))},{
default
:
o
((()
=>
[
_
(
"已完结"
)])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
})])),
_
:
1
}),
n
(
O
,{
class
:
"cons"
},{
default
:
o
((()
=>
[
y
.
list
.
length
>
0
?(
u
(),
i
(
O
,{
key
:
0
,
class
:
"data-box"
},{
default
:
o
((()
=>
[(
u
(
!
0
),
h
(
p
,
null
,
f
(
y
.
list
,((
t
,
s
)
=>
(
u
(),
i
(
L
,{
url
:
"/pages/user/orderDetail?order_id="
+
t
.
order_id
,
class
:
"group"
,
key
:
s
},{
default
:
o
((()
=>
[
n
(
O
,{
class
:
"t row verCenter bothSide"
},{
default
:
o
((()
=>
[
n
(
x
,
null
,{
default
:
o
((()
=>
[
_
(
"订单编号 "
+
C
(
t
.
order_sn
),
1
)])),
_
:
2
},
1024
),
1
==
t
.
status
||
2
==
t
.
status
||
3
==
t
.
status
?(
u
(),
i
(
O
,{
key
:
0
,
class
:
"tag"
},{
default
:
o
((()
=>
[
_
(
C
(
t
.
status_val
),
1
)])),
_
:
2
},
1024
)):
r
(
""
,
!
0
),
4
==
t
.
status
?(
u
(),
i
(
O
,{
key
:
1
,
class
:
"tag tag-blue"
},{
default
:
o
((()
=>
[
_
(
C
(
t
.
status_val
),
1
)])),
_
:
2
},
1024
)):
r
(
""
,
!
0
),
7
==
t
.
status
||
8
==
t
.
status
?(
u
(),
i
(
O
,{
key
:
2
,
class
:
"tag tag-yellow"
},{
default
:
o
((()
=>
[
_
(
C
(
t
.
status_val
),
1
)])),
_
:
2
},
1024
)):
r
(
""
,
!
0
),
-
1
==
t
.
status
||
10
==
t
.
status
?(
u
(),
i
(
O
,{
key
:
3
,
class
:
"tag tag-ccc"
},{
default
:
o
((()
=>
[
_
(
C
(
t
.
status_val
),
1
)])),
_
:
2
},
1024
)):
r
(
""
,
!
0
)])),
_
:
2
},
1024
),(
u
(
!
0
),
h
(
p
,
null
,
f
(
t
.
goods_list
,((
t
,
s
)
=>
(
u
(),
i
(
O
,{
class
:
"c row"
,
key
:
s
},{
default
:
o
((()
=>
[
n
(
E
,{
src
:
t
.
goods_images
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
},
null
,
8
,[
"src"
]),
n
(
O
,{
class
:
"r"
},{
default
:
o
((()
=>
[
n
(
O
,{
class
:
"tr row bothSide"
},{
default
:
o
((()
=>
[
n
(
O
,{
class
:
"elep"
},{
default
:
o
((()
=>
[
_
(
C
(
t
.
sku_name
),
1
)])),
_
:
2
},
1024
),
n
(
x
,
null
,{
default
:
o
((()
=>
[
_
(
"x"
+
C
(
t
.
goods_number
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
n
(
O
,{
class
:
"cr"
},{
default
:
o
((()
=>
[
_
(
"货期:"
+
C
(
t
.
delivery_time
),
1
)])),
_
:
2
},
1024
),
n
(
O
,{
class
:
"br"
},{
default
:
o
((()
=>
[
n
(
O
,
null
,{
default
:
o
((()
=>
[
_
(
C
(
t
.
price_has_tax_format
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)))),
128
)),
n
(
O
,{
class
:
"hsprice"
},{
default
:
o
((()
=>
[
n
(
x
,
null
,{
default
:
o
((()
=>
[
_
(
"(含税总额)"
)])),
_
:
1
}),
_
(
C
(
t
.
order_amount_format
),
1
)])),
_
:
2
},
1024
),
-
1
!=
t
.
status
&&
10
!=
t
.
status
&&
4
!=
t
.
status
?(
u
(),
i
(
O
,{
key
:
0
,
class
:
"handle row"
},{
default
:
o
((()
=>
[
1
==
t
.
status
||
2
==
t
.
status
||
3
==
t
.
status
?(
u
(),
i
(
O
,{
key
:
0
,
class
:
"cancel"
,
onClick
:
b
((
s
=>
w
.
cancelOrder
(
t
.
order_id
)),[
"stop"
,
"prevent"
])},{
default
:
o
((()
=>
[
_
(
"取消订单"
)])),
_
:
2
},
1032
,[
"onClick"
])):
r
(
""
,
!
0
),
2
==
t
.
status
||
3
==
t
.
status
?(
u
(),
i
(
O
,{
key
:
1
,
class
:
"pay"
,
onClick
:
b
((
s
=>
w
.
payOrder
(
t
.
order_id
)),[
"stop"
,
"prevent"
])},{
default
:
o
((()
=>
[
_
(
"确认付款"
)])),
_
:
2
},
1032
,[
"onClick"
])):
r
(
""
,
!
0
),
7
==
t
.
status
||
8
==
t
.
status
?(
u
(),
i
(
O
,{
key
:
2
,
class
:
"cancel"
,
onClick
:
b
((
s
=>
w
.
again
(
t
)),[
"stop"
,
"prevent"
])},{
default
:
o
((()
=>
[
_
(
"再来一单"
)])),
_
:
2
},
1032
,[
"onClick"
])):
r
(
""
,
!
0
),
7
==
t
.
status
||
8
==
t
.
status
?(
u
(),
i
(
O
,{
key
:
3
,
class
:
"cancel"
},{
default
:
o
((()
=>
[
_
(
"查看物流"
)])),
_
:
1
})):
r
(
""
,
!
0
),
7
==
t
.
status
||
8
==
t
.
status
?(
u
(),
i
(
O
,{
key
:
4
,
class
:
"pay"
,
onClick
:
b
((
s
=>
w
.
sure
(
t
.
order_id
)),[
"stop"
,
"prevent"
])},{
default
:
o
((()
=>
[
_
(
"确认收货"
)])),
_
:
2
},
1032
,[
"onClick"
])):
r
(
""
,
!
0
)])),
_
:
2
},
1024
)):
r
(
""
,
!
0
)])),
_
:
2
},
1032
,[
"url"
])))),
128
))])),
_
:
1
})):
r
(
""
,
!
0
),
y
.
list
.
length
>
0
&&
y
.
isLoadEnd
?(
u
(),
i
(
O
,{
key
:
1
,
class
:
"pagebot"
},{
default
:
o
((()
=>
[
_
(
"—— 已经全部加载完 ——"
)])),
_
:
1
})):
r
(
""
,
!
0
),
y
.
isInit
&&
0
==
y
.
list
.
length
?(
u
(),
i
(
O
,{
key
:
2
,
class
:
"no-data"
},{
default
:
o
((()
=>
[
n
(
E
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/24/07a360187d83ccf80a9d835029c27446.png"
}),
n
(
O
,
null
,{
default
:
o
((()
=>
[
_
(
"暂无订单数据!"
)])),
_
:
1
})])),
_
:
1
})):
r
(
""
,
!
0
)])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-c63d819e"
]]);
export
{
x
as
default
};
unpackage/dist/build/web/assets/pages-user-orderPay.CmVw2Y7r.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
t
,
n
as
e
,
r
as
a
,
c
as
o
,
w
as
s
,
i
,
o
as
r
,
d
as
n
,
e
as
d
,
t
as
c
,
p
as
l
,
f
as
p
,
k
as
u
,
m
as
h
,
l
as
m
}
from
"./index-B52OZNum.js"
;
import
{
A
as
f
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
_
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
g
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
y
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
b
=
y
({
data
:()
=>
({
order_id
:
""
,
pageData
:
""
,
action
:
""
,
bizContent
:
""
,
pf
:
"h5"
}),
onLoad
:
function
(
t
){
this
.
order_id
=
t
.
order_id
||
""
,
this
.
getData
(),
console
.
log
(
this
.
pf
)},
onShow
(){},
methods
:{
goApplyPay
(){
this
.
request
(
f
+
"/api/pay/h5Pay"
,
"POST"
,{
order_id
:
this
.
order_id
,
pay_type
:
2
,
callback_url
:
window
.
location
.
origin
+
"/#/pages/user/orderList?status=4"
},
!
0
).
then
((
e
=>
{
if
(
0
==
e
.
code
){
this
.
bizContent
=
e
.
data
.
qRAuthCode
.
bizContent
,
this
.
action
=
e
.
data
.
qRAuthCode
.
action
;
const
t
=
document
.
createElement
(
"div"
);
t
.
innerHTML
=
`\n\t\t\t\t\t\t<form id="myForm" action="
${
this
.
action
}
" method="post" name="punchout_form" class="formapplyi">\n\t\t\t\t\t\t <input type="hidden" name="biz_content" value='
${
this
.
bizContent
}
'>\n\t\t\t\t\t\t <button type="submit">提交</button>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t\t`
,
document
.
body
.
appendChild
(
t
),
document
.
forms
[
0
].
submit
()}
else
t
({
title
:
e
.
msg
,
icon
:
"error"
})}))},
gopays
(){
"h5"
==
this
.
pf
?
this
.
request
(
f
+
"/api/pay/h5Pay"
,
"POST"
,{
order_id
:
this
.
order_id
,
pay_type
:
1
,
callback_url
:
window
.
location
.
origin
+
"/#/pages/user/orderList?status=4"
},
!
0
).
then
((
e
=>
{
0
==
e
.
code
?
window
.
location
.
href
=
e
.
data
.
qRAuthCode
:
t
({
title
:
e
.
msg
,
icon
:
"error"
})})):
this
.
request
(
f
+
"/api/pay/wxMiniProgramPay"
,
"GET"
,{
order_id
:
this
.
order_id
},
!
0
).
then
((
a
=>
{
0
==
a
.
code
?
uni
.
requestPayment
({
timeStamp
:
a
.
data
.
timeStamp
,
nonceStr
:
a
.
data
.
nonceStr
,
package
:
a
.
data
.
package
,
signType
:
a
.
data
.
signType
,
paySign
:
a
.
data
.
paySign
,
success
:
a
=>
{
t
({
title
:
"支付成功"
,
icon
:
"success"
}),
setTimeout
((()
=>
{
e
({
url
:
"/pages/user/orderList?status=4"
})}),
2
e3
)},
fail
:
e
=>
{
console
.
error
(
"支付失败"
,
e
),
t
({
title
:
"支付失败"
,
icon
:
"none"
})}}):
t
({
title
:
a
.
msg
,
icon
:
"error"
})}))},
getData
(){
this
.
request
(
f
+
"/api/order/detail"
,
"GET"
,{
order_id
:
this
.
order_id
},
!
0
).
then
((
e
=>
{
0
==
e
.
code
?
this
.
pageData
=
e
.
data
:
t
({
title
:
e
.
msg
,
icon
:
"error"
})}))}},
components
:{
barX
:
_
,
titleNav
:
g
}},[[
"render"
,
function
(
t
,
e
,
f
,
_
,
g
,
y
){
const
b
=
a
(
"barX"
),
w
=
a
(
"titleNav"
),
v
=
i
,
C
=
u
,
P
=
h
,
S
=
m
;
return
r
(),
o
(
v
,{
class
:
"orderPayPage"
},{
default
:
s
((()
=>
[
n
(
b
),
n
(
w
,{
title
:
"在线支付"
}),
n
(
v
,{
class
:
"cons"
},{
default
:
s
((()
=>
[
g
.
pageData
?(
r
(),
o
(
v
,{
key
:
0
,
class
:
"sec"
},{
default
:
s
((()
=>
[
n
(
v
,{
class
:
"tit"
},{
default
:
s
((()
=>
[
d
(
"待付款"
)])),
_
:
1
}),
n
(
v
,{
class
:
"price"
},{
default
:
s
((()
=>
[
d
(
c
(
g
.
pageData
.
order_info
.
order_amount_format
),
1
)])),
_
:
1
}),
n
(
v
,{
class
:
"pay-box"
},{
default
:
s
((()
=>
[
n
(
v
,{
class
:
"tx"
},{
default
:
s
((()
=>
[
d
(
"请选择支付方式"
)])),
_
:
1
}),
n
(
v
,{
class
:
"payc-choose"
},{
default
:
s
((()
=>
[
n
(
v
,{
class
:
"item row verCenter bothSide"
,
onClick
:
e
[
0
]
||
(
e
[
0
]
=
l
((
t
=>
y
.
gopays
()),[
"stop"
,
"prevent"
]))},{
default
:
s
((()
=>
[
n
(
v
,{
class
:
"row"
},{
default
:
s
((()
=>
[
n
(
C
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/26/253f5437f82270598296b216f4e49622.png"
}),
n
(
P
,
null
,{
default
:
s
((()
=>
[
d
(
"微信支付"
)])),
_
:
1
})])),
_
:
1
}),
n
(
P
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
}),
"h5"
==
g
.
pf
?(
r
(),
o
(
v
,{
key
:
0
,
class
:
"item row verCenter bothSide"
,
onClick
:
e
[
1
]
||
(
e
[
1
]
=
l
((
t
=>
y
.
goApplyPay
()),[
"stop"
,
"prevent"
]))},{
default
:
s
((()
=>
[
n
(
v
,{
class
:
"row"
},{
default
:
s
((()
=>
[
n
(
C
,{
src
:
"https://imgscdn.ichunt.com/show/origin/abb790j10hs0hs0000000svib0vcm"
}),
n
(
P
,
null
,{
default
:
s
((()
=>
[
d
(
"支付宝支付"
)])),
_
:
1
})])),
_
:
1
}),
n
(
P
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})):
p
(
""
,
!
0
),
n
(
S
,{
url
:
"/pages/user/orderPayLine?order_id="
+
g
.
order_id
},{
default
:
s
((()
=>
[
n
(
v
,{
class
:
"item row verCenter bothSide"
},{
default
:
s
((()
=>
[
n
(
v
,{
class
:
"row"
},{
default
:
s
((()
=>
[
n
(
C
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/26/bd1559d2520276133bfcf50f97adcd7c.png"
}),
n
(
P
,
null
,{
default
:
s
((()
=>
[
d
(
"公司转账"
)])),
_
:
1
})])),
_
:
1
}),
n
(
P
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})])),
_
:
1
},
8
,[
"url"
])])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):
p
(
""
,
!
0
)])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-85534fb2"
]]);
export
{
b
as
default
};
unpackage/dist/build/web/assets/pages-user-orderPayLine.CHDFQ8dU.js
0 → 100644
View file @
6eb3aa03
import
{
O
as
a
,
b
as
e
,
r
as
t
,
c
as
l
,
w
as
s
,
i
as
d
,
o
,
d
as
r
,
e
as
u
,
t
as
_
,
f
as
n
,
v
as
i
,
m
as
f
}
from
"./index-B52OZNum.js"
;
import
{
A
as
c
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
p
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
h
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
m
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
g
=
m
({
data
:()
=>
({
order_id
:
""
,
pageData
:
""
}),
onLoad
:
function
(
a
){
this
.
order_id
=
a
.
order_id
||
""
,
this
.
getData
()},
onShow
(){},
methods
:{
copy
(){
let
t
=
`收款人户名 深圳华云数智工业科技有限公司\n银行账号 交通银行深圳梅林支行\n开户银行 443066388013008419909\n付款识别码
${
this
.
pageData
.
order_info
.
order_sn
}
`
;
a
({
data
:
t
,
success
:
function
(){
e
({
title
:
"复制成功"
,
icon
:
"success"
})}})},
getData
(){
this
.
request
(
c
+
"/api/order/detail"
,
"GET"
,{
order_id
:
this
.
order_id
},
!
0
).
then
((
a
=>
{
0
==
a
.
code
?
this
.
pageData
=
a
.
data
:
e
({
title
:
a
.
msg
,
icon
:
"error"
})}))}},
components
:{
barX
:
p
,
titleNav
:
h
}},[[
"render"
,
function
(
a
,
e
,
c
,
p
,
h
,
m
){
const
g
=
t
(
"barX"
),
b
=
t
(
"titleNav"
),
D
=
d
,
v
=
f
;
return
o
(),
l
(
D
,{
class
:
"orderPayLinePage"
},{
default
:
s
((()
=>
[
r
(
g
),
r
(
b
,{
title
:
"公司转账"
}),
r
(
D
,{
class
:
i
([
"cons"
,{
act
:
h
.
pageData
}])},{
default
:
s
((()
=>
[
h
.
pageData
?(
o
(),
l
(
D
,{
key
:
0
,
class
:
"sec"
},{
default
:
s
((()
=>
[
r
(
D
,{
class
:
"tit"
},{
default
:
s
((()
=>
[
u
(
"待付款"
)])),
_
:
1
}),
r
(
D
,{
class
:
"price"
},{
default
:
s
((()
=>
[
u
(
_
(
h
.
pageData
.
order_info
.
order_amount_format
),
1
)])),
_
:
1
}),
r
(
D
,{
class
:
"infos"
},{
default
:
s
((()
=>
[
r
(
D
,{
class
:
"row bothSide verCenter"
},{
default
:
s
((()
=>
[
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"订单号:"
)])),
_
:
1
}),
r
(
D
,
null
,{
default
:
s
((()
=>
[
u
(
_
(
h
.
pageData
.
order_info
.
order_sn
),
1
)])),
_
:
1
})])),
_
:
1
}),
r
(
D
,{
class
:
"row bothSide verCenter"
},{
default
:
s
((()
=>
[
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"下单时间:"
)])),
_
:
1
}),
r
(
D
,
null
,{
default
:
s
((()
=>
[
u
(
_
(
h
.
pageData
.
order_info
.
create_time
),
1
)])),
_
:
1
})])),
_
:
1
}),
r
(
D
,{
class
:
"row bothSide verCenter"
},{
default
:
s
((()
=>
[
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"订单状态:"
)])),
_
:
1
}),
r
(
D
,{
class
:
"status"
},{
default
:
s
((()
=>
[
u
(
_
(
h
.
pageData
.
order_info
.
status_val
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
r
(
D
,{
class
:
"zhtti"
},{
default
:
s
((()
=>
[
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"线下对公付款信息"
)])),
_
:
1
}),
u
(
" (请按照以下信息进行线下转账汇款操作) "
)])),
_
:
1
}),
r
(
D
,{
class
:
"zhcons"
},{
default
:
s
((()
=>
[
r
(
D
,{
class
:
"zhtips"
},{
default
:
s
((()
=>
[
u
(
" 您的汇款识别码"
),
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
_
(
h
.
pageData
.
order_info
.
order_sn
),
1
)])),
_
:
1
}),
u
(
",汇款填写用途/备注/摘要栏,便于快速核销款项款项。 "
)])),
_
:
1
}),
r
(
D
,{
class
:
"zhc"
},{
default
:
s
((()
=>
[
r
(
D
,{
class
:
"row bothSide"
},{
default
:
s
((()
=>
[
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"收款人户名"
)])),
_
:
1
}),
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"深圳华云数智工业科技有限公司"
)])),
_
:
1
})])),
_
:
1
}),
r
(
D
,{
class
:
"row bothSide"
},{
default
:
s
((()
=>
[
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"银行账号"
)])),
_
:
1
}),
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"交通银行深圳梅林支行"
)])),
_
:
1
})])),
_
:
1
}),
r
(
D
,{
class
:
"row bothSide"
},{
default
:
s
((()
=>
[
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"开户银行"
)])),
_
:
1
}),
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"443066388013008419909"
)])),
_
:
1
})])),
_
:
1
}),
r
(
D
,{
class
:
"row bothSide"
},{
default
:
s
((()
=>
[
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"银联号(非必填)"
)])),
_
:
1
}),
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"301584000395"
)])),
_
:
1
})])),
_
:
1
}),
r
(
D
,{
class
:
"row bothSide"
},{
default
:
s
((()
=>
[
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
"用途/备注/摘要栏"
)])),
_
:
1
}),
r
(
v
,
null
,{
default
:
s
((()
=>
[
u
(
_
(
h
.
pageData
.
order_info
.
order_remark
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
r
(
D
,{
class
:
"copy"
,
onClick
:
m
.
copy
},{
default
:
s
((()
=>
[
u
(
"一键复制"
)])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
})])),
_
:
1
})):
n
(
""
,
!
0
)])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
})}],[
"__scopeId"
,
"data-v-691508ec"
]]);
export
{
g
as
default
};
unpackage/dist/build/web/assets/pages-user-qDlist.Bj-UKFWQ.js
0 → 100644
View file @
6eb3aa03
import
{
b
as
e
,
y
as
t
,
r
as
s
,
c
as
a
,
w
as
i
,
i
as
c
,
o
as
l
,
d
as
o
,
e
as
n
,
f
as
d
,
h
as
r
,
j
as
h
,
F
as
f
,
v
as
u
,
p
as
_
,
m
as
k
,
k
as
g
,
t
as
p
,
l
as
m
}
from
"./index-B52OZNum.js"
;
import
{
A
as
b
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
C
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
x
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
L
=
x
({
data
:()
=>
({
dataInited
:
!
1
,
allcheck
:
!
1
,
isEdit
:
!
1
,
carList
:[]}),
onLoad
:
function
(){
this
.
getData
()},
methods
:{
getData
(
e
){
this
.
request
(
b
+
"/api/xcx/getGoodsList"
,
"get"
,{
page
:
1
,
limit
:
100
},
!
1
).
then
((
e
=>
{
if
(
this
.
dataInited
=!
0
,
this
.
allcheck
=!
1
,
this
.
carList
=
[],
0
==
e
.
code
){
let
t
=
e
.
data
.
list
||
[];
t
.
forEach
((
e
=>
{
e
.
checked
=!
1
})),
this
.
carList
=
t
}}))},
checkboxchange
(
e
){
if
(
"460053411"
==
e
)
this
.
allcheck
=!
this
.
allcheck
,
this
.
carList
.
forEach
((
e
=>
{
e
.
checked
=
this
.
allcheck
}));
else
{
var
t
=
1
;
this
.
carList
.
forEach
((
s
=>
{
s
.
list_id
==
e
&&
(
s
.
checked
=!
s
.
checked
),
s
.
checked
||
(
t
=
0
)})),
this
.
allcheck
=!!
t
}
return
!
1
},
dels
(){
let
s
=
this
.
carList
.
filter
((
e
=>
e
.
checked
)).
map
((
e
=>
e
.
list_id
)).
join
(
","
);
s
?
t
({
title
:
"删除"
,
content
:
"是否删除当前选中清单?"
,
success
:
t
=>
{
t
.
confirm
&&
this
.
request
(
b
+
"/api/xcx/delGoodsList"
,
"POST"
,{
list_ids
:
s
},
!
0
).
then
((
t
=>
{
if
(
0
==
t
.
code
){
e
({
title
:
"删除成功"
,
duration
:
2
e3
,
icon
:
"none"
});
let
t
=
this
.
carList
.
filter
((
e
=>-
1
==
s
.
indexOf
(
e
.
list_id
)));
this
.
carList
=
JSON
.
parse
(
JSON
.
stringify
(
t
))}
else
e
({
title
:
t
.
msg
,
duration
:
2
e3
,
icon
:
"none"
})}))}}):
e
({
title
:
"请选择至少一个清单数量"
,
duration
:
2
e3
,
icon
:
"none"
})}},
components
:{
barX
:
C
}},[[
"render"
,
function
(
e
,
t
,
b
,
C
,
x
,
L
){
const
w
=
s
(
"barX"
),
E
=
k
,
v
=
c
,
y
=
g
,
S
=
m
;
return
l
(),
a
(
v
,{
class
:
"qDlistPage"
},{
default
:
i
((()
=>
[
o
(
w
),
o
(
v
,{
class
:
"car-head row bothSide"
},{
default
:
i
((()
=>
[
o
(
v
,{
class
:
"l row verCenter"
},{
default
:
i
((()
=>
[
o
(
E
,{
class
:
"icon iconfont icon-arrowleft"
,
onClick
:
e
.
$goBack
},
null
,
8
,[
"onClick"
]),
o
(
v
,
null
,{
default
:
i
((()
=>
[
n
(
"我的清单"
)])),
_
:
1
})])),
_
:
1
}),
x
.
isEdit
?
d
(
""
,
!
0
):(
l
(),
a
(
v
,{
key
:
0
,
class
:
"r row verCenter"
},{
default
:
i
((()
=>
[
o
(
E
,{
onClick
:
t
[
0
]
||
(
t
[
0
]
=
e
=>
x
.
isEdit
=!
x
.
isEdit
)},{
default
:
i
((()
=>
[
n
(
"编辑"
)])),
_
:
1
})])),
_
:
1
})),
x
.
isEdit
?(
l
(),
a
(
v
,{
key
:
1
,
class
:
"r row verCenter"
},{
default
:
i
((()
=>
[
o
(
E
,{
onClick
:
t
[
1
]
||
(
t
[
1
]
=
e
=>
x
.
isEdit
=!
x
.
isEdit
)},{
default
:
i
((()
=>
[
n
(
"完成"
)])),
_
:
1
})])),
_
:
1
})):
d
(
""
,
!
0
)])),
_
:
1
}),
o
(
v
,{
class
:
"cons"
},{
default
:
i
((()
=>
[
x
.
dataInited
&&
0
==
x
.
carList
.
length
?(
l
(),
a
(
v
,{
key
:
0
,
class
:
"no-data"
},{
default
:
i
((()
=>
[
o
(
y
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/19/7fdab385a25db187f8e57370875f7546.png"
}),
o
(
E
,
null
,{
default
:
i
((()
=>
[
n
(
"暂无清单信息!"
)])),
_
:
1
})])),
_
:
1
})):
d
(
""
,
!
0
),
x
.
carList
.
length
>
0
?(
l
(),
a
(
v
,{
key
:
1
,
class
:
"list-box"
},{
default
:
i
((()
=>
[(
l
(
!
0
),
r
(
f
,
null
,
h
(
x
.
carList
,((
e
,
t
)
=>
(
l
(),
a
(
v
,{
class
:
u
([
"item-group"
,{
noedit
:
!
x
.
isEdit
}]),
key
:
t
},{
default
:
i
((()
=>
[
o
(
v
,{
class
:
"l row verCenter rowCenter"
,
onClick
:
_
((
t
=>
L
.
checkboxchange
(
e
.
list_id
)),[
"stop"
])},{
default
:
i
((()
=>
[
o
(
E
,{
class
:
u
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
e
.
checked
}])},
null
,
8
,[
"class"
])])),
_
:
2
},
1032
,[
"onClick"
]),
o
(
S
,{
url
:
"/pages/user/qdDetail?list_id="
+
e
.
list_id
},{
default
:
i
((()
=>
[
o
(
v
,{
class
:
"r row bothSide"
},{
default
:
i
((()
=>
[
o
(
v
,{
class
:
"rcon"
},{
default
:
i
((()
=>
[
o
(
v
,{
class
:
"elep names"
},{
default
:
i
((()
=>
[
n
(
p
(
e
.
list_name
),
1
)])),
_
:
2
},
1024
),
o
(
v
,{
class
:
"time"
},{
default
:
i
((()
=>
[
n
(
p
(
e
.
create_time
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
o
(
v
,{
class
:
"goodsg row bothSide"
},{
default
:
i
((()
=>
[
o
(
E
,
null
,{
default
:
i
((()
=>
[
n
(
p
(
e
.
list_goods_count
)
+
"个商品"
,
1
)])),
_
:
2
},
1024
),
o
(
E
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"url"
])])),
_
:
2
},
1032
,[
"class"
])))),
128
))])),
_
:
1
})):
d
(
""
,
!
0
)])),
_
:
1
}),
x
.
isEdit
?(
l
(),
a
(
v
,{
key
:
0
,
class
:
"car-foot row verCenter bothSide"
},{
default
:
i
((()
=>
[
o
(
v
,{
class
:
"checked-box row verCenter"
,
onClick
:
t
[
2
]
||
(
t
[
2
]
=
_
((
e
=>
L
.
checkboxchange
(
460053411
)),[
"stop"
]))},{
default
:
i
((()
=>
[
o
(
E
,{
class
:
u
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
x
.
allcheck
}])},
null
,
8
,[
"class"
]),
n
(
"全选"
)])),
_
:
1
}),
o
(
v
,{
class
:
"del-btn"
,
onClick
:
t
[
3
]
||
(
t
[
3
]
=
e
=>
L
.
dels
())},{
default
:
i
((()
=>
[
n
(
"删除"
)])),
_
:
1
})])),
_
:
1
})):
d
(
""
,
!
0
)])),
_
:
1
})}],[
"__scopeId"
,
"data-v-89262522"
]]);
export
{
L
as
default
};
unpackage/dist/build/web/assets/pages-user-qdDetail.B8dGMZ1_.js
0 → 100644
View file @
6eb3aa03
import
{
g
as
t
,
b
as
e
,
y
as
s
,
A
as
i
,
n
as
a
,
r
as
o
,
x
as
c
,
c
as
l
,
w
as
n
,
i
as
d
,
o
as
r
,
d
as
u
,
e
as
h
,
t
as
_
,
f
as
p
,
h
as
m
,
j
as
f
,
F
as
k
,
p
as
g
,
v
as
b
,
m
as
C
,
k
as
w
,
I
as
x
}
from
"./index-B52OZNum.js"
;
import
{
r
as
L
,
_
as
N
}
from
"./uni-popup.B33pbe0T.js"
;
import
{
A
as
S
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
v
}
from
"./barx._hPkFqJr.js"
;
import
{
_
as
y
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
O
=
y
({
data
:()
=>
({
checkcount
:
0
,
timeout
:
""
,
dataInited
:
!
1
,
allcheck
:
!
0
,
isEdit
:
!
1
,
carList
:[],
totalprice
:
0
,
list_id
:
""
,
share_uuid
:
""
,
list_name
:
""
,
isCompany
:
!
(
!
t
(
"user_info"
)
||!
JSON
.
parse
(
t
(
"user_info"
)).
company_name
),
miniShareOptions
:{
title
:
"给您分享我的清单"
,
path
:
"/pages/user/qdDetail"
,
imageUrl
:
"https://img.ichunt.com/images/ichunt/202503/19/cdaebc710d636541b8d9916210b46a49.png"
,
desc
:
""
}}),
onLoad
:
function
(
t
){
this
.
list_id
=
t
.
list_id
,
this
.
share_uuid
=
t
.
share_uuid
,
this
.
getData
()},
onShareAppMessage
(){
return
{...
this
.
miniShareOptions
,
success
:()
=>
{
e
({
title
:
"分享成功"
,
icon
:
"success"
})},
fail
:()
=>
{
e
({
title
:
"分享失败"
,
icon
:
"none"
})}}},
onShareTimeline
(){
return
{...
this
.
miniShareOptions
,
success
:()
=>
{
e
({
title
:
"分享成功"
,
icon
:
"success"
})},
fail
:()
=>
{
e
({
title
:
"分享失败"
,
icon
:
"none"
})}}},
methods
:{
getData
(
t
){
t
||
(
this
.
carList
=
[]),
this
.
request
(
S
+
"/api/xcx/goodsListDetail"
,
"GET"
,{
list_id
:
this
.
list_id
,
share_uuid
:
this
.
share_uuid
||
""
},
!
t
).
then
((
t
=>
{
if
(
this
.
dataInited
=!
0
,
this
.
allcheck
=!
0
,
this
.
carList
=
[],
0
==
t
.
code
){
this
.
list_name
=
t
.
data
.
info
.
list_name
,
this
.
list_id
=
t
.
data
.
info
.
list_id
,
this
.
share_uuid
=
t
.
data
.
info
.
share_uuid
,
this
.
miniShareOptions
.
path
=
"/pages/user/qdDetail?list_id="
+
this
.
list_id
+
"&share_uuid="
+
this
.
share_uuid
,(
t
.
data
.
list
||
[]).
forEach
((
t
=>
{
t
.
checked
=!
0
,
t
.
buyPrice
=
t
.
goods_price
,
t
.
ladder_price
&&
t
.
ladder_price
.
length
>
0
&&
(
t
.
buyPrice
=
this
.
isCompany
?
t
.
ladder_price
[
1
].
price_cn
||
0
:
t
.
ladder_price
[
0
].
price_cn
||
0
),
t
.
goods_price
=
t
.
buyPrice
,
this
.
carList
.
push
(
t
)})),
this
.
listUi
()}}))},
listUi
(){
this
.
totalprice
=
0
,
this
.
checkcount
=
0
,
this
.
carList
.
forEach
((
t
=>
{
t
.
checked
&&
(
this
.
checkcount
++
,
this
.
totalprice
+=
Number
(
t
.
goods_price
*
t
.
goods_count
))})),
this
.
totalprice
=
this
.
totalprice
.
toFixed
(
2
)},
changeNum
(
t
,
e
){
clearTimeout
(
this
.
timeout
),
this
.
timeout
=
setTimeout
((()
=>
{
let
e
=
this
.
carList
.
filter
((
e
=>
e
.
sku_id
==
t
))[
0
],
s
=
Number
(
e
.
multiple
||
e
.
mpl
),
i
=
Number
(
e
.
stock
),
a
=
Number
(
e
.
moq
),
o
=
Number
(
e
.
goods_count
);
o
=
Math
.
ceil
(
o
/
s
)
*
s
,
e
.
goods_count
=
o
,
o
<
a
&&
(
e
.
goods_count
=
a
),
o
>
i
&&
(
e
.
goods_count
=
Math
.
floor
(
i
/
s
)
*
s
),
this
.
request
(
S
+
"/api/xcx/updateGoodsNum"
,
"POST"
,{
sku_id
:
e
.
sku_id
,
goods_num
:
e
.
goods_count
,
list_id
:
this
.
list_id
},
!
1
).
then
((
t
=>
{
this
.
listUi
()}))}),
800
)},
addjNum
(
t
,
s
){
let
i
=
this
.
carList
.
filter
((
e
=>
e
.
sku_id
==
t
))[
0
],
a
=
Number
(
i
.
multiple
||
i
.
mpl
),
o
=
Number
(
i
.
stock
),
c
=
Number
(
i
.
moq
),
l
=
Number
(
i
.
goods_count
);
if
(
1
==
s
){
var
n
=
l
-
a
;
n
<
c
?(
i
.
goods_count
=
c
,
e
({
title
:
"数量不能小于起订量"
,
duration
:
2
e3
,
icon
:
"none"
})):
i
.
goods_count
=
n
}
else
{
var
d
=
l
+
a
;
d
>
o
?(
e
({
title
:
"数量不能大于库存"
,
duration
:
2
e3
,
icon
:
"none"
}),
i
.
goods_count
=
Math
.
floor
(
o
/
a
)
*
a
):
i
.
goods_count
=
d
}
this
.
request
(
S
+
"/api/xcx/updateGoodsNum"
,
"POST"
,{
sku_id
:
i
.
sku_id
,
goods_num
:
i
.
goods_count
,
list_id
:
this
.
list_id
},
!
1
).
then
((
t
=>
{
this
.
listUi
()}))},
checkboxchange
(
t
){
if
(
"460053411"
==
t
)
this
.
allcheck
=!
this
.
allcheck
,
this
.
carList
.
forEach
((
t
=>
{
t
.
checked
=
this
.
allcheck
}));
else
{
var
e
=
1
;
this
.
carList
.
forEach
((
s
=>
{
s
.
sku_id
==
t
&&
(
s
.
checked
=!
s
.
checked
),
s
.
checked
||
(
e
=
0
)})),
this
.
allcheck
=!!
e
}
return
this
.
listUi
(),
!
1
},
dels
(){
let
t
=
this
.
carList
.
filter
((
t
=>
t
.
checked
)).
map
((
t
=>
t
.
sku_id
)).
join
(
","
);
t
?
s
({
title
:
"删除"
,
content
:
"是否删除当前选中商品?"
,
success
:
s
=>
{
s
.
confirm
&&
this
.
request
(
S
+
"/api/xcx/delGoods"
,
"POST"
,{
list_id
:
this
.
list_id
,
sku_ids
:
t
},
!
0
).
then
((
s
=>
{
if
(
0
==
s
.
code
){
e
({
title
:
"删除成功"
,
duration
:
2
e3
,
icon
:
"none"
});
let
s
=
this
.
carList
.
filter
((
e
=>-
1
==
t
.
indexOf
(
e
.
sku_id
)));
this
.
carList
=
JSON
.
parse
(
JSON
.
stringify
(
s
)),
this
.
listUi
()}
else
e
({
title
:
s
.
msg
,
duration
:
2
e3
,
icon
:
"none"
})}))}}):
e
({
title
:
"请选择至少一个商品"
,
duration
:
2
e3
,
icon
:
"none"
})},
addCar
(
t
){
let
s
=
[],
o
=
[];
this
.
carList
.
forEach
((
e
=>
{
if
(
e
.
checked
){
let
i
=
{
goods_num
:
e
.
goods_count
,
sku_id
:
e
.
sku_id
,
price
:
e
.
goods_price
};
1
==
t
&&
(
i
.
is_cover_goods_num
=
1
),
s
.
push
(
i
),
o
.
push
(
e
.
sku_id
)}})),
0
!=
o
.
length
?
this
.
request
(
S
+
"/api/cart/batchAddCart"
,
"POST"
,{
sku_json
:
JSON
.
stringify
(
s
)},
!
0
).
then
((
s
=>
{
0
==
s
.
code
?
1
==
t
?(
i
(
"car_ids"
,
o
.
join
(
","
)),
i
(
"confirmOrderBackUrl"
,
`/pages/user/qdDetail?list_id=
${
this
.
list_id
}
`
),
a
({
url
:
"/pages/car/confirmOrder"
})):
e
({
title
:
"加入购物车成功"
,
icon
:
"success"
}):
e
({
title
:
s
.
msg
,
icon
:
"error"
})})):
e
({
title
:
"请勾选商品"
,
icon
:
"none"
})},
updateList
(){
this
.
list_name
||
e
({
title
:
"请输入清单名字"
,
duration
:
2
e3
,
icon
:
"none"
}),
this
.
request
(
S
+
"/api/xcx/updateGoodsList"
,
"post"
,{
list_name
:
this
.
list_name
,
list_id
:
this
.
list_id
},
!
0
).
then
((
t
=>
{
0
==
t
.
code
?(
e
({
title
:
"修改成功"
,
icon
:
"success"
}),
this
.
closeNewList
()):
e
({
title
:
t
.
msg
,
icon
:
"nonde"
})}))},
openNewList
(){
this
.
$refs
.
popupnewlist
.
open
(
"bottom"
)},
closeNewList
(){
this
.
$refs
.
popupnewlist
.
close
(
"bottom"
)}},
components
:{
barX
:
v
}},[[
"render"
,
function
(
t
,
e
,
s
,
i
,
a
,
S
){
const
v
=
o
(
"barX"
),
y
=
C
,
O
=
d
,
j
=
w
,
q
=
x
,
U
=
L
(
c
(
"uni-popup"
),
N
);
return
r
(),
l
(
O
,{
class
:
"qdDetailPage"
},{
default
:
n
((()
=>
[
u
(
v
),
u
(
O
,{
class
:
"car-head row bothSide"
},{
default
:
n
((()
=>
[
u
(
O
,{
class
:
"l row verCenter"
},{
default
:
n
((()
=>
[
u
(
y
,{
class
:
"icon iconfont icon-arrowleft"
,
onClick
:
t
.
$goBack
},
null
,
8
,[
"onClick"
]),
u
(
O
,
null
,{
default
:
n
((()
=>
[
h
(
"清单详情"
)])),
_
:
1
})])),
_
:
1
}),
u
(
O
,{
class
:
"r row verCenter"
},{
default
:
n
((()
=>
[
u
(
y
,{
onClick
:
e
[
0
]
||
(
e
[
0
]
=
t
=>
S
.
dels
())},{
default
:
n
((()
=>
[
h
(
"删除"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
u
(
O
,{
class
:
"name-box row verCenter"
},{
default
:
n
((()
=>
[
u
(
y
,{
onClick
:
S
.
openNewList
},{
default
:
n
((()
=>
[
h
(
_
(
a
.
list_name
),
1
),
u
(
y
,{
class
:
"icon iconfont icon-edit"
})])),
_
:
1
},
8
,[
"onClick"
])])),
_
:
1
}),
u
(
O
,{
class
:
"cons"
},{
default
:
n
((()
=>
[
a
.
dataInited
&&
0
==
a
.
carList
.
length
?(
r
(),
l
(
O
,{
key
:
0
,
class
:
"no-data"
},{
default
:
n
((()
=>
[
u
(
j
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/19/7fdab385a25db187f8e57370875f7546.png"
}),
u
(
y
,
null
,{
default
:
n
((()
=>
[
h
(
"暂无商品信息!"
)])),
_
:
1
})])),
_
:
1
})):
p
(
""
,
!
0
),
a
.
carList
.
length
>
0
?(
r
(),
l
(
O
,{
key
:
1
,
class
:
"list-box"
},{
default
:
n
((()
=>
[(
r
(
!
0
),
m
(
k
,
null
,
f
(
a
.
carList
,((
t
,
e
)
=>
(
r
(),
l
(
O
,{
class
:
"item-group row verCenter bothSide"
,
key
:
e
},{
default
:
n
((()
=>
[
u
(
O
,{
class
:
"l row verCenter"
},{
default
:
n
((()
=>
[
u
(
y
,{
class
:
b
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
t
.
checked
}]),
onClick
:
g
((
e
=>
S
.
checkboxchange
(
t
.
sku_id
)),[
"stop"
])},
null
,
8
,[
"class"
,
"onClick"
]),
u
(
j
,{
src
:
t
.
goods_images
||
"https://www.iedge.net/assets/images/common/defaultnew.png"
},
null
,
8
,[
"src"
])])),
_
:
2
},
1024
),
u
(
O
,{
class
:
"r"
},{
default
:
n
((()
=>
[
u
(
O
,{
class
:
"elep skun"
},{
default
:
n
((()
=>
[
h
(
_
(
t
.
sku_name
),
1
)])),
_
:
2
},
1024
),
u
(
O
,{
class
:
"txt"
},{
default
:
n
((()
=>
[
h
(
"型号:"
+
_
(
t
.
goods_name
),
1
)])),
_
:
2
},
1024
),
u
(
O
,{
class
:
"txt"
},{
default
:
n
((()
=>
[
h
(
"品牌:"
+
_
(
t
.
brand_name
),
1
)])),
_
:
2
},
1024
),
u
(
O
,{
class
:
"txt"
},{
default
:
n
((()
=>
[
h
(
"货期:"
+
_
(
t
.
cn_delivery_time
),
1
)])),
_
:
2
},
1024
),
u
(
O
,{
class
:
"row verCenter bothSide"
},{
default
:
n
((()
=>
[
u
(
O
,{
class
:
"price"
},{
default
:
n
((()
=>
[
h
(
"¥"
+
_
(
t
.
goods_price
),
1
)])),
_
:
2
},
1024
),
u
(
O
,{
class
:
"hbha row verCenter bothSide"
},{
default
:
n
((()
=>
[
u
(
y
,{
class
:
"icon iconfont icon-jian"
,
onClick
:
e
=>
S
.
addjNum
(
t
.
sku_id
,
1
)},
null
,
8
,[
"onClick"
]),
u
(
q
,{
type
:
"number"
,
modelValue
:
t
.
goods_count
,
"onUpdate:modelValue"
:
e
=>
t
.
goods_count
=
e
,
onInput
:
e
=>
S
.
changeNum
(
t
.
sku_id
)},
null
,
8
,[
"modelValue"
,
"onUpdate:modelValue"
,
"onInput"
]),
u
(
y
,{
class
:
"icon iconfont icon-jia"
,
onClick
:
e
=>
S
.
addjNum
(
t
.
sku_id
,
2
)},
null
,
8
,[
"onClick"
])])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)))),
128
))])),
_
:
1
})):
p
(
""
,
!
0
)])),
_
:
1
}),
u
(
O
,{
class
:
"car-foot car-foot1 row bothSide"
},{
default
:
n
((()
=>
[
u
(
O
,{
class
:
"t row bothSide verCenter"
},{
default
:
n
((()
=>
[
u
(
O
,{
class
:
"checked-box row verCenter"
,
onClick
:
e
[
1
]
||
(
e
[
1
]
=
g
((
t
=>
S
.
checkboxchange
(
460053411
)),[
"stop"
]))},{
default
:
n
((()
=>
[
u
(
y
,{
class
:
b
([
"icon iconfont icon-checked1"
,{
"icon-checked"
:
a
.
allcheck
}])},
null
,
8
,[
"class"
]),
h
(
"全选"
)])),
_
:
1
}),
u
(
O
,{
class
:
"pbx"
},{
default
:
n
((()
=>
[
h
(
"已选"
+
_
(
a
.
checkcount
)
+
"件,含税总额:"
,
1
),
u
(
O
,{
class
:
"price"
},{
default
:
n
((()
=>
[
h
(
"¥ "
+
_
(
a
.
totalprice
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
u
(
O
,{
class
:
"b row bothSide verCenter"
},{
default
:
n
((()
=>
[
u
(
O
,{
class
:
"row verCenter bothSide"
},{
default
:
n
((()
=>
[
u
(
O
,{
class
:
"add-car"
,
onClick
:
S
.
addCar
},{
default
:
n
((()
=>
[
h
(
"加入购物车"
)])),
_
:
1
},
8
,[
"onClick"
]),
u
(
O
,{
class
:
"add-confirm"
,
onClick
:
e
[
2
]
||
(
e
[
2
]
=
t
=>
S
.
addCar
(
1
))},{
default
:
n
((()
=>
[
h
(
"去订购"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
u
(
U
,{
ref
:
"popupnewlist"
,
type
:
"bottom"
,
"safe-area"
:
!
1
},{
default
:
n
((()
=>
[
u
(
O
,{
class
:
"pop-new-list"
},{
default
:
n
((()
=>
[
u
(
O
,{
class
:
"trt"
},{
default
:
n
((()
=>
[
u
(
y
,{
class
:
"icon iconfont icon-caca"
,
onClick
:
S
.
closeNewList
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
u
(
O
,{
class
:
"ttit elep"
},{
default
:
n
((()
=>
[
h
(
"修改清单"
)])),
_
:
1
}),
u
(
O
,{
class
:
"cons"
},{
default
:
n
((()
=>
[
u
(
q
,{
type
:
"text"
,
class
:
"inputv"
,
modelValue
:
a
.
list_name
,
"onUpdate:modelValue"
:
e
[
3
]
||
(
e
[
3
]
=
t
=>
a
.
list_name
=
t
),
placeholder
:
"请输入清单名称,若未输入则显示商品分类;"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
}),
u
(
O
,{
class
:
"add-list"
,
onClick
:
e
[
4
]
||
(
e
[
4
]
=
t
=>
S
.
updateList
())},{
default
:
n
((()
=>
[
h
(
"确认"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
},
512
)])),
_
:
1
})}],[
"__scopeId"
,
"data-v-e6ccaf85"
]]);
export
{
O
as
default
};
unpackage/dist/build/web/assets/pages-user-setting.Df25K3y9.js
0 → 100644
View file @
6eb3aa03
import
{
g
as
s
,
A
as
a
,
b
as
e
,
E
as
t
,
r
as
o
,
c
as
l
,
w
as
r
,
i
as
u
,
o
as
n
,
d
as
i
,
e
as
c
,
t
as
f
,
f
as
d
,
m
as
_
,
l
as
p
}
from
"./index-B52OZNum.js"
;
import
{
A
as
b
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
as
m
}
from
"./barx._hPkFqJr.js"
;
import
{
t
as
g
}
from
"./title_nav.Bmrn86K5.js"
;
import
{
_
as
h
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
x
=
h
({
data
:()
=>
({
userInfo
:
JSON
.
parse
(
s
(
"user_info"
))
||
""
}),
onLoad
:
function
(){},
onShow
(){},
methods
:{
submitI
(){
this
.
request
(
b
+
"/api/user/logout"
,
"get"
,{},
!
0
).
then
((
s
=>
{
0
==
s
.
code
?(
a
(
"token"
,
""
),
a
(
"user_info"
,
""
),
e
({
title
:
"退出成功"
,
icon
:
"success"
}),
setTimeout
((()
=>
{
t
({
url
:
"/pages/index/index"
})}),
2
e3
)):
e
({
title
:
s
.
msg
,
icon
:
"success"
})}))}},
components
:{
barX
:
m
,
titleNav
:
g
}},[[
"render"
,
function
(
s
,
a
,
e
,
t
,
b
,
m
){
const
g
=
o
(
"barX"
),
h
=
o
(
"titleNav"
),
x
=
_
,
w
=
u
,
v
=
p
;
return
n
(),
l
(
w
,{
class
:
"settingPage"
},{
default
:
r
((()
=>
[
i
(
g
),
i
(
h
,{
title
:
"账号设置"
}),
i
(
w
,{
class
:
"cons"
},{
default
:
r
((()
=>
[
b
.
userInfo
?(
n
(),
l
(
w
,{
key
:
0
,
class
:
"input-box"
},{
default
:
r
((()
=>
[
i
(
v
,{
url
:
"/pages/auth/forget"
,
class
:
"wbox"
},{
default
:
r
((()
=>
[
i
(
w
,{
class
:
"input-group row verCenter bothSide"
},{
default
:
r
((()
=>
[
i
(
x
,{
class
:
"label"
},{
default
:
r
((()
=>
[
c
(
"密码"
)])),
_
:
1
}),
i
(
w
,{
class
:
"r"
},{
default
:
r
((()
=>
[
i
(
x
,{
class
:
"xh"
},{
default
:
r
((()
=>
[
c
(
"******"
)])),
_
:
1
}),
i
(
x
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
i
(
w
,{
class
:
"input-group row verCenter bothSide wbox"
},{
default
:
r
((()
=>
[
i
(
x
,{
class
:
"label"
},{
default
:
r
((()
=>
[
c
(
"手机号"
)])),
_
:
1
}),
i
(
w
,{
class
:
"r"
},{
default
:
r
((()
=>
[
i
(
x
,
null
,{
default
:
r
((()
=>
[
c
(
f
(
b
.
userInfo
.
phone
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
i
(
v
,{
url
:
"/pages/auth/rule?id=2"
,
class
:
"wbox"
},{
default
:
r
((()
=>
[
i
(
w
,{
class
:
"input-group row verCenter bothSide"
},{
default
:
r
((()
=>
[
i
(
x
,{
class
:
"label"
},{
default
:
r
((()
=>
[
c
(
"隐私政策"
)])),
_
:
1
}),
i
(
w
,{
class
:
"r"
},{
default
:
r
((()
=>
[
i
(
x
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):
d
(
""
,
!
0
)])),
_
:
1
}),
i
(
w
,{
class
:
"foot"
},{
default
:
r
((()
=>
[
i
(
w
,{
class
:
"btn"
,
onClick
:
a
[
0
]
||
(
a
[
0
]
=
s
=>
m
.
submitI
())},{
default
:
r
((()
=>
[
c
(
"退出登录"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-78482d5a"
]]);
export
{
x
as
default
};
unpackage/dist/build/web/assets/pages-user-userInfo.5aeoQqMw.js
0 → 100644
View file @
6eb3aa03
import
{
g
as
s
,
A
as
e
,
b
as
t
,
M
as
a
,
N
as
o
,
r
as
n
,
c
as
i
,
w
as
u
,
i
as
c
,
o
as
r
,
d
as
l
,
e
as
d
,
t
as
f
,
f
as
h
,
m
,
l
as
p
,
k
as
g
}
from
"./index-B52OZNum.js"
;
import
{
A
as
_
}
from
"./api.Cl4HE8_F.js"
;
import
{
b
}
from
"./barx._hPkFqJr.js"
;
import
{
b
as
C
}
from
"./bottom_nav.Epavr9vk.js"
;
import
{
_
as
y
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
w
=
y
({
data
:()
=>
({
isInit
:
!
1
,
couponCount
:
0
,
certification
:[],
userinfo
:
s
(
"user_info"
)?
JSON
.
parse
(
s
(
"user_info"
)):
""
,
companyId
:
""
,
orderCount
:{
1
:
0
,
2
:
0
,
3
:
0
,
4
:
0
,
7
:
0
,
8
:
0
,
10
:
0
,
"-1"
:
0
}}),
onLoad
:
function
(){
this
.
getData
()},
onShow
(){
this
.
getInfo
()},
methods
:{
getInfo
(){
this
.
request
(
_
+
"/api/user/info"
,
"GET"
,{},
!
this
.
isInit
).
then
((
s
=>
{
this
.
isInit
=!
0
,
0
==
s
.
code
?(
this
.
certification
=
s
.
data
.
certification
||
[],
this
.
userinfo
=
s
.
data
.
userinfo
,
e
(
"user_info"
,
JSON
.
stringify
(
this
.
userinfo
)),
this
.
certification
.
forEach
((
s
=>
{
s
.
com_name
==
this
.
userinfo
.
company_name
&&
(
this
.
companyId
=
s
.
id
)}))):
t
({
title
:
s
.
msg
,
icon
:
"none"
})}))},
chooseImageChange
(){
a
({
count
:
1
,
sizeType
:[
"original"
,
"compressed"
],
sourceType
:[
"album"
,
"camera"
],
success
:
s
=>
{
const
e
=
s
.
tempFilePaths
[
0
];
o
({
url
:
_
+
"/api/upload/uploadFile"
,
filePath
:
e
,
name
:
"file"
,
formData
:{},
success
:
s
=>
{
let
e
=
JSON
.
parse
(
s
.
data
);
0
==
e
.
code
?(
t
({
title
:
"上传成功"
,
icon
:
"success"
}),
this
.
request
(
_
+
"/api/user/editAvatar"
,
"POST"
,{
url
:
e
.
data
.
show_url
},
!
1
).
then
((
s
=>
{
0
==
s
.
code
&&
this
.
getInfo
()}))):
t
({
title
:
e
.
msg
,
icon
:
"success"
})}})}})},
getData
(){
s
(
"token"
)
&&
(
this
.
request
(
_
+
"/api/coupon/getList"
,
"GET"
,{
status
:
-
1
},
!
0
).
then
((
s
=>
{
0
==
s
.
code
&&
(
this
.
couponCount
=
s
.
data
.
count
[
-
1
]
||
0
)})),
this
.
request
(
_
+
"/api/order/count"
,
"GET"
,{},
!
0
).
then
((
s
=>
{
0
==
s
.
code
&&
(
this
.
orderCount
=
{...
s
.
data
})})))}},
components
:{
barX
:
b
,
bottomNavFixed
:
C
}},[[
"render"
,
function
(
s
,
e
,
t
,
a
,
o
,
_
){
const
b
=
n
(
"barX"
),
C
=
m
,
y
=
p
,
w
=
c
,
k
=
g
,
v
=
n
(
"bottomNavFixed"
);
return
r
(),
i
(
w
,{
class
:
"userInfoPage"
},{
default
:
u
((()
=>
[
l
(
b
),
o
.
userinfo
?(
r
(),
i
(
w
,{
key
:
0
,
class
:
"head"
},{
default
:
u
((()
=>
[
l
(
w
,{
class
:
"top row"
},{
default
:
u
((()
=>
[
l
(
y
,{
url
:
"/pages/user/msgList"
},{
default
:
u
((()
=>
[
l
(
C
,{
class
:
"icon iconfont icon-ldxi"
})])),
_
:
1
}),
l
(
y
,{
url
:
"/pages/user/setting"
},{
default
:
u
((()
=>
[
l
(
C
,{
class
:
"icon iconfont icon-set"
})])),
_
:
1
})])),
_
:
1
}),
l
(
w
,{
class
:
"cen row"
},{
default
:
u
((()
=>
[
l
(
w
,{
class
:
"imgh"
},{
default
:
u
((()
=>
[
l
(
k
,{
onClick
:
_
.
chooseImageChange
,
src
:
o
.
userinfo
.
avatar_url
?
o
.
userinfo
.
avatar_url
:
"https://img.ichunt.com/images/ichunt/202502/24/e3f1f226b93f791de65faf46be2cdf9f.png"
},
null
,
8
,[
"onClick"
,
"src"
])])),
_
:
1
}),
l
(
w
,
null
,{
default
:
u
((()
=>
[
l
(
w
,{
class
:
"namen"
},{
default
:
u
((()
=>
[
d
(
f
(
o
.
userinfo
.
wx_nickname
||
o
.
userinfo
.
phone
||
o
.
userinfo
.
email
||
"微信用户"
),
1
)])),
_
:
1
}),
l
(
y
,{
url
:
"/pages/user/companyInfoList"
},{
default
:
u
((()
=>
[
o
.
certification
.
length
>
0
?(
r
(),
i
(
w
,{
key
:
0
,
class
:
"com row verCenter"
},{
default
:
u
((()
=>
[
l
(
w
,
null
,{
default
:
u
((()
=>
[
d
(
f
(
o
.
userinfo
.
company_name
),
1
)])),
_
:
1
}),
l
(
k
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/24/71bb98554d41d147323089e464079a28.png"
}),
l
(
C
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})):(
r
(),
i
(
w
,{
key
:
1
,
class
:
"com row verCenter di"
},{
default
:
u
((()
=>
[
l
(
w
,
null
,{
default
:
u
((()
=>
[
d
(
"暂无公司信息"
)])),
_
:
1
}),
l
(
k
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/24/00d5a3c2e0a057075b618a2da69978da.png"
}),
l
(
C
,{
class
:
"grz"
},{
default
:
u
((()
=>
[
d
(
"去认证"
),
l
(
C
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})])),
_
:
1
}))])),
_
:
1
}),
l
(
y
,{
url
:
"/pages/user/coupon"
},{
default
:
u
((()
=>
[
l
(
w
,{
class
:
"coup-box row verCenter"
},{
default
:
u
((()
=>
[
d
(
" 优惠券:"
),
l
(
C
,{
class
:
"tops"
},{
default
:
u
((()
=>
[
d
(
f
(
o
.
couponCount
),
1
)])),
_
:
1
}),
d
(
" 张未使用 "
),
l
(
C
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):(
r
(),
i
(
w
,{
key
:
1
,
class
:
"head"
})),
l
(
w
,{
class
:
"sec"
},{
default
:
u
((()
=>
[
l
(
w
,{
class
:
"order-box"
},{
default
:
u
((()
=>
[
l
(
w
,{
class
:
"tit row bothSide verCenter"
},{
default
:
u
((()
=>
[
l
(
C
,
null
,{
default
:
u
((()
=>
[
d
(
"我的订单"
)])),
_
:
1
}),
l
(
y
,{
url
:
"/pages/user/orderList"
,
class
:
"go-order"
},{
default
:
u
((()
=>
[
l
(
w
,{
class
:
"row verCenter"
},{
default
:
u
((()
=>
[
d
(
" 查看 "
),
l
(
C
,{
class
:
"icon iconfont icon-arrowright"
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
l
(
w
,{
class
:
"order-status row bothSide"
},{
default
:
u
((()
=>
[
l
(
y
,{
url
:
"/pages/user/orderList?status=2,3"
,
class
:
"yhq"
},{
default
:
u
((()
=>
[
l
(
k
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/24/1fe54495f0fdfb72f8126daee9d5564f.png"
}),
l
(
w
,
null
,{
default
:
u
((()
=>
[
d
(
"待付款"
)])),
_
:
1
}),
o
.
orderCount
[
2
]
+
o
.
orderCount
[
3
]
>
0
?(
r
(),
i
(
C
,{
key
:
0
,
class
:
"count"
},{
default
:
u
((()
=>
[
d
(
f
(
o
.
orderCount
[
2
]
+
o
.
orderCount
[
3
]),
1
)])),
_
:
1
})):
h
(
""
,
!
0
)])),
_
:
1
}),
l
(
y
,{
url
:
"/pages/user/orderList?status=4"
,
class
:
"yhq"
},{
default
:
u
((()
=>
[
l
(
k
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/24/4de1203f3ddb51a020c0ab53bd2ee3b5.png"
}),
l
(
w
,
null
,{
default
:
u
((()
=>
[
d
(
"待发货"
)])),
_
:
1
}),
o
.
orderCount
[
4
]
>
0
?(
r
(),
i
(
C
,{
key
:
0
,
class
:
"count"
},{
default
:
u
((()
=>
[
d
(
f
(
o
.
orderCount
[
4
]),
1
)])),
_
:
1
})):
h
(
""
,
!
0
)])),
_
:
1
}),
l
(
y
,{
url
:
"/pages/user/orderList?status=7"
,
class
:
"yhq"
},{
default
:
u
((()
=>
[
l
(
k
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/24/4de1203f3ddb51a020c0ab53bd2ee3b5.png"
}),
l
(
w
,
null
,{
default
:
u
((()
=>
[
d
(
"部分发货"
)])),
_
:
1
}),
o
.
orderCount
[
7
]
>
0
?(
r
(),
i
(
C
,{
key
:
0
,
class
:
"count"
},{
default
:
u
((()
=>
[
d
(
f
(
o
.
orderCount
[
7
]),
1
)])),
_
:
1
})):
h
(
""
,
!
0
)])),
_
:
1
}),
l
(
y
,{
url
:
"/pages/user/orderList?status=8"
,
class
:
"yhq"
},{
default
:
u
((()
=>
[
l
(
k
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/24/986cd7e0d070537db3767503d85084c9.png"
}),
l
(
w
,
null
,{
default
:
u
((()
=>
[
d
(
"待收货"
)])),
_
:
1
}),
o
.
orderCount
[
8
]
>
0
?(
r
(),
i
(
C
,{
key
:
0
,
class
:
"count"
},{
default
:
u
((()
=>
[
d
(
f
(
o
.
orderCount
[
8
]),
1
)])),
_
:
1
})):
h
(
""
,
!
0
)])),
_
:
1
}),
l
(
y
,{
url
:
"/pages/user/orderList?status=-1,10"
,
class
:
"yhq"
},{
default
:
u
((()
=>
[
l
(
k
,{
src
:
"https://img.ichunt.com/images/ichunt/202502/24/d75f5fe63ec44f624c0289ca2c4821a5.png"
}),
l
(
w
,
null
,{
default
:
u
((()
=>
[
d
(
"已完结"
)])),
_
:
1
}),
o
.
orderCount
[
-
1
]
+
o
.
orderCount
[
10
]
>
0
?(
r
(),
i
(
C
,{
key
:
0
,
class
:
"count"
},{
default
:
u
((()
=>
[
d
(
f
(
o
.
orderCount
[
-
1
]
+
o
.
orderCount
[
10
]),
1
)])),
_
:
1
})):
h
(
""
,
!
0
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
l
(
w
,{
class
:
"link-box row bothSide"
},{
default
:
u
((()
=>
[
l
(
y
,{
url
:
"/pages/user/qDlist"
,
class
:
"litem"
},{
default
:
u
((()
=>
[
l
(
C
,{
class
:
"icon iconfont icon iconfont icon-qdlist"
}),
l
(
w
,
null
,{
default
:
u
((()
=>
[
d
(
"我的清单"
)])),
_
:
1
})])),
_
:
1
}),
l
(
y
,{
url
:
"/pages/user/address"
,
class
:
"litem"
},{
default
:
u
((()
=>
[
l
(
C
,{
class
:
"icon iconfont icon-dzsd"
}),
l
(
w
,
null
,{
default
:
u
((()
=>
[
d
(
"地址管理"
)])),
_
:
1
})])),
_
:
1
}),
l
(
y
,{
url
:
"/pages/user/invoice"
,
class
:
"litem"
},{
default
:
u
((()
=>
[
l
(
C
,{
class
:
"icon iconfont icon-fpgl"
}),
l
(
w
,
null
,{
default
:
u
((()
=>
[
d
(
"发票管理"
)])),
_
:
1
})])),
_
:
1
}),
l
(
y
,{
url
:
s
.
$globalData
.
KFQQ
,
class
:
"litem"
},{
default
:
u
((()
=>
[
l
(
C
,{
class
:
"icon iconfont icon-kfi"
}),
l
(
w
,
null
,{
default
:
u
((()
=>
[
d
(
"我的客服"
)])),
_
:
1
})])),
_
:
1
},
8
,[
"url"
])])),
_
:
1
})])),
_
:
1
}),
l
(
v
,{
actval
:
"4"
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-6977d7a5"
]]);
export
{
w
as
default
};
unpackage/dist/build/web/assets/search_head.Bd-A-aAE.js
0 → 100644
View file @
6eb3aa03
import
{
E
as
a
,
o
as
e
,
c
as
l
,
w
as
o
,
d
as
n
,
f
as
s
,
m
as
t
,
I
as
c
,
i
as
r
,
l
as
i
}
from
"./index-B52OZNum.js"
;
import
{
_
as
u
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
h
=
u
({
name
:
"search_head"
,
props
:{
searchVal
:{
type
:
String
,
default
:
""
},
isFocus
:{
type
:
Boolean
,
default
:
!
1
},
backurl
:{
type
:
String
,
default
:
""
}},
created
(){
this
.
inputClearValue
=
this
.
searchVal
},
watch
:{
searchVal
(
a
){
this
.
inputClearValue
=
a
,
this
.
inputClearValue
.
length
>
0
?
this
.
showClearIcon
=!
0
:
this
.
showClearIcon
=!
1
},
backurl
(
a
){
this
.
backurl
=
a
}},
data
:()
=>
({
inputClearValue
:
""
,
inputValue
:
""
,
showClearIcon
:
!
1
}),
methods
:{
goBack
(){
this
.
backurl
?
a
({
url
:
this
.
backurl
}):
this
.
$goBack
()},
onConfirm
(
a
){
this
.
$emit
(
"confirm"
,
a
)},
goUrl
(
a
){
this
.
$emit
(
"goUrl"
,
a
)},
clearInput
:
function
(
a
){
this
.
inputClearValue
=
a
.
detail
.
value
,
a
.
detail
.
value
.
length
>
0
?
this
.
showClearIcon
=!
0
:
this
.
showClearIcon
=!
1
},
clearIcon
:
function
(){
this
.
inputClearValue
=
""
,
this
.
inputValue
=
""
,
this
.
showClearIcon
=!
1
}}},[[
"render"
,
function
(
a
,
u
,
h
,
p
,
C
,
f
){
const
d
=
t
,
I
=
c
,
k
=
r
,
m
=
i
;
return
e
(),
l
(
k
,{
class
:
"top-box row bothSide verCenter"
},{
default
:
o
((()
=>
[
n
(
d
,{
class
:
"icon iconfont icon-arrowleft"
,
onClick
:
f
.
goBack
},
null
,
8
,[
"onClick"
]),
n
(
k
,{
class
:
"search-box row verCenter"
},{
default
:
o
((()
=>
[
n
(
d
,{
class
:
"icon iconfont icon-search"
}),
n
(
I
,{
class
:
"uni-input"
,
placeholder
:
"请输入商品名称/品牌/型号/商品编码"
,
value
:
C
.
inputClearValue
,
onInput
:
f
.
clearInput
,
"confirm-type"
:
"search"
,
onConfirm
:
f
.
onConfirm
,
onClick
:
f
.
goUrl
,
focus
:
h
.
isFocus
},
null
,
8
,[
"value"
,
"onInput"
,
"onConfirm"
,
"onClick"
,
"focus"
]),
C
.
showClearIcon
?(
e
(),
l
(
d
,{
key
:
0
,
class
:
"icon iconfont icon-searchclose"
,
onClick
:
u
[
0
]
||
(
u
[
0
]
=
a
=>
f
.
clearIcon
())})):
s
(
""
,
!
0
)])),
_
:
1
}),
n
(
m
,{
class
:
"kfbtn"
,
url
:
a
.
$globalData
.
KFQQ
},
null
,
8
,[
"url"
])])),
_
:
1
})}],[
"__scopeId"
,
"data-v-7c94b5b3"
]]);
export
{
h
as
s
};
unpackage/dist/build/web/assets/title_nav.Bmrn86K5.js
0 → 100644
View file @
6eb3aa03
import
{
E
as
t
,
o
as
e
,
c
as
a
,
w
as
s
,
d
as
r
,
e
as
l
,
t
as
o
,
m
as
c
,
i
}
from
"./index-B52OZNum.js"
;
import
{
_
as
n
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
const
d
=
n
({
name
:
"title_nav"
,
props
:{
title
:{
type
:
String
,
default
:
"爱智工业品"
},
backurl
:{
type
:
String
,
default
:
""
}},
created
(){},
data
:()
=>
({}),
methods
:{
back
(){
this
.
backurl
?
t
({
url
:
this
.
backurl
}):
this
.
$goBack
()}}},[[
"render"
,
function
(
t
,
n
,
d
,
u
,
f
,
p
){
const
k
=
c
,
_
=
i
;
return
e
(),
a
(
_
,{
class
:
"titsk-head row verCenter"
},{
default
:
s
((()
=>
[
r
(
_
,{
class
:
"leftbox row verCenter"
},{
default
:
s
((()
=>
[
r
(
k
,{
class
:
"icon iconfont icon-arrowleft"
,
onClick
:
p
.
back
},
null
,
8
,[
"onClick"
])])),
_
:
1
}),
r
(
_
,{
class
:
"title"
},{
default
:
s
((()
=>
[
l
(
o
(
d
.
title
),
1
)])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-42009dce"
]]);
export
{
d
as
t
};
unpackage/dist/build/web/assets/uni-popup-DuQ7tQfF.css
0 → 100644
View file @
6eb3aa03
uni-view
[
data-v-bfc381c5
],
uni-text
[
data-v-bfc381c5
],
uni-input
[
data-v-bfc381c5
],
uni-navigator
[
data-v-bfc381c5
]
{
box-sizing
:
border-box
;
-webkit-tap-highlight-color
:
transparent
;
-webkit-user-select
:
text
;
user-select
:
text
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
Helvetica
Neue
,
Helvetica
,
Segoe
UI
,
Arial
,
Roboto
,
PingFang
SC
,
miui
,
Hiragino
Sans
GB
,
Microsoft
Yahei
,
sans-serif
}
body
[
data-v-bfc381c5
],
uni-page-body
[
data-v-bfc381c5
],
uni-view
[
data-v-bfc381c5
],
uni-text
[
data-v-bfc381c5
],
uni-scroll-view
[
data-v-bfc381c5
]
{
-webkit-user-select
:
text
!important
;
user-select
:
text
!important
}
.navigator-hover
[
data-v-bfc381c5
]
{
background
:
none
;
opacity
:
1
}
uni-image
[
data-v-bfc381c5
]
{
vertical-align
:
middle
}
.elep
[
data-v-bfc381c5
]
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
.elep2
[
data-v-bfc381c5
]
{
word-break
:
break-all
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
}
.column
[
data-v-bfc381c5
]
{
display
:
flex
;
flex-direction
:
column
}
.row
[
data-v-bfc381c5
]
{
display
:
flex
;
flex-direction
:
row
}
.boxsiz
[
data-v-bfc381c5
]
{
box-sizing
:
border-box
}
.bothSide
[
data-v-bfc381c5
]
{
justify-content
:
space-between
}
.avarage
[
data-v-bfc381c5
]
{
justify-content
:
space-around
}
.rowCenter
[
data-v-bfc381c5
]
{
justify-content
:
center
}
.verCenter
[
data-v-bfc381c5
]
{
align-items
:
center
}
.uni-popup
[
data-v-bfc381c5
]
{
position
:
fixed
;
z-index
:
99
}
.uni-popup.top
[
data-v-bfc381c5
],
.uni-popup.left
[
data-v-bfc381c5
],
.uni-popup.right
[
data-v-bfc381c5
]
{
top
:
var
(
--window-top
)}
.uni-popup
.uni-popup__wrapper
[
data-v-bfc381c5
]
{
display
:
block
;
position
:
relative
}
.uni-popup
.uni-popup__wrapper.left
[
data-v-bfc381c5
],
.uni-popup
.uni-popup__wrapper.right
[
data-v-bfc381c5
]
{
padding-top
:
var
(
--window-top
);
flex
:
1
}
.fixforpc-z-index
[
data-v-bfc381c5
]
{
z-index
:
999
}
.fixforpc-top
[
data-v-bfc381c5
]
{
top
:
0
}
unpackage/dist/build/web/assets/uni-popup.B33pbe0T.js
0 → 100644
View file @
6eb3aa03
import
{
P
as
t
,
Q
as
s
,
R
as
i
,
o
as
e
,
c
as
o
,
w
as
a
,
K
as
n
,
v
as
r
,
L
as
l
,
i
as
h
,
x
as
c
,
r
as
d
,
d
as
p
,
f
as
u
,
T
as
m
}
from
"./index-B52OZNum.js"
;
import
{
_
as
f
}
from
"./_plugin-vue_export-helper.BCo6x5W8.js"
;
class
g
{
constructor
(
s
,
i
){
this
.
options
=
s
,
this
.
animation
=
t
({...
s
}),
this
.
currentStepAnimates
=
{},
this
.
next
=
0
,
this
.
$
=
i
}
_nvuePushAnimates
(
t
,
s
){
let
i
=
this
.
currentStepAnimates
[
this
.
next
],
e
=
{};
if
(
e
=
i
||
{
styles
:{},
config
:{}},
y
.
includes
(
t
)){
e
.
styles
.
transform
||
(
e
.
styles
.
transform
=
""
);
let
i
=
""
;
"rotate"
===
t
&&
(
i
=
"deg"
),
e
.
styles
.
transform
+=
`
${
t
}
(
${
s
+
i
}
) `
}
else
e
.
styles
[
t
]
=
`
${
s
}
`
;
this
.
currentStepAnimates
[
this
.
next
]
=
e
}
_animateRun
(
t
=
{},
s
=
{}){
let
i
=
this
.
$
.
$refs
.
ani
.
ref
;
if
(
i
)
return
new
Promise
(((
e
,
o
)
=>
{
nvueAnimation
.
transition
(
i
,{
styles
:
t
,...
s
},(
t
=>
{
e
()}))}))}
_nvueNextAnimate
(
t
,
s
=
0
,
i
){
let
e
=
t
[
s
];
if
(
e
){
let
{
styles
:
o
,
config
:
a
}
=
e
;
this
.
_animateRun
(
o
,
a
).
then
((()
=>
{
s
+=
1
,
this
.
_nvueNextAnimate
(
t
,
s
,
i
)}))}
else
this
.
currentStepAnimates
=
{},
"function"
==
typeof
i
&&
i
(),
this
.
isEnd
=!
0
}
step
(
t
=
{}){
return
this
.
animation
.
step
(
t
),
this
}
run
(
t
){
this
.
$
.
animationData
=
this
.
animation
.
export
(),
this
.
$
.
timer
=
setTimeout
((()
=>
{
"function"
==
typeof
t
&&
t
()}),
this
.
$
.
durationTime
)}}
const
y
=
[
"matrix"
,
"matrix3d"
,
"rotate"
,
"rotate3d"
,
"rotateX"
,
"rotateY"
,
"rotateZ"
,
"scale"
,
"scale3d"
,
"scaleX"
,
"scaleY"
,
"scaleZ"
,
"skew"
,
"skewX"
,
"skewY"
,
"translate"
,
"translate3d"
,
"translateX"
,
"translateY"
,
"translateZ"
];
function
k
(
t
,
s
){
if
(
s
)
return
clearTimeout
(
s
.
timer
),
new
g
(
t
,
s
)}
y
.
concat
([
"opacity"
,
"backgroundColor"
],[
"width"
,
"height"
,
"left"
,
"right"
,
"top"
,
"bottom"
]).
forEach
((
t
=>
{
g
.
prototype
[
t
]
=
function
(...
s
){
return
this
.
animation
[
t
](...
s
),
this
}}));
const
b
=
f
({
name
:
"uniTransition"
,
emits
:[
"click"
,
"change"
],
props
:{
show
:{
type
:
Boolean
,
default
:
!
1
},
modeClass
:{
type
:[
Array
,
String
],
default
:()
=>
"fade"
},
duration
:{
type
:
Number
,
default
:
300
},
styles
:{
type
:
Object
,
default
:()
=>
({})},
customClass
:{
type
:
String
,
default
:
""
},
onceRender
:{
type
:
Boolean
,
default
:
!
1
}},
data
:()
=>
({
isShow
:
!
1
,
transform
:
""
,
opacity
:
1
,
animationData
:{},
durationTime
:
300
,
config
:{}}),
watch
:{
show
:{
handler
(
t
){
t
?
this
.
open
():
this
.
isShow
&&
this
.
close
()},
immediate
:
!
0
}},
computed
:{
stylesObject
(){
let
t
=
{...
this
.
styles
,
"transition-duration"
:
this
.
duration
/
1
e3
+
"s"
},
s
=
""
;
for
(
let
i
in
t
){
s
+=
this
.
toLine
(
i
)
+
":"
+
t
[
i
]
+
";"
}
return
s
},
transformStyles
(){
return
"transform:"
+
this
.
transform
+
";opacity:"
+
this
.
opacity
+
";"
+
this
.
stylesObject
}},
created
(){
this
.
config
=
{
duration
:
this
.
duration
,
timingFunction
:
"ease"
,
transformOrigin
:
"50% 50%"
,
delay
:
0
},
this
.
durationTime
=
this
.
duration
},
methods
:{
init
(
t
=
{}){
t
.
duration
&&
(
this
.
durationTime
=
t
.
duration
),
this
.
animation
=
k
(
Object
.
assign
(
this
.
config
,
t
),
this
)},
onClick
(){
this
.
$emit
(
"click"
,{
detail
:
this
.
isShow
})},
step
(
t
,
s
=
{}){
if
(
this
.
animation
){
for
(
let
s
in
t
)
try
{
"object"
==
typeof
t
[
s
]?
this
.
animation
[
s
](...
t
[
s
]):
this
.
animation
[
s
](
t
[
s
])}
catch
(
i
){
console
.
error
(
`方法
${
s
}
不存在`
)}
return
this
.
animation
.
step
(
s
),
this
}},
run
(
t
){
this
.
animation
&&
this
.
animation
.
run
(
t
)},
open
(){
clearTimeout
(
this
.
timer
),
this
.
transform
=
""
,
this
.
isShow
=!
0
;
let
{
opacity
:
t
,
transform
:
s
}
=
this
.
styleInit
(
!
1
);
void
0
!==
t
&&
(
this
.
opacity
=
t
),
this
.
transform
=
s
,
this
.
$nextTick
((()
=>
{
this
.
timer
=
setTimeout
((()
=>
{
this
.
animation
=
k
(
this
.
config
,
this
),
this
.
tranfromInit
(
!
1
).
step
(),
this
.
animation
.
run
(),
this
.
$emit
(
"change"
,{
detail
:
this
.
isShow
})}),
20
)}))},
close
(
t
){
this
.
animation
&&
this
.
tranfromInit
(
!
0
).
step
().
run
((()
=>
{
this
.
isShow
=!
1
,
this
.
animationData
=
null
,
this
.
animation
=
null
;
let
{
opacity
:
t
,
transform
:
s
}
=
this
.
styleInit
(
!
1
);
this
.
opacity
=
t
||
1
,
this
.
transform
=
s
,
this
.
$emit
(
"change"
,{
detail
:
this
.
isShow
})}))},
styleInit
(
t
){
let
s
=
{
transform
:
""
},
i
=
(
t
,
i
)
=>
{
"fade"
===
i
?
s
.
opacity
=
this
.
animationType
(
t
)[
i
]:
s
.
transform
+=
this
.
animationType
(
t
)[
i
]
+
" "
};
return
"string"
==
typeof
this
.
modeClass
?
i
(
t
,
this
.
modeClass
):
this
.
modeClass
.
forEach
((
s
=>
{
i
(
t
,
s
)})),
s
},
tranfromInit
(
t
){
let
s
=
(
t
,
s
)
=>
{
let
i
=
null
;
"fade"
===
s
?
i
=
t
?
0
:
1
:(
i
=
t
?
"-100%"
:
"0"
,
"zoom-in"
===
s
&&
(
i
=
t
?.
8
:
1
),
"zoom-out"
===
s
&&
(
i
=
t
?
1.2
:
1
),
"slide-right"
===
s
&&
(
i
=
t
?
"100%"
:
"0"
),
"slide-bottom"
===
s
&&
(
i
=
t
?
"100%"
:
"0"
)),
this
.
animation
[
this
.
animationMode
()[
s
]](
i
)};
return
"string"
==
typeof
this
.
modeClass
?
s
(
t
,
this
.
modeClass
):
this
.
modeClass
.
forEach
((
i
=>
{
s
(
t
,
i
)})),
this
.
animation
},
animationType
:
t
=>
({
fade
:
t
?
0
:
1
,
"slide-top"
:
`translateY(
${
t
?
"0"
:
"-100%"
}
)`
,
"slide-right"
:
`translateX(
${
t
?
"0"
:
"100%"
}
)`
,
"slide-bottom"
:
`translateY(
${
t
?
"0"
:
"100%"
}
)`
,
"slide-left"
:
`translateX(
${
t
?
"0"
:
"-100%"
}
)`
,
"zoom-in"
:
`scaleX(
${
t
?
1
:.
8
}
) scaleY(
${
t
?
1
:.
8
}
)`
,
"zoom-out"
:
`scaleX(
${
t
?
1
:
1.2
}
) scaleY(
${
t
?
1
:
1.2
}
)`
}),
animationMode
:()
=>
({
fade
:
"opacity"
,
"slide-top"
:
"translateY"
,
"slide-right"
:
"translateX"
,
"slide-bottom"
:
"translateY"
,
"slide-left"
:
"translateX"
,
"zoom-in"
:
"scale"
,
"zoom-out"
:
"scale"
}),
toLine
:
t
=>
t
.
replace
(
/
([
A-Z
])
/g
,
"-$1"
).
toLowerCase
()}},[[
"render"
,
function
(
t
,
c
,
d
,
p
,
u
,
m
){
const
f
=
h
;
return
s
((
e
(),
o
(
f
,{
ref
:
"ani"
,
animation
:
u
.
animationData
,
class
:
r
(
d
.
customClass
),
style
:
l
(
m
.
transformStyles
),
onClick
:
m
.
onClick
},{
default
:
a
((()
=>
[
n
(
t
.
$slots
,
"default"
)])),
_
:
3
},
8
,[
"animation"
,
"class"
,
"style"
,
"onClick"
])),[[
i
,
u
.
isShow
]])}]]);
function
w
(
t
,
s
){
return
"string"
==
typeof
t
?
s
:
t
}
const
C
=
f
({
name
:
"uniPopup"
,
components
:{
keypress
:{
name
:
"Keypress"
,
props
:{
disable
:{
type
:
Boolean
,
default
:
!
1
}},
mounted
(){
const
t
=
{
esc
:[
"Esc"
,
"Escape"
],
tab
:
"Tab"
,
enter
:
"Enter"
,
space
:[
" "
,
"Spacebar"
],
up
:[
"Up"
,
"ArrowUp"
],
left
:[
"Left"
,
"ArrowLeft"
],
right
:[
"Right"
,
"ArrowRight"
],
down
:[
"Down"
,
"ArrowDown"
],
delete
:[
"Backspace"
,
"Delete"
,
"Del"
]};
document
.
addEventListener
(
"keyup"
,(
s
=>
{
if
(
this
.
disable
)
return
;
const
i
=
Object
.
keys
(
t
).
find
((
i
=>
{
const
e
=
s
.
key
,
o
=
t
[
i
];
return
o
===
e
||
Array
.
isArray
(
o
)
&&
o
.
includes
(
e
)}));
i
&&
setTimeout
((()
=>
{
this
.
$emit
(
i
,{})}),
0
)}))},
render
:()
=>
{}}},
emits
:[
"change"
,
"maskClick"
],
props
:{
animation
:{
type
:
Boolean
,
default
:
!
0
},
type
:{
type
:
String
,
default
:
"center"
},
isMaskClick
:{
type
:
Boolean
,
default
:
null
},
maskClick
:{
type
:
Boolean
,
default
:
null
},
backgroundColor
:{
type
:
String
,
default
:
"none"
},
safeArea
:{
type
:
Boolean
,
default
:
!
0
},
maskBackgroundColor
:{
type
:
String
,
default
:
"rgba(0, 0, 0, 0.4)"
},
borderRadius
:{
type
:
String
}},
watch
:{
type
:{
handler
:
function
(
t
){
this
.
config
[
t
]
&&
this
[
this
.
config
[
t
]](
!
0
)},
immediate
:
!
0
},
isDesktop
:{
handler
:
function
(
t
){
this
.
config
[
t
]
&&
this
[
this
.
config
[
this
.
type
]](
!
0
)},
immediate
:
!
0
},
maskClick
:{
handler
:
function
(
t
){
this
.
mkclick
=
t
},
immediate
:
!
0
},
isMaskClick
:{
handler
:
function
(
t
){
this
.
mkclick
=
t
},
immediate
:
!
0
},
showPopup
(
t
){
document
.
getElementsByTagName
(
"body"
)[
0
].
style
.
overflow
=
t
?
"hidden"
:
"visible"
}},
data
(){
return
{
duration
:
300
,
ani
:[],
showPopup
:
!
1
,
showTrans
:
!
1
,
popupWidth
:
0
,
popupHeight
:
0
,
config
:{
top
:
"top"
,
bottom
:
"bottom"
,
center
:
"center"
,
left
:
"left"
,
right
:
"right"
,
message
:
"top"
,
dialog
:
"center"
,
share
:
"bottom"
},
maskClass
:{
position
:
"fixed"
,
bottom
:
0
,
top
:
0
,
left
:
0
,
right
:
0
,
backgroundColor
:
"rgba(0, 0, 0, 0.4)"
},
transClass
:{
backgroundColor
:
"transparent"
,
borderRadius
:
this
.
borderRadius
||
"0"
,
position
:
"fixed"
,
left
:
0
,
right
:
0
},
maskShow
:
!
0
,
mkclick
:
!
0
,
popupstyle
:
"top"
}},
computed
:{
getStyles
(){
let
t
=
{
backgroundColor
:
this
.
bg
};
return
this
.
borderRadius
,
t
=
Object
.
assign
(
t
,{
borderRadius
:
this
.
borderRadius
}),
t
},
isDesktop
(){
return
this
.
popupWidth
>=
500
&&
this
.
popupHeight
>=
500
},
bg
(){
return
""
===
this
.
backgroundColor
||
"none"
===
this
.
backgroundColor
?
"transparent"
:
this
.
backgroundColor
}},
mounted
(){(()
=>
{
const
{
windowWidth
:
t
,
windowHeight
:
s
,
windowTop
:
i
,
safeArea
:
e
,
screenHeight
:
o
,
safeAreaInsets
:
a
}
=
m
();
this
.
popupWidth
=
t
,
this
.
popupHeight
=
s
+
(
i
||
0
),
e
&&
this
.
safeArea
?
this
.
safeAreaInsets
=
a
.
bottom
:
this
.
safeAreaInsets
=
0
})()},
unmounted
(){
this
.
setH5Visible
()},
activated
(){
this
.
setH5Visible
(
!
this
.
showPopup
)},
deactivated
(){
this
.
setH5Visible
(
!
0
)},
created
(){
null
===
this
.
isMaskClick
&&
null
===
this
.
maskClick
?
this
.
mkclick
=!
0
:
this
.
mkclick
=
null
!==
this
.
isMaskClick
?
this
.
isMaskClick
:
this
.
maskClick
,
this
.
animation
?
this
.
duration
=
300
:
this
.
duration
=
0
,
this
.
messageChild
=
null
,
this
.
clearPropagation
=!
1
,
this
.
maskClass
.
backgroundColor
=
this
.
maskBackgroundColor
},
methods
:{
setH5Visible
(
t
=!
0
){
document
.
getElementsByTagName
(
"body"
)[
0
].
style
.
overflow
=
t
?
"visible"
:
"hidden"
},
closeMask
(){
this
.
maskShow
=!
1
},
disableMask
(){
this
.
mkclick
=!
1
},
clear
(
t
){
t
.
stopPropagation
(),
this
.
clearPropagation
=!
0
},
open
(
t
){
if
(
this
.
showPopup
)
return
;
t
&&-
1
!==
[
"top"
,
"center"
,
"bottom"
,
"left"
,
"right"
,
"message"
,
"dialog"
,
"share"
].
indexOf
(
t
)
||
(
t
=
this
.
type
),
this
.
config
[
t
]?(
this
[
this
.
config
[
t
]](),
this
.
$emit
(
"change"
,{
show
:
!
0
,
type
:
t
})):
console
.
error
(
"缺少类型:"
,
t
)},
close
(
t
){
this
.
showTrans
=!
1
,
this
.
$emit
(
"change"
,{
show
:
!
1
,
type
:
this
.
type
}),
clearTimeout
(
this
.
timer
),
this
.
timer
=
setTimeout
((()
=>
{
this
.
showPopup
=!
1
}),
300
)},
touchstart
(){
this
.
clearPropagation
=!
1
},
onTap
(){
this
.
clearPropagation
?
this
.
clearPropagation
=!
1
:(
this
.
$emit
(
"maskClick"
),
this
.
mkclick
&&
this
.
close
())},
top
(
t
){
this
.
popupstyle
=
this
.
isDesktop
?
"fixforpc-top"
:
"top"
,
this
.
ani
=
[
"slide-top"
],
this
.
transClass
=
{
position
:
"fixed"
,
left
:
0
,
right
:
0
,
backgroundColor
:
this
.
bg
,
borderRadius
:
this
.
borderRadius
||
"0"
},
t
||
(
this
.
showPopup
=!
0
,
this
.
showTrans
=!
0
,
this
.
$nextTick
((()
=>
{
this
.
showPoptrans
(),
this
.
messageChild
&&
"message"
===
this
.
type
&&
this
.
messageChild
.
timerClose
()})))},
bottom
(
t
){
this
.
popupstyle
=
"bottom"
,
this
.
ani
=
[
"slide-bottom"
],
this
.
transClass
=
{
position
:
"fixed"
,
left
:
0
,
right
:
0
,
bottom
:
0
,
paddingBottom
:
this
.
safeAreaInsets
+
"px"
,
backgroundColor
:
this
.
bg
,
borderRadius
:
this
.
borderRadius
||
"0"
},
t
||
this
.
showPoptrans
()},
center
(
t
){
this
.
popupstyle
=
"center"
,
this
.
ani
=
[
"zoom-out"
,
"fade"
],
this
.
transClass
=
{
position
:
"fixed"
,
display
:
"flex"
,
flexDirection
:
"column"
,
bottom
:
0
,
left
:
0
,
right
:
0
,
top
:
0
,
justifyContent
:
"center"
,
alignItems
:
"center"
,
borderRadius
:
this
.
borderRadius
||
"0"
},
t
||
this
.
showPoptrans
()},
left
(
t
){
this
.
popupstyle
=
"left"
,
this
.
ani
=
[
"slide-left"
],
this
.
transClass
=
{
position
:
"fixed"
,
left
:
0
,
bottom
:
0
,
top
:
0
,
backgroundColor
:
this
.
bg
,
borderRadius
:
this
.
borderRadius
||
"0"
,
display
:
"flex"
,
flexDirection
:
"column"
},
t
||
this
.
showPoptrans
()},
right
(
t
){
this
.
popupstyle
=
"right"
,
this
.
ani
=
[
"slide-right"
],
this
.
transClass
=
{
position
:
"fixed"
,
bottom
:
0
,
right
:
0
,
top
:
0
,
backgroundColor
:
this
.
bg
,
borderRadius
:
this
.
borderRadius
||
"0"
,
display
:
"flex"
,
flexDirection
:
"column"
},
t
||
this
.
showPoptrans
()},
showPoptrans
(){
this
.
$nextTick
((()
=>
{
this
.
showPopup
=!
0
,
this
.
showTrans
=!
0
}))}}},[[
"render"
,
function
(
t
,
s
,
i
,
m
,
f
,
g
){
const
y
=
w
(
c
(
"uni-transition"
),
b
),
k
=
h
,
C
=
d
(
"keypress"
);
return
f
.
showPopup
?(
e
(),
o
(
k
,{
key
:
0
,
class
:
r
([
"uni-popup"
,[
f
.
popupstyle
,
g
.
isDesktop
?
"fixforpc-z-index"
:
""
]])},{
default
:
a
((()
=>
[
p
(
k
,{
onTouchstart
:
g
.
touchstart
},{
default
:
a
((()
=>
[
f
.
maskShow
?(
e
(),
o
(
y
,{
key
:
"1"
,
name
:
"mask"
,
"mode-class"
:
"fade"
,
styles
:
f
.
maskClass
,
duration
:
f
.
duration
,
show
:
f
.
showTrans
,
onClick
:
g
.
onTap
},
null
,
8
,[
"styles"
,
"duration"
,
"show"
,
"onClick"
])):
u
(
""
,
!
0
),
p
(
y
,{
key
:
"2"
,
"mode-class"
:
f
.
ani
,
name
:
"content"
,
styles
:
f
.
transClass
,
duration
:
f
.
duration
,
show
:
f
.
showTrans
,
onClick
:
g
.
onTap
},{
default
:
a
((()
=>
[
p
(
k
,{
class
:
r
([
"uni-popup__wrapper"
,[
f
.
popupstyle
]]),
style
:
l
(
g
.
getStyles
),
onClick
:
g
.
clear
},{
default
:
a
((()
=>
[
n
(
t
.
$slots
,
"default"
,{},
void
0
,
!
0
)])),
_
:
3
},
8
,[
"style"
,
"class"
,
"onClick"
])])),
_
:
3
},
8
,[
"mode-class"
,
"styles"
,
"duration"
,
"show"
,
"onClick"
])])),
_
:
3
},
8
,[
"onTouchstart"
]),
f
.
maskShow
?(
e
(),
o
(
C
,{
key
:
0
,
onEsc
:
g
.
onTap
},
null
,
8
,[
"onEsc"
])):
u
(
""
,
!
0
)])),
_
:
3
},
8
,[
"class"
])):
u
(
""
,
!
0
)}],[
"__scopeId"
,
"data-v-bfc381c5"
]]);
export
{
C
as
_
,
w
as
r
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment