Quellcode durchsuchen

直播南岸页面

elis vor 2 Jahren
Ursprung
Commit
0722b07a75

+ 1 - 1
nngkxxdp/src/main/java/com/example/nngkxxdp/program/service/Impl/HLWIntefaceImpl.java

@@ -116,7 +116,7 @@ public class HLWIntefaceImpl implements HLWIntefaceService {
             return SendUtil.send(false, "", MiniConstant.RESULT_FAILED);
         }
         List<HlNewsDTO> news = data.getNews();
-        hlwNewsPaperDao.insertOrUpdateBatch(news);
+//        hlwNewsPaperDao.insertOrUpdateBatch(news);
         return SendUtil.send(true, "", news);
     }
 

+ 9 - 0
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/api/newPaper-api.js

@@ -12,6 +12,15 @@ export function getNewsPaper(data) {
   })
 }
 
+export function getVideoRecommend(data) {
+	return request({
+	  url: `/mini/hlw/videoRecommend`,
+	  method: 'GET',
+	  contentType: 'application/json;charset=UTF-8',
+	  data: data
+	})
+  }
+
 export function getDocumentPageFront(data) {
   return request({
     url: `yxna/getDocumentPageFront`,

+ 2 - 1
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/index/index.wxml

@@ -65,7 +65,7 @@
 				<swiper-item>
 					<image src="{{imgUrl}}self-service.png" style="height:163rpx;width:100%"></image>
 				</swiper-item>
-				<swiper-item>
+				<swiper-item bindtap="gotoNewsPaper">
 					<image src="{{imgUrl}}index-video-banner.png" style="height:163rpx;width:100%"></image>
 				</swiper-item>
 			</swiper>
@@ -465,6 +465,7 @@
 		</view>
 		<!-- 媒体矩阵 -->
 		<!-- 南岸报 -->
+		<!-- gotoNewsPaper -->
 		<view style="width: 100%;position:relative;margin-top: 80rpx;" bindtap="gotoNewsPaper">
 			<view style="margin-left: 20rpx;border-radius: 10rpx;background-color: #ffffff;padding: 25rpx 30rpx;width: 651rpx;height: 100%;">
 				<!-- 标题 -->

+ 10 - 2
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/newsPaper/newsPaper.js

@@ -1,5 +1,5 @@
 // pages/newsPaper/newsPaper.js
-import {getNewsPaper}from '../api/newPaper-api'
+import {getNewsPaper, getVideoRecommend}from '../api/newPaper-api'
 
 Page({
 
@@ -66,7 +66,15 @@ Page({
 
 	},
 	setPaper(){
-		getNewsPaper().then(res=>{
+		// getNewsPaper().then(res=>{
+		// 	console.log(res);
+		// 	if(res.result){
+		// 		this.setData({
+		// 			pageData:res.data
+		// 		})
+		// 	}
+		// })
+		getVideoRecommend().then(res=>{
 			console.log(res);
 			if(res.result){
 				this.setData({

+ 1 - 1
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/newsPaper/newsPaper.json

@@ -1,4 +1,4 @@
 {
 	"usingComponents": {},
-	"navigationBarTitleText": "南岸"
+	"navigationBarTitleText": "直播南岸"
 }

+ 1 - 1
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/publics/index/index.js

@@ -37,7 +37,7 @@ Page({
 		// 基层政务公开
 		baseList: [{
 				pic: 'publics-base-1.png',
-				name: '重项目建设',
+				name: '重项目建设',
 				url: 'https://www.cqna.gov.cn/bm/qfzggw/zwgk_59968/zfxxgkml1/jczwgk/zdxm/bzml/'
 			},
 			{