Commit 32bde487b2b59e3b17d934752900889a55dde750

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

公告增加左边图片zdy

components/diy_notice/diy_notice.wxml
... ... @@ -3,8 +3,8 @@
3 3 <block wx:if="{{g_filter.has_char(object.wxapp_url,'plugin')>=0}}">
4 4 <navigator url="{{object.wxapp_url}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}">
5 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 8 <view class="content">
9 9 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
10 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 18 <block wx:elif="{{object.AppId}}">
19 19 <navigator target="miniProgram" app-id="{{object.AppId}}" path="{{object.wxapp_url}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}">
20 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 23 <view class="content">
24 24 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
25 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 35 <block wx:elif="{{object.finderUserName && object.video_type}}">
36 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 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 40 <view class="content">
41 41 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
42 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 49 <block wx:else>
50 50 <view data-url="{{object.wxapp_url}}" class="s1_gk_a1" bindtap="go_url" style="background-color: {{object.notice_bgcolor}}">
51 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 54 <view class="content">
55 55 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
56 56 <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
... ...