master
yin5th 2022-05-13 10:42:59 +08:00
parent 2129f18947
commit 062b86b624
5 changed files with 25 additions and 9 deletions

View File

@ -393,8 +393,9 @@ class Business extends Base
$data["usingRule"] = DictionaryRepository::getInstance()->getUsingRuleByCouponMainId($couponMain->id);
$data["punishRule"] = '';//处罚规则 已取消
$pregRule = "/<[img|IMG].*?src=[\'|\"]/(.*?(?:[\.jpg|\.jpeg|\.png|\.gif|\.bmp]))[\'|\"].*?[\/]?>/";
$data["content"] = preg_replace($pregRule, '<img src="' . $this->request->domain() . '${1}" style="max-width:100%">', (string)$couponMain->content );
$pregRule = "/<[img|IMG].*?src=[\'|\"][\/storage]{1}(.*?(?:[\.jpg|\.jpeg|\.png|\.gif|\.bmp]))[\'|\"].*?[\/]?>/";
$data["content"] = preg_replace($pregRule, '<img src="' . $this->request->domain() . '/${1}" style="max-width:100%">', (string)$couponMain->content );
// $data["content"] = (string)$couponMain->content;
//未登录可以领取 0可领取 1已领取 2 已领完

1
public/kUUW7FwHXa.txt Executable file
View File

@ -0,0 +1 @@
6652428bf01d109ba8459c3ba6e19203

View File

@ -22,8 +22,8 @@ body {
background-color: #F5F5F5;
font: 12px/1.5 Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
color: #333;
width: 880px;
height: 1620px;
max-width: 880px;
/*height: 1620px;*/
}
/* em 和 i 斜体的文字不倾斜 */
em,

View File

@ -3,7 +3,8 @@
z-index: 100;
top: 0;left: 0;right: 0;
background-color: red;
height: 200px;
max-height: 200px;
padding-bottom: 4px;
/* overflow: hidden; */
}
.head-box img{
@ -12,8 +13,9 @@
}
/* 轮播样式 start */
.banner-swiper {
width: 880px;
overflow-x: hidden;
/*width: 880px;*/
width: 100%;
/*overflow-x: hidden;*/
position: fixed;
left: 0;
right: 0;
@ -21,7 +23,7 @@
padding: 0 30px;
margin: 0 auto;
height: 1440px;
/* max-width: 880px; */
max-width: 880px;
}
.banner-swiper::-webkit-scrollbar{
display: none;

View File

@ -66,6 +66,8 @@
pauseOnMouseEnter: true,
//鼠标置于swiper时暂停自动切换鼠标离开时恢复自动切换。
},
simulateTouch: false,//禁止鼠标模拟
allowTouchMove: false,
direction : 'vertical',
//轮播切换方向默认向左horizontal、向右vertical
// height: 400,//slide高度
@ -195,8 +197,18 @@
}
}
</script>
<style>
.body-box{
overflow: hidden;
}
.body-box::-webkit-scrollbar {
width: 0 !important;
-ms-overflow-style: none;
overflow: -moz-scrollbars-none;
}
</style>
</head>
<body>
<body class="body-box">
<!-- 顶部 -->
<div class="head-box">
<img src="{$screenTopBanner}">