@@ -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
@@ -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;
@@ -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>
</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;
@@ -644,6 +644,7 @@
margin-right: 8rpx;
@@ -710,6 +711,7 @@
@@ -366,6 +366,7 @@
padding: 0 8rpx;
@@ -377,6 +378,7 @@