浏览代码

二维码长按

zhengkaixin 1 年之前
父节点
当前提交
27b8faf7c0

+ 1 - 1
main.js

@@ -82,7 +82,7 @@ Vue.mixin({
 			var mod = list[index]
 			
 			if(mod){
-				if(mod.content){
+				if(mod.content||mod.codeImage){
 					
 					uni.navigateTo({
 						url:'/pages/packages/news/articleDetail?id='+mod.id

+ 4 - 2
pages/main/index/index.vue

@@ -502,7 +502,8 @@
 							font-size: 24rpx;
 							text-align: center;
 							margin-right: 12rpx;
-							padding: 0 8rpx;
+							padding: 0 8rpx;
+							overflow: hidden;
 						}
 						.tag-item2 {
 							background-color:rgb(70, 150, 246);
@@ -513,7 +514,8 @@
 					// 日期
 					.date {
 						color: rgba(153, 153, 153, 1);
-						font-size: 24rpx;
+						font-size: 24rpx;
+						min-width: 160rpx;
 					}
 				}
 

+ 20 - 2
pages/packages/news/articleDetail.vue

@@ -24,8 +24,12 @@
 			
 			</view>
 			
-		   <image v-if="false" src="http://oss.xiaoxinda.com/enterprise/editor/2023/8/e3335976-7e10-4c2d-a322-ba384a86fc78/下载.png" :show-menu-by-longpress="true" ></image>
-		 
+		</view>
+		<view  v-if="newsDetail.codeImage" class="codeImage">
+			<image  mode="aspectFit"
+			
+			v-if="newsDetail.codeImage" :src="newsDetail.codeImage" :show-menu-by-longpress="true" ></image>
+			<view  class="codeImageView" ><u-icon name="arrow-upward"></u-icon><u-icon name="arrow-upward"></u-icon><u-icon name="arrow-upward"></u-icon> 长按图片<u-icon name="arrow-upward"></u-icon><u-icon name="arrow-upward"></u-icon><u-icon name="arrow-upward"></u-icon></view>
 		</view>
 	</view>
 </template>
@@ -90,6 +94,20 @@
 </style>
 
 <style lang="scss" scoped>
+	.codeImage{
+		background-color: #fff;
+		 text-align: center;
+		.codeImageView{
+			padding: 20rpx 0px 40rpx;
+			font-size: 32rpx;
+			 
+		}
+		image{
+			 border: 1px dashed;
+			width: 600rpx;
+			
+		}
+	}
 	.main{
 		padding: 40rpx 32rpx;
 		background-color: #fff;

+ 2 - 0
pages/packages/search/search.vue

@@ -644,6 +644,7 @@
 							font-size: 24rpx;
 							text-align: center;
 							margin-right: 8rpx;
+							overflow: hidden;
 						}
 						.tag-item2 {
 							background-color:rgb(70, 150, 246);
@@ -710,6 +711,7 @@
 				.date {
 					color: rgba(153, 153, 153, 1);
 					font-size: 24rpx;
+					min-width: 160rpx;
 				}
 			}
 	

+ 2 - 0
pages/tab/jobInformation/jobInformation.vue

@@ -366,6 +366,7 @@
 						margin-right: 12rpx;
 						
 						padding: 0 8rpx;
+						overflow: hidden;
 					}
 					.tag-item2 {
 						background-color:rgb(70, 150, 246);
@@ -377,6 +378,7 @@
 				.date {
 					color: rgba(153, 153, 153, 1);
 					font-size: 24rpx;
+					min-width: 160rpx;
 				}
 			}