diy_notice.wxml
4.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<wxs module="g_filter" src="g_filter.wxs"></wxs>
<block wx:if="{{object.style==1}}">
<block wx:if="{{g_filter.has_char(object.wxapp_url,'plugin')>=0}}">
<navigator url="{{object.wxapp_url}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}">
<view class="big_border">
<image class="image_c" mode="heightFix" src="{{object.leftImage ? object.leftImage : (imghost+'/miniapp/images/notice.png')}}"></image>
<view class="marquee" style="{{object.leftImage ? 'margin-left:20rpx;' :''}}">
<view class="content">
<text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
<text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
<text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
</view>
</view>
</view>
</navigator>
</block>
<block wx:elif="{{object.AppId}}">
<navigator target="miniProgram" app-id="{{object.AppId}}" path="{{object.wxapp_url}}" class="s1_gk_a1" style="background-color: {{object.notice_bgcolor}}">
<view class="big_border">
<image class="image_c" mode="heightFix" src="{{object.leftImage ? object.leftImage : (imghost+'/miniapp/images/notice.png')}}"></image>
<view class="marquee" style="{{object.leftImage ? 'margin-left:20rpx;' :''}}">
<view class="content">
<text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
<text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
<text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
</view>
</view>
</view>
</navigator>
</block>
<block wx:elif="{{object.finderUserName && object.video_type}}">
<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}}">
<view class="big_border">
<image class="image_c" mode="heightFix" src="{{object.leftImage ? object.leftImage : (imghost+'/miniapp/images/notice.png')}}"></image>
<view class="marquee" style="{{object.leftImage ? 'margin-left:20rpx;' :''}}">
<view class="content">
<text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
<text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
<text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
</view>
</view>
</view>
</view>
</block>
<block wx:else>
<view data-url="{{object.wxapp_url}}" class="s1_gk_a1" bindtap="go_url" style="background-color: {{object.notice_bgcolor}}">
<view class="big_border">
<image class="image_c" mode="heightFix" src="{{object.leftImage ? object.leftImage : (imghost+'/miniapp/images/notice.png')}}"></image>
<view class="marquee" style="{{object.leftImage ? 'margin-left:20rpx;' :''}}">
<view class="content">
<text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
<text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
<text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text>
</view>
</view>
</view>
</view>
</block>
</block>