首页弹窗关闭按钮

master
blak-kong 2 years ago
parent 402c519c3c
commit a98e3d3e87

Binary file not shown.

@ -82,6 +82,7 @@ export default class PopupPrivacy extends Component<any, any> {
> >
{isClose && ( {isClose && (
<View <View
style="color:#fff;"
className="at-icon at-icon-close common-close" className="at-icon at-icon-close common-close"
onClick={this.onClose} onClick={this.onClose}
></View> ></View>

@ -4,3 +4,15 @@
.van-popup { .van-popup {
background-color: transparent; background-color: transparent;
} }
.site-close {
position: absolute;
right: 36rpx;
top: 36rpx;
color: #fff;
font-size: 36rpx;
z-index: 100009;
border: 4px solid #fff;
border-radius: 50%;
padding: 4px;
box-sizing: border-box;
}

@ -127,12 +127,16 @@ export default class PopupSiteSwiper extends Component<any, any> {
<Popup <Popup
show={isShow} show={isShow}
closeOnClickOverlay={false} closeOnClickOverlay={false}
// closeable={true}
// closeIcon="close"
// closeIconPosition="top-right"
round round
overlayStyle="width: 100vw;padding: 0;" overlayStyle="width: 100vw;padding: 0;"
onClick={this.onClickStop} onClick={this.onClickStop}
// onClose={this.onClose}
> >
<View <View
className="at-icon at-icon-close common-close" className="at-icon at-icon-close site-close"
onClick={this.onClose} onClick={this.onClose}
></View> ></View>
<View className={classnames("common-box")}> <View className={classnames("common-box")}>
@ -165,7 +169,7 @@ export default class PopupSiteSwiper extends Component<any, any> {
> >
<Image <Image
className="cover" className="cover"
src={item.image} src={item.fileUrl}
mode="aspectFit" mode="aspectFit"
></Image> ></Image>
</View> </View>

@ -85,4 +85,5 @@
top: 36rpx; top: 36rpx;
color: #000; color: #000;
font-size: 36rpx; font-size: 36rpx;
z-index: 100009;
} }

@ -166,7 +166,7 @@ class Index extends Component<any, any> {
// 获取站点管理-弹窗列表 1-首页 2-发现模块 3-活动模块 // 获取站点管理-弹窗列表 1-首页 2-发现模块 3-活动模块
GetSitePopupList = async () => { GetSitePopupList = async () => {
this.intData(); // this.intData();
// return; // return;
let res = await GetSitePopupList(1); let res = await GetSitePopupList(1);
if (res.data.code === 200) { if (res.data.code === 200) {

Loading…
Cancel
Save