Commit 32bde487b2b59e3b17d934752900889a55dde750

Authored by 前端开发-罗建龙
1 parent e1621330

公告增加左边图片zdy

components/diy_notice/diy_notice.wxml
@@ -3,8 +3,8 @@ @@ -3,8 +3,8 @@
3 <block wx:if="{{g_filter.has_char(object.wxapp_url,'plugin')>=0}}"> 3 <block wx:if="{{g_filter.has_char(object.wxapp_url,'plugin')>=0}}">
4 <navigator url="{{object.wxapp_url}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}"> 4 <navigator url="{{object.wxapp_url}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}">
5 <view class="big_border"> 5 <view class="big_border">
6 - <image class="image_c" src="{{imghost}}/miniapp/images/notice.png"></image>  
7 - <view class="marquee"> 6 + <image class="image_c" mode="heightFix" src="{{object.leftImage ? object.leftImage : (imghost+'/miniapp/images/notice.png')}}"></image>
  7 + <view class="marquee" style="{{object.leftImage ? 'margin-left:20rpx;' :''}}">
8 <view class="content"> 8 <view class="content">
9 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> 9 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
10 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> 10 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
@@ -18,8 +18,8 @@ @@ -18,8 +18,8 @@
18 <block wx:elif="{{object.AppId}}"> 18 <block wx:elif="{{object.AppId}}">
19 <navigator target="miniProgram" app-id="{{object.AppId}}" path="{{object.wxapp_url}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}"> 19 <navigator target="miniProgram" app-id="{{object.AppId}}" path="{{object.wxapp_url}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}">
20 <view class="big_border"> 20 <view class="big_border">
21 - <image class="image_c" src="{{imghost}}/miniapp/images/notice.png"></image>  
22 - <view class="marquee"> 21 + <image class="image_c" mode="heightFix" src="{{object.leftImage ? object.leftImage : (imghost+'/miniapp/images/notice.png')}}"></image>
  22 + <view class="marquee" style="{{object.leftImage ? 'margin-left:20rpx;' :''}}">
23 <view class="content"> 23 <view class="content">
24 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> 24 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
25 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> 25 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
@@ -35,8 +35,8 @@ @@ -35,8 +35,8 @@
35 <block wx:elif="{{object.finderUserName && object.video_type}}"> 35 <block wx:elif="{{object.finderUserName && object.video_type}}">
36 <view bindtap="nv_void" data-feedId="{{object.feedId}}" data-video_type="{{object.video_type}}" data-finderUserName="{{object.finderUserName}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}"> 36 <view bindtap="nv_void" data-feedId="{{object.feedId}}" data-video_type="{{object.video_type}}" data-finderUserName="{{object.finderUserName}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}">
37 <view class="big_border"> 37 <view class="big_border">
38 - <image class="image_c" src="{{imghost}}/miniapp/images/notice.png"></image>  
39 - <view class="marquee"> 38 + <image class="image_c" mode="heightFix" src="{{object.leftImage ? object.leftImage : (imghost+'/miniapp/images/notice.png')}}"></image>
  39 + <view class="marquee" style="{{object.leftImage ? 'margin-left:20rpx;' :''}}">
40 <view class="content"> 40 <view class="content">
41 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> 41 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
42 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> 42 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
@@ -49,8 +49,8 @@ @@ -49,8 +49,8 @@
49 <block wx:else> 49 <block wx:else>
50 <view data-url="{{object.wxapp_url}}" class="s1_gk_a1" bindtap="go_url" style="background-color: {{object.notice_bgcolor}}"> 50 <view data-url="{{object.wxapp_url}}" class="s1_gk_a1" bindtap="go_url" style="background-color: {{object.notice_bgcolor}}">
51 <view class="big_border"> 51 <view class="big_border">
52 - <image class="image_c" src="{{imghost}}/miniapp/images/notice.png"></image>  
53 - <view class="marquee"> 52 + <image class="image_c" mode="heightFix" src="{{object.leftImage ? object.leftImage : (imghost+'/miniapp/images/notice.png')}}"></image>
  53 + <view class="marquee" style="{{object.leftImage ? 'margin-left:20rpx;' :''}}">
54 <view class="content"> 54 <view class="content">
55 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> 55 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
56 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> 56 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>