Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
2981c5e4
Commit
2981c5e4
authored
Mar 21, 2020
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信分享
parent
b3200e6d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
250 additions
and
10 deletions
+250
-10
src/components/livedModel/livedControls.vue
+13
-2
src/components/livedModel/livedShareDia.vue
+118
-0
src/pages/lived/index.vue
+118
-8
src/pages/lived/main.json
+1
-0
No files found.
src/components/livedModel/livedControls.vue
View file @
2981c5e4
...
@@ -28,6 +28,8 @@
...
@@ -28,6 +28,8 @@
v-if=
"list"
v-if=
"list"
@
changeStatus=
"changeStatus"
@
changeStatus=
"changeStatus"
></livedGoodsDia>
></livedGoodsDia>
<!-- 分享弹层 -->
<livedShareDia
:showShareDia=
"showShareDia"
@
closeShareDia=
"closeShareDia"
:info=
"info"
></livedShareDia>
<!-- 底部控制层 -->
<!-- 底部控制层 -->
<div
class=
"control flex"
>
<div
class=
"control flex"
>
<template
v-if=
"!isSend"
>
<template
v-if=
"!isSend"
>
...
@@ -36,7 +38,7 @@
...
@@ -36,7 +38,7 @@
<p
class=
"goodsNum"
v-if=
"list.length>0"
>
{{
list
.
length
}}
</p>
<p
class=
"goodsNum"
v-if=
"list.length>0"
>
{{
list
.
length
}}
</p>
</div>
</div>
<div
class=
"iptCopy"
@
click=
"isLogin"
>
跟主播说点什么...
</div>
<div
class=
"iptCopy"
@
click=
"isLogin"
>
跟主播说点什么...
</div>
<div
class=
"shareIcon"
>
<div
class=
"shareIcon"
@
click=
"showShare"
>
<img
src=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAADwElEQVR4Xu2aS6hNURjH//+RgYGRKAMDr1tmFJGBSxmIjGTgKq/rUURi5qKQkhKlLt1IHkl05VUG7r3lkW4MPMIVRXkNFMqAqL++2len45y99mPtc/bu7FWnc2qv9X3f/7fX41trHaLFC1tcP0oAZQ9ocQLlEGjxDlBOguUQKIdAixPI1RCQ1EbyZSPfSW4ASHoGYCqABwC2kBxsBIhcAJB0CsDKCsGfAKwleTNrCHkB0A9gbpXY3wDWkDyTJYQ8AxjWvY3k4awgFAGAad9PcmcWEIoCwLQfJ7nBN4QiATDtl22yJPnDF4iiATDdAwGEdz4gFBGA6bacwXrCo7QQmg5A0iQAJ2osgy5tliusInnLVTHsecMBSBoHYAaAmcG3/R6ZUITlCgbhXML2jTsPkDQdwLrgkzTeeu22kjySxGjmPSBj4ZWa95HsigshMwCSxgDYHnzixpW0fjfJjXEaZwJAkiUsJn5CnGA81b0EoIPkryj2vAKQNA3AAQALojjPsI5trlaQ/ODy4Q2ApIUAzgMY5XLaoOdPAwiPM18GJa0H0N0gYXHcWK5gPeF2vUape4CkGwDs7ee1WK6wjGRvrQBTAZB0BcCSvCqviOsNyYleAUg6CmBzAcRbiAMk270BkGTCDUBRSjtJ20X+V2IPAUnzANSdVHJIZArJV14mQUkjAPQBmJ1DodUhfQcwluRPb8ugpIMAdhRA/BDJtihxRh4CkhYDuBrFaJPr9JGcHzWGOADs4KHZKa5L12mSlRcsrvrRzgMkLQdw1mmtuRX2ktwVN4RIPUDSfQCz4hpvYP1Okj1J/DkBSOoA4Pt66huA5wCeADC4qxOcCZrePwAWpTkXjALgguXSSegGbT4HS6cJfQFgsPpcX1Ktu0GXy/c2J5E0m4lLKIDgAHMowaGlTZj3APSTvOuKLgGAhwAsu0t9QeICEGeba/tu2xz1kgz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2IPAUnzANSdVHJIZArJV14mQUkjAPQBmJ1DodUhfQcwluRPb8ugpIMAdhRA/BDJtihxRh4CkhYDuBrFaJPr9JGcHzWGOADs4KHZKa5L12mSlRcsrvrRzgMkLQdw1mmtuRX2ktwVN4RIPUDSfQCz4hpvYP1Okj1J/DkBSOoA4Pt66huA5wCeADC4qxOcCZrePwAWpTkXjALgguXSSegGbT4HS6cJfQFgsPpcX1Ktu0GXy/c2J5E0m4lLKIDgAHMowaGlTZj3APSTvOuKLgGAhwAsu0t9QeICEGeba/tu2xz1kgzdg1cDiQngOklbkr0UF4BrNsYcnu4AOEQycY4QA0APyU4vygMjdQFIGg/gbYizj4Hw1FfXEQEkOvV1wQoDEDb7HwvEhwFy+f73PAKATSTNp/cSBuAigKU1PNq/Nk76jCQEwFe7SCFpJ72ZlDAANvtPrvI6h6TN7l5LHQC2vJl45yqSJpgwAMP/2hq2P5rklzTO6rWVtAfA7ornlheY+NdZ+Ku0GQbAgrIZ18a5HSpa4pFZkWSriN0f2tDr8rHGRwnWmQlGMVLkOiWAIr89H7GXPcAHxSLbKHtAkd+ej9jLHuCDYpFtlD2gyG/PR+wt3wP+AsW7I1AzjlUOAAAAAElFTkSuQmCC"
alt=
""
>
</div>
</div>
<div
class=
"heardIcon"
>
<div
class=
"heardIcon"
>
...
@@ -79,6 +81,7 @@ import livedAnnouncement from "@/components/livedModel/livedAnnouncement";
...
@@ -79,6 +81,7 @@ import livedAnnouncement from "@/components/livedModel/livedAnnouncement";
import
livedIsMsg
from
"@/components/livedModel/livedIsMsg"
;
import
livedIsMsg
from
"@/components/livedModel/livedIsMsg"
;
import
livedExplainingCommodities
from
"@/components/livedModel/livedExplainingCommodities"
;
import
livedExplainingCommodities
from
"@/components/livedModel/livedExplainingCommodities"
;
import
livedGoodsDia
from
"@/components/livedModel/livedGoodsDia"
;
import
livedGoodsDia
from
"@/components/livedModel/livedGoodsDia"
;
import
livedShareDia
from
"@/components/livedModel/livedShareDia"
;
import
live
from
"@/api/live"
;
import
live
from
"@/api/live"
;
export
default
{
export
default
{
props
:
[
props
:
[
...
@@ -106,6 +109,7 @@ export default {
...
@@ -106,6 +109,7 @@ export default {
num
:
0
,
num
:
0
,
userComing
:
false
,
userComing
:
false
,
showDia
:
false
,
//显示商品列表弹窗
showDia
:
false
,
//显示商品列表弹窗
showShareDia
:
false
,
//显示分享弹窗
isSend
:
false
,
//显示评论输入框
isSend
:
false
,
//显示评论输入框
sendVal
:
""
,
//输入内容
sendVal
:
""
,
//输入内容
getFocus
:
false
,
//获取焦点
getFocus
:
false
,
//获取焦点
...
@@ -117,7 +121,8 @@ export default {
...
@@ -117,7 +121,8 @@ export default {
livedAnnouncement
,
livedAnnouncement
,
livedIsMsg
,
livedIsMsg
,
livedExplainingCommodities
,
livedExplainingCommodities
,
livedGoodsDia
livedGoodsDia
,
livedShareDia
},
},
computed
:
{
computed
:
{
likeNumCopy
()
{
likeNumCopy
()
{
...
@@ -209,6 +214,12 @@ export default {
...
@@ -209,6 +214,12 @@ export default {
changeStatus
()
{
changeStatus
()
{
this
.
showDia
=
false
;
this
.
showDia
=
false
;
},
},
showShare
()
{
this
.
showShareDia
=
true
;
},
closeShareDia
()
{
this
.
showShareDia
=
false
;
},
// 是否登录
// 是否登录
isLogin
()
{
isLogin
()
{
let
_this
=
this
;
let
_this
=
this
;
...
...
src/components/livedModel/livedShareDia.vue
0 → 100644
View file @
2981c5e4
<
template
>
<div
class=
"livedShareDia"
>
<van-popup
:show=
"showShareDia"
position=
"bottom"
:close-on-click-overlay=
"true"
@
close=
"closeDia"
>
<div
class=
"share flex"
>
<div
class=
"wxShare"
>
<button
data-name=
"shareBtn"
open-type=
"share"
plain=
"true"
>
<img
src=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAQDklEQVR4Xu1dCXBURRr+ehIggYAQznCK4b50lWuCFKDECy8UwYuUC64uuFqCihUmFKFMSOnKsovrQumiLhFFKEQ5REWXqJAhcggC4Qwgk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SuQmCC"
alt
/>
<p
class=
"tit"
>
微信分享
</p>
</button>
</div>
<div
class=
"createPoster"
>
<img
src=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAOyElEQVR4Xu2de3BU1R3Hv79dkuxusgGiUhFBTUCKWlGE4igqVqMFRQbMLtnwsDN1Okqt1antDHYsUEf5o3a0rY92xk47INmYG7VCMVWsTdV2dKRaOj6KmthKHxSUKCG7m4TcX+dssiG7bHIfe+7du7v3zixhZs/j9/js7zzvOQT3KWkLUElr7yoPF4ASh8AFwAWgxC1Q4uq7EcAFoMQtUOLquxHABaD4LNC0nSf3eQbqPDhWR6A6BtUCXAdwFeCpHPorPlQ5pD33AnR06KOm/t9J4C4Gd6qY0FmhlnU2r6buYrNWUUSAZTs54I/1XQZGPTMvA3C2RY56n4h2grA7Hqh4ZecyillUj23FFiwAodbETFaxhIDFAOrBHLTNaqIioh4AuxnoIA/albDvQ1vrl1RZQQEw4nTmJQDEx0lPOxO1FxoMBQFAuDkWZqJ1AK5zksfHkWUXMW9tbQq0Ol1exwJww7Mc9MVi6xietQAWOt2QY8j3OkHdlggEtu5YnmwyHPc4EoCG7b2byJN0fK3jLGZOoC5W1W1tqys3mctuXS5HAdAQjS8mYCOGOnbF+HQwsLkt4u9winKOAWD4Vy+cX/QPq+pmp0SDvAMQao4tAtG9RfyrHwvoDjDfozQFXs0n8XkFoKE5dgcRbQHgy6cR8lh3gpk3tDUFHsqXDHkBoDEam64ybWHC6nwp7qR6ibHdQ7yhJRLYb7dctgMQisZWgGkLCLPtVtbR9TH2gXiDEgk8Y6ectgIQakncCuZH7VSw4OoiWq80+h6zS27bAGiIxjcS4LhxsF2GNlKPnaMEWwAopSGeEUePl9YuCCwHwHW+eSTsgMBSAELR/rXA4FbzJnBzAt51SqR8m1WWsAyAhpZYiJgcvxpmlWFllsvE4bbGgCKzzFRZlgDgOl++q6yCQDoAyXE+6Gn5JnBLBHil7HkCqQCIGb5Bpt3uJ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Oclrm+JBPbL0lsqAEKoUDS2AiBTl0vIUqp4y+GVSiSgeQmEEf2lA5CEoCVxK5gfNSKIm1bDAkTrlUbfY7LtZAkAyU5hNL6RAFPTk7KVLPTyZIz3x7KBZQAkITCxXlDozpItv5XOF7JaCoALQW44WO18WwAY6hj2rwUGt+ZmjlLL7V2nRMq3Wa215REgpUBDSyxETK1WK1QM5TNxuK0xoNihi20AJJsDFwJNn9rpfNuagNFaJ+cJmLa4k0UZLDD2gXiD7HG+FnG2RoCUMGLGUGXa4k4bD1lETO96iDfInOHTcnzq+7wAMNIvGFpA2iJui9ErcJGlSzDzBlkLO2Zsk1cAkiOEoaXkewEsNqNAAefpAPM9SlPg1XzqkHcARqJBCU0a2TG+1wuVYwBIjhKi8cUEiJ3GxRoNOhjY3Bbxd+h1kNXpHAXASDQYWkdYB6DWagPYVH4Xq+o2s1u3rZTRkQAIhcXLJ75YbB3DsxbAQiuNYGHZrxPUbYlAYOuO5eSMc+wzlHUsAKPlHH4hVUSE6yx0lsyidxHz1tamgONnPgsCgJRnQq2JmaxiCTEvASA+TnramaidPGhXwr4PnSTYeLIUFACjFTkOA64G+CoA1t/qmG7JXoB+z4QXC83po9UoWADSYThYhcGJ9Qz1GgLqxdU9Fv0COxnYTfC8AO/nu5XwlOO3TltUodXFFgUAmUYSB1z3eQbqPDhWR6A6BtUCXAdwFeCpHPorPjQcNVj8mo8OfdTU/zsJ3MXgThUTOivUss7m1dRttUPsLr8oAbDbiIVcnwtAIXtPguwuABKMWMhFuAAUsvckyO4CIMGIhVyEC0Ahe0+C7C4AEoxYyEW4ABSy9yTI/n9rQIzMgy9AFQAAAABJRU5ErkJggg=="
alt
/>
<p
class=
"tit"
>
生成海报
</p>
</div>
</div>
<div
class=
"cancel"
@
click=
"closeDia"
>
取消
</div>
</van-popup>
</div>
</
template
>
<
script
type=
"text/ecmascript-6"
>
import
{
DFSImg
}
from
"@/utils/index"
;
export
default
{
props
:
[
"showShareDia"
],
name
:
""
,
data
()
{
return
{
liveId
:
""
,
shopName
:
""
,
shopLogo
:
""
,
backPath
:
""
,
};
},
components
:
{},
computed
:
{},
created
()
{},
onLoad
(
options
)
{
let
params
=
JSON
.
parse
(
options
.
params
);
this
.
liveId
=
params
.
liveId
;
this
.
shopName
=
params
.
shopName
;
this
.
backPath
=
params
.
fromPagePath
||
"/"
;
this
.
shopLogo
=
DFSImg
(
params
.
shopLogo
,
40
,
40
);
this
.
init
();
},
onUnload
()
{},
mounted
()
{},
methods
:
{
// 初始化信息
init
()
{},
initShare
()
{},
// 关闭
closeDia
()
{
this
.
$emit
(
"closeShareDia"
);
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.flex
{
display
:
flex
;
}
img
{
display
:
block
;
}
.livedShareDia
{
width
:
100vw
;
.share
{
box-sizing
:
border-box
;
width
:
100%
;
justify-content
:
space-around
;
align-items
:
center
;
padding
:
20px
;
&
>
div
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
line-height
:
30px
;
img
{
width
:
60px
;
height
:
60px
;
}
.tit
{
font-size
:
18px
;
}
}
.wxShare
{
button{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
line-height
:
30px
;
}
button
[
plain
]
{
border
:
0
;
}
}
}
.cancel
{
border-top
:
10px
solid
#e5e4e9
;
text-align
:
center
;
height
:
60px
;
line-height
:
60px
;
font-size
:
18px
;
}
}
</
style
>
src/pages/lived/index.vue
View file @
2981c5e4
...
@@ -73,11 +73,13 @@
...
@@ -73,11 +73,13 @@
</
template
>
</
template
>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
{
DFSImg
}
from
"@/utils/index"
;
import
{
serialize
,
getQueryVariable
,
DFSImg
}
from
"@/utils/index"
;
import
live
from
"@/api/live"
;
import
live
from
"@/api/live"
;
import
notStarted
from
"@/components/livedModel/notStarted"
;
import
notStarted
from
"@/components/livedModel/notStarted"
;
import
livedControls
from
"@/components/livedModel/livedControls"
;
import
livedControls
from
"@/components/livedModel/livedControls"
;
import
livedIsEnded
from
"@/components/livedModel/livedIsEnded"
;
import
livedIsEnded
from
"@/components/livedModel/livedIsEnded"
;
import
spokesman
from
"@/api/spokesman"
;
import
shop
from
"@/api/shop"
;
export
default
{
export
default
{
name
:
""
,
name
:
""
,
data
()
{
data
()
{
...
@@ -103,7 +105,11 @@ export default {
...
@@ -103,7 +105,11 @@ export default {
infoTiming
:
null
,
//全局定时器
infoTiming
:
null
,
//全局定时器
goodTiming
:
null
,
//商品定时器
goodTiming
:
null
,
//商品定时器
endInfo
:
{},
//直播结束详情
endInfo
:
{},
//直播结束详情
firstComing
:
true
// 首次进入
firstComing
:
true
,
// 首次进入
params
:
{},
userId
:
""
,
hasInvitationStatus
:
0
,
// 邀请资格:0-不能够邀请下级,1-能够邀请下级
spokesmanObj
:
{}
//分销员信息
};
};
},
},
components
:
{
components
:
{
...
@@ -129,17 +135,61 @@ export default {
...
@@ -129,17 +135,61 @@ export default {
}
}
}
}
});
});
let
params
=
JSON
.
parse
(
options
.
params
);
this
.
params
=
JSON
.
parse
(
options
.
params
);
this
.
$store
.
commit
(
"setOfflineShopCode"
,
params
.
offlineShopCode
);
console
.
log
(
this
.
params
,
"-----------------133"
);
this
.
liveId
=
params
.
liveId
;
this
.
$store
.
commit
(
"setOfflineShopCode"
,
this
.
params
.
offlineShopCode
);
this
.
shopName
=
params
.
shopName
;
this
.
liveId
=
this
.
params
.
liveId
;
this
.
backPath
=
params
.
fromPagePath
||
"/"
;
this
.
shopName
=
this
.
params
.
shopName
;
this
.
shopLogo
=
DFSImg
(
params
.
shopLogo
,
40
,
40
);
this
.
backPath
=
this
.
params
.
fromPagePath
||
"/"
;
this
.
shopLogo
=
DFSImg
(
this
.
params
.
shopLogo
,
40
,
40
);
// 是否有分销员信息
if
(
params
.
spokesmanGroupId
){
this
.
$store
.
commit
(
"setSpokesman"
,
{
spokesmanGroupId
:
params
.
spokesmanGroupId
,
spokesmanShopId
:
params
.
spokesmanShopId
,
spokesmanRelId
:
params
.
spokesmanRelId
})
}
this
.
init
();
this
.
init
();
this
.
infoTiming
=
setInterval
(()
=>
{
this
.
infoTiming
=
setInterval
(()
=>
{
this
.
timingGetInfo
();
this
.
timingGetInfo
();
},
5000
);
},
5000
);
this
.
userEntry
(
"IN"
);
this
.
userEntry
(
"IN"
);
// 通过分享进入直播间重新查询订阅消息配置
this
.
getMsgConfig
();
this
.
isLogin
();
},
onShareAppMessage
(
options
)
{
let
_this
=
this
;
if
(
this
.
hasInvitationStatus
==
1
){
Object
.
assign
(
this
.
params
,
this
.
params
,
this
.
spokesmanObj
);
}
console
.
log
(
this
.
params
,
'--------------161'
)
let
shareObj
=
{
title
:
this
.
liveNoticeInfo
.
title
,
path
:
`/pages/lived/main?params=
${
JSON
.
stringify
(
this
.
params
)}
`
,
imageUrl
:
this
.
liveNoticeInfo
.
coverUrl
,
success
:
function
(
res
)
{
console
.
log
(
"-----------success"
);
// 转发成功之后的回调
if
(
res
.
errMsg
==
"shareAppMessage:ok"
)
{
console
.
log
(
res
,
"分享成功"
);
}
},
fail
:
function
(
res
)
{
console
.
log
(
"-----------fail"
);
// 转发失败之后的回调
if
(
res
.
errMsg
==
"shareAppMessage:fail cancel"
)
{
console
.
log
(
res
,
"取消转发"
);
}
else
if
(
res
.
errMsg
==
"shareAppMessage:fail"
)
{
console
.
log
(
res
,
"转发失败"
);
}
}
};
console
.
log
(
shareObj
,
"----------------168"
);
return
shareObj
;
},
},
onUnload
()
{
onUnload
()
{
this
.
liveNoticeInfo
.
liveBroadcastState
=
-
1
;
this
.
liveNoticeInfo
.
liveBroadcastState
=
-
1
;
...
@@ -194,6 +244,66 @@ export default {
...
@@ -194,6 +244,66 @@ export default {
url
:
`../index/main?from=livedBackShop&backpath=
${
this
.
backPath
}
`
url
:
`../index/main?from=livedBackShop&backpath=
${
this
.
backPath
}
`
});
});
},
},
// 是否登录
isLogin
()
{
let
_this
=
this
;
wx
.
getStorage
({
key
:
"sessionid"
,
success
(
res
)
{
// 查询分销员信息
_this
.
getSpokesman
();
},
fail
(
res
)
{
console
.
log
(
"未登录------150"
);
// 跳转登录页
let
backUrl
=
"/lived/main"
;
let
query
=
{
liveId
:
_this
.
liveId
,
fromType
:
"mini"
};
let
url
=
`/pages/login/main?back=
${
backUrl
}
¶ms=
${
JSON
.
stringify
(
query
)}
`
;
wx
.
navigateTo
({
url
:
url
});
}
});
},
getMsgConfig
()
{
if
(
!
this
.
$store
.
state
.
subscribeMessageObj
)
{
shop
.
getWxMiniSubscribeMessageConfig
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
const
data
=
res
.
data
.
data
;
console
.
log
(
"wx mini subscribe message data: "
,
data
);
if
(
data
!=
null
)
{
const
subscribeMessageObj
=
{};
for
(
var
key
in
data
)
{
if
(
data
[
key
]
&&
data
[
key
].
template_id
)
{
subscribeMessageObj
[
key
]
=
data
[
key
].
template_id
;
}
}
this
.
$store
.
commit
(
"setSubscribeMessageObj"
,
subscribeMessageObj
);
}
}
});
}
},
getSpokesman
()
{
spokesman
.
getSpokesmanidByShare
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
data
.
hasInvitationStatus
==
1
)
{
this
.
hasInvitationStatus
=
1
;
this
.
spokesmanObj
=
{
spokesmanGroupId
:
res
.
data
.
data
.
groupId
,
spokesmanShopId
:
res
.
data
.
data
.
shopId
,
spokesmanRelId
:
res
.
data
.
data
.
spokesmanId
};
}
}
});
},
toShop
()
{
toShop
()
{
// 到商城首页
// 到商城首页
this
.
backPath
=
"/"
;
this
.
backPath
=
"/"
;
...
...
src/pages/lived/main.json
View file @
2981c5e4
{
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"navigationBarTextStyle"
:
"white"
,
"navigationBarTextStyle"
:
"white"
,
"disableScroll"
:
true
,
"usingComponents"
:
{
"usingComponents"
:
{
"van-button"
:
"/static/vant/button/index"
,
"van-button"
:
"/static/vant/button/index"
,
"van-icon"
:
"/static/vant/icon/index"
,
"van-icon"
:
"/static/vant/icon/index"
,
...
...
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