Fly 1 mēnesi atpakaļ
vecāks
revīzija
cbdc008578
3 mainītis faili ar 24 papildinājumiem un 16 dzēšanām
  1. 20 12
      App.vue
  2. 3 3
      index.html
  3. 1 1
      pages/map/model/siteList.vue

+ 20 - 12
App.vue

@@ -2,6 +2,12 @@
 	export default {
 		onLaunch: function() {
 			console.log('App Launch')
+			// const { aplus_queue } = window;
+			// console.log("aplus_queue" , aplus_queue)
+			// aplus_queue.push({
+			// 	action: 'aplus.sendPV',
+			// 	arguments: [{ is_auto: false }]
+			// });
 		},
 		onShow: function() {
 			console.log('App Show')
@@ -14,20 +20,22 @@
 
 <style lang="scss">
 	@import "uview-ui/index.scss";
+
 	/*每个页面公共css */
-	*{
+	* {
 		padding: 0;
 		margin: 0;
 		box-sizing: border-box;
 	}
-	 
-	.one-row{
+
+	.one-row {
 		display: inline-block;
-		white-space:nowrap;
+		white-space: nowrap;
 		overflow: hidden;
-		text-overflow: ellipsis; 
+		text-overflow: ellipsis;
 	}
-	.tdt-label{
+
+	.tdt-label {
 		// display: block;
 		// min-width: 100rpx;
 		// width: 1;
@@ -35,15 +43,15 @@
 		max-width: 500rpx;
 		border-radius: 14rpx;
 		padding: 15rpx !important;
-		line-height: 1.3 !important; 
-		white-space: pre-wrap !important;  
+		line-height: 1.3 !important;
+		white-space: pre-wrap !important;
 		text-align: center;
 		// transform: translateX(-50%) !important;
 	}
-	.map-label{
+
+	.map-label {
 		// white-space: pre-wrap; 
 		display: block;
-		
+
 	}
-	
-</style>
+</style>

+ 3 - 3
index.html

@@ -12,7 +12,6 @@
 		<!-- <meta property="og:image" content="http://example.com/image.jpg" /> -->
 		<!-- <meta property="og:description" content="Description Here" /> -->
 		<script>
-			console.log('11111')
 			var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS
 				.supports('top: constant(a)'))
 			document.write(
@@ -41,7 +40,7 @@
 			//注意:由于单页面路由改变时不会刷新页面,无法自动发送pv,所以对于单页应用,强烈建议您关闭自动PV, 手动控制PV事件
 			aplus_queue.push({
 				action: 'aplus.setMetaInfo',
-				arguments: ['aplus-waiting', 'MAN']
+				// arguments: ['aplus-waiting', 'MAN']
 			});
 			//是否开启调试模式 
 			aplus_queue.push({
@@ -54,8 +53,9 @@
 			//3. 业务方自己生成的随机id uuid
 			aplus_queue.push({
 				action: 'aplus.setMetaInfo',
-				arguments: ['aplus-idtype', 'xxxx'] //取值参考见附表1
+				arguments: ['aplus-idtype', 'globalproperty'] //取值参考见附表1
 			});
+			console.log("11211")
 			/******************************************************************/
 		</script>
 	</head>

+ 1 - 1
pages/map/model/siteList.vue

@@ -91,7 +91,7 @@
 							const query = uni.createSelectorQuery().in(this).select("#contentText");
 							query.boundingClientRect((data) => {
 									const defaultHeight = uni.upx2px(33)
-									console.log("data.height = ", data.height, uni.upx2px(33))
+									// console.log("data.height = ", data.height, uni.upx2px(33))
 									// const f_s = uni.upx2px(this.contentSize) * this.contentHeight * 5;
 									// const content_h = data.height; 
 									// // 是否超出