Przeglądaj źródła

小程序首页增加跳转界面

wrh 2 lat temu
rodzic
commit
23df436974

+ 0 - 1
nngkxxdp/src/main/resources/static/nnzwminiapp/app.json

@@ -30,7 +30,6 @@
 		"pages/album/album",
 		"pages/albumDetail/albumDetail",
 		"pages/albumEdit/albumEdit",
-		"pages/map/map",
 		"pages/web/web",
 		"pages/yjzjDetail/yjzjDetail"
 	],

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

@@ -796,7 +796,22 @@ Page({
 	},
 	gotoDTSS() {
 		wx.navigateTo({
-			url: '/pages/map/map?url='+"https://www.cqna.gov.cn/maps/sy_mobile.html",
+			url: '/pages/web/web?url='+"https://www.cqna.gov.cn/maps/sy_mobile.html",
+		  })	
+	},
+	gotoMTJZ() {
+		wx.navigateTo({
+			url: '/pages/web/web?url='+"https://data.cqna.gov.cn/newMedia/officialAccounts.html",
+		  })	
+	},
+	gotoSPTJ() {
+		wx.navigateTo({
+			url: '/pages/web/web?url='+"http://www.cqna.com.cn/na_Class/node_24133.html",
+		  })	
+	},
+	gotoNAB() {
+		wx.navigateTo({
+			url: '/pages/web/web?url='+"http://www.cqna.com.cn/na_Class/node_24150.html",
 		  })	
 	}
 

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

@@ -403,7 +403,7 @@
 					<view style="height: 129rpx;width:100%;position: absolute;bottom:-30rpx;display: flex;align-items: top;">
 						<view class="center-analysis-enter-font">政务新媒体矩阵</view>
 						<view class="center-analysis-enter-button">
-							<view style="background: linear-gradient(90deg, #AF66DC 0%, #D6AAF3 100%);"
+							<view bindtap="gotoMTJZ" style="background: linear-gradient(90deg, #AF66DC 0%, #D6AAF3 100%);"
 							class="center-analysis-enter-button-item">
 								进入 ></view>
 						</view>
@@ -471,7 +471,7 @@
 					<view style="height: 129rpx;width:100%;position: absolute;bottom:-30rpx;display: flex;align-items: top;">
 						<view class="center-analysis-enter-font">南岸报</view>
 						<view class="center-analysis-enter-button">
-							<view style="background: linear-gradient(90deg, #F58661 0%, #FCAF96 100%);" class="center-analysis-enter-button-item">
+							<view bindtap="gotoNAB" style="background: linear-gradient(90deg, #F58661 0%, #FCAF96 100%);" class="center-analysis-enter-button-item">
 								进入 ></view>
 						</view>
 					</view>
@@ -558,7 +558,7 @@
 					<view style="height: 129rpx;width:100%;position: absolute;bottom:-30rpx;display: flex;align-items: top;">
 						<view class="center-analysis-enter-font">视频推荐</view>
 						<view class="center-analysis-enter-button">
-							<view style="background: linear-gradient(90deg, #FFAF03 0%, #F9BF41 100%);" class="center-analysis-enter-button-item">
+							<view bindtap="gotoSPTJ" style="background: linear-gradient(90deg, #FFAF03 0%, #F9BF41 100%);" class="center-analysis-enter-button-item">
 								进入 ></view>
 						</view>
 					</view>

+ 0 - 68
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/map/map.js

@@ -1,68 +0,0 @@
-// pages/map/map.js
-Page({
-
-	/**
-	 * 页面的初始数据
-	 */
-	data: {
-		url:''
-	},
-
-	/**
-	 * 生命周期函数--监听页面加载
-	 */
-	onLoad(options) {
-		this.setData({
-			url:options.url
-		})
-	},
-
-	/**
-	 * 生命周期函数--监听页面初次渲染完成
-	 */
-	onReady() {
-
-	},
-
-	/**
-	 * 生命周期函数--监听页面显示
-	 */
-	onShow() {
-
-	},
-
-	/**
-	 * 生命周期函数--监听页面隐藏
-	 */
-	onHide() {
-
-	},
-
-	/**
-	 * 生命周期函数--监听页面卸载
-	 */
-	onUnload() {
-
-	},
-
-	/**
-	 * 页面相关事件处理函数--监听用户下拉动作
-	 */
-	onPullDownRefresh() {
-
-	},
-
-	/**
-	 * 页面上拉触底事件的处理函数
-	 */
-	onReachBottom() {
-
-	},
-
-	/**
-	 * 用户点击右上角分享
-	 */
-	onShareAppMessage() {
-
-	}
-})

+ 0 - 3
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/map/map.json

@@ -1,3 +0,0 @@
-{
-	"usingComponents": {}
-}

+ 0 - 2
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/map/map.wxml

@@ -1,2 +0,0 @@
-<!--pages/map/map.wxml-->
-<web-view src="{{url}}"></web-view>

+ 0 - 1
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/map/map.wxss

@@ -1 +0,0 @@
-/* pages/map/map.wxss */