Procházet zdrojové kódy

首页修改,用户修改重复判断修改

anderx před 7 roky
rodič
revize
1408611a63

+ 1 - 1
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -850,7 +850,7 @@ public class WebpageController extends BaseController {
 		modelview.addObject("news", newsList);//资讯
 		//
 		List<News> subscriptions = (List<News>) newsService
-				.listNews(99, null, null, null, null, null, null, 1, 4, "2", null, null,null).getList();
+				.listNews(99, null, null, null, null, null, null, 1, 8, "2", null, null,null).getList();
 		modelview.addObject("subscription", subscriptions);//技淘观点精选
 
 		if (subscriptions != null && subscriptions.size() > 0 && subscriptions.get(0).getSourceUrl() != null

+ 1 - 0
src/main/java/com/goafanti/common/mapper/UserMapper.xml

@@ -1280,6 +1280,7 @@
 	<!-- 验证手机号码是否重复 -->
 	<select id="getCountByMobile" parameterType="com.goafanti.common.model.User" resultType="java.lang.Integer">
 		select count(0) from user where mobile = #{mobile,jdbcType=VARCHAR} 
+		and source=0
 		<if test="type != null">
 		and type= #{type,jdbcType=INTEGER}
 		</if>

+ 14 - 5
src/main/webapp/WEB-INF/views/portal/index.html

@@ -144,8 +144,17 @@
 				<img th:src="${portalHost+'/img/indedImg/inded4.png'}" alt="" />
 			</div>
 			<div class="wield_cont">
+				<div class="video">
+					<video id="video1" controls>
+						<source src="http://118.190.205.7:8000/Pear-Demo-Yosemite_National_Park.mp4 " type="video/mp4">
+						您的浏览器不支持 HTML5 video 标签。
+					</video>
+				</div>
 				<img th:src="${portalHost+'/img/indedImg/inded5.png'}" alt="" />
 			</div>
+				<div class="moreVideo">
+				<a href="">查看更多视频 >></a>
+			</div>
 		</div>
 		<div class="brands">
 			<a th:href="@{/portal/service/brandBuild}">
@@ -242,15 +251,15 @@
 			<h2>技淘观点精选</h2>
 			<span></span>
 		</div>
-		<div class="view">
-			<h4>观点
+		<!-- <div class="view">
+			<h4>
 				<a th:href="@{/portal/thinkTank/policyList?type=99}"><span class="line"></span><span>></span></a>
 			</h4>
-		</div>
+		</div> -->
 		<div class="publicNumber">
-			<div class="video" >
+			<!-- <div class="video" >
 				<iframe frameborder="0" width="565" height="320" th:src="${videoUrl}==null?'https://v.qq.com/iframe/player.html?vid=y0721rsmr4r&tiny=0&auto=0':${videoUrl}" allowfullscreen></iframe>
-			</div>
+			</div> -->
 			<ul>
 				
 				<li th:each="sc:${subscription}">