Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
F
fenxiao_h5-dz
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张志伟
fenxiao_h5-dz
提交
45ea4b0f
提交
45ea4b0f
编写于
5月 06, 2024
作者:
zhangzhiwei
浏览文件
操作
浏览文件
下载
差异文件
.
上级
771e9713
67fe487b
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
33 行增加
和
41 行删除
+33
-41
pages-good-issue.af5f459b.js
dist/build/h5/assets/pages-good-issue.af5f459b.js
+1
-0
pages-index.0e01d725.js
dist/build/h5/assets/pages-index.0e01d725.js
+1
-0
pages-order-afterSales.748bacc6.js
dist/build/h5/assets/pages-order-afterSales.748bacc6.js
+1
-0
pages-topSearch-index.60863f26.js
dist/build/h5/assets/pages-topSearch-index.60863f26.js
+1
-0
pagesSub-index.c5fe1132.js
dist/build/h5/assets/pagesSub-index.c5fe1132.js
+1
-0
App.vue
src/App.vue
+1
-1
ShopCard.vue
src/components/ShopCard.vue
+5
-3
index.vue
src/pages/index/index.vue
+22
-37
未找到文件。
dist/build/h5/assets/pages-good-issue.af5f459b.js
0 → 100644
浏览文件 @
45ea4b0f
import
{
d
as
t
,
H
as
a
,
r
as
s
,
P
as
e
,
f
as
o
,
h
as
l
,
w
as
r
,
j
as
c
,
l
as
n
,
t
as
i
,
u
,
e
as
p
,
x
as
f
}
from
"./index.3798694c.js"
;
import
{
t
as
d
}
from
"./toTop.be484c9c.js"
;
import
{
_
as
m
}
from
"./plugin-vue_export-helper.21dcd24c.js"
;
var
_
=
m
(
t
({
setup
(
t
){
a
((
t
=>
{}));
const
m
=
s
({
title
:
e
.
getTitle
()});
function
_
(){
e
.
goBack
()}
return
(
t
,
a
)
=>
{
const
s
=
p
(
"van-icon"
),
e
=
f
,
g
=
p
(
"van-sticky"
),
h
=
p
(
"van-image"
);
return
o
(),
l
(
e
,
null
,{
default
:
r
((()
=>
[
c
(
g
,
null
,{
default
:
r
((()
=>
[
c
(
e
,{
class
:
"top-bar justify-center bg-white sh"
},{
default
:
r
((()
=>
[
c
(
s
,{
class
:
"top-left"
,
name
:
"arrow-left"
,
onClick
:
_
}),
c
(
e
,{
class
:
"top-center"
},{
default
:
r
((()
=>
[
n
(
i
(
u
(
m
).
title
),
1
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
c
(
h
,{
width
:
"100%"
,
src
:
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/issue.png"
}),
c
(
d
)])),
_
:
1
})}}}),[[
"__scopeId"
,
"data-v-7e910103"
]]);
export
{
_
as
default
};
dist/build/h5/assets/pages-index.0e01d725.js
0 → 100644
浏览文件 @
45ea4b0f
import
{
d
as
e
,
r
as
t
,
o
as
l
,
a
,
b
as
s
,
c
as
n
,
g
as
i
,
s
as
o
,
e
as
d
,
f
as
c
,
h
as
r
,
w
as
u
,
i
as
p
,
j
as
m
,
u
as
f
,
k
as
g
,
l
as
h
,
m
as
x
,
n
as
y
,
F
as
b
,
t
as
_
,
p
as
k
,
T
as
v
,
q
as
w
,
v
as
C
,
x
as
I
,
y
as
j
,
z
as
T
,
A
as
z
,
D
as
E
,
B
as
V
,
C
as
P
,
E
as
B
,
P
as
L
,
G
as
O
,
I
as
S
,
H
as
U
}
from
"./index.3798694c.js"
;
import
{
_
as
D
}
from
"./right_rule.083b6d28.js"
;
import
{
t
as
R
}
from
"./toTop.be484c9c.js"
;
import
{
S
as
F
}
from
"./ShopCard.eaf79051.js"
;
import
{
_
as
Q
}
from
"./plugin-vue_export-helper.21dcd24c.js"
;
import
q
from
"./pages-classify-index.44f4ddd0.js"
;
import
{
_
as
N
}
from
"./tabbar.71503bf0.js"
;
var
A
=
Q
(
e
({
setup
(
e
){
const
T
=
t
({
show
:
!
1
,
actHotSell
:
null
,
actEight
:
null
,
actLittleE
:
null
,
showCertificatesImg
:
""
,
showCertificates
:
!
1
,
keyword
:
""
,
actList
:[],
act_bg
:
""
,
banner
:{
areaBanner
:[],
indexCarouselBig
:[],
indexCarouselSmall
:[],
middleBanner
:[],
popupCarousel
:[],
showPopup
:
!
1
},
tab
:{
active
:
0
,
tabList
:[{
title
:
"类型"
,
list
:[]},{
title
:
"空间"
,
list
:[]},{
title
:
"风格"
,
list
:[]}]},
good
:{
loading
:
!
1
,
finished
:
!
1
,
fail
:
!
1
,
page
:
0
,
list
:[]},
mall
:{},
inited
:
!
1
});
l
((()
=>
{
n
.
indexModule
().
then
((
e
=>
{
if
(
!
e
)
return
;
const
{
indexBanners
:
t
,
indexClassify
:
l
}
=
e
;
if
(
T
.
banner
=
t
,
Object
.
keys
(
e
.
actBanner
).
length
>
0
){
let
t
=
e
.
actBanner
;
T
.
act_bg
=
t
.
actBackground
[
0
].
iconpath
,
t
.
actHotSell
.
length
>
0
&&
(
T
.
actHotSell
=
t
.
actHotSell
[
0
]),
t
.
actEight
.
length
>
0
&&
(
T
.
actEight
=
t
.
actEight
[
0
]),
t
.
actLittleE
.
length
>
0
&&
(
T
.
actLittleE
=
t
.
actLittleE
[
0
])}
T
.
tab
.
tabList
[
0
].
list
=
[...
l
.
type
.
slice
(
0
,
7
),{
img
:
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/more.png"
,
name
:
"更多"
}],
T
.
tab
.
tabList
[
1
].
list
=
[...
l
.
room
.
slice
(
0
,
7
),{
img
:
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/more.png"
,
name
:
"更多"
}],
T
.
tab
.
tabList
[
2
].
list
=
[...
l
.
style
.
slice
(
0
,
7
),{
img
:
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/more.png"
,
name
:
"更多"
}],
T
.
banner
.
popupCarousel
.
length
>
0
&&
(
T
.
banner
.
showPopup
=!
0
)})),
n
.
getIndexEtaomall
({
domain
:
i
(
"subdomain"
)}).
then
((
e
=>
{
T
.
mall
=
e
,
o
(
"mail"
,
T
.
mall
)})),
n
.
getCanUse
({
domain
:
i
(
"subdomain"
)}).
then
((
e
=>
{
e
&&
(
T
.
showCertificates
=!
0
,
T
.
showCertificatesImg
=
e
)}))}));
const
z
=
a
(
!
1
);
function
E
(
e
){
console
.
log
(
e
),
1
==
e
?
k
({
url
:
"/pages/goodList/index?sortType=0"
}):
3
==
e
?
k
({
url
:
"/pages/goodList/index?sortType=1"
}):
2
==
e
?
k
({
url
:
"/pages/goodList/index?search=套餐"
}):
v
(
"正在筹备中,敬请期待!"
)}
function
V
(){
C
({
url
:
"/pages/my/technicalSupport?name=index"
})}
function
P
(){
k
({
url
:
"/pages/topSearch/index"
})}
function
B
(){
T
.
good
.
loading
||
T
.
good
.
fail
||
(
T
.
good
.
loading
=!
0
,
T
.
good
.
page
+=
1
,
n
.
productList
({
pageNum
:
T
.
good
.
page
,
sortType
:
0
,
pageSize
:
20
,
link
:
i
(
"subdomain"
)}).
then
((
e
=>
{
e
&&
(
e
&&
e
.
hasNextPage
||
(
T
.
good
.
finished
=!
0
),
T
.
good
.
list
.
push
(...
e
.
list
))})).
catch
((()
=>
{
T
.
good
.
fail
=!
0
})).
finally
((()
=>
{
T
.
good
.
loading
=!
1
})))}
function
L
(){
T
.
good
.
page
-=
1
,
T
.
good
.
finished
=!
1
,
T
.
good
.
fail
=!
1
,
B
()}
function
O
(
e
){
e
&&
k
({
url
:
e
})}
return
s
((()
=>
{
window
.
_wx
.
miniProgram
.
getEnv
((
e
=>
{
e
.
miniprogram
?
z
.
value
=!
0
:
z
.
value
=!
1
})),
setTimeout
((()
=>
{
T
.
inited
=!
0
}),
1
e3
)})),(
e
,
t
)
=>
{
const
l
=
d
(
"van-search"
),
a
=
I
,
s
=
d
(
"van-sticky"
),
n
=
d
(
"van-image"
),
i
=
d
(
"van-col"
),
o
=
d
(
"van-icon"
),
C
=
d
(
"van-row"
),
z
=
d
(
"van-swipe-item"
),
S
=
d
(
"van-swipe"
),
U
=
j
;
d
(
"van-cell"
),
d
(
"van-cell-group"
);
const
Q
=
d
(
"van-grid-item"
),
q
=
d
(
"van-grid"
),
N
=
d
(
"van-tab"
),
A
=
d
(
"van-tabs"
),
G
=
d
(
"van-list"
),
$
=
d
(
"van-overlay"
);
return
c
(),
r
(
a
,{
class
:
"text-center pd-b-px-55"
},{
default
:
u
((()
=>
[
p
(
"img"
,{
onClick
:
V
,
src
:
D
,
style
:{
position
:
"fixed"
,
right
:
"0"
,
top
:
"70%"
,
"z-index"
:
"99"
},
alt
:
""
}),
m
(
s
,
null
,{
default
:
u
((()
=>
[
m
(
a
,{
class
:
"search_bar sh"
},{
default
:
u
((()
=>
[
m
(
l
,{
"input-align"
:
"center"
,
placeholder
:
"搜索商城商品"
,
shape
:
"round"
,
modelValue
:
f
(
T
).
keyword
,
"onUpdate:modelValue"
:
t
[
0
]
||
(
t
[
0
]
=
e
=>
f
(
T
).
keyword
=
e
),
onFocus
:
P
},{
default
:
u
((()
=>
[
g
(
"<template v-slot:right-icon>"
),
g
(
'<van-icon name="photograph" @click="searchImg" size="1.2rem" />'
),
g
(
"</template>"
)])),
_
:
1
},
8
,[
"modelValue"
])])),
_
:
1
})])),
_
:
1
}),
g
(
"名片"
),
m
(
a
,{
style
:{
background
:
"#ffffff"
,
"padding-bottom"
:
"36rpx"
,
"padding-top"
:
"20rpx"
}},{
default
:
u
((()
=>
[
m
(
a
,{
class
:
"card-div"
},{
default
:
u
((()
=>
[
m
(
C
,{
gutter
:
"12"
,
class
:
"pd-h-px-10"
,
style
:{
"padding-top"
:
"26rpx"
}},{
default
:
u
((()
=>
[
m
(
i
,{
span
:
"6"
},{
default
:
u
((()
=>
[
m
(
n
,{
style
:{
"border-radius"
:
"50%"
,
border
:
"2rpx solid #DDDDDD"
,
width
:
"140rpx"
,
height
:
"140rpx"
},
radius
:
"20rpx"
,
src
:
"../../static/img/dz/jyx-logo.jpg"
})])),
_
:
1
}),
m
(
i
,{
span
:
"18"
,
style
:{
"text-align"
:
"left"
}},{
default
:
u
((()
=>
[
m
(
a
,{
style
:{
"font-size"
:
"34rpx"
,
"font-weight"
:
"bold"
}},{
default
:
u
((()
=>
[
h
(
"金燕侠"
)])),
_
:
1
}),
m
(
a
,{
style
:{
color
:
"#666666"
,
"font-size"
:
"26rpx"
,
"letter-spacing"
:
"1rpx"
,
"margin-top"
:
"6rpx"
}},{
default
:
u
((()
=>
[
h
(
"浙江省杭州市杭州市莫干山路1418-66号3幢12层 1203 室"
)])),
_
:
1
}),
m
(
a
,{
style
:{
"font-size"
:
"26rpx"
,
"margin-top"
:
"4px"
}},{
default
:
u
((()
=>
[
m
(
o
,{
name
:
"manager-o"
,
color
:
"#707070"
,
size
:
"16px"
,
style
:{
"margin-right"
:
"10rpx"
}}),
h
(
"金燕侠 "
),
p
(
"span"
,{
style
:{
margin
:
"0 16rpx"
,
color
:
"#DDDDDD"
}},
"|"
),
m
(
o
,{
name
:
"phone-o"
,
color
:
"#707070"
,
size
:
"16px"
}),
h
(
" 13613613666 "
),
p
(
"span"
,{
style
:{
float
:
"right"
,
"border-radius"
:
"8rpx"
,
border
:
"1rpx solid #EBA926"
,
color
:
"#EBA926"
,
padding
:
"2rpx 10rpx"
},
onClick
:
t
[
1
]
||
(
t
[
1
]
=
e
=>
{
w
({
phoneNumber
:
13613613666
,
success
:
e
=>
{},
fail
:
e
=>
{}})})},
"拨打"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
m
(
C
,{
class
:
"pd-h-px-10 dianpu"
},{
default
:
u
((()
=>
[
m
(
i
,{
span
:
"11"
,
style
:{
background
:
"#fef9ef"
}},{
default
:
u
((()
=>
[
m
(
a
,{
style
:{
display
:
"flex"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
}},{
default
:
u
((()
=>
[
m
(
o
,{
name
:
"shop-collect"
,
color
:
"#EBA926"
,
size
:
"20px"
,
style
:{
"margin-right"
:
"10rpx"
}}),
h
(
"店铺信息"
)])),
_
:
1
})])),
_
:
1
}),
m
(
i
,{
span
:
"2"
,
style
:{
background
:
"#fef9ef"
}},{
default
:
u
((()
=>
[
m
(
a
,{
style
:{
color
:
"#DDDDDD"
}},{
default
:
u
((()
=>
[
h
(
"|"
)])),
_
:
1
})])),
_
:
1
}),
m
(
i
,{
span
:
"11"
,
style
:{
background
:
"#fef9ef"
}},{
default
:
u
((()
=>
[
m
(
a
,{
style
:{
display
:
"flex"
,
"align-items"
:
"center"
,
"justify-content"
:
"center"
}},{
default
:
u
((()
=>
[
m
(
o
,{
name
:
"photo"
,
color
:
"#EBA926"
,
size
:
"20px"
,
style
:{
"margin-right"
:
"10rpx"
}}),
h
(
"店铺海报"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
f
(
T
).
banner
.
indexCarouselBig
.
length
>
0
?(
c
(),
r
(
S
,{
key
:
0
,
"lazy-render"
:
""
,
class
:
"banner_top"
,
autoplay
:
3
e3
,
"indicator-color"
:
"white"
},{
default
:
u
((()
=>
[(
c
(
!
0
),
x
(
b
,
null
,
y
(
f
(
T
).
banner
.
indexCarouselBig
,(
e
=>
(
c
(),
r
(
z
,
null
,{
default
:
u
((()
=>
[
m
(
n
,{
src
:
e
.
iconpath
,
onClick
:
t
=>
O
(
e
.
josnContent
)},
null
,
8
,[
"src"
,
"onClick"
])])),
_
:
2
},
1024
)))),
256
))])),
_
:
1
})):
g
(
"v-if"
,
!
0
),
f
(
T
).
banner
.
indexCarouselSmall
.
length
>
0
?(
c
(),
r
(
S
,{
key
:
1
,
"lazy-render"
:
""
,
class
:
"banner_afterTop"
,
vertical
:
""
,
autoplay
:
3
e3
,
"show-indicators"
:
!
1
},{
default
:
u
((()
=>
[(
c
(
!
0
),
x
(
b
,
null
,
y
(
f
(
T
).
banner
.
indexCarouselSmall
,(
e
=>
(
c
(),
r
(
z
,
null
,{
default
:
u
((()
=>
[
m
(
n
,{
src
:
e
.
iconpath
,
onClick
:
t
=>
O
(
e
.
josnContent
)},
null
,
8
,[
"src"
,
"onClick"
])])),
_
:
2
},
1024
)))),
256
))])),
_
:
1
})):
g
(
"v-if"
,
!
0
),
g
(
"v-if"
,
!
0
),
m
(
a
,{
style
:{
"font-size"
:
"40rpx"
,
"font-weight"
:
"bold"
,
"margin-top"
:
"36rpx"
}},{
default
:
u
((()
=>
[
h
(
"频道专区"
)])),
_
:
1
}),
m
(
a
,{
style
:{
"margin-top"
:
"16px"
,
"margin-bottom"
:
"50rpx"
}},{
default
:
u
((()
=>
[
m
(
a
,
null
,{
default
:
u
((()
=>
[
m
(
C
,{
gutter
:
"8"
,
class
:
"pd-h-px-10"
},{
default
:
u
((()
=>
[
m
(
i
,{
span
:
"12"
},{
default
:
u
((()
=>
[
m
(
n
,{
onClick
:
t
[
3
]
||
(
t
[
3
]
=
e
=>
E
(
1
)),
width
:
"100%;"
,
radius
:
"20rpx"
,
src
:
"../../static/img/dz/act03.png"
}),
m
(
n
,{
onClick
:
t
[
4
]
||
(
t
[
4
]
=
e
=>
E
(
2
)),
width
:
"100%"
,
style
:{
"margin-top"
:
"12rpx"
},
radius
:
"20rpx"
,
src
:
"../../static/img/dz/act04.png"
})])),
_
:
1
}),
m
(
i
,{
span
:
"12"
},{
default
:
u
((()
=>
[
m
(
n
,{
onClick
:
t
[
5
]
||
(
t
[
5
]
=
e
=>
E
(
3
)),
width
:
"100%"
,
radius
:
"20rpx"
,
src
:
"../../static/img/dz/act02.png"
}),
m
(
n
,{
onClick
:
t
[
6
]
||
(
t
[
6
]
=
e
=>
E
(
4
)),
width
:
"100%"
,
style
:{
"margin-top"
:
"12rpx"
},
radius
:
"20rpx"
,
src
:
"../../static/img/dz/act01.png"
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
m
(
A
,{
class
:
"pd-b-10"
,
active
:
f
(
T
).
tab
.
active
,
"onUpdate:active"
:
t
[
7
]
||
(
t
[
7
]
=
e
=>
f
(
T
).
tab
.
active
=
e
),
animated
:
""
,
swipeable
:
""
},{
default
:
u
((()
=>
[(
c
(
!
0
),
x
(
b
,
null
,
y
(
f
(
T
).
tab
.
tabList
,(
e
=>
(
c
(),
r
(
N
,{
title
:
e
.
title
},{
default
:
u
((()
=>
[
m
(
q
,{
class
:
"small-padding"
,
"column-num"
:
4
},{
default
:
u
((()
=>
[(
c
(
!
0
),
x
(
b
,
null
,
y
(
e
.
list
,(
e
=>
(
c
(),
r
(
Q
,{
key
:
e
.
id
,
onClick
:
t
=>
function
(
e
,
t
,
l
){
if
(
0
==
l
)
return
void
v
(
"正在筹备中,敬请期待!"
);
if
(
"zq"
==
t
)
return
void
k
({
url
:
`/pages/goodList/index?zone=
${
e
}
`
});
if
(
!
e
||
"更多"
==
e
){
let
e
=
0
;
return
1
==
T
.
tab
.
active
&&
(
e
=
6
),
2
==
T
.
tab
.
active
&&
(
e
=
1
),
void
k
({
url
:
`/pages/classify/index?act=
${
e
}
`
})}
let
a
=
null
;
0
==
T
.
tab
.
active
?
a
=
"menuId"
:
1
==
T
.
tab
.
active
?
a
=
"space"
:
2
==
T
.
tab
.
active
&&
(
a
=
"styleName"
),
k
({
url
:
`/pages/goodList/index?
${
a
}
=
${
e
}
`
})}(
0
==
f
(
T
).
tab
.
active
?
e
.
id
:
e
.
name
)},{
default
:
u
((()
=>
[
m
(
n
,{
width
:
"14vw"
,
height
:
"14vw"
,
src
:
e
.
icon
||
e
.
img
,
"lazy-load"
:
""
,
"loading-icon"
:
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png"
,
"icon-size"
:
"18vw"
},
null
,
8
,[
"src"
]),
m
(
U
,{
class
:
"text-ss text-darkGray"
},{
default
:
u
((()
=>
[
h
(
_
(
e
.
name
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"onClick"
])))),
128
))])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"title"
])))),
256
))])),
_
:
1
},
8
,[
"active"
]),
f
(
T
).
banner
.
middleBanner
.
length
>
0
?(
c
(),
r
(
S
,{
key
:
3
,
"lazy-render"
:
""
,
class
:
"banner_afterTap"
,
vertical
:
""
,
autoplay
:
3
e3
,
"show-indicators"
:
!
1
},{
default
:
u
((()
=>
[(
c
(
!
0
),
x
(
b
,
null
,
y
(
f
(
T
).
banner
.
middleBanner
,(
e
=>
(
c
(),
r
(
z
,
null
,{
default
:
u
((()
=>
[
m
(
n
,{
src
:
e
.
iconpath
,
onClick
:
t
=>
O
(
e
.
josnContent
)},
null
,
8
,[
"src"
,
"onClick"
])])),
_
:
2
},
1024
)))),
256
))])),
_
:
1
})):
g
(
"v-if"
,
!
0
),
m
(
n
,{
class
:
"block_title"
,
src
:
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/recommend_title.png"
}),
f
(
T
).
inited
?(
c
(),
r
(
G
,{
key
:
4
,
loading
:
f
(
T
).
good
.
loading
,
finished
:
f
(
T
).
good
.
finished
,
"finished-text"
:
"没有更多了"
,
offset
:
"10"
,
onLoad
:
B
},{
default
:
u
((()
=>
[
m
(
C
,{
gutter
:
"12"
,
style
:{
margin
:
"10rpx 20rpx"
}},{
default
:
u
((()
=>
[(
c
(
!
0
),
x
(
b
,
null
,
y
(
f
(
T
).
good
.
list
,(
e
=>
(
c
(),
r
(
i
,{
span
:
"12"
,
style
:{
"margin-bottom"
:
"25rpx"
}},{
default
:
u
((()
=>
[
m
(
F
,{
item
:
e
},
null
,
8
,[
"item"
])])),
_
:
2
},
1024
)))),
256
))])),
_
:
1
})])),
_
:
1
},
8
,[
"loading"
,
"finished"
])):
g
(
"v-if"
,
!
0
),
f
(
T
).
good
.
fail
?(
c
(),
r
(
a
,{
key
:
5
,
class
:
"text-ss text-gray pd-50"
,
onClick
:
L
},{
default
:
u
((()
=>
[
h
(
"请求失败,点击重试 "
),
m
(
o
,{
name
:
"replay"
})])),
_
:
1
})):
g
(
"v-if"
,
!
0
),
m
(
R
),
g
(
"弹窗"
),
g
(
'<popup-banner v-model:show.sync="state.banner.showPopup" :list="state.banner.popupCarousel" />'
),
m
(
$
,{
"z-index"
:
"99999"
,
show
:
f
(
T
).
showCertificates
},{
default
:
u
((()
=>
[
m
(
n
,{
"lazy-load"
:
""
,
src
:
f
(
T
).
showCertificatesImg
,
style
:{
width
:
"90%"
,
margin
:
"50vw auto"
}},
null
,
8
,[
"src"
])])),
_
:
1
},
8
,[
"show"
])])),
_
:
1
})}}}),[[
"__scopeId"
,
"data-v-6d086887"
]]);
var
G
=
Q
(
e
({
emits
:[
"setCartCount"
],
setup
(
e
,{
emit
:
s
}){
const
o
=
t
({
cart
:{
num
:
0
,
edit
:
!
1
,
list
:[]},
all
:
!
1
,
remark
:{
show
:
!
1
,
gItem
:{},
value
:
""
},
num
:{
show
:
!
1
,
value
:
""
,
gItem
:{}},
focus
:
""
,
loading
:
!
1
,
loadingSon
:{
num
:
!
1
},
refresh
:
!
1
,
sum
:
0
,
switch
:{
changeGood
:
!
1
,
cartRemark
:
!
1
,
delivery
:
!
1
,
brand
:
!
1
,
discount
:
!
1
,
stock
:
!
0
,
newView
:
!
1
}}),
w
=
a
([]),
C
=
a
(),
O
=
T
((()
=>
{
if
(
!
o
.
cart
.
list
)
return
[];
let
e
=
[];
return
o
.
cart
.
list
.
forEach
((
t
=>
e
.
push
(...
t
.
select
))),
o
.
cart
.
edit
||
z
((()
=>
{
N
(
O
.
value
)})),
e
}));
function
S
(){
o
.
cart
.
edit
&&
o
.
cart
.
list
.
forEach
((
e
=>
{
const
t
=
[];
e
.
select
.
forEach
((
e
=>
{
U
(
e
)
||
t
.
push
(
e
)})),
e
.
select
=
t
})),
o
.
cart
.
edit
=!
o
.
cart
.
edit
,
$
()}
function
U
(
e
){
return
!
e
.
saleable
||
e
.
moq
>
e
.
stock
||!
e
.
isBrandAgent
}
function
D
(
e
){
o
.
cart
.
edit
?
z
((()
=>
{
if
(
null
!=
e
){
const
t
=
o
.
cart
.
list
[
e
];
t
.
select
=
t
.
all
?
t
.
list
:[]}
else
o
.
cart
.
list
.
forEach
((
e
=>
{
e
.
select
=
o
.
all
?
e
.
list
:[],
e
.
all
=
o
.
all
}))})):
z
((()
=>
{
if
(
null
!=
e
){
const
t
=
o
.
cart
.
list
[
e
];
if
(
t
.
all
){
const
e
=
[];
t
.
list
.
forEach
((
t
=>
{
U
(
t
)
||
e
.
push
(
t
)})),
t
.
select
=
e
}
else
t
.
select
=
[]}
else
o
.
all
?
o
.
cart
.
list
.
forEach
((
e
=>
{
e
.
all
=!
0
;
const
t
=
[];
e
.
list
.
forEach
((
e
=>
{
U
(
e
)
||
t
.
push
(
e
)})),
e
.
select
=
t
})):
o
.
cart
.
list
.
forEach
((
e
=>
{
e
.
all
=!
1
,
e
.
select
=
[]}))}))}
function
R
(
e
){
e
&&
k
({
url
:
e
})}
function
F
(
e
){
o
.
remark
.
value
=
e
.
remark
,
o
.
remark
.
gItem
=
e
,
o
.
remark
.
show
=!
0
}
function
Q
(){
o
.
remark
.
gItem
.
remark
=
o
.
remark
.
value
,
o
.
remark
.
gItem
=
void
0
,
o
.
remark
.
show
=!
0
}
function
q
(
e
,
t
){
if
(
!
o
.
loading
)
return
o
.
loading
=!
0
,
new
Promise
(((
l
,
a
)
=>
{
n
.
cartModify
({
cartId
:
t
.
cartId
,
link
:
i
(
"subdomain"
),
productQty
:
e
}).
then
((()
=>
{
o
.
loading
=!
1
,
O
.
value
.
find
((
e
=>
e
.
cartId
==
t
.
cartId
))
&&
N
(
O
.
value
),
l
(
!
0
)})).
catch
((()
=>
{
o
.
loading
=!
1
,
a
(
!
1
)}))}))}
function
N
(
e
){
o
.
loading
||
(
0
!=
e
.
length
?(
o
.
loading
=!
0
,
n
.
cartSettle
({
cartIds
:
e
.
map
((
e
=>
e
.
cartId
)),
link
:
i
(
"subdomain"
)}).
then
((
e
=>
{
o
.
sum
=
e
.
settlePrice
,
o
.
loading
=!
1
})).
catch
((()
=>
{
o
.
loading
=!
1
}))):
o
.
sum
=
0
)}
function
A
(
e
){
o
.
loading
||
(
o
.
loading
=!
0
,
n
.
cartRemove
(
e
.
map
((
e
=>
e
.
cartId
))).
then
((()
=>
{
o
.
loading
=!
1
,
H
()})).
catch
((()
=>
{
o
.
loading
=!
1
})))}
function
G
(
e
){
o
.
loading
||
(
o
.
loading
=!
0
,
n
.
productFav
({
link
:
i
(
"subdomain"
),
skuIds
:
e
.
map
((
e
=>
e
.
skuId
))}).
then
((
t
=>
{
o
.
loading
=!
1
,
A
(
e
)})).
catch
((()
=>
{
o
.
loading
=!
1
})))}
function
$
(
e
,
t
){
o
.
cart
.
edit
?
z
((()
=>
{
let
l
=!
0
;
t
&&
e
?
e
.
select
.
length
!=
e
.
list
.
length
?
e
.
all
=!
1
:
e
.
all
=!
0
:
t
||
e
||
o
.
cart
.
list
.
forEach
((
e
=>
{
e
.
select
.
length
==
e
.
list
.
length
?
e
.
all
=!
0
:
e
.
all
=!
1
})),
l
=!
o
.
cart
.
list
.
find
((
e
=>!
e
.
all
)),
o
.
all
=
l
})):
z
((()
=>
{
let
l
=!
0
;
t
&&
e
?
e
.
select
.
length
!=
e
.
selectableNum
||
0
==
e
.
selectableNum
?
e
.
all
=!
1
:
e
.
all
=!
0
:
t
||
e
||
o
.
cart
.
list
.
forEach
((
e
=>
{
e
.
select
.
length
==
e
.
selectableNum
?
e
.
all
=!
0
:
e
.
all
=!
1
})),
l
=!
o
.
cart
.
list
.
find
((
e
=>
0
!=
e
.
selectableNum
&&!
e
.
all
)),
o
.
all
=
l
}))}
function
H
(){
o
.
loading
||
(
o
.
loading
=!
0
,
n
.
cartList
({
link
:
i
(
"subdomain"
)}).
then
((
e
=>
{
o
.
all
=!
1
,
o
.
cart
.
num
=
e
.
total
,
s
(
"setCartCount"
,
o
.
cart
.
num
),
o
.
cart
.
list
=
e
.
goods
.
map
(((
e
,
t
)
=>
({
all
:
!
1
,
select
:[],
selectableNum
:
!
e
.
saleable
||
1
>
e
.
stock
||!
e
.
isBrandAgent
?
0
:
1
,
brand
:{
name
:
"新版本-品牌名"
,
id
:
e
.
brandId
},
list
:[{
leftDownIcons
:
e
.
leftDownIcons
,
subScriptImgUrl
:
e
.
subScriptImgUrl
,
discount
:
e
.
discount
,
actPrice
:
e
.
actPrice
,
cartId
:
e
.
cartId
,
skuId
:
e
.
skuId
,
title
:
e
.
title
,
info
:
e
.
size
,
mainImg
:
e
.
mainImg
,
zoneIcon
:
e
.
zoneIcon
,
deliveryTimeStr
:
""
,
salePrice
:
e
.
salePrice
,
stock
:
e
.
stock
,
productPrice
:
e
.
productPrice
,
productQty
:
e
.
productQty
,
remark
:
""
,
moq
:
1
,
spuId
:
e
.
spuId
,
saleable
:
e
.
saleable
,
isBrandAgent
:
e
.
isBrandAgent
}]})))})).
finally
((()
=>
{
o
.
loading
=!
1
,
o
.
refresh
=!
1
})))}
function
M
(
e
){
e
.
saleable
?
e
.
moq
>
e
.
stock
?
v
(
"暂时无货"
):
e
.
isBrandAgent
?
R
(
`/pages/good/detail?skuId=
${
e
.
skuId
}
&spuId=
${
e
.
spuId
}
`
):
v
(
"商家未代理该品牌"
):
v
(
"商品已下架"
)}
function
J
(
e
,
t
,...
l
){
0
!=
O
.
value
.
length
?
E
.
confirm
({
message
:
e
,
title
:
"提示"
}).
then
((()
=>
{
t
(...
l
)})):
v
(
"请勾选商品"
)}
function
W
(
e
){
o
.
num
.
gItem
=
e
,
o
.
num
.
show
=!
0
,
setTimeout
((()
=>
{
C
.
value
&&
C
.
value
.
focus
(),
o
.
num
.
value
=
e
.
productQty
}))}
function
K
(
e
){
o
.
focus
=
e
}
function
X
(){
L
.
goBack
()}
function
Y
(){
if
(
""
===
o
.
num
.
value
||
void
0
===
o
.
num
.
value
||
null
===
o
.
num
.
value
)
v
(
"请输入商品数量"
);
else
if
(
o
.
num
.
gItem
.
moq
>
o
.
num
.
value
)
v
(
"不能小于起订量"
+
o
.
num
.
gItem
.
moq
);
else
if
(
o
.
num
.
gItem
.
stock
<
o
.
num
.
value
)
v
(
"不能大于库存"
+
o
.
num
.
gItem
.
stock
);
else
{
if
(
o
.
loadingSon
.
num
)
return
;
o
.
loadingSon
.
num
=!
0
;
const
e
=
o
.
num
.
gItem
.
productQty
;
o
.
num
.
gItem
.
productQty
=
o
.
num
.
value
,
q
(
Number
(
o
.
num
.
value
),
o
.
num
.
gItem
).
then
((()
=>
{
o
.
num
.
show
=!
1
})).
catch
((()
=>
{
o
.
num
.
gItem
.
productQty
=
e
})).
finally
((()
=>
{
o
.
loadingSon
.
num
=!
1
}))}}
return
l
((()
=>
{
const
{
token
:
e
}
=
i
(
"user"
)
||
{};
e
?
H
():
"miniprogram"
===
window
.
__wxjs_environment
?
window
.
_wx
.
miniProgram
.
redirectTo
({
url
:
"/pages/login/login"
}):
E
.
confirm
({
message
:
"您尚未登录,请前往登录"
,
title
:
"提示"
,
cancelButtonText
:
"返回首页"
}).
then
((()
=>
{
V
({
url
:
"/pages/login/login"
})})).
catch
((()
=>
{
V
({
url
:
"/"
})}))})),(
e
,
t
)
=>
{
const
l
=
d
(
"van-icon"
),
a
=
j
,
s
=
I
,
T
=
d
(
"van-sticky"
),
z
=
d
(
"van-checkbox"
),
E
=
d
(
"van-cell"
),
V
=
d
(
"van-divider"
),
L
=
d
(
"van-image"
),
N
=
d
(
"van-stepper"
),
Z
=
d
(
"van-button"
),
ee
=
d
(
"van-swipe-cell"
),
te
=
d
(
"van-checkbox-group"
),
le
=
d
(
"van-cell-group"
),
ae
=
d
(
"van-empty"
),
se
=
d
(
"van-pull-refresh"
),
ne
=
d
(
"van-action-bar-button"
),
ie
=
d
(
"van-action-bar"
),
oe
=
d
(
"van-field"
),
de
=
d
(
"van-dialog"
),
ce
=
d
(
"van-form"
);
return
c
(),
r
(
s
,{
class
:
"pd-b-px-95"
},{
default
:
u
((()
=>
[
m
(
T
,
null
,{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"top-bar justify-center bg-white sh"
},{
default
:
u
((()
=>
[
m
(
l
,{
class
:
"top-left"
,
name
:
"arrow-left"
,
onClick
:
X
}),
m
(
a
,{
class
:
"top-center"
},{
default
:
u
((()
=>
[
h
(
_
(
"购物车"
+
(
f
(
o
).
cart
.
num
?
`(
${
f
(
o
).
cart
.
num
}
)`
:
""
)),
1
)])),
_
:
1
}),
m
(
a
,{
class
:
P
([
"top_right"
,[
f
(
o
).
cart
.
edit
?
"text-orange"
:
"text-gray"
]]),
onClick
:
S
},{
default
:
u
((()
=>
[
h
(
_
(
f
(
o
).
cart
.
edit
?
"完成"
:
"编辑"
),
1
)])),
_
:
1
},
8
,[
"class"
])])),
_
:
1
})])),
_
:
1
}),
m
(
se
,{
modelValue
:
f
(
o
).
refresh
,
"onUpdate:modelValue"
:
t
[
2
]
||
(
t
[
2
]
=
e
=>
f
(
o
).
refresh
=
e
),
onRefresh
:
t
[
3
]
||
(
t
[
3
]
=
e
=>
H
())},{
default
:
u
((()
=>
[
f
(
o
).
cart
.
list
.
length
>
0
?(
c
(),
r
(
s
,{
key
:
0
},{
default
:
u
((()
=>
[
f
(
o
).
switch
.
newView
?(
c
(),
r
(
s
,{
key
:
0
,
style
:{
"min-height"
:
"calc(100vh - 180px)"
}},{
default
:
u
((()
=>
[(
c
(
!
0
),
x
(
b
,
null
,
y
(
f
(
o
).
cart
.
list
,((
e
,
n
)
=>
(
c
(),
r
(
le
,{
inset
:
""
,
class
:
"mg-v-40"
},{
default
:
u
((()
=>
[
f
(
o
).
switch
.
brand
?(
c
(),
r
(
E
,{
key
:
0
,
"value-class"
:
"flex"
,
border
:
!
1
},{
default
:
u
((()
=>
[
m
(
z
,{
"icon-size"
:
"17px"
,
modelValue
:
e
.
all
,
"onUpdate:modelValue"
:
t
=>
e
.
all
=
t
,
onClick
:()
=>
{
$
(
e
),
D
(
n
)}},
null
,
8
,[
"modelValue"
,
"onUpdate:modelValue"
,
"onClick"
]),
m
(
s
,{
class
:
"pd-l-20 text-s"
,
onClick
:
t
[
0
]
||
(
t
[
0
]
=
e
=>
R
(
""
))},{
default
:
u
((()
=>
[
h
(
_
(
e
.
brand
.
name
)
+
" "
,
1
),
m
(
l
,{
name
:
"arrow"
})])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)):
g
(
"v-if"
,
!
0
),
f
(
o
).
switch
.
brand
?(
c
(),
r
(
V
,{
key
:
1
,
class
:
"mg-v-0"
})):
g
(
"v-if"
,
!
0
),
m
(
te
,{
"icon-size"
:
"17px"
,
modelValue
:
e
.
select
,
"onUpdate:modelValue"
:
t
=>
e
.
select
=
t
,
ref_for
:
!
0
,
ref
:
e
=>
{
e
&&
(
w
.
value
[
n
]
=
e
)}},{
default
:
u
((()
=>
[(
c
(
!
0
),
x
(
b
,
null
,
y
(
e
.
list
,(
t
=>
(
c
(),
r
(
ee
,
null
,{
right
:
u
((()
=>
[
m
(
Z
,{
class
:
"swipe_btn"
,
square
:
""
,
type
:
"primary"
,
onClick
:
e
=>
G
([
t
])},{
default
:
u
((()
=>
[
h
(
"移入"
),
p
(
"br"
),
h
(
"收藏夹"
)])),
_
:
2
},
1032
,[
"onClick"
]),
m
(
Z
,{
class
:
"swipe_btn"
,
type
:
"danger"
,
text
:
"删除"
,
onClick
:
e
=>
A
([
t
])},
null
,
8
,[
"onClick"
])])),
default
:
u
((()
=>
[
m
(
E
,
null
,{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"flex"
},{
default
:
u
((()
=>
[
g
(
" 编辑时,放开选择 "
),
m
(
z
,{
name
:
t
,
onClick
:
l
=>
$
(
e
,
t
),
disabled
:
!
f
(
o
).
cart
.
edit
&&
U
(
t
)},
null
,
8
,[
"name"
,
"onClick"
,
"disabled"
]),
m
(
L
,{
class
:
"pd-l-20"
,
height
:
"156rpx"
,
width
:
"156rpx"
,
fit
:
"cover"
,
src
:
t
.
mainImg
,
onClick
:
e
=>
M
(
t
),
"loading-icon"
:
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png"
,
"icon-size"
:
"156rpx"
},
null
,
8
,[
"src"
,
"onClick"
]),
m
(
s
,{
class
:
"pd-l-20"
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"ellipsis text-s"
,
style
:{
width
:
"calc(100vw - 360rpx)"
}},{
default
:
u
((()
=>
[
h
(
_
(
t
.
title
),
1
)])),
_
:
2
},
1024
),
m
(
s
,{
class
:
"justify-between justify-middle mg-b-10 pd-h-15 bg-gray text-ss"
,
style
:{
"border-radius"
:
"5rpx"
,
height
:
"23px"
},
onClick
:
l
=>
function
(
e
,
t
){
o
.
switch
.
changeGood
,
console
.
log
(
"ljong:onChangeGood"
,
e
,
t
)}(
e
,
t
)},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"ellipsis"
,
style
:{
width
:
"calc(100vw - 410rpx)"
}},{
default
:
u
((()
=>
[
h
(
_
(
t
.
info
),
1
)])),
_
:
2
},
1024
),
f
(
o
).
switch
.
changeGood
?(
c
(),
r
(
l
,{
key
:
0
,
name
:
"arrow-down"
})):
g
(
"v-if"
,
!
0
)])),
_
:
2
},
1032
,[
"onClick"
]),
m
(
s
,{
class
:
"flex justify-middle"
},{
default
:
u
((()
=>
[
m
(
L
,{
width
:
"30px"
,
height
:
"16px"
,
src
:
t
.
zoneIcon
},
null
,
8
,[
"src"
]),
f
(
o
).
switch
.
delivery
?(
c
(),
r
(
a
,{
key
:
0
,
class
:
"text-ss text-yellow pd-l-50"
},{
default
:
u
((()
=>
[
h
(
" 交货期:"
+
_
(
t
.
deliveryTimeStr
),
1
)])),
_
:
2
},
1024
)):
g
(
"v-if"
,
!
0
),
f
(
o
).
switch
.
stock
?(
c
(),
r
(
a
,{
key
:
1
,
class
:
"text-ss text-yellow pd-l-50"
},{
default
:
u
((()
=>
[
h
(
" 库存:"
+
_
(
t
.
stock
),
1
)])),
_
:
2
},
1024
)):
g
(
"v-if"
,
!
0
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
m
(
s
,{
class
:
"flex"
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"text-center mg-l-50 mg-r-20"
,
style
:{
width
:
"160rpx"
}},{
default
:
u
((()
=>
[
t
.
saleable
?
t
.
moq
>
t
.
stock
?(
c
(),
r
(
a
,{
key
:
1
,
class
:
"text-red text-ss scale-85 scale-rt"
},{
default
:
u
((()
=>
[
h
(
"暂时无货"
)])),
_
:
1
})):
t
.
isBrandAgent
?
g
(
"v-if"
,
!
0
):(
c
(),
r
(
a
,{
key
:
2
,
class
:
"text-red text-ss scale-85 scale-rt"
},{
default
:
u
((()
=>
[
h
(
"商家未代理该品牌"
)])),
_
:
1
})):(
c
(),
r
(
a
,{
key
:
0
,
class
:
"text-red text-ss scale-85 scale-t"
},{
default
:
u
((()
=>
[
h
(
"商品已下架"
)])),
_
:
1
}))])),
_
:
2
},
1024
),
m
(
s
,{
style
:{
width
:
"calc(100vw - 360rpx)"
}},{
default
:
u
((()
=>
[
null
!==
t
.
salePrice
?(
c
(),
x
(
b
,{
key
:
0
},[
m
(
s
,{
class
:
"text-gray text-ss scale-85 scale-lt mg-t-5-m"
},{
default
:
u
((()
=>
[
h
(
"零售价:¥"
+
_
(
t
.
productPrice
),
1
)])),
_
:
2
},
1024
),
m
(
s
,{
class
:
"justify-between justify-middle mg-t-10-m"
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"text-darkGray text-bold text-ss"
},{
default
:
u
((()
=>
[
h
(
"优惠价:¥"
+
_
(
t
.
salePrice
),
1
)])),
_
:
2
},
1024
),
m
(
N
,{
disabled
:
U
(
t
),
modelValue
:
t
.
productQty
,
"onUpdate:modelValue"
:
e
=>
t
.
productQty
=
e
,
theme
:
"round"
,
"button-size"
:
"15px"
,
"before-change"
:
e
=>
q
(
e
,
t
),
min
:
t
.
moq
,
max
:
t
.
stock
,
onFocus
:
e
=>
W
(
t
)},
null
,
8
,[
"disabled"
,
"modelValue"
,
"onUpdate:modelValue"
,
"before-change"
,
"min"
,
"max"
,
"onFocus"
])])),
_
:
2
},
1024
)],
64
)):(
c
(),
r
(
s
,{
key
:
1
,
class
:
"justify-between justify-middle mg-t-10-m"
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"text-darkGray text-bold text-ss"
},{
default
:
u
((()
=>
[
h
(
"零售价:¥"
+
_
(
t
.
productPrice
),
1
)])),
_
:
2
},
1024
),
m
(
N
,{
disabled
:
U
(
t
),
modelValue
:
t
.
productQty
,
"onUpdate:modelValue"
:
e
=>
t
.
productQty
=
e
,
theme
:
"round"
,
"button-size"
:
"15px"
,
"before-change"
:
e
=>
q
(
e
,
t
),
min
:
t
.
moq
,
max
:
t
.
stock
,
onFocus
:
e
=>
W
(
t
)},
null
,
8
,[
"disabled"
,
"modelValue"
,
"onUpdate:modelValue"
,
"before-change"
,
"min"
,
"max"
,
"onFocus"
])])),
_
:
2
},
1024
))])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
f
(
o
).
switch
.
cartRemark
?(
c
(),
r
(
s
,{
key
:
0
,
class
:
"justify-middle justify-middle mg-l-80 mg-t-20 mg-b-5 pd-l-20 pd-r-10 bg-gray"
,
style
:{
"border-radius"
:
"5rpx"
,
height
:
"28px"
,
width
:
"calc(100vw - 235rpx)"
}},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"text-ss text-darkGray"
},{
default
:
u
((()
=>
[
h
(
"商品备注"
)])),
_
:
1
}),
m
(
s
,{
class
:
"text-ss pd-h-15 ellipsis"
,
style
:{
width
:
"calc(100vw - 370rpx)"
},
onClick
:
e
=>
F
(
t
)},{
default
:
u
((()
=>
[
t
.
remark
?(
c
(),
r
(
a
,{
key
:
0
,
class
:
"text-black ellipsis"
},{
default
:
u
((()
=>
[
h
(
_
(
t
.
remark
),
1
)])),
_
:
2
},
1024
)):(
c
(),
r
(
a
,{
key
:
1
,
class
:
"text-gray ellipsis"
},{
default
:
u
((()
=>
[
h
(
"选填,请先和商家协商一致"
)])),
_
:
1
}))])),
_
:
2
},
1032
,[
"onClick"
])])),
_
:
2
},
1024
)):
g
(
"v-if"
,
!
0
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)))),
256
))])),
_
:
2
},
1032
,[
"modelValue"
,
"onUpdate:modelValue"
])])),
_
:
2
},
1024
)))),
256
))])),
_
:
1
})):(
c
(),
r
(
s
,{
key
:
1
,
style
:{
"min-height"
:
"calc(100vh - 180px)"
}},{
default
:
u
((()
=>
[(
c
(
!
0
),
x
(
b
,
null
,
y
(
f
(
o
).
cart
.
list
,((
e
,
t
)
=>
(
c
(),
r
(
le
,{
class
:
"mg-v-px-10"
},{
default
:
u
((()
=>
[
f
(
o
).
switch
.
brand
?(
c
(),
r
(
V
,{
key
:
0
,
class
:
"mg-v-0"
})):
g
(
"v-if"
,
!
0
),
m
(
te
,{
"icon-size"
:
"17px"
,
modelValue
:
e
.
select
,
"onUpdate:modelValue"
:
t
=>
e
.
select
=
t
,
ref_for
:
!
0
,
ref
:
e
=>
{
e
&&
(
w
.
value
[
t
]
=
e
)}},{
default
:
u
((()
=>
[(
c
(
!
0
),
x
(
b
,
null
,
y
(
e
.
list
,(
t
=>
(
c
(),
r
(
ee
,
null
,{
right
:
u
((()
=>
[
m
(
Z
,{
class
:
"swipe_btn"
,
square
:
""
,
type
:
"primary"
,
onClick
:
e
=>
G
([
t
])},{
default
:
u
((()
=>
[
h
(
"移入"
),
p
(
"br"
),
h
(
"收藏夹"
)])),
_
:
2
},
1032
,[
"onClick"
]),
m
(
Z
,{
class
:
"swipe_btn"
,
type
:
"danger"
,
text
:
"删除"
,
onClick
:
e
=>
A
([
t
])},
null
,
8
,[
"onClick"
])])),
default
:
u
((()
=>
[
m
(
E
,{
border
:
!
1
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"flex"
},{
default
:
u
((()
=>
[
m
(
z
,{
name
:
t
,
onClick
:
l
=>
$
(
e
,
t
),
disabled
:
!
f
(
o
).
cart
.
edit
&&
U
(
t
)},
null
,
8
,[
"name"
,
"onClick"
,
"disabled"
]),
m
(
s
,{
class
:
"justify-middle"
,
style
:{
position
:
"relative"
},
onClick
:
e
=>
M
(
t
)},{
default
:
u
((()
=>
[
m
(
L
,{
class
:
"pd-l-px-10"
,
height
:
"110px"
,
width
:
"110px"
,
fit
:
"cover"
,
src
:
t
.
mainImg
,
"loading-icon"
:
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png"
,
"icon-size"
:
"110px"
},
null
,
8
,[
"src"
]),
g
(
"购物车活动角标"
),
t
.
subScriptImgUrl
?(
c
(),
x
(
"div"
,{
key
:
0
,
class
:
"sign"
},[
p
(
"img"
,{
src
:
t
.
subScriptImgUrl
,
alt
:
""
},
null
,
8
,[
"src"
]),
p
(
"div"
,{
class
:
"discount"
,
style
:{
color
:
"rgba(247, 103, 67, 1)"
}},
_
(
t
.
discount
),
1
)])):
g
(
"v-if"
,
!
0
),(
c
(
!
0
),
x
(
b
,
null
,
y
(
t
.
leftDownIcons
,((
e
,
t
)
=>
(
c
(),
x
(
"span"
,{
key
:
t
,
style
:
B
([{
left
:
35
*
t
+
"px"
},{
position
:
"absolute"
,
bottom
:
"0"
}])},[
m
(
L
,{
width
:
"32px"
,
height
:
"16px"
,
src
:
e
},
null
,
8
,[
"src"
])],
4
)))),
128
))])),
_
:
2
},
1032
,[
"onClick"
]),
m
(
s
,{
class
:
"pd-l-px-10"
,
onClick
:
e
=>
M
(
t
)},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"text-m ellipsis line_over2"
,
style
:{
width
:
"calc(100vw - 180px)"
}},{
default
:
u
((()
=>
[
h
(
_
(
t
.
title
),
1
)])),
_
:
2
},
1024
),
m
(
s
,{
class
:
"justify-between justify-middle text-m"
,
style
:{
height
:
"23px"
}},{
default
:
u
((()
=>
[
m
(
s
,{
style
:{
width
:
"calc(100vw - 180px)"
}},{
default
:
u
((()
=>
[
h
(
"规格:"
+
_
(
t
.
info
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
t
.
salePrice
?(
c
(),
x
(
b
,{
key
:
0
},[
t
.
actPrice
?(
c
(),
r
(
s
,{
key
:
0
,
class
:
"text-gray text-m mg-t-5-m"
},{
default
:
u
((()
=>
[
h
(
"零售价:¥"
+
_
(
t
.
productPrice
),
1
)])),
_
:
2
},
1024
)):(
c
(),
r
(
s
,{
key
:
1
,
class
:
"text-gray text-m mg-t-5-m line-through"
},{
default
:
u
((()
=>
[
h
(
"零售价:¥"
+
_
(
t
.
productPrice
),
1
)])),
_
:
2
},
1024
)),
t
.
actPrice
?(
c
(),
r
(
s
,{
key
:
2
,
class
:
"text-gray line-through"
},{
default
:
u
((()
=>
[
h
(
"优惠价:¥"
+
_
(
t
.
salePrice
),
1
)])),
_
:
2
},
1024
)):(
c
(),
r
(
s
,{
key
:
3
,
class
:
"text-orange text-m mg-t-5-m"
},{
default
:
u
((()
=>
[
h
(
"优惠价:¥"
+
_
(
t
.
salePrice
),
1
)])),
_
:
2
},
1024
)),
t
.
actPrice
?(
c
(),
r
(
s
,{
key
:
4
,
class
:
"text-orange text-ss"
},{
default
:
u
((()
=>
[
h
(
"活动价¥ "
),
m
(
a
,{
class
:
"text-bold text-l"
},{
default
:
u
((()
=>
[
h
(
_
(
t
.
actPrice
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)):
g
(
"v-if"
,
!
0
)],
64
)):(
c
(),
x
(
b
,{
key
:
1
},[
t
.
actPrice
?(
c
(),
r
(
s
,{
key
:
0
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"text-gray text-ss line-through"
},{
default
:
u
((()
=>
[
h
(
"零售价¥"
+
_
(
t
.
productPrice
),
1
)])),
_
:
2
},
1024
),
m
(
s
,{
class
:
"text-orange text-ss"
},{
default
:
u
((()
=>
[
h
(
"活动价¥ "
),
m
(
a
,{
class
:
"text-bold text-l"
},{
default
:
u
((()
=>
[
h
(
_
(
t
.
actPrice
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)):(
c
(),
r
(
a
,{
key
:
1
,
class
:
"text-orange text-m mg-t-5-m"
},{
default
:
u
((()
=>
[
h
(
"零售价¥"
+
_
(
t
.
productPrice
),
1
)])),
_
:
2
},
1024
))],
2112
))])),
_
:
2
},
1032
,[
"onClick"
])])),
_
:
2
},
1024
)])),
_
:
2
},
1024
),
m
(
V
,{
class
:
"mg-v-0"
}),
m
(
E
,
null
,{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"justify-between"
},{
default
:
u
((()
=>
[
m
(
s
,
null
,{
default
:
u
((()
=>
[
t
.
saleable
?
t
.
moq
>
t
.
stock
?(
c
(),
r
(
a
,{
key
:
1
,
class
:
"text-red text-l"
},{
default
:
u
((()
=>
[
h
(
"暂时无货"
)])),
_
:
1
})):
t
.
isBrandAgent
?(
c
(),
r
(
a
,{
key
:
3
,
class
:
"text-l"
},{
default
:
u
((()
=>
[
h
(
"商品可售"
)])),
_
:
1
})):(
c
(),
r
(
a
,{
key
:
2
,
class
:
"text-red text-l"
},{
default
:
u
((()
=>
[
h
(
"商家未代理该品牌"
)])),
_
:
1
})):(
c
(),
r
(
a
,{
key
:
0
,
class
:
"text-red text-l"
},{
default
:
u
((()
=>
[
h
(
"商品已下架"
)])),
_
:
1
}))])),
_
:
2
},
1024
),
m
(
N
,{
disabled
:
U
(
t
),
modelValue
:
t
.
productQty
,
"onUpdate:modelValue"
:
e
=>
t
.
productQty
=
e
,
"button-size"
:
"25px"
,
"input-width"
:
"60px"
,
"before-change"
:
e
=>
q
(
e
,
t
),
min
:
t
.
moq
,
max
:
t
.
stock
,
onFocus
:
e
=>
W
(
t
)},
null
,
8
,[
"disabled"
,
"modelValue"
,
"onUpdate:modelValue"
,
"before-change"
,
"min"
,
"max"
,
"onFocus"
])])),
_
:
2
},
1024
),
f
(
o
).
switch
.
cartRemark
?(
c
(),
r
(
s
,{
key
:
0
,
class
:
"justify-middle justify-middle mg-l-80 mg-t-20 mg-b-5 pd-l-20 pd-r-10 bg-gray"
,
style
:{
"border-radius"
:
"5rpx"
,
height
:
"28px"
,
width
:
"calc(100vw - 235rpx)"
}},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"text-ss text-darkGray"
},{
default
:
u
((()
=>
[
h
(
"商品备注"
)])),
_
:
1
}),
m
(
s
,{
class
:
"text-ss pd-h-15 ellipsis"
,
style
:{
width
:
"calc(100vw - 370rpx)"
},
onClick
:
e
=>
F
(
t
)},{
default
:
u
((()
=>
[
t
.
remark
?(
c
(),
r
(
a
,{
key
:
0
,
class
:
"text-black ellipsis"
},{
default
:
u
((()
=>
[
h
(
_
(
t
.
remark
),
1
)])),
_
:
2
},
1024
)):(
c
(),
r
(
a
,{
key
:
1
,
class
:
"text-gray ellipsis"
},{
default
:
u
((()
=>
[
h
(
"选填,请先和商家协商一致"
)])),
_
:
1
}))])),
_
:
2
},
1032
,[
"onClick"
])])),
_
:
2
},
1024
)):
g
(
"v-if"
,
!
0
)])),
_
:
2
},
1024
),
m
(
s
,{
class
:
"text-red text-ss pd-h-10 pd-v-15"
,
style
:{
background
:
"#fffaf7"
}},{
default
:
u
((()
=>
[
h
(
" 工厂库存:"
+
_
(
t
.
stock
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1024
)))),
256
))])),
_
:
2
},
1032
,[
"modelValue"
,
"onUpdate:modelValue"
])])),
_
:
2
},
1024
)))),
256
))])),
_
:
1
}))])),
_
:
1
})):(
c
(),
r
(
s
,{
key
:
1
,
class
:
"justify-center"
,
style
:{
"min-height"
:
"calc(100vh - 180px)"
}},{
default
:
u
((()
=>
[
m
(
ae
,{
description
:
"购物车竟然是空的"
}),
m
(
Z
,{
class
:
"text-l"
,
color
:
"linear-gradient(315deg, #FE521F 0%, #FE7902 100%)"
,
round
:
""
,
block
:
""
,
style
:{
width
:
"240rpx"
},
onClick
:
t
[
1
]
||
(
t
[
1
]
=
e
=>
R
(
"/"
))},{
default
:
u
((()
=>
[
h
(
" 去逛逛 "
)])),
_
:
1
})])),
_
:
1
}))])),
_
:
1
},
8
,[
"modelValue"
]),
f
(
o
).
cart
.
list
.
length
>
0
?(
c
(),
r
(
ie
,{
key
:
0
,
class
:
"mg-b-px-50 pd-l-30 pd-r-20 custom-width justify-between sh-t"
},{
default
:
u
((()
=>
[
m
(
z
,{
class
:
"text-m"
,
"icon-size"
:
"17px"
,
modelValue
:
f
(
o
).
all
,
"onUpdate:modelValue"
:
t
[
4
]
||
(
t
[
4
]
=
e
=>
f
(
o
).
all
=
e
),
onClick
:
t
[
5
]
||
(
t
[
5
]
=
e
=>
D
())},{
default
:
u
((()
=>
[
h
(
"全选"
)])),
_
:
1
},
8
,[
"modelValue"
]),
m
(
s
,{
class
:
"justify-between justify-middle"
},{
default
:
u
((()
=>
[
f
(
o
).
cart
.
edit
?(
c
(),
x
(
b
,{
key
:
0
},[
m
(
ne
,{
style
:{
width
:
"180rpx"
},
type
:
"danger"
,
text
:
"删除"
,
onClick
:
t
[
6
]
||
(
t
[
6
]
=
e
=>
J
(
"是否删除选中商品"
,
A
,
f
(
O
)))}),
m
(
ne
,{
style
:{
width
:
"180rpx"
},
type
:
"warning"
,
text
:
"移入收藏夹"
,
onClick
:
t
[
7
]
||
(
t
[
7
]
=
e
=>
J
(
"是否收藏选中商品"
,
G
,
f
(
O
)))})],
64
)):(
c
(),
x
(
b
,{
key
:
1
},[
m
(
s
,{
class
:
"text-right text-black pd-r-20"
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"text-m"
},{
default
:
u
((()
=>
[
h
(
"合计:"
),
m
(
a
,{
class
:
"text-orange"
},{
default
:
u
((()
=>
[
h
(
"¥"
)])),
_
:
1
}),
m
(
a
,{
class
:
"text-orange text-xl text-bold"
},{
default
:
u
((()
=>
[
h
(
_
(
f
(
o
).
sum
),
1
)])),
_
:
1
})])),
_
:
1
}),
f
(
o
).
switch
.
discount
?(
c
(),
r
(
s
,{
key
:
0
,
class
:
"text-s"
},{
default
:
u
((()
=>
[
h
(
"已优惠:¥"
),
m
(
a
,{
class
:
"text-l text-bold"
},{
default
:
u
((()
=>
[
h
(
"0.00"
)])),
_
:
1
})])),
_
:
1
})):
g
(
"v-if"
,
!
0
)])),
_
:
1
}),
m
(
ne
,{
style
:{
width
:
"220rpx"
},
color
:
"#ff6600"
,
type
:
"primary"
,
text
:
`去结算(
${
f
(
O
).
length
}
)`
,
onClick
:
t
[
8
]
||
(
t
[
8
]
=
e
=>
{
return
t
=
f
(
O
),
void
(
o
.
loading
||
(
0
!=
t
.
length
?(
o
.
loading
=!
0
,
n
.
cartCheck
({
cartIds
:
t
.
map
((
e
=>
e
.
cartId
)),
link
:
i
(
"subdomain"
)}).
then
((()
=>
{
let
e
=
[];
t
.
forEach
((
t
=>
{
e
.
push
({
cartId
:
t
.
cartId
,
count
:
t
.
productQty
,
skuId
:
t
.
skuId
})})),
o
.
loading
=!
1
,
k
({
url
:
"/pages/order/beforeconfirm?list="
+
encodeURIComponent
(
JSON
.
stringify
(
e
))})})).
catch
((()
=>
{
o
.
loading
=!
1
}))):
v
(
"请选择商品"
)));
var
t
})},
null
,
8
,[
"text"
])],
64
))])),
_
:
1
})])),
_
:
1
})):
g
(
"v-if"
,
!
0
),
m
(
de
,{
show
:
f
(
o
).
remark
.
show
,
"onUpdate:show"
:
t
[
10
]
||
(
t
[
10
]
=
e
=>
f
(
o
).
remark
.
show
=
e
),
"show-cancel-button"
:
""
,
onConfirm
:
Q
},{
default
:
u
((()
=>
[
m
(
oe
,{
modelValue
:
f
(
o
).
remark
.
value
,
"onUpdate:modelValue"
:
t
[
9
]
||
(
t
[
9
]
=
e
=>
f
(
o
).
remark
.
value
=
e
),
rows
:
"3"
,
autosize
:
""
,
type
:
"textarea"
,
placeholder
:
"选填,请先和商家协商一致"
},
null
,
8
,[
"modelValue"
])])),
_
:
1
},
8
,[
"show"
]),
m
(
ce
,{
onSubmit
:
Y
,
class
:
"round"
},{
default
:
u
((()
=>
[
m
(
de
,{
class
:
"withBg pd-b-px-70"
,
show
:
f
(
o
).
num
.
show
,
"onUpdate:show"
:
t
[
15
]
||
(
t
[
15
]
=
e
=>
f
(
o
).
num
.
show
=
e
),
theme
:
"round-button"
,
width
:
"264px"
},{
title
:
u
((()
=>
[
m
(
s
,{
class
:
"pd-h-px-20"
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"mg-t-px-10-m text-bold"
},{
default
:
u
((()
=>
[
h
(
"设置商品数量"
)])),
_
:
1
}),
g
(
" 起订量固定为1就不提示了 "
),
m
(
s
,{
class
:
"text-gray text-s"
,
style
:{
"min-height"
:
"20px"
}},{
default
:
u
((()
=>
[
h
(
"库存:"
+
_
(
f
(
o
).
num
.
gItem
.
stock
),
1
)])),
_
:
1
})])),
_
:
1
})])),
footer
:
u
((()
=>
[
m
(
ie
,{
class
:
"pd-h-px-15 pd-b-px-15"
},{
default
:
u
((()
=>
[
m
(
ne
,{
type
:
"warning"
,
text
:
"取消"
,
onClick
:
t
[
14
]
||
(
t
[
14
]
=
e
=>
f
(
o
).
num
.
show
=!
1
)}),
m
(
ne
,{
type
:
"danger"
,
text
:
"保存"
,
"native-type"
:
"submit"
})])),
_
:
1
})])),
default
:
u
((()
=>
[
m
(
s
,{
class
:
"pd-h-px-20 pd-v-px-10"
},{
default
:
u
((()
=>
[
m
(
oe
,{
modelValue
:
f
(
o
).
num
.
value
,
"onUpdate:modelValue"
:
t
[
11
]
||
(
t
[
11
]
=
e
=>
f
(
o
).
num
.
value
=
e
),
ref_key
:
"numField"
,
ref
:
C
,
class
:
P
({
"field-focus"
:
"num"
==
f
(
o
).
focus
}),
type
:
"digit"
,
placeholder
:
"请输入商品数量"
,
onFocus
:
t
[
12
]
||
(
t
[
12
]
=
e
=>
K
(
"num"
)),
onBlur
:
t
[
13
]
||
(
t
[
13
]
=
e
=>
K
(
""
)),
clearable
:
""
,
autocomplete
:
"off"
,
"clear-trigger"
:
"always"
},
null
,
8
,[
"modelValue"
,
"class"
])])),
_
:
1
})])),
_
:
1
},
8
,[
"show"
])])),
_
:
1
})])),
_
:
1
})}}}),[[
"__scopeId"
,
"data-v-68e2f486"
]]);
var
$
=
Q
(
e
({
setup
(
e
){
const
a
=
t
({
user
:{},
phone
:
""
,
actionList
:[{
name
:
"待付款"
,
url
:
"/pages/order/orderList?index=1"
,
icon
:
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/order_wait_pay.png"
,
badge
:
""
},{
name
:
"待发货"
,
url
:
"/pages/order/orderList?index=2"
,
icon
:
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/order_wait_deliver.png"
,
badge
:
""
},{
name
:
"待收货"
,
url
:
"/pages/order/orderList?index=3"
,
icon
:
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/order_wait_receive.png"
,
badge
:
""
},{
name
:
"我的订单"
,
url
:
"/pages/order/orderList?index=0"
,
icon
:
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/order_all.png"
,
badge
:
""
}],
good
:{
loading
:
!
1
,
finished
:
!
1
,
fail
:
!
1
,
page
:
0
,
list
:[]}});
function
s
(
e
){
const
t
=
{};
return
e
.
replace
(
/
([^
?&=
]
+
)
=
([^
&
]
+
)
/g
,((
e
,
l
,
a
)
=>
t
[
l
]
=
a
)),
t
}
function
p
(){
n
.
accountInfo
({
phone
:
a
.
phone
}).
then
((
e
=>
{
a
.
user
=
e
}))}
function
v
(){
n
.
getOrderCount
().
then
((
e
=>
{
a
.
actionList
[
0
].
badge
=
e
.
waitForPay
,
a
.
actionList
[
1
].
badge
=
e
.
waitForDelivery
,
a
.
actionList
[
2
].
badge
=
e
.
waitForReceive
}))}
function
w
(
e
){
e
&&
k
({
url
:
e
})}
function
C
(){
a
.
good
.
loading
||
a
.
good
.
fail
||
(
a
.
good
.
loading
=!
0
,
a
.
good
.
page
+=
1
,
n
.
productList
({
sortType
:
0
,
pageSize
:
20
,
link
:
i
(
"subdomain"
)}).
then
((
e
=>
{
e
&&
(
e
&&
e
.
hasNextPage
||
(
a
.
good
.
finished
=!
0
),
a
.
good
.
list
.
push
(...
e
.
list
))})).
catch
((()
=>
{
a
.
good
.
fail
=!
0
})).
finally
((()
=>
{
a
.
good
.
loading
=!
1
})))}
return
O
((()
=>
{
a
.
phone
&&
(
p
(),
v
())})),
l
((()
=>
{
console
.
log
(
window
.
location
.
href
,
"window.location.href"
);
let
e
=!!
s
(
window
.
location
.
href
).
mobilePhone
;
if
(
console
.
log
(
e
,
"href"
),
e
)
n
.
wxlogin
({
mobilePhone
:
s
(
window
.
location
.
href
).
mobilePhone
}).
then
((
e
=>
{
o
(
"user"
,
e
),
o
(
"login"
,{
store
:
!
1
,
phone
:
s
(
window
.
location
.
href
).
mobilePhone
,
pwd
:
""
}),
a
.
phone
=
e
.
account
,
p
(),
v
(),
C
()}));
else
{
const
e
=
i
(
"user"
)
||
{
account
:
void
0
};
if
(
e
.
token
){
if
(
a
.
phone
=
e
.
account
,
!
a
.
phone
)
return
void
E
.
alert
({
title
:
"数据异常"
,
message
:
"当前用户缺少手机信息,请联系开发人员#021"
,
confirmButtonText
:
"返回首页"
}).
then
((()
=>
{
V
({
url
:
"/"
})}));
p
(),
v
(),
C
()}
else
{
i
(
"isWxjs_environment"
)
||!
1
?
window
.
_wx
.
miniProgram
.
redirectTo
({
url
:
"/pages/login/login"
}):
E
.
confirm
({
message
:
"您尚未登录,请前往登录"
,
title
:
"提示"
,
cancelButtonText
:
"返回首页"
}).
then
((()
=>
{
V
({
url
:
"/pages/login/login"
})})).
catch
((()
=>
{
V
({
url
:
"/"
})}))}}})),(
e
,
t
)
=>
{
const
l
=
d
(
"van-image"
),
s
=
I
,
n
=
d
(
"van-icon"
),
i
=
d
(
"van-badge"
),
o
=
d
(
"van-cell"
),
p
=
d
(
"van-divider"
),
k
=
d
(
"van-cell-group"
),
v
=
j
,
C
=
d
(
"van-sticky"
),
T
=
d
(
"van-col"
),
z
=
d
(
"van-row"
),
E
=
d
(
"van-list"
);
return
c
(),
r
(
s
,{
class
:
"pd-b-px-55"
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"top_box"
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"user_box justify-between justify-middle pd-l-50 pd-r-30 pd-v-45"
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"justify-middle"
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"user_head"
},{
default
:
u
((()
=>
[
m
(
l
,{
fit
:
"cover"
,
width
:
"80rpx"
,
height
:
"80rpx"
,
onClick
:
t
[
0
]
||
(
t
[
0
]
=
e
=>
{
return
t
=
f
(
a
).
user
.
userHeadImage
||
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/mall_default.png"
,
void
S
({
images
:[
t
],
closeable
:
!
0
});
var
t
}),
round
:
""
,
src
:
f
(
a
).
user
.
userHeadImage
||
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/mall_default.png"
},
null
,
8
,[
"src"
])])),
_
:
1
}),
m
(
s
,{
class
:
"mg-l-30 text-white text-xl"
},{
default
:
u
((()
=>
[
h
(
_
(
f
(
a
).
user
.
userPhone
),
1
)])),
_
:
1
})])),
_
:
1
}),
m
(
s
,{
class
:
"user_edit btn"
,
onClick
:
t
[
1
]
||
(
t
[
1
]
=
e
=>
w
(
"/pages/my/detail"
))},{
default
:
u
((()
=>
[
h
(
"账户管理 "
),
m
(
n
,{
name
:
"edit"
})])),
_
:
1
})])),
_
:
1
}),
m
(
k
,{
inset
:
""
,
class
:
"mg-b-40"
},{
default
:
u
((()
=>
[
m
(
o
,{
border
:
!
1
},{
title
:
u
((()
=>
[
m
(
s
,{
class
:
"flex wrap justify-between"
},{
default
:
u
((()
=>
[(
c
(
!
0
),
x
(
b
,
null
,
y
(
f
(
a
).
actionList
,(
e
=>
(
c
(),
r
(
s
,{
class
:
"text-center btn pd-h-25 pd-v-20"
,
onClick
:
t
=>
w
(
e
.
url
)},{
default
:
u
((()
=>
[
m
(
i
,{
content
:
e
.
badge
>
0
?
e
.
badge
:
""
},{
default
:
u
((()
=>
[
m
(
l
,{
width
:
"32px"
,
height
:
"32px"
,
src
:
e
.
icon
},
null
,
8
,[
"src"
])])),
_
:
2
},
1032
,[
"content"
]),
m
(
s
,{
class
:
"text-s"
},{
default
:
u
((()
=>
[
h
(
_
(
e
.
name
),
1
)])),
_
:
2
},
1024
)])),
_
:
2
},
1032
,[
"onClick"
])))),
256
))])),
_
:
1
})])),
_
:
1
}),
m
(
p
,{
class
:
"mg-v-0"
}),
m
(
o
,{
border
:
!
1
},{
title
:
u
((()
=>
[
m
(
s
,{
class
:
"justify-between text-center"
},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"long_action_btn justify-center btn"
,
onClick
:
t
[
2
]
||
(
t
[
2
]
=
e
=>
w
(
"/pages/my/fav"
))},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"justify-middle"
},{
default
:
u
((()
=>
[
m
(
l
,{
class
:
"pd-r-px-10"
,
width
:
"20px"
,
height
:
"20px"
,
src
:
"/static/img/fav.png"
}),
h
(
" 我的收藏 "
)])),
_
:
1
})])),
_
:
1
}),
m
(
s
,{
class
:
"v-divider"
}),
m
(
s
,{
class
:
"long_action_btn justify-center btn"
,
onClick
:
t
[
3
]
||
(
t
[
3
]
=
e
=>
w
(
"/pages/my/address"
))},{
default
:
u
((()
=>
[
m
(
s
,{
class
:
"justify-middle"
},{
default
:
u
((()
=>
[
m
(
l
,{
class
:
"pd-r-px-10"
,
width
:
"20px"
,
height
:
"20px"
,
src
:
"/static/img/address.png"
}),
h
(
" 收货地址 "
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
}),
f
(
a
).
good
.
list
.
length
>
0
?(
c
(),
r
(
C
,{
key
:
0
},{
default
:
u
((()
=>
[
m
(
k
,{
class
:
"sh"
,
style
:{
"border-radius"
:
"8px 8px 0 0"
}},{
default
:
u
((()
=>
[
m
(
o
,{
style
:{
"border-radius"
:
"8px 8px 0 0"
}},{
title
:
u
((()
=>
[
m
(
s
,{
class
:
"justify-middle"
},{
default
:
u
((()
=>
[
m
(
v
,{
class
:
"text-l"
},{
default
:
u
((()
=>
[
h
(
"为您推荐"
)])),
_
:
1
}),
m
(
s
,{
class
:
"v-divider mg-h-px-10"
}),
m
(
v
,{
class
:
"text-ss text-gray"
},{
default
:
u
((()
=>
[
h
(
"大牌任你选"
)])),
_
:
1
})])),
_
:
1
})])),
"right-icon"
:
u
((()
=>
[
m
(
s
,{
class
:
"justify-middle text-daryGray text-s btn"
,
onClick
:
t
[
4
]
||
(
t
[
4
]
=
e
=>
w
(
"/pages/goodList/index"
))},{
default
:
u
((()
=>
[
h
(
" 查看更多 "
),
m
(
n
,{
name
:
"arrow"
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})):
g
(
"v-if"
,
!
0
),
m
(
E
,{
loading
:
f
(
a
).
good
.
loading
},{
default
:
u
((()
=>
[
m
(
z
,{
gutter
:
"12"
,
style
:{
margin
:
"15rpx 20rpx"
}},{
default
:
u
((()
=>
[(
c
(
!
0
),
x
(
b
,
null
,
y
(
f
(
a
).
good
.
list
,(
e
=>
(
c
(),
r
(
T
,{
span
:
"12"
,
style
:{
"margin-bottom"
:
"25rpx"
}},{
default
:
u
((()
=>
[
m
(
F
,{
item
:
e
},
null
,
8
,[
"item"
])])),
_
:
2
},
1024
)))),
256
))])),
_
:
1
})])),
_
:
1
},
8
,[
"loading"
]),
m
(
R
)])),
_
:
1
})}}}),[[
"__scopeId"
,
"data-v-08ab2b04"
]]);
const
H
=
e
({
setup
(
e
){
U
((
e
=>
{}));
const
a
=
t
({
tabIndex
:
0
,
list
:[{
text
:
"首页"
,
icon
:
"wap-home"
},{
text
:
"分类"
,
icon
:
"bars"
},{
text
:
"购物车"
,
icon
:
"shopping-cart"
,
badge
:
0
},{
text
:
"我的"
,
icon
:
"manager"
}]});
function
s
(
e
){
const
t
=
a
.
list
.
find
((
e
=>
"购物车"
==
e
.
text
));
t
&&
(
t
.
badge
=
e
)}
return
O
((()
=>
{
const
{
token
:
e
}
=
i
(
"user"
)
||
{};
e
&&
n
.
cartCount
().
then
((
e
=>
{
const
t
=
a
.
list
.
find
((
e
=>
"购物车"
==
e
.
text
));
t
&&
(
t
.
badge
=
e
)}))})),
l
((()
=>
{
const
e
=
L
.
getCurQuery
();
e
.
index
&&
(
a
.
tabIndex
=
Number
(
e
.
index
))})),(
e
,
t
)
=>
(
c
(),
x
(
b
,
null
,[
0
===
f
(
a
).
tabIndex
?(
c
(),
r
(
A
,{
key
:
0
})):
g
(
"v-if"
,
!
0
),
1
===
f
(
a
).
tabIndex
?(
c
(),
r
(
q
,{
key
:
1
})):
g
(
"v-if"
,
!
0
),
2
===
f
(
a
).
tabIndex
?(
c
(),
r
(
G
,{
key
:
2
,
onSetCartCount
:
s
})):
g
(
"v-if"
,
!
0
),
3
===
f
(
a
).
tabIndex
?(
c
(),
r
(
$
,{
key
:
3
})):
g
(
"v-if"
,
!
0
),
m
(
N
,{
current
:
f
(
a
).
tabIndex
,
list
:
f
(
a
).
list
,
onTabChange
:
t
[
0
]
||
(
t
[
0
]
=
e
=>
f
(
a
).
tabIndex
=
e
)},
null
,
8
,[
"current"
,
"list"
])],
64
))}});
export
{
H
as
default
};
dist/build/h5/assets/pages-order-afterSales.748bacc6.js
0 → 100644
浏览文件 @
45ea4b0f
import
{
d
as
e
,
r
as
t
,
b
as
a
,
c
as
n
,
f
as
s
,
h
as
r
,
w
as
o
,
j
as
l
,
u
as
i
,
i
as
f
,
l
as
c
,
p
,
e
as
d
,
x
as
u
}
from
"./index.3798694c.js"
;
const
g
=
e
({
setup
(
e
){
const
g
=
t
({
userInfo
:{}});
function
x
(
e
){
e
&&
p
({
url
:
e
})}
function
m
(){
history
.
back
()}
return
a
((()
=>
{
n
.
afterSaleImg
().
then
((
e
=>
{
g
.
userInfo
=
e
}))})),(
e
,
t
)
=>
{
const
a
=
d
(
"van-icon"
),
n
=
d
(
"van-nav-bar"
),
p
=
d
(
"van-sticky"
),
b
=
d
(
"van-image"
),
h
=
d
(
"van-col"
),
v
=
d
(
"van-row"
),
y
=
u
;
return
s
(),
r
(
y
,{
class
:
"text-center pd-b-px-55"
},{
default
:
o
((()
=>
[
l
(
p
,
null
,{
default
:
o
((()
=>
[
l
(
n
,{
title
:
"申请售后"
,
"left-arrow"
:
""
,
onClickLeft
:
m
},{
left
:
o
((()
=>
[
l
(
a
,{
name
:
"arrow-left"
,
size
:
"25"
,
color
:
"#323233"
})])),
_
:
1
})])),
_
:
1
}),
l
(
b
,{
style
:{
width
:
"100%"
},
src
:
i
(
g
).
userInfo
.
imgUrl
},
null
,
8
,[
"src"
]),
f
(
"p"
,{
style
:{
"font-size"
:
"14px"
,
"text-align"
:
"center"
,
color
:
"#bfbfbf"
,
"margin-top"
:
"20px"
}},
"用心为您服务"
),
l
(
v
,{
style
:{
background
:
"#ffffff"
,
position
:
"fixed"
,
bottom
:
"0"
,
width
:
"100%"
}},{
default
:
o
((()
=>
[
l
(
h
,{
span
:
"12"
,
style
:{
"border-right"
:
"1px solid #f9f9f9"
,
"text-align"
:
"center"
,
padding
:
"16px"
},
onClick
:
t
[
0
]
||
(
t
[
0
]
=
e
=>
x
(
"/pages/good/contact"
))},{
default
:
o
((()
=>
[
l
(
a
,{
name
:
"phone-circle-o"
,
size
:
"20px"
,
style
:{
color
:
"#fe7e58"
,
"margin-right"
:
"6px"
}}),
c
(
" 联系商家 "
)])),
_
:
1
}),
l
(
h
,{
span
:
"12"
,
style
:{
"text-align"
:
"center"
,
padding
:
"16px"
},
onClick
:
t
[
1
]
||
(
t
[
1
]
=
e
=>
x
(
"/pages/order/customerService"
))},{
default
:
o
((()
=>
[
l
(
a
,{
name
:
"service-o"
,
size
:
"20px"
,
style
:{
color
:
"#fe7e58"
,
"margin-right"
:
"6px"
}}),
c
(
" 平台介入 "
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})}}});
export
{
g
as
default
};
dist/build/h5/assets/pages-topSearch-index.60863f26.js
0 → 100644
浏览文件 @
45ea4b0f
var
e
=
Object
.
defineProperty
,
t
=
Object
.
getOwnPropertySymbols
,
a
=
Object
.
prototype
.
hasOwnProperty
,
s
=
Object
.
prototype
.
propertyIsEnumerable
,
l
=
(
t
,
a
,
s
)
=>
a
in
t
?
e
(
t
,
a
,{
enumerable
:
!
0
,
configurable
:
!
0
,
writable
:
!
0
,
value
:
s
}):
t
[
a
]
=
s
;
import
{
r
,
a
as
o
,
G
as
i
,
b
as
n
,
K
as
c
,
f
,
m
as
d
,
i
as
h
,
j
as
u
,
w
as
g
,
l
as
p
,
F
as
m
,
n
as
y
,
k
as
v
,
P
as
b
,
a1
as
k
,
v
as
L
,
a2
as
x
,
D
as
O
,
e
as
S
,
t
as
j
}
from
"./index.3798694c.js"
;
import
{
_
as
C
}
from
"./plugin-vue_export-helper.21dcd24c.js"
;
var
I
=
C
({
setup
(){
const
e
=
r
({
search
:
""
,
historyList
:[
"随便看看"
],
styleList
:[
"欧式风格"
,
"美式风格"
,
"中式"
,
"亚洲风格"
],
goback
:()
=>
{
b
.
goBack
()},
toGoodList
:(
t
,
a
)
=>
{
if
(
a
){
if
(
!
t
)
return
;
let
a
=
localStorage
.
getItem
(
"searchList"
),
s
=
null
;
if
(
a
){
s
=
JSON
.
parse
(
a
),
-
1
===
s
.
indexOf
(
e
.
search
)
&&
s
.
push
(
e
.
search
)}
else
s
=
[],
s
.
push
(
e
.
search
);
localStorage
.
setItem
(
"searchList"
,
JSON
.
stringify
(
s
))}
const
s
=
k
();
1
==
s
.
length
||
"pages/goodList/index"
!=
s
[
s
.
length
-
2
].
route
?
L
({
url
:
`/pages/goodList/index?search=
${
t
}
`
}):
x
({
delta
:
1
,
complete
:
function
(){
setTimeout
((()
=>
{
L
({
url
:
`/pages/goodList/index?search=
${
t
}
`
})}),
200
)}})},
del
:()
=>
{
O
.
confirm
({
title
:
"是否清空全部历史记录?"
}).
then
((()
=>
{
e
.
historyList
=
[],
localStorage
.
removeItem
(
"searchList"
)})).
catch
((()
=>
{}))}}),
f
=
o
();
i
((()
=>
{
e
.
search
=
""
,
e
.
historyList
=
localStorage
.
getItem
(
"searchList"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"searchList"
)).
reverse
():[]})),
n
((()
=>
{
setTimeout
((()
=>
{
f
.
value
&&
f
.
value
.
focus
()}))}));
const
d
=
c
(
e
);
return
((
e
,
r
)
=>
{
for
(
var
o
in
r
||
(
r
=
{}))
a
.
call
(
r
,
o
)
&&
l
(
e
,
o
,
r
[
o
]);
if
(
t
)
for
(
var
o
of
t
(
r
))
s
.
call
(
r
,
o
)
&&
l
(
e
,
o
,
r
[
o
]);
return
e
})({
searchField
:
f
},
d
)}},[[
"render"
,
function
(
e
,
t
,
a
,
s
,
l
,
r
){
const
o
=
S
(
"van-search"
),
i
=
S
(
"van-button"
),
n
=
S
(
"van-icon"
);
return
f
(),
d
(
"div"
,{
style
:{
background
:
"#f1f5f8"
,
height
:
"100vh"
}},[
h
(
"div"
,{
style
:{
display
:
"flex"
,
"justify-content"
:
"flex-start"
,
"align-items"
:
"center"
,
background
:
"#ffffff"
}},[
u
(
o
,{
clearable
:
!
1
,
modelValue
:
e
.
search
,
"onUpdate:modelValue"
:
t
[
0
]
||
(
t
[
0
]
=
t
=>
e
.
search
=
t
),
style
:{
flex
:
"2"
},
placeholder
:
"请输入搜索关键词"
,
name
:
"etaoSearch"
,
ref
:
"searchField"
},
null
,
8
,[
"modelValue"
]),
u
(
i
,{
type
:
"warning"
,
size
:
"small"
,
style
:{
margin
:
"0 8px"
,
background
:
"#ff6600"
},
onClick
:
t
[
1
]
||
(
t
[
1
]
=
t
=>
e
.
toGoodList
(
e
.
search
,
"search"
))},{
default
:
g
((()
=>
[
p
(
"搜索"
)])),
_
:
1
}),
u
(
i
,{
size
:
"small"
,
style
:{
"margin-right"
:
"10px"
},
onClick
:
e
.
goback
},{
default
:
g
((()
=>
[
p
(
"取消"
)])),
_
:
1
},
8
,[
"onClick"
])]),
h
(
"div"
,
null
,[
h
(
"h4"
,{
style
:{
color
:
"#5392e2"
,
padding
:
"10px"
}},[
h
(
"span"
,{
style
:{
float
:
"right"
,
"font-size"
:
"1.3rem"
,
color
:
"#adaeae"
}},[
u
(
n
,{
name
:
"delete-o"
,
onClick
:
e
.
del
},
null
,
8
,[
"onClick"
])]),
p
(
" #历史搜索 "
)]),
h
(
"div"
,{
style
:{
background
:
"#ffffff"
,
padding
:
"10px"
,
"line-height"
:
"1.6rem"
}},[
e
.
historyList
.
length
>
0
?(
f
(),
d
(
"div"
,{
key
:
0
},[(
f
(
!
0
),
d
(
m
,
null
,
y
(
e
.
historyList
,(
t
=>
(
f
(),
d
(
"ul"
,
null
,[
h
(
"li"
,{
onClick
:
a
=>
e
.
toGoodList
(
t
),
style
:{
border
:
"1px solid #f1f5f8"
,
margin
:
"2px auto"
}},
j
(
t
),
9
,[
"onClick"
])])))),
256
))])):(
f
(),
d
(
"p"
,{
key
:
1
},
"没有任何历史记录"
))]),
v
(
'<h4 style="color: #5392e2;padding: 10px;line-height: 2.3rem">#热门搜索</h4>'
),
v
(
"<div>"
),
v
(
'<ul style="background: #ffffff;padding: 10px" v-for="item in styleList">'
),
v
(
'<li @click="toGoodList(item)">{{item}}</li>'
),
v
(
"</ul>"
),
v
(
"</div>"
)])])}]]);
export
{
I
as
default
};
dist/build/h5/assets/pagesSub-index.c5fe1132.js
0 → 100644
浏览文件 @
45ea4b0f
import
{
f
as
a
,
h
as
n
,
w
as
t
,
l
as
e
,
x
as
l
,
e
as
s
,
j
as
r
,
d
as
u
,
r
as
d
,
m
as
o
,
N
as
c
,
O
as
i
,
u
as
p
,
F
as
f
}
from
"./index.3798694c.js"
;
import
{
_
as
b
}
from
"./plugin-vue_export-helper.21dcd24c.js"
;
import
{
_
as
x
}
from
"./tabbar.71503bf0.js"
;
var
_
=
b
({},[[
"render"
,
function
(
s
,
r
){
const
u
=
l
;
return
a
(),
n
(
u
,{
class
:
"justify-center pd-b-px-55"
},{
default
:
t
((()
=>
[
e
(
" 已移除地图 "
)])),
_
:
1
})}]]);
var
m
=
b
({},[[
"render"
,
function
(
u
,
d
){
const
o
=
s
(
"van-swipe-item"
),
c
=
s
(
"van-swipe"
),
i
=
l
;
return
a
(),
n
(
i
,{
class
:
"pd-b-px-55"
},{
default
:
t
((()
=>
[
r
(
c
,{
class
:
"my-swipe"
,
autoplay
:
3
e3
,
"indicator-color"
:
"white"
},{
default
:
t
((()
=>
[
r
(
o
,
null
,{
default
:
t
((()
=>
[
e
(
"bannar1"
)])),
_
:
1
}),
r
(
o
,
null
,{
default
:
t
((()
=>
[
e
(
"bannar2"
)])),
_
:
1
}),
r
(
o
,
null
,{
default
:
t
((()
=>
[
e
(
"bannar3"
)])),
_
:
1
}),
r
(
o
,
null
,{
default
:
t
((()
=>
[
e
(
"bannar4"
)])),
_
:
1
})])),
_
:
1
})])),
_
:
1
})}],[
"__scopeId"
,
"data-v-0512164e"
]]);
var
v
=
b
({},[[
"render"
,
function
(
s
,
r
){
const
u
=
l
;
return
a
(),
n
(
u
,{
class
:
"justify-center pd-b-px-55"
},{
default
:
t
((()
=>
[
e
(
" 已去除直播 "
)])),
_
:
1
})}]]);
const
I
=
u
({
setup
(
n
){
const
t
=
d
({
tabIndex
:
0
}),
e
=
{
list
:[{
text
:
"首页"
,
icon
:
"wap-home"
},{
text
:
"直播"
,
icon
:
"bars"
},{
text
:
"地图"
,
icon
:
"manager"
}]};
return
(
n
,
l
)
=>
(
a
(),
o
(
f
,
null
,[
c
(
r
(
m
,
null
,
null
,
512
),[[
i
,
0
===
p
(
t
).
tabIndex
]]),
c
(
r
(
v
,
null
,
null
,
512
),[[
i
,
1
===
p
(
t
).
tabIndex
]]),
c
(
r
(
_
,
null
,
null
,
512
),[[
i
,
2
===
p
(
t
).
tabIndex
]]),
r
(
x
,{
current
:
p
(
t
).
tabIndex
,
list
:
e
.
list
,
onTabChange
:
l
[
0
]
||
(
l
[
0
]
=
a
=>
p
(
t
).
tabIndex
=
a
)},
null
,
8
,[
"current"
,
"list"
])],
64
))}});
export
{
I
as
default
};
src/App.vue
浏览文件 @
45ea4b0f
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
}
catch
{
}
catch
{
}
}
}
}
uni
.
setStorageSync
(
'subdomain'
,
'
alisa1
'
)
uni
.
setStorageSync
(
'subdomain'
,
'
0571gs008
'
)
});
});
onShow
(()
=>
{
onShow
(()
=>
{
console
.
log
(
"App Show"
);
console
.
log
(
"App Show"
);
...
...
src/components/ShopCard.vue
浏览文件 @
45ea4b0f
...
@@ -4,9 +4,11 @@
...
@@ -4,9 +4,11 @@
<van-image
fit=
"cover"
lazy-load
:src=
"item.mainImg"
<van-image
fit=
"cover"
lazy-load
:src=
"item.mainImg"
loading-icon=
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png"
icon-size=
"30vw"
/>
loading-icon=
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png"
icon-size=
"30vw"
/>
</div>
</div>
<text
class=
"text-s ellipsis line_over2"
style=
"height: 32px;text-align: left;background: #ffffff;padding: 15rpx"
>
<view
style=
"padding: 15rpx;background: #ffffff"
>
{{
item
.
title
}}
<text
class=
"text-s ellipsis line_over2"
style=
"text-align: left;background: #ffffff"
>
</text>
{{
item
.
title
}}
</text>
</view>
<view
style=
"display: flex;background: #ffffff;padding: 15rpx"
class=
"text01"
>
<view
style=
"display: flex;background: #ffffff;padding: 15rpx"
class=
"text01"
>
<view
class=
"text-orange text-ss"
>
¥
<view
class=
"text-orange text-ss"
>
¥
<text
class=
"text-bold text-l"
>
{{
item
.
salePrice
}}
</text>
<text
class=
"text-bold text-l"
>
{{
item
.
salePrice
}}
</text>
...
...
src/pages/index/index.vue
浏览文件 @
45ea4b0f
...
@@ -76,15 +76,15 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx" @click="goPhoneBt
...
@@ -76,15 +76,15 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx" @click="goPhoneBt
<view>
<view>
<van-row
gutter=
"8"
class=
"pd-h-px-10"
>
<van-row
gutter=
"8"
class=
"pd-h-px-10"
>
<van-col
span=
"12"
>
<van-col
span=
"12"
>
<van-image
width=
"100%;"
radius=
"20rpx"
src=
"../../static/img/dz/act01
.png"
<van-image
@
click=
"goUrl(1)"
width=
"100%;"
radius=
"20rpx"
src=
"../../static/img/dz/act03
.png"
/>
/>
<van-image
width=
"100%"
style=
"margin-top: 12rpx"
radius=
"20rpx"
src=
"../../static/img/dz/act02
.png"
<van-image
@
click=
"goUrl(2)"
width=
"100%"
style=
"margin-top: 12rpx"
radius=
"20rpx"
src=
"../../static/img/dz/act04
.png"
/>
/>
</van-col>
</van-col>
<van-col
span=
"12"
>
<van-col
span=
"12"
>
<van-image
width=
"100%"
radius=
"20rpx"
src=
"../../static/img/dz/act03
.png"
<van-image
@
click=
"goUrl(3)"
width=
"100%"
radius=
"20rpx"
src=
"../../static/img/dz/act02
.png"
/>
/>
<van-image
width=
"100%"
style=
"margin-top: 12rpx"
radius=
"20rpx"
src=
"../../static/img/dz/act04
.png"
<van-image
@
click=
"goUrl(4)"
width=
"100%"
style=
"margin-top: 12rpx"
radius=
"20rpx"
src=
"../../static/img/dz/act01
.png"
/>
/>
</van-col>
</van-col>
</van-row>
</van-row>
...
@@ -108,38 +108,6 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx" @click="goPhoneBt
...
@@ -108,38 +108,6 @@ border: 1rpx solid #EBA926;color: #EBA926;padding: 2rpx 10rpx" @click="goPhoneBt
<van-image
:src=
"item.iconpath"
@
tap=
"goto(item.josnContent)"
/>
<van-image
:src=
"item.iconpath"
@
tap=
"goto(item.josnContent)"
/>
</van-swipe-item>
</van-swipe-item>
</van-swipe>
</van-swipe>
<
template
v-if=
"state.banner.areaBanner.length > 0"
>
<van-image
class=
"block_title"
src=
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/area_title.png"
/>
<view>
<view
v-if=
"state.banner.areaBanner.length == 6"
>
<van-row
gutter=
"8"
class=
"pd-h-px-10"
>
<van-col
span=
"12"
>
<van-image
width=
"100%"
radius=
"20rpx"
:src=
"state.banner.areaBanner[0].iconpath"
@
tap=
"changeTab(state.banner.areaBanner[0].josnContent, 'zq')"
/>
</van-col>
<van-col
span=
"12"
class=
"flex col justify-between"
>
<van-image
width=
"100%"
radius=
"20rpx"
:src=
"state.banner.areaBanner[1].iconpath"
@
tap=
"changeTab(state.banner.areaBanner[1].josnContent, 'zq')"
/>
<van-image
width=
"100%"
radius=
"20rpx"
:src=
"state.banner.areaBanner[2].iconpath"
@
tap=
"changeTab(state.banner.areaBanner[2].josnContent, 'zq')"
/>
</van-col>
</van-row>
<van-row
gutter=
"8"
class=
"pd-h-px-10 pd-t-px-10"
>
<van-col
span=
"12"
class=
"flex col justify-between"
>
<van-image
width=
"100%"
radius=
"20rpx"
:src=
"state.banner.areaBanner[3].iconpath"
@
tap=
"changeTab(state.banner.areaBanner[3].josnContent, 'zq',state.banner.areaBanner[3].ifCanEnter)"
/>
<van-image
width=
"100%"
radius=
"20rpx"
:src=
"state.banner.areaBanner[4].iconpath"
@
tap=
"changeTab(state.banner.areaBanner[4].josnContent, 'zq',)"
/>
</van-col>
<van-col
span=
"12"
>
<van-image
width=
"100%"
radius=
"20rpx"
:src=
"state.banner.areaBanner[5].iconpath"
@
tap=
"changeTab(state.banner.areaBanner[5].josnContent, 'zq',state.banner.areaBanner[5].ifCanEnter)"
/>
</van-col>
</van-row>
</view>
</view>
</
template
>
<van-image
class=
"block_title"
src=
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/recommend_title.png"
/>
<van-image
class=
"block_title"
src=
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/recommend_title.png"
/>
<van-list
v-if=
"state.inited"
:loading=
"state.good.loading"
:finished=
"state.good.finished"
finished-text=
"没有更多了"
<van-list
v-if=
"state.inited"
:loading=
"state.good.loading"
:finished=
"state.good.finished"
finished-text=
"没有更多了"
offset=
"10"
@
load=
"onGoodLoad"
>
offset=
"10"
@
load=
"onGoodLoad"
>
...
@@ -222,7 +190,24 @@ onMounted(() => {
...
@@ -222,7 +190,24 @@ onMounted(() => {
state
.
inited
=
true
state
.
inited
=
true
},
1000
)
},
1000
)
});
});
function
goUrl
(
type
)
{
console
.
log
(
type
);
if
(
type
==
1
){
uni
.
navigateTo
({
url
:
`/pages/goodList/index?sortType=0`
,
});
}
else
if
(
type
==
3
){
uni
.
navigateTo
({
url
:
`/pages/goodList/index?sortType=1`
,
});
}
else
if
(
type
==
2
){
uni
.
navigateTo
({
url
:
`/pages/goodList/index?search=套餐`
,
});
}
else
{
Toast
(
'正在筹备中,敬请期待!'
);
}
}
function
goPhoneBtn
(
val
){
function
goPhoneBtn
(
val
){
uni
.
makePhoneCall
({
uni
.
makePhoneCall
({
// 手机号
// 手机号
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录