dever 4 years ago
parent
commit
4c3a9cc9f6

+ 2 - 2
app/content/database/news.php

@@ -36,8 +36,8 @@ return array
 
     'end' => array
     (
-        'insert' => 'tag/api.update',
-        'update' => 'tag/api.update',
+        //'insert' => 'tag/api.update',
+        //'update' => 'tag/api.update',
     ),
 
     # 数据结构

+ 1 - 1
app/content/lib/Xuniren.php

@@ -68,7 +68,7 @@ class Xuniren
             $data['pdate'] = date('Y/m/d', $data['pdate']);
 
             $data['creater'] = Dever::db('content/creater')->one($data['creater_id']);
-            $data['creater_name'] = $data['creater']['name'];
+            $data['creater_name'] = $data['creater']['desc'];
         }
 
         return $data;

+ 2 - 2
app/push/lib/Data.php

@@ -71,8 +71,8 @@ class Data
                         $info['desc'] = $data['desc'];
                     }
 
-                    if (isset($data['info']) && $data['info'] && !$info['info']) {
-                        $info['info'] = $data['info'];
+                    if (isset($data['info']) && $data['info'] && !$info['content']) {
+                        $info['content'] = $data['info'];
                     }
 
                     if (isset($data['author']) && $data['author'] && !$info['author']) {

+ 5 - 3
data/compile/cms/main/xuniren/feature.cmp.php

@@ -53,7 +53,7 @@
 						<div class="user-layer">
 							<div>
 								<a href="<?php  echo Dever::load("main/content.config#weibo") ?>" class="iconfont icon-weibo"></a>
-								<a href="#" class="iconfont icon-weixin" data-qrcode="<?php  echo Dever::load("main/content.config#weixin_qrcode") ?>"></a>
+								<a href="#" class="iconfont icon-weixin"></a>
 								<a href="<?php  echo Dever::load("main/content.config#contact") ?>" class="iconfont icon-link" data-clipboard-text="dddddd"></a>
 							</div>
 						</div>
@@ -127,6 +127,7 @@
 	</div>
 	
 	<div class="news-module wrapper clearfix">
+		<div class="dever-page">
 		<?php if(isset($data['main/content.news|type=2']) && is_array($data['main/content.news|type=2'])): ?><?php $t=count($data['main/content.news|type=2'])-1 ?><?php $i=0 ?><?php foreach($data['main/content.news|type=2'] as $k => $v): ?><dl>
 			<dt><a href="<?php echo isset($v['link']) ? $v['link'] : "" ?>" target="_blank" title="<?php echo isset($v['name']) ? $v['name'] : "" ?>"><img src="<?php echo isset($v['pic']) ? $v['pic'] : "" ?>" alt="<?php echo isset($v['name']) ? $v['name'] : "" ?>" /></a></dt>
 			<dd>
@@ -139,6 +140,7 @@
 		</dl><?php $i=$i+1 ?><?php endforeach; ?><?php else: ?><?php echo $data['main/content.news|type=2'] ?><?php endif; ?>
 		
 		
+	</div>
 		<a class="more" href="javascript:;" target="_blank" dever-show="<?php  echo Dever::pageInfo()["link"] ? "1" : "2" ?>" style="<?php  echo Dever::pageInfo()["link"] ? "" : "display:none" ?>"><span class="a">查看更多</span></a>
 	</div>
 
@@ -162,7 +164,7 @@
 		<div class="layer share-layer">
 			<a href="#" class="close"></a>
 			<h5>分享到微信朋友圈</h5>
-			<div class="qrcode" id="qrcode"><img src="<?php echo Dever::config("host")->images ?>qrcode.png?v=c3386e72" alt="" srcset="">
+			<div class="qrcode" id="qrcode"><img src="<?php  echo Dever::load("main/content.config#weixin_qrcode") ?>" alt="" srcset="">
 			<p>打开微信,使用“扫一扫”即可将网页分享到我的朋友圈</p>
 		</div>
 	</div>
@@ -170,7 +172,7 @@
 	<script src="http://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
 	<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css">
 	<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
-<script type="text/javascript" src="<?php echo Dever::config("host")->js ?>global.js?v=3f6c49a3"></script><script type="text/javascript" src="<?php echo Dever::config("host")->js ?>feature.js?v=11102b9f"></script><div id="page" dever-page-link="<?php  echo Dever::pageInfo()["link"] ?>" dever-page-list=".dever-page"></div><script src="http://192.168.33.10/dever_package/script/assets/dever/core.js?v=1616400581"></script><script src="http://192.168.33.10/cms/main/assets/xuniren/js/config.js?v=1616400581"></script></body>
+<script type="text/javascript" src="<?php echo Dever::config("host")->js ?>global.js?v=3f6c49a3"></script><script type="text/javascript" src="<?php echo Dever::config("host")->js ?>feature.js?v=11102b9f"></script><div id="page" dever-page-link="<?php  echo Dever::pageInfo()["link"] ?>" dever-page-list=".dever-page"></div><script src="http://192.168.33.10/dever_package/script/assets/dever/core.js?v=1616492326"></script><script src="http://192.168.33.10/cms/main/assets/xuniren/js/config.js?v=1616492326"></script></body>
 <script src="<?php echo Dever::config("host")->static ?>swiper.min.js"></script>
 <script>
 

+ 2 - 0
main/assets/xuniren/feature.html

@@ -142,6 +142,7 @@
 	</div>
 	<!-- end features -->
 	<div class="news-module wrapper clearfix ">
+		<div class="dever-page">
 		<dl>
 			<dt><a href="#" target="_blank"><img src="images/banner.jpg?v=7bbe3c38" alt="" /></a></dt>
 			<dd>
@@ -172,6 +173,7 @@
 				</div>
 			</dd>
 		</dl>
+	</div>
 		<a class="more" href="#" target="_blank"><span class="a">查看更多</span></a>
 	</div>
 

+ 32 - 30
main/assets/xuniren/search.html

@@ -114,36 +114,38 @@
 
 	<!-- news -->
 	<div class="news-module wrapper clearfix ">
-		<dl>
-			<dt><a href="#" target="_blank"><img src="images/banner.jpg?v=7bbe3c38" alt="" /></a></dt>
-			<dd>
-				<h3><a href="#" target="_blank">MIT研发新型医用贴片<br/>可帮助手术机器人修复人体内损伤</a></h3>
-				<div>
-					<p>虽然,目前已经有类似的粘合贴片在这类手术中使用,但是这种贴片的粘合存在一定缺陷,尤其是在处理炎症和疤痕组织的时候。</p>
-					<span>Sep 23, 2020 by Liz Gioro</span>
-				</div>
-			</dd>
-		</dl>
-		<dl>
-			<dt><a href="#" target="_blank"><img src="images/banner.jpg?v=7bbe3c38" alt="" /></a></dt>
-			<dd>
-				<h3><a href="#" target="_blank">MIT研发新型医用贴片<br/>可帮助手术机器人修复人体内损伤</a></h3>
-				<div>
-					<p>虽然,目前已经有类似的粘合贴片在这类手术中使用,但是这种贴片的粘合存在一定缺陷,尤其是在处理炎症和疤痕组织的时候。</p>
-					<span>Sep 23, 2020 by Liz Gioro</span>
-				</div>
-			</dd>
-		</dl>
-		<dl class="nobborder">
-			<dt><a href="#" target="_blank"><img src="images/banner.jpg?v=7bbe3c38" alt="" /></a></dt>
-			<dd>
-				<h3><a href="#" target="_blank">MIT研发新型医用贴片<br/>可帮助手术机器人修复人体内损伤</a></h3>
-				<div>
-					<p>虽然,目前已经有类似的粘合贴片在这类手术中使用,但是这种贴片的粘合存在一定缺陷,尤其是在处理炎症和疤痕组织的时候。</p>
-					<span>Sep 23, 2020 by Liz Gioro</span>
-				</div>
-			</dd>
-		</dl>
+		<div class="dever-page">
+			<dl>
+				<dt><a href="#" target="_blank"><img src="images/banner.jpg?v=7bbe3c38" alt="" /></a></dt>
+				<dd>
+					<h3><a href="#" target="_blank">MIT研发新型医用贴片<br/>可帮助手术机器人修复人体内损伤</a></h3>
+					<div>
+						<p>虽然,目前已经有类似的粘合贴片在这类手术中使用,但是这种贴片的粘合存在一定缺陷,尤其是在处理炎症和疤痕组织的时候。</p>
+						<span>Sep 23, 2020 by Liz Gioro</span>
+					</div>
+				</dd>
+			</dl>
+			<dl>
+				<dt><a href="#" target="_blank"><img src="images/banner.jpg?v=7bbe3c38" alt="" /></a></dt>
+				<dd>
+					<h3><a href="#" target="_blank">MIT研发新型医用贴片<br/>可帮助手术机器人修复人体内损伤</a></h3>
+					<div>
+						<p>虽然,目前已经有类似的粘合贴片在这类手术中使用,但是这种贴片的粘合存在一定缺陷,尤其是在处理炎症和疤痕组织的时候。</p>
+						<span>Sep 23, 2020 by Liz Gioro</span>
+					</div>
+				</dd>
+			</dl>
+			<dl class="nobborder">
+				<dt><a href="#" target="_blank"><img src="images/banner.jpg?v=7bbe3c38" alt="" /></a></dt>
+				<dd>
+					<h3><a href="#" target="_blank">MIT研发新型医用贴片<br/>可帮助手术机器人修复人体内损伤</a></h3>
+					<div>
+						<p>虽然,目前已经有类似的粘合贴片在这类手术中使用,但是这种贴片的粘合存在一定缺陷,尤其是在处理炎症和疤痕组织的时候。</p>
+						<span>Sep 23, 2020 by Liz Gioro</span>
+					</div>
+				</dd>
+			</dl>
+		</div>
 		<a class="more" href="#" target="_blank"><span class="a">查看更多</span></a>
 	</div>
 	<!-- end news -->

+ 3 - 3
main/database/config.php

@@ -156,10 +156,10 @@ return array
 
 		'bilibili'		=> array
 		(
-			'type' 		=> 'varchar-100',
-			'name' 		=> 'B站账号',
+			'type' 		=> 'varchar-600',
+			'name' 		=> 'B站地址',
 			'default' 	=> '',
-			'desc' 		=> 'B站账号',
+			'desc' 		=> 'B站地址',
 			'match' 	=> 'option',
 			'update'	=> 'text',
 		),