Browse Source

小程序添加地图界面

wrh 2 years ago
parent
commit
3a4c03559c

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

@@ -29,7 +29,8 @@
 		"pages/leaveMessage2/leaveMessage2",
 		"pages/album/album",
 		"pages/albumDetail/albumDetail",
-		"pages/albumEdit/albumEdit"
+		"pages/albumEdit/albumEdit",
+		"pages/map/map"
 	],
 	"window": {
 		"backgroundTextStyle": "light",

+ 5 - 0
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/index/index.js

@@ -760,6 +760,11 @@ Page({
 		wx.navigateTo({
 		  url: '/pages/web/web?url='+"https://www.cqna.gov.cn/ghwd/znwd/mobile/index.html",
 		})	
+	},
+	gotoDTSS() {
+		wx.navigateTo({
+			url: '/pages/map/map?url='+"https://www.cqna.gov.cn/maps/sy_mobile.html",
+		  })	
 	}
 
 })

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

@@ -518,7 +518,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, #0163EA 0%, #00BEFA 100%);" class="center-analysis-enter-button-item">
+							<view bindtap="gotoDTSS" style="background: linear-gradient(90deg, #0163EA 0%, #00BEFA 100%);" class="center-analysis-enter-button-item">
 								进入 ></view>
 						</view>
 					</view>

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

@@ -1,3 +1,4 @@
 {
-	"usingComponents": {}
+	"usingComponents": {},
+	"navigationBarTitleText": "我要留言"
 }

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

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

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

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

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

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

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

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